Repository navigation
claudex harness: harden-guard, CODEOWNERS, bot identity (#56 W1) - #59
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
…W1) The guard fails an agent change to a protected path. Agent work is known by the bengine label (now or ever), a configured bot login, or CLAUDEX_AGENT=1 in the engine's workflows. CI runs it on pull_request_target from the base branch's copy. Engine base branch is now master with the claudex-harden- prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
pull_request_target takes its workflow from the default branch, so it never ran for PRs into the pipeline branch, and couldn't be checked from here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
… fails) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
… checkpoint Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efoipS4sWRj5GT8zzaEGZ
CONTRACTS.md: keep master's spec_dir paragraph in the state section, then the guard section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efois1hjx9JeuGhxWixrm
yogex
pushed a commit
that referenced
this pull request
Dec 3, 2026
- README: master's template and spec.sh lines plus this branch's verifier, owner-decision and nudge entries. - ship.yaml pr node: this branch's verify handoff plus master's feature variable for the spec.sh line. - selftest.sh: keep both test blocks. One fake gh api arm: guard tests (FAKE_ISSUE set) get JSON, owner-decision tests get event lines. The two arms clashed silently and broke the guard tests. - ship.yaml push and checkpoint-harden: assign draft_reason before quoting it (Archon warned on the quoted substitution). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efois1hjx9JeuGhxWixrm
yogex
pushed a commit
that referenced
this pull request
Dec 3, 2026
No conflicts: master already holds #59's CONTRACTS.md resolution. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016efois1hjx9JeuGhxWixrm
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.
Issue #56, W1: close the two bypasses. The owner merges; the engine never does.
What changes
harden-guard(.github/workflows/claudex-guard.yml,harness/scripts/guard.sh): fails when an agent PR changestodo-cal/tests/acceptance/**,harness/**,project/**or.github/**. A PR counts as the agent's if it has, or ever had, thebenginelabel, or its author is the bot login (guard.agent_logins/ repo variableCLAUDEX_AGENT_LOGIN). The label name and the paths are config (guard.*inclaudex.json), so the guard is generic.guardcheck inchecks.sh, when the engine's workflows setCLAUDEX_AGENT=1..github/CODEOWNERS): the same paths, owned by@yogex.benginelabel.CLAUDEX_BOT_TOKEN, when set, is used for everyghcall. The existing refusal to merge ahardenPR stays.project/claudex.jsonnow usesbase_branch: masterandbranch_prefix: claudex-harden-(owner answer 2).harden-pipeline/OWNER-SETUP.md(bot, then branch protection). Merge this PR first: protection can only requireharden-guardonce the workflow is onmaster.Deviation from #56's wording
#56 says to add the job to
orchestrator-sim-claudex.yml. It is in its own file instead, with no path filter. A required check must run on every PR intomaster, and that workflow only runs whenorchestrator-sim-claudex/changes. The job runs the base commit'sguard.shand config, so a PR can't edit the guard to pass itself. A PR that edits the workflow file itself is a.github/change, which goes to Code Owner review.Evidence
harden-pipeline/EVIDENCE.md:56 passed, 0 failed; 12 failures against master's forge.This PR changes protected paths, but it is not labelled
bengine(it is the orchestrator's harness work under #56), soharden-guarddoesn't apply to it.masterdoesn't have the guard yet, so the guard runs the PR's own copy this one time.Generated by Claude Code