8000 gate-supervisor-scope: the supervisor never commits on main during a sprint by adeelahmad · Pull Request #28 · adeelahmad/aloop · GitHub
[go: up one dir, main page]

Skip to content

gate-supervisor-scope: the supervisor never commits on main during a sprint - #28

Merged
adeelahmad merged 1 commit into
masterfrom
claude/project-thread-vm6wyr-commit-main
Oct 18, 2026
Merged

adeelahmad merged 1 commit into
masterfrom
claude/project-thread-vm6wyr-commit-main

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Before: "the supervisor never commits on main" was a prose rule in SKILL.md. Live e2e run 16 broke it (a Track Cargo.lock commit on main that events trace could not attribute to any task), and nothing deterministic stopped it.

After: gate-supervisor-scope blocks a git commit from the main agent in the main tree while the sprint lock is live, with a message that names task-worktree merge as the only way a commit reaches main. A commit inside a task worktree, the initial commit of an unborn repo (the worktree base), task-worktree merge, reads and staging, a worker's commits, and a stale lock all pass.

How: the Bash branch of the gate, for payloads with no agent_type, parses each simple command for git [-C dir] commit, checks HEAD exists and that the dir's git-dir equals its common-dir (main tree, not a linked worktree), and exits 2. Fail-closed is armed once the lock is live, as for the source-write check.

Evidence: scripts/test/supervisor-scope.test.py 15/15 (6 new cases, written first and red before the change); make conformance 58/58; fail-closed 5/5; codex-hooks 15/15; make test-hosts pycheck json eval-validate shellcheck OK; check-tracking 40 requirements. CHANGELOG, bin/README, SKILL.md, ROADMAP §0 (M0.8 "Next") and TRACKING updated.


Generated by Claude Code

…sprint

A `git commit` from the main agent in the main tree, while the sprint lock
is live, is blocked; a commit inside a task worktree, the initial commit of
an unborn repo, `task-worktree merge` and a stale lock pass. Live e2e run 16
showed the prose rule alone is not enough (a `Track Cargo.lock` commit on
main traced to nothing). Test-first: six new cases in
scripts/test/supervisor-scope.test.py; CHANGELOG, bin/README, SKILL.md,
ROADMAP §0 and TRACKING updated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014j4wLin3oJTtnvjE9Lq2VV
@adeelahmad adeelahmad self-assigned this Oct 18, 2026
@adeelahmad
adeelahmad merged commit 9aea61f into master Oct 18, 2026
4 checks passed
adeelahmad pushed a commit that referenced this pull request Oct 18, 2026
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.

2 participants

0