feat(cli): supervise active AXI agent sessions#506
Open
simfor99 wants to merge 8 commits into
Open
Conversation
* feat(axi): supervise Codex runs * docs(plan): record supervisor evidence * no-mistakes(review): Harden AXI supervision state and worker recovery * no-mistakes(review): Serialize AXI worker lock release and failures * no-mistakes(review): Park pre-armed AXI decision gates * no-mistakes(test): Isolate HEAD-reset hook test from ambient configuration * no-mistakes(document): Document AXI watch and supervision state * docs(plan): harden hook-native supervisor design * feat(axi): keep Codex supervision in the active session Replace the detached worker and resume process with a hook-native event loop. Bound unchanged heartbeats and document the required local hook timeout. * no-mistakes(review): Harden AXI supervision bindings and recovery * no-mistakes(review): Separate subscription handshake and heartbeat lifetimes * no-mistakes(review): Synchronize handshake cancellation with live subscriptions * no-mistakes(test): Render supervision phases in AXI status * no-mistakes(document): Document hook-native supervision contract * fix(ci): distinguish advisory legacy pending statuses * no-mistakes(review): Paginate GitHub rules and refresh CI provenance head * no-mistakes(review): Support provenance API in GitHub CI test fakes * no-mistakes(review): Fail closed on ambiguous GitHub protection 404s * no-mistakes(document): Dokumentiert GitHub-CI-Provenienz * no-mistakes(review): Guard GitHub checks and AXI watch telemetry * no-mistakes(review): Harden GitHub required check provenance * no-mistakes(review): Harden AXI hook deduplication and watch activity * no-mistakes(review): Use fallback activity for AXI watch timers * no-mistakes(document): Document GitHub CI provenance guard
simfor99
force-pushed
the
feat/axi-native-agent-supervision-upstream
branch
from
July 19, 2026 14:53
da5d41e to
62d8080
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
axi watchplus richer liveness reporting so foreground agents receive bounded updates when a run needs attention, CI checks pass, becomes quiet, or terminates.Risk Assessment
Testing
Completed 1 recorded test check.
Pipeline
Updates from git push no-mistakes
⏭️ **intent** - skipped
✅ No issues found.
🔧 **Rebase** - 2 issues found → auto-fixed ✅
docs/src/content/docs/guides/configuration.md- merge conflict rebasing onto origin/maininternal/config/config.go- merge conflict rebasing onto origin/main🔧 Fix applied.
✅ Re-checked - no issues remain.
🔧 **Review** - 1 issue found → auto-fixed (2) ✅
internal/scm/github/github.go:578- GitHub Enterprise installations that support classic branch protection but not the newer/rules/branches/{branch}endpoint will mark the policy unresolved. The synthetic pending check then keeps CI running until timeout even when all real checks passed. Treat an unsupported rules endpoint separately and retain the successfully read classic policy.🔧 Fix: Preserve classic policy when Rules endpoint is unsupported
1 error still open:
internal/scm/github/github.go:605- Every HTTP 404 from the rules endpoint is treated as an unsupported endpoint. GitHub also uses 404 to conceal an endpoint from a token lacking ruleset access; in that case required workflow rules are silently ignored and the monitor can report checks passed. Preserve the classic-policy fallback only after positively identifying an unsupported legacy-server endpoint; keep ambiguous 404s fail-closed.🔧 Fix: Fail closed on ambiguous GitHub rules 404s
✅ Re-checked - no issues remain.
🔧 **Test** - 1 issue found → auto-fixed ✅
go test -race ./...🔧 Fix: Stabilize branchsync hook regression tests
✅ Re-checked - no issues remain.
go test -race ./...🔧 **Document** - 2 issues found → auto-fixed ✅
internal/cli/axi_render.go:477- Live AXI guidance still says backgrounding is fine, contradicting the updated skill and CLI reference; correcting it requires changing executable output, outside this documentation-only scope.internal/cli/axi_supervise.go:76- Supervisor command/help strings describe Codex-only supervision although the implementation and CLI reference support Claude Code too; correcting user-facing strings requires executable-code changes.🔧 Fix: Align AXI supervision guidance
✅ Re-checked - no issues remain.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.