Skip to content

[Air #1724] feat: /arch-save next task — resolve referents into a gloss that carries the owner's word - #1725

Merged
waleedkadous merged 7 commits into
mainfrom
builder/air-1724
Sep 22, 2026
Merged

waleedkadous merged 7 commits into
mainfrom
builder/air-1724

Conversation

@waleedkadous

@waleedkadous waleedkadous commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

/arch-save <text> now pins the referents in the owner's next-task words ("them", "that issue", "the failing one") to durable identifiers at save time, as a [resolved at save: …] gloss on the same banner line. /arch-init treats items named in the gloss as approved for the act the owner's words name — so "merge them all" survives the clear without the owner being asked again.

Closes #1724

What Changed

/arch-save step 3 — after the verbatim NEXT TASK line (unchanged from #1709), a new block "resolve, don't plan":

  • every referent → PR/issue numbers, builder ids, branches, file paths, appended after the verbatim text
  • resolution only: names what, never how (no steps, ordering, caveats, "after CI is green")
  • no referents → no gloss
  • cannot resolve → stop before step 4 (the clear) and ask the owner
  • state-block template shows the optional [resolved at save: <referents>] suffix

/arch-init

  • step 3 orient block: Next task from the owner at save time: <verbatim> → resolved: <gloss> (the → resolved half omitted when there is no gloss)
  • step 4: "the gloss carries the word — for the items it names, and only them", placed after the /arch-save: accept a next-task instruction and have /arch-init start on it after the refresh #1709 not-a-pre-spent-approval rule, which it narrows: the verb never widens; anything not in the gloss still needs the word live; porch gates are still relayed to the builder; CI/verification still apply and changed items are reported, not forced
  • pickup log entry records verbatim + gloss

All eight copies (.claude/.codex × instance/codev-skeleton × arch-save/arch-init) are byte-identical; packages/codev/skeleton/ untouched (build-generated).

Key Decisions

Test Plan

  • New air-1724-next-task-gloss.test.ts pins: gloss format + position, resolution-not-planning, no-referents-no-gloss, cannot-resolve-stops-before-clear (text and position within step 3), template suffix, orient-block format, gloss-carries-the-word for named items only, verb-never-widens, unnamed-items-need-live-word, gates relayed, CI/verification, pickup log
  • Eight-copy parity (existing air-1709 + spec-1307 + spec-1134 guards)
  • pnpm build passes
  • Full codev suite: 6193 passed, 0 failed

Review Notes

The authorization change is the part worth reading closely: arch-init step 4's new bullet deliberately sits under, and narrows, the #1709 rule rather than replacing it.

CMAP

codex=COMMENT, claude=COMMENT (gemini/agy not run — its --type review lane is known broken).

Fixed: pickup log omits → resolved when there is no gloss (codex); a save paused on an unresolvable referent tells the owner monitors are already stopped and resumes from the gloss (claude); "a line with no gloss pre-approves nothing" is now stated (claude).

Architect rulings (applied):

  1. A preserved NEXT TASK line is marked [carried over — gloss orients only; re-confirm before acting] at write time; /arch-init treats a marked line as orientation and asks before any gated act. A gloss carries the word only for the cycle that wrote it.
  2. No CLAUDE.md/lessons-critical change. /arch-init step 4 states the gloss does not narrow the gate rule: it is the record of an explicit save-time decision, and inferring approval from a notification, silence, or an agent's own judgment stays forbidden.

🤖 Generated with Claude Code

@waleedkadous

Copy link
Copy Markdown
Contributor Author

Thank you — this closes the "merge them all" gap cleanly, and both rulings landed exactly as given.

Architect check against #1724 and the two rulings:

  • Resolve, don't plan — every referent to a durable id, appended after the verbatim text; "names what, never how" with the "after CI is green" counter-example is the right line to draw. ✅
  • No referents → no gloss; cannot resolve → stop before the clear — and the paused-save recovery (monitors already stopped, resume at the gloss then step 4) is a detail the issue didn't spell out and should have. ✅
  • Gloss carries the word for named items only — verb never widened, unglossed items ask live, porch approve still relayed not run, CI and already-merged checks still apply, no-gloss line pre-approves nothing. ✅
  • Carried-over lines orient only, marked once at write time. ✅
  • Gate rule not narrowed — explicit save-time decision, gloss is its record; inference from notification/silence/own judgment stays forbidden. ✅
  • Eight copies hash-identical; template and orient/log formats updated; tests pinned.

One wording nit, non-blocking: step 4 says "This narrows the rule above; it does not remove it" and, a few lines later, "This does not narrow the gate rule." Both are true (the first is the skill's own not-pre-spent rule, the second is CLAUDE.md's), but a cold reader may trip on it. If you touch the file again, "This narrows the not-a-pre-spent-approval rule above" would remove the ambiguity. Not worth a commit on its own.

No changes requested. Taking it to the owner for the merge word once CI is green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/arch-save next task: resolve referents at save time into a gloss that carries the owner's word ("merge them all")

1 participant