Skip to content

Commit 1bdda92

Browse files
committed
test(cli): name the face record-currency-codes actually reaches in the purity drive
Measured: on the uncompiled fixture the command answers its 'No app objects are loaded' refusal after the boot, not INVALID_FIELD. Comment only. Claude-Session: https://claude.ai/code/session_01QUs3BuiMGLNsVXrDee61JM Co-authored-by: Claude <noreply@anthropic.com>
1 parent a8c47a4 commit 1bdda92

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎packages/cli/test/json-stdout-purity.e2e.test.ts‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,16 @@ const FAMILY: Record<string, string[]> = {
136136
// directory gains nothing.
137137
'migrate organization-ownership': [],
138138
'migrate plan': [],
139-
// [ADR-0144] One pair per run, and all three flags are required. A dry run is
140-
// its DEFAULT and the only form driven here: without `--apply` it boots
141-
// read-only (`deferSchemaDdl` + `readOnlyProbe`) and writes nothing. The
142-
// fixture's `jp_ticket.title` is not a record-mode currency field, so the
143-
// face driven here is its REFUSAL face — the backfill's `INVALID_FIELD`
144-
// before any row is read, emitted compact (`emitJson(…, 0, { compact: true })`
145-
// then `this.exit(1)`) after the boot and before the `finally` shutdown, so
146-
// the shutdown's diagnostics follow the document and must stay off stdout.
147-
// Widening the shared fixture with a currency field would move the faces of
148-
// the members that walk every object; the refusal still boots the stack.
139+
// [ADR-0144] `--object`, `--field` and `--code` are all required, so without
140+
// them the run stops at flag parsing and never boots; the pair named here is
141+
// the fixture's own. A dry run is its DEFAULT and the only form driven here:
142+
// without `--apply` it boots read-only (`deferSchemaDdl` + `readOnlyProbe`)
143+
// and writes nothing. It reads the app objects from the compiled artifact,
144+
// which this fixture deliberately lacks (see the header), so the face driven
145+
// here is its REFUSAL face — "No app objects are loaded" — emitted compact
146+
// (`emitJson(…, 0, { compact: true })`, then `this.exit(1)`) after the boot
147+
// and BEFORE the `finally` shutdown, so the shutdown's diagnostics follow
148+
// the document and must stay off stdout.
149149
'migrate record-currency-codes': ['--object', 'jp_ticket', '--field', 'title', '--code', 'USD'],
150150
'migrate recorded-by': [],
151151
'migrate resume': [],

0 commit comments

Comments
 (0)