Skip to content

fix(agents): define commit authority for every writing role - #66

Merged
GrillerGeek merged 2 commits into
mainfrom
fix/58-docs-writer-commit-authority
Oct 18, 2026
Merged

GrillerGeek merged 2 commits into
mainfrom
fix/58-docs-writer-commit-authority

Conversation

@GrillerGeek

Copy link
Copy Markdown
Owner

Fixes #58. This is option A from the issue: docs-writer commits the files he was handed, by pathspec.

  • All six writing roles now state commit authority:
    • test-author, feature-implementer, refactorer, ui-test-author and docs-writer commit only their own files: git add -- <paths>, then git commit -- <paths>. Never -a, add . or add -A. Each returns the SHA with its file list.
    • test-author commits after RED. feature-implementer and refactorer commit after green, and the refactorer commits nothing if it backed out.
    • docs-writer: the Bash rule now allows exactly one write, the pathspec commit, on every dispatch. That includes spec and plan corrections before RED.
    • fog-cartographer: has no Bash, so it does not commit. Mordain lists its files in the chronicle as uncommitted.
  • Boundaries override. If the Spec's Boundaries or the brief forbid commits, writers commit nothing and report the paths. This keeps the portable route's "commit only when authorized" stance and the fixture boundaries intact.
  • Mordain's commit check (quest.md Step 5): for each SHA, git show --stat must list exactly the reported files, and git status --porcelain must show none of them still modified. On a broken handoff Mordain re-dispatches once, then stops. Mordain never commits for an adventurer; its Bash stays read-only.
  • The portable scroll gets the same rule, the bundle is regenerated, and there is a CHANGELOG entry.

validate_plugin.py reports 0 errors and 0 warnings, validate_portable.py passes, and pytest passes 197 tests. This is a prompt-contract change. It has not been dogfooded with a live quest.

🤖 Generated with Claude Code

docs-writer's Bash was read-only git, yet he held Write/Edit, so his edits
were sometimes committed and sometimes swept into another adventurer's
commit. Writers now commit only their own files by pathspec (never -a or
add .) and return the SHA, unless the Spec's Boundaries or the brief
forbid commits. fog-cartographer has no Bash and does not commit. Mordain
checks each commit's file set and re-dispatches once on a broken handoff,
without committing for anyone. The portable scroll gets the same rule.

Fixes #58

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coldtea-pr-lens

Copy link
Copy Markdown

Note

Nothing here is code, only docs, data or images, so PR Lens left this pull request undrawn. Comment @pr-lens draw to draw it

github.comment.notice: false in .github/pr-lens.yml turns this note off

@GrillerGeek

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

…mmit-authority

# Conflicts:
#	CHANGELOG.md

Co-authored-by: GrillerGeek <66818+GrillerGeek@users.noreply.github.com>

Copilot AI commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved the conflict and merged main in merge commit 42a0d3c; both changelog entries are retained. The merge is published.

@GrillerGeek
GrillerGeek merged commit d6519cc into main Oct 18, 2026
3 checks passed
@GrillerGeek
GrillerGeek deleted the fix/58-docs-writer-commit-authority branch October 18, 2026 12:03
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.

docs-writer commit authority is undefined: edits are sometimes committed, sometimes left for Mordain

2 participants