The agent roles write work packages as issue drafts and reference the issue in their commits #6

Closed
opened 2026-10-31 12:41:48 -04:00 by claude · 0 comments
Owner
  • Draft: PROC-6
  • Priority: high (the next design dispatch needs it)
  • Agent: mechanic
  • Depends on: #5
  • Decisions: Q-PROC-1, CLOSING-POLICY

Why

The architect role writes designs to .work-packages/<short-name>.md (src/agents/architect.md:21-22). The coder role commits with "the trailer lines the dispatcher gives you" (src/agents/coder.md:45-46). Neither knows about issues.

Who publishes: the main session, with the claude account. Sub-agents never hold the Forgejo token and never publish. A draft file is reviewed by the owner first, and owner decisions belong in the issue.

What changes

  • src/agents/architect.md: the design file stays (context, decisions, package detail). In addition, it ends with one issue draft per package in the work-package template format (#4), including the Milestone and Agent fields (the agent becomes an agent/ label, Q-PROC-1): an epic plus children, with "Depends on" between drafts. One sentence: "You never publish; the dispatcher does."
  • src/agents/coder.md, Commits line: "When the dispatcher gives an issue number, the body starts with Closes #<n> above the trailers in the commit that finishes the issue, and Refs #<n> in every other commit. The subject never names the issue." storage-coder.md, protocol-coder.md and console-coder.md inherit this through coder.md (storage-coder.md:8-10), so they need no change. Check docs-writer.md:51 and add the same line there.
  • src/agents/verifier.md item 7 (verifier.md:38): check the Closes/Refs line when an issue number was given, and that no PR description says Closes.
  • Run python3 src/script/development/sync-agent-definitions.py and commit the generated .claude/, .gemini/, .agents/ and .codex/ copies with the source change.

Acceptance

  • python3 src/script/development/sync-agent-definitions.py --check passes, and lint reports ok: 9 roles, 36 definitions.
  • No role file grows by more than about five lines.

Source

  • BRIEF.md item (e). src/agents/architect.md:21-38, src/agents/coder.md:45-46, src/agents/verifier.md:38.
  • Owner decisions 2026-10-31: Q-PROC-1 "labels"; CLOSING-POLICY (#5).
- **Draft:** PROC-6 - **Priority:** high (the next design dispatch needs it) - **Agent:** mechanic - **Depends on:** #5 - **Decisions:** Q-PROC-1, CLOSING-POLICY ### Why The architect role writes designs to `.work-packages/<short-name>.md` (`src/agents/architect.md:21-22`). The coder role commits with "the trailer lines the dispatcher gives you" (`src/agents/coder.md:45-46`). Neither knows about issues. Who publishes: the main session, with the `claude` account. Sub-agents never hold the Forgejo token and never publish. A draft file is reviewed by the owner first, and owner decisions belong in the issue. ### What changes - `src/agents/architect.md`: the design file stays (context, decisions, package detail). In addition, it ends with one issue draft per package in the work-package template format (#4), including the Milestone and Agent fields (the agent becomes an `agent/` label, Q-PROC-1): an epic plus children, with "Depends on" between drafts. One sentence: "You never publish; the dispatcher does." - `src/agents/coder.md`, Commits line: "When the dispatcher gives an issue number, the body starts with `Closes #<n>` above the trailers in the commit that finishes the issue, and `Refs #<n>` in every other commit. The subject never names the issue." `storage-coder.md`, `protocol-coder.md` and `console-coder.md` inherit this through `coder.md` (`storage-coder.md:8-10`), so they need no change. Check `docs-writer.md:51` and add the same line there. - `src/agents/verifier.md` item 7 (`verifier.md:38`): check the `Closes`/`Refs` line when an issue number was given, and that no PR description says `Closes`. - Run `python3 src/script/development/sync-agent-definitions.py` and commit the generated `.claude/`, `.gemini/`, `.agents/` and `.codex/` copies with the source change. ### Acceptance - [ ] `python3 src/script/development/sync-agent-definitions.py --check` passes, and lint reports `ok: 9 roles, 36 definitions`. - [ ] No role file grows by more than about five lines. ### Source - BRIEF.md item (e). `src/agents/architect.md:21-38`, `src/agents/coder.md:45-46`, `src/agents/verifier.md:38`. - Owner decisions 2026-10-31: Q-PROC-1 "labels"; CLOSING-POLICY (#5).
claude added this to the (deleted) milestone 2026-10-31 12:41:48 -04:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#6
No description provided.