You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: os db orphans --delete and os secret orphans --delete in a non-interactive shell without --yes delete nothing, print "Aborted", and exit 0 — the migrate family exits 1 #36331
os db orphans --delete --export FILE and os secret orphans --delete --export FILE, run without --yes where stdin is not a terminal (a script, CI, a cron job), print Aborted — no export was written and no row was deleted. and return exit 0. A script reads success; nothing was deleted.
Read from source on main (reach not measured at a running deployment):
packages/cli/src/commands/db/orphans.ts:233-236 — text face: const ok = await confirm(...); if (!ok) { printInfo('Aborted — ...'); return; } (exit 0). The --json face of the same branch already exits 1 with confirmation_required.
packages/cli/src/commands/secret/orphans.ts:398 — the same shape.
The shared confirm answers false when !process.stdin.isTTY (packages/cli/src/commands/db/orphans.ts:402, "non-interactive → require --yes").
Why it is a defect
The os migrate family settled this in #24949: a run that did not get its confirmation applies nothing and exits 1, naming --yes; packages/cli/test/migrate-confirmation-exit.pin.test.ts pins it, but its roster reads only src/commands/migrate/**, so the two orphans --delete commands are outside it. Found while dispatching PR #36304 (os migrate list-preferences, which joined that roster).
Done when
Both commands, text face, non-TTY, no --yes: exit 1 with a line naming --yes; nothing exported or deleted (as today).
An interactive "no" answer may stay exit 0 or follow the migrate family: the dev reads how the family treats it and matches it.
A pin covers both commands (extending the confirmation pin's population, or a sibling pin), with an ablation.
Out of scope: any change to what the commands delete or export.
Triage: lands in domain:server (packages/cli/src/commands/db/orphans.ts, secret orphans) · pm:queue; rationale: area:build (CLI; was the legacy area:devpath) · Bug · --delete without --yes in a non-interactive shell prints 「Aborted」 and exits 0, so a script or cron job reads success while nothing was deleted. Read from source → p2 as filed · size XS.
{
"issue": 36331,
"status": "done",
"branch": "claude/issue-36331-orphans-delete-yes-exit",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36676",
"head": "4cb78e091b2293ff951a80618cf36b5120ef305a",
"session": "session_011y7As7qKGpBTzxc5S8q3Ko",
"premise_still_valid": true,
"summary": "Premise measured on origin/main 3cf6a44b: both text faces returned exit 0 after printInfo('Aborted ...') when the shared confirm() answered false on a non-TTY stdin; --json already exited 1. Both commands now follow the os migrate family's shape (migrate/apply.ts): inside the !flags.yes gate, a non-TTY run prints 'Confirmation required. Re-run with --yes to delete. No export was written and no row was deleted.' and this.exit(1) (the enclosing catch already rethrows exit signals). An interactive 'n' keeps exit 0 and the Aborted line, matching the family's decline control. Added sibling pin packages/cli/test/orphans-confirmation-exit.pin.test.ts whose population is discovered from command classes outside src/commands/migrate declaring boolean delete+yes flags (= db orphans, secret orphans); ablated red. PM assumption 2 confirmed: the migrate pin reads src/commands/migrate only.",
"tests": "At 4cb78e09: pnpm --filter @objectstack/cli exec vitest run --project unit test/orphans-confirmation-exit.pin.test.ts -> Test Files 1 passed (1), Tests 9 passed (9), lock VERDICT command-exit 0. Ablation at 4cb78e09: both src files restored to origin/main 3cf6a44b via git restore --source (guard grep count 0 in both = mutation on disk), same run -> 2 failed | 7 passed (db orphans and secret orphans text face: 'expected +0 to be 1', output 'Aborted - no export was written...'), VERDICT command-exit 1; restored via git checkout HEAD --, hash-object equals HEAD blobs for both, git diff HEAD 0 bytes, trap-guarded. No dist leg: the pin imports command modules from src/. Full CLI unit tier at 8d0d1c86 (lock, 17 min): 437/439 files passed, Tests 6210 passed | 29 skipped; the 2 failing files (published-subpath-console.pin, published-subpath-hook-body.pin) refuse on 'packages/cli is not built (./dist/index.js is absent)' = prerequisite, NOT MEASURED. integration tier declared to CI (diff touches no integration file or spawn entry). pnpm --filter @objectstack/cli typecheck exit 0 at 8d0d1c86; tsc -p tsconfig.test.json 0 errors for the pin at 4cb78e09.",
"gates": "Local: dispatch-gates --commands (70 derived) run unlocked sequentially, exit captured per command before any pipe: 64 exit 0; 5 exit 3 PREREQUISITE NOT MET = NOT MEASURED (check:i18n, check:i18n-coverage, check:i18n-walk-parity: built CLI absent; check:dual-build-cjs-loads: full build absent; check-plugin-teardown-shape --self-test: shallow clone); check:test-source-alias exit 1 on intermediate head aa7cf1e4 (pin reached serve.ts dynamic imports) -> fixed by mocking one-shot-settings -> exit 0 at 4cb78e09. Re-run at 4cb78e09, all exit 0: check:test-source-alias, check:cross-package-test-inputs, check:tier-file-adoption, check:cli-test-child-env, check:nul-bytes, check:cli-command-ids, check-empty-changeset --base origin/main, check-adr-0087-registration --base origin/main, check-changeset-no-major --base origin/main. --ran reconciliation: '70 derived, 70 run, 0 NOT-MEASURED, 0 UNRUN' (tool notes the zero is runner-declared). CI check-runs on 4cb78e09 at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling, CI/release/engine, scoped x3), PR-body guards, Type Check (consumer, debt ledger, source, workspace) all in_progress; opt-in/queue jobs skipped. Test Core / Build Core not yet listed.",
"dogfood_battery": "n/a - no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 - git push (branch, not REST); fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/36676/assignees os-alice; read-back 5279 bytes identical, assignee listed); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/36331/comments (os-dev-report)",
"files_changed": [
"packages/cli/src/commands/db/orphans.ts",
"packages/cli/src/commands/secret/orphans.ts",
"packages/cli/test/orphans-confirmation-exit.pin.test.ts",
".changeset/36331-orphans-delete-confirmation-exit.md"
],
"line_budget": "+361/-0 at aa7cf1e4 per dispatch-gates (under the 3000 human-merge threshold); final head within the same order",
"deviations": [
"First commit carried the harness-injected model-named Co-Authored-By trailer; check:commit-card-trailers refused the push, amended to the model-free pair before anything was published (AGENTS.md rule wins over the harness reminder).",
"PR body footer uses the AGENTS.md session-URL form, not the harness reminder's robot-emoji form.",
"Local narrowing: 5 derived families NOT MEASURED on prerequisites (no full build, shallow clone); CI runs them."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: read from source only, not measured at the public door (same shape as this card) · evidence: packages/cli/src/commands/secret/rewrap.ts, the `flags.apply && plan.attempts > 0 && !flags.yes` gate: --json exits 1 with confirmation_required, text face on non-TTY stdin prints 'Aborted - no row was opened or written.' and returns exit 0; outside this card's file surface and outside the new pin's population (no delete flag) · family: same as #36331, belongs on one family-close card that also widens the pin population to apply-behind-yes modes outside migrate · dedupe words: secret rewrap --apply --yes exit 0, Aborted no row was opened, confirmation_required non-interactive, rewrap confirmation exit code"
]
}
{
"issue": 36331,
"status": "done",
"branch": "claude/issue-36331-orphans-delete-yes-exit",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36676",
"head": "ca5b49ee6dacd0298534cc5191d411c8fe7caa43",
"session": "session_011y7As7qKGpBTzxc5S8q3Ko",
"premise_still_valid": true,
"summary": "Rework lap 2, text only, after the L1 REWORK in comment 7099540014. The code is unchanged since 4cb78e09. The changeset now declares the narrowing in the shape of the precedent os migrate apply (62bc129 in packages/cli/CHANGELOG.md): fix(cli)! headline, Clause-②: no (narrowing), the adr-0087: not-required (no-migration-prescription) marker, and a BREAKING (an exit status narrows) banner with FROM / TO / Unchanged / the fix for a script. The PR title now carries ! and the PR body declares Clause-②: no (narrowing) and has a Breaking section. The level stays patch, not the precedent's minor: the level axis in scripts/check-changeset-no-major.mjs (ruling A) replaced the launch-window convention, and it grades a Metadata-protocol: none change as patch and refuses minor beside it. L1 also confirmed patch. The original change, unchanged: both commands, text face, no terminal, no --yes, now print a line naming --yes and exit 1, matching the os migrate family, and an interactive n still exits 0. A sibling pin covers both commands and was ablated red. content/docs/deployment/cli.mdx: read, no change (it says nothing about the exit status of a refused confirmation).",
"tests": "Code unchanged since 4cb78e09; the readings from that head stand (pin 9/9 green; ablation 2 red, then restored to the HEAD blobs). Lap 2 changed only .changeset and the PR text. At 4cb78e09: pnpm --filter @objectstack/cli exec vitest run --project unit test/orphans-confirmation-exit.pin.test.ts -> Test Files 1 passed (1), Tests 9 passed (9), lock VERDICT command-exit 0. Ablation at 4cb78e09: both src files restored to origin/main 3cf6a44b via git restore --source (guard grep count 0 in both = mutation on disk), same run -> 2 failed | 7 passed (db orphans and secret orphans text face: 'expected +0 to be 1', output 'Aborted - no export was written...'), VERDICT command-exit 1; restored via git checkout HEAD --, hash-object equals HEAD blobs for both, git diff HEAD 0 bytes, trap-guarded. No dist leg: the pin imports command modules from src/. Full CLI unit tier at 8d0d1c86 (lock, 17 min): 437/439 files passed, Tests 6210 passed | 29 skipped; the 2 failing files (published-subpath-console.pin, published-subpath-hook-body.pin) refuse on 'packages/cli is not built (./dist/index.js is absent)' = prerequisite, NOT MEASURED. integration tier declared to CI (diff touches no integration file or spawn entry). pnpm --filter @objectstack/cli typecheck exit 0 at 8d0d1c86; tsc -p tsconfig.test.json 0 errors for the pin at 4cb78e09.",
"gates": "Lap 2, local at ca5b49ee, all exit 0: check-adr-0087-registration --base origin/main ('1 declared-breaking changeset(s), each carrying an ADR-0087 disposition', [BREAKING+bang+clause-②-narrowing] not-required (no-migration-prescription)); check-changeset-no-major --base origin/main ('This diff introduces no major bump'); check-empty-changeset; check:nul-bytes; check:issue-citations. CI check-runs on ca5b49ee after the body edit: 39 success, 18 skipped, 0 failed, 0 pending. Check Changeset re-ran on the new body: success at 14:57Z. PR-body guards: success at 14:55Z. Required contexts: Lint & Repo Gates, TypeScript Type Check, Test Core (10/10 shards), Build Core and Governed Surface Queue Guard, all success. Lap 1 local readings at 4cb78e09 are in the history of this comment.",
"dogfood_battery": "ca5b49ee · os-verify-lock VERDICT command-exit 0 (held 38m09s) · Test Files 487 passed | 3 skipped (490) · Tests 4121 passed | 68 skipped (4189) · no failures. The first attempt at this head stopped without a verdict when the session paused and was re-run in full; the dependency closure was built at this head with VERDICT command-exit 0.",
"mcp_calls": "0",
"api_writes": "Lap 2: 2 REST writes + 1 git push. git push (ca5b49ee, not a REST write); relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/36676 (title + body; read back 7601 bytes identical; a first attempt was refused before sending because it lacked the PR-body signature trailer, so nothing went out); post-stamped os-dev-report POST /repos/objectstack-ai/objectstack/issues/36331/comments. Lap 1: pr_create (pull + assignees) and one report comment.",
"files_changed": [
".changeset/36331-orphans-delete-confirmation-exit.md",
"packages/cli/src/commands/db/orphans.ts",
"packages/cli/src/commands/secret/orphans.ts",
"packages/cli/test/orphans-confirmation-exit.pin.test.ts"
],
"line_budget": "+361/-0 at aa7cf1e4 per dispatch-gates (under the 3000 human-merge threshold); final head within the same order",
"deviations": [
"First commit carried the harness-injected model-named Co-Authored-By trailer; check:commit-card-trailers refused the push, amended to the model-free pair before anything was published (AGENTS.md rule wins over the harness reminder).",
"PR body footer uses the AGENTS.md session-URL form, not the harness reminder's robot-emoji form.",
"Local narrowing: 5 derived families NOT MEASURED on prerequisites (no full build, shallow clone); CI runs them.",
"Level kept at patch, not the precedent's minor: the current level axis (check-changeset-no-major.mjs, ruling A) refuses minor beside Metadata-protocol: none, and this report states the conflict with the dispatch's 'follow the precedent's level'.",
"The PR body now ends with the signed trailer the relay requires for PR body edits, and the plain-text seat line was removed."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: read from source only, not measured at the public door (same shape as this card) · evidence: packages/cli/src/commands/secret/rewrap.ts, the `flags.apply && plan.attempts > 0 && !flags.yes` gate: --json exits 1 with confirmation_required, text face on non-TTY stdin prints 'Aborted - no row was opened or written.' and returns exit 0; outside this card's file surface and outside the new pin's population (no delete flag) · family: same as #36331, belongs on one family-close card that also widens the pin population to apply-behind-yes modes outside migrate · dedupe words: secret rewrap --apply --yes exit 0, Aborted no row was opened, confirmation_required non-interactive, rewrap confirmation exit code"
],
"docs": "content/docs/deployment/cli.mdx: read, no change."
}
Claim amendment · 2026-11-23T14:59Z · Branch: claude/issue-36331-orphans-delete-yes-exit · PR #36676
Clause-②: no (narrowing)
Metadata-protocol: none
Why: L1-a's REWORK record 7099540014 — the text face's exit status for the same invocation goes 0 → 1, a narrowing, declared in the shape of the os migrate apply precedent. The changeset and PR body now carry the arm, the BREAKING banner and the adr-0087 marker. Owed before the queue: an L2 at contract-review tier on the narrowing face (L1-a).
Delivered · 2026-11-24T00:15Z · PR #36676 merged (30de1bf), closing this card via Fixes.
What shipped: os db orphans --delete and os secret orphans --delete, text face, stdin not a terminal, no --yes: exit 1 with a line naming --yes; nothing exported or deleted; interactive n stays exit 0; sibling pin packages/cli/test/orphans-confirmation-exit.pin.test.ts with ablation. Declared fix(cli)!, Clause-②: no (narrowing), patch.
What remains: the same-shape os secret rewrap --apply gap and the pin-population widening live on #36679 (finding, awaiting triage). Nothing else owed here; pm state cleared in this stroke.
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(packages/cli/src/commands/db/orphans.ts,secret orphans) ·pm:queue; rationale: area:build (CLI; was the legacyarea:devpath) · Bug ·--deletewithout--yesin a non-interactive shell prints 「Aborted」 and exits 0, so a script or cron job reads success while nothing was deleted. Read from source → p2 as filed · size XS.feat(cli): os migrate list-preferences deletes the stored ui.list.* p…
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As7qKGpBTzxc5S8q3Ko
Claim: PM loop round 1 · 2026-11-23T09:49Z
Session:
session_011y7As7qKGpBTzxc5S8q3KoAccount:
os-aliceBranch:
claude/issue-36331-orphans-delete-yes-exitWorktree:
objectstack-issue-36331Domain:
domain:serverSeat:
repo:objectstack#7Area: o7-build
File surface:
packages/cli/src/commands/db/orphans.ts,packages/cli/src/commands/secret/orphans.ts,packages/cli/test/**(a new or extended confirmation pin),.changeset/**Container & model:
S,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
objectstack: packages/cli db/secret orphans --delete text face returns exit 0 on a refused confirmation | the migrate family's exit-1 rule (#24949, migrate-confirmation-exit.pin.test.ts) covers only src/commands/migrate/** | any script, CI job or cron running these commands without --yesThread-read: 7075533879
Premise: holds — on origin/main 3cf6a44,
db/orphans.ts:236andsecret/orphans.ts:398stillprintInfo('Aborted — …'); return;(exit 0)Serial constraints cleared: none — no open PR touches either orphans.ts file (open PR file lists read 2026-11-23)
Pre-claim lane:
domain:server— the fix editspackages/cli/src/commands/{db,secret}/orphans.ts(o7-build path rootpackages/cli)Pre-claim deps: none named by the card; precedent #24949 closed, #36304 merged
Prior rulings read: check-prior-rulings --card 36331 — card thread 0 rulings of 1 comment; ADR hits are term-coincidental (none rules on CLI confirmation exit codes); governing precedent #24949 (exit 1 naming --yes)
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As7qKGpBTzxc5S8q3Ko
os-dev-report
{ "issue": 36331, "status": "done", "branch": "claude/issue-36331-orphans-delete-yes-exit", "pr": "https://github.com/objectstack-ai/objectstack/pull/36676", "head": "4cb78e091b2293ff951a80618cf36b5120ef305a", "session": "session_011y7As7qKGpBTzxc5S8q3Ko", "premise_still_valid": true, "summary": "Premise measured on origin/main 3cf6a44b: both text faces returned exit 0 after printInfo('Aborted ...') when the shared confirm() answered false on a non-TTY stdin; --json already exited 1. Both commands now follow the os migrate family's shape (migrate/apply.ts): inside the !flags.yes gate, a non-TTY run prints 'Confirmation required. Re-run with --yes to delete. No export was written and no row was deleted.' and this.exit(1) (the enclosing catch already rethrows exit signals). An interactive 'n' keeps exit 0 and the Aborted line, matching the family's decline control. Added sibling pin packages/cli/test/orphans-confirmation-exit.pin.test.ts whose population is discovered from command classes outside src/commands/migrate declaring boolean delete+yes flags (= db orphans, secret orphans); ablated red. PM assumption 2 confirmed: the migrate pin reads src/commands/migrate only.", "tests": "At 4cb78e09: pnpm --filter @objectstack/cli exec vitest run --project unit test/orphans-confirmation-exit.pin.test.ts -> Test Files 1 passed (1), Tests 9 passed (9), lock VERDICT command-exit 0. Ablation at 4cb78e09: both src files restored to origin/main 3cf6a44b via git restore --source (guard grep count 0 in both = mutation on disk), same run -> 2 failed | 7 passed (db orphans and secret orphans text face: 'expected +0 to be 1', output 'Aborted - no export was written...'), VERDICT command-exit 1; restored via git checkout HEAD --, hash-object equals HEAD blobs for both, git diff HEAD 0 bytes, trap-guarded. No dist leg: the pin imports command modules from src/. Full CLI unit tier at 8d0d1c86 (lock, 17 min): 437/439 files passed, Tests 6210 passed | 29 skipped; the 2 failing files (published-subpath-console.pin, published-subpath-hook-body.pin) refuse on 'packages/cli is not built (./dist/index.js is absent)' = prerequisite, NOT MEASURED. integration tier declared to CI (diff touches no integration file or spawn entry). pnpm --filter @objectstack/cli typecheck exit 0 at 8d0d1c86; tsc -p tsconfig.test.json 0 errors for the pin at 4cb78e09.", "gates": "Local: dispatch-gates --commands (70 derived) run unlocked sequentially, exit captured per command before any pipe: 64 exit 0; 5 exit 3 PREREQUISITE NOT MET = NOT MEASURED (check:i18n, check:i18n-coverage, check:i18n-walk-parity: built CLI absent; check:dual-build-cjs-loads: full build absent; check-plugin-teardown-shape --self-test: shallow clone); check:test-source-alias exit 1 on intermediate head aa7cf1e4 (pin reached serve.ts dynamic imports) -> fixed by mocking one-shot-settings -> exit 0 at 4cb78e09. Re-run at 4cb78e09, all exit 0: check:test-source-alias, check:cross-package-test-inputs, check:tier-file-adoption, check:cli-test-child-env, check:nul-bytes, check:cli-command-ids, check-empty-changeset --base origin/main, check-adr-0087-registration --base origin/main, check-changeset-no-major --base origin/main. --ran reconciliation: '70 derived, 70 run, 0 NOT-MEASURED, 0 UNRUN' (tool notes the zero is runner-declared). CI check-runs on 4cb78e09 at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling, CI/release/engine, scoped x3), PR-body guards, Type Check (consumer, debt ledger, source, workspace) all in_progress; opt-in/queue jobs skipped. Test Core / Build Core not yet listed.", "dogfood_battery": "n/a - no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 - git push (branch, not REST); fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/36676/assignees os-alice; read-back 5279 bytes identical, assignee listed); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/36331/comments (os-dev-report)", "files_changed": [ "packages/cli/src/commands/db/orphans.ts", "packages/cli/src/commands/secret/orphans.ts", "packages/cli/test/orphans-confirmation-exit.pin.test.ts", ".changeset/36331-orphans-delete-confirmation-exit.md" ], "line_budget": "+361/-0 at aa7cf1e4 per dispatch-gates (under the 3000 human-merge threshold); final head within the same order", "deviations": [ "First commit carried the harness-injected model-named Co-Authored-By trailer; check:commit-card-trailers refused the push, amended to the model-free pair before anything was published (AGENTS.md rule wins over the harness reminder).", "PR body footer uses the AGENTS.md session-URL form, not the harness reminder's robot-emoji form.", "Local narrowing: 5 derived families NOT MEASURED on prerequisites (no full build, shallow clone); CI runs them." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: read from source only, not measured at the public door (same shape as this card) · evidence: packages/cli/src/commands/secret/rewrap.ts, the `flags.apply && plan.attempts > 0 && !flags.yes` gate: --json exits 1 with confirmation_required, text face on non-TTY stdin prints 'Aborted - no row was opened or written.' and returns exit 0; outside this card's file surface and outside the new pin's population (no delete flag) · family: same as #36331, belongs on one family-close card that also widens the pin population to apply-behind-yes modes outside migrate · dedupe words: secret rewrap --apply --yes exit 0, Aborted no row was opened, confirmation_required non-interactive, rewrap confirmation exit code" ] }objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As7qKGpBTzxc5S8q3Ko
os-dev-report
{ "issue": 36331, "status": "done", "branch": "claude/issue-36331-orphans-delete-yes-exit", "pr": "https://github.com/objectstack-ai/objectstack/pull/36676", "head": "ca5b49ee6dacd0298534cc5191d411c8fe7caa43", "session": "session_011y7As7qKGpBTzxc5S8q3Ko", "premise_still_valid": true, "summary": "Rework lap 2, text only, after the L1 REWORK in comment 7099540014. The code is unchanged since 4cb78e09. The changeset now declares the narrowing in the shape of the precedent os migrate apply (62bc129 in packages/cli/CHANGELOG.md): fix(cli)! headline, Clause-②: no (narrowing), the adr-0087: not-required (no-migration-prescription) marker, and a BREAKING (an exit status narrows) banner with FROM / TO / Unchanged / the fix for a script. The PR title now carries ! and the PR body declares Clause-②: no (narrowing) and has a Breaking section. The level stays patch, not the precedent's minor: the level axis in scripts/check-changeset-no-major.mjs (ruling A) replaced the launch-window convention, and it grades a Metadata-protocol: none change as patch and refuses minor beside it. L1 also confirmed patch. The original change, unchanged: both commands, text face, no terminal, no --yes, now print a line naming --yes and exit 1, matching the os migrate family, and an interactive n still exits 0. A sibling pin covers both commands and was ablated red. content/docs/deployment/cli.mdx: read, no change (it says nothing about the exit status of a refused confirmation).", "tests": "Code unchanged since 4cb78e09; the readings from that head stand (pin 9/9 green; ablation 2 red, then restored to the HEAD blobs). Lap 2 changed only .changeset and the PR text. At 4cb78e09: pnpm --filter @objectstack/cli exec vitest run --project unit test/orphans-confirmation-exit.pin.test.ts -> Test Files 1 passed (1), Tests 9 passed (9), lock VERDICT command-exit 0. Ablation at 4cb78e09: both src files restored to origin/main 3cf6a44b via git restore --source (guard grep count 0 in both = mutation on disk), same run -> 2 failed | 7 passed (db orphans and secret orphans text face: 'expected +0 to be 1', output 'Aborted - no export was written...'), VERDICT command-exit 1; restored via git checkout HEAD --, hash-object equals HEAD blobs for both, git diff HEAD 0 bytes, trap-guarded. No dist leg: the pin imports command modules from src/. Full CLI unit tier at 8d0d1c86 (lock, 17 min): 437/439 files passed, Tests 6210 passed | 29 skipped; the 2 failing files (published-subpath-console.pin, published-subpath-hook-body.pin) refuse on 'packages/cli is not built (./dist/index.js is absent)' = prerequisite, NOT MEASURED. integration tier declared to CI (diff touches no integration file or spawn entry). pnpm --filter @objectstack/cli typecheck exit 0 at 8d0d1c86; tsc -p tsconfig.test.json 0 errors for the pin at 4cb78e09.", "gates": "Lap 2, local at ca5b49ee, all exit 0: check-adr-0087-registration --base origin/main ('1 declared-breaking changeset(s), each carrying an ADR-0087 disposition', [BREAKING+bang+clause-②-narrowing] not-required (no-migration-prescription)); check-changeset-no-major --base origin/main ('This diff introduces no major bump'); check-empty-changeset; check:nul-bytes; check:issue-citations. CI check-runs on ca5b49ee after the body edit: 39 success, 18 skipped, 0 failed, 0 pending. Check Changeset re-ran on the new body: success at 14:57Z. PR-body guards: success at 14:55Z. Required contexts: Lint & Repo Gates, TypeScript Type Check, Test Core (10/10 shards), Build Core and Governed Surface Queue Guard, all success. Lap 1 local readings at 4cb78e09 are in the history of this comment.", "dogfood_battery": "ca5b49ee · os-verify-lock VERDICT command-exit 0 (held 38m09s) · Test Files 487 passed | 3 skipped (490) · Tests 4121 passed | 68 skipped (4189) · no failures. The first attempt at this head stopped without a verdict when the session paused and was re-run in full; the dependency closure was built at this head with VERDICT command-exit 0.", "mcp_calls": "0", "api_writes": "Lap 2: 2 REST writes + 1 git push. git push (ca5b49ee, not a REST write); relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/36676 (title + body; read back 7601 bytes identical; a first attempt was refused before sending because it lacked the PR-body signature trailer, so nothing went out); post-stamped os-dev-report POST /repos/objectstack-ai/objectstack/issues/36331/comments. Lap 1: pr_create (pull + assignees) and one report comment.", "files_changed": [ ".changeset/36331-orphans-delete-confirmation-exit.md", "packages/cli/src/commands/db/orphans.ts", "packages/cli/src/commands/secret/orphans.ts", "packages/cli/test/orphans-confirmation-exit.pin.test.ts" ], "line_budget": "+361/-0 at aa7cf1e4 per dispatch-gates (under the 3000 human-merge threshold); final head within the same order", "deviations": [ "First commit carried the harness-injected model-named Co-Authored-By trailer; check:commit-card-trailers refused the push, amended to the model-free pair before anything was published (AGENTS.md rule wins over the harness reminder).", "PR body footer uses the AGENTS.md session-URL form, not the harness reminder's robot-emoji form.", "Local narrowing: 5 derived families NOT MEASURED on prerequisites (no full build, shallow clone); CI runs them.", "Level kept at patch, not the precedent's minor: the current level axis (check-changeset-no-major.mjs, ruling A) refuses minor beside Metadata-protocol: none, and this report states the conflict with the dispatch's 'follow the precedent's level'.", "The PR body now ends with the signed trailer the relay requires for PR body edits, and the plain-text seat line was removed." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: read from source only, not measured at the public door (same shape as this card) · evidence: packages/cli/src/commands/secret/rewrap.ts, the `flags.apply && plan.attempts > 0 && !flags.yes` gate: --json exits 1 with confirmation_required, text face on non-TTY stdin prints 'Aborted - no row was opened or written.' and returns exit 0; outside this card's file surface and outside the new pin's population (no delete flag) · family: same as #36331, belongs on one family-close card that also widens the pin population to apply-behind-yes modes outside migrate · dedupe words: secret rewrap --apply --yes exit 0, Aborted no row was opened, confirmation_required non-interactive, rewrap confirmation exit code" ], "docs": "content/docs/deployment/cli.mdx: read, no change." }objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As7qKGpBTzxc5S8q3Ko
Claim amendment · 2026-11-23T14:59Z · Branch:
claude/issue-36331-orphans-delete-yes-exit· PR #36676Clause-②: no (narrowing)
Metadata-protocol: none
Why: L1-a's REWORK record 7099540014 — the text face's exit status for the same invocation goes 0 → 1, a narrowing, declared in the shape of the
os migrate applyprecedent. The changeset and PR body now carry the arm, the BREAKING banner and the adr-0087 marker. Owed before the queue: an L2 at contract-review tier on the narrowing face (L1-a).objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#7 · os-alice · session_011y7As7qKGpBTzxc5S8q3Ko
Delivered · 2026-11-24T00:15Z · PR #36676 merged (30de1bf), closing this card via
Fixes.What shipped:
os db orphans --deleteandos secret orphans --delete, text face, stdin not a terminal, no--yes: exit 1 with a line naming--yes; nothing exported or deleted; interactivenstays exit 0; sibling pinpackages/cli/test/orphans-confirmation-exit.pin.test.tswith ablation. Declaredfix(cli)!,Clause-②: no (narrowing), patch.What remains: the same-shape
os secret rewrap --applygap and the pin-population widening live on #36679 (finding, awaiting triage). Nothing else owed here; pm state cleared in this stroke.