Skip to content

claudex: verify Layer 1, owner decisions, nudges - #64

Open
yogex wants to merge 5 commits into
masterfrom
claudex-verify-layer1
Open

yogex wants to merge 5 commits into
masterfrom
claudex-verify-layer1

Conversation

@yogex

@yogex yogex commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Adds three things to orchestrator-sim-claudex/harness. Design: Benskill project doc claudex-verify-design.md.

1. Layer 1 verifier (no model). A new verify node between verdict and push runs verify-claims.sh. For every criterion the review marked met, the evidence must cite files that exist at the reviewed head, and quoted test names must be in the cited test files. Every test edit must have a ruling. A contradicted claim, or a verifier that can't run, turns a ready handoff into draft in both tiers. It never raises a handoff. This also closes a gap: a test edit with no ruling used to pass verdict.

2. Owner decisions by PR label. A draft PR gets needs-owner. The owner adds owner:accept or owner:rework. forge.sh owner-decision counts a label only if GitHub's event log shows owner (new config field) added it. Archon records but does not check who answers a wait, so chat answers are not decisions. feature.sh start refuses (exit 5) to stack on a pr-draft feature until the decision is accept.

3. Nudges. nudge.sh posts a PR comment that @mentions the owner (GitHub Mobile), once per title per PR. CLAUDEX_NUDGE=ntfy or none are options. It never fails the run and never carries a decision. GitHub doesn't notify you of your own activity, so nudges reach the owner only once gh runs as a bot or app account (claudex change 7).

Checks: selftest.sh 67 passed, 0 failed (24 new). Two mutations caught (missing file marked verified; owner check removed). Both tiers render and every depends_on and $node.output reference resolves. product-grep.sh clean.

Not run: Archon's workflow validator, a real ship run, real GitHub label events.

Layer 2 (cited tests run against base code, plus a Codex judge) follows in a stacked PR.


Generated by Claude Code

verify-claims.sh checks the reviewer's claims against the reviewed head with
no model: every "met" criterion must cite files that exist, quoted test names
must be in the cited test files, and every test edit must have a ruling.

A new verify node in ship.yaml can only lower the handoff: ready becomes draft
on any contradicted claim or when the check can't run. Drafts in either tier
open as draft PRs, skip the merge gate and record pr-draft. Non-verified
claims are listed in the PR body.

Also closes a gap in the verdict node: a test edit with no ruling used to pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016efoispwN9Zyq8nNE9rds5
…guard

A draft PR now waits for an owner label instead of a chat answer, because
Archon records but does not check who answers a wait, and GitHub records who
added a label.

- forge.sh owner-decision: owner:accept / owner:rework count only if GitHub's
  label events show the configured owner added them; fails closed (exit 4).
- forge.sh pr-label; the ship workflow labels draft PRs needs-owner and
  clears it when a re-ship is no longer a draft.
- feature.sh start refuses (exit 5) to stack on a pr-draft feature until the
  owner accepts it, and nudges.
- nudge.sh: one-way ntfy notice any orchestrator can send; never fails the
  run and never carries a decision.
- Config field owner; CONTRACTS.md sections and orchestrator duties.
- 13 new self-test cases (64 pass).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016efoispwN9Zyq8nNE9rds5
The owner doesn't want another app, so nudge.sh now defaults to a PR comment
that @mentions the config owner. ntfy stays as CLAUDEX_NUDGE=ntfy. A title is
sent once per PR so retries don't spam. GitHub doesn't notify you of your own
comments, so this needs gh logged in as a bot or app account; the script says
so when it isn't.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016efoispwN9Zyq8nNE9rds5
Drop the owner line from project/claudex.json: this PR changes the harness,
not the app's project config. A project sets "owner" itself; until it does,
forge.sh owner-decision fails closed ("config has no owner").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016efoispwN9Zyq8nNE9rds5
- 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
Conflicts:
- README: master's template and spec.sh lines plus Layer 2's verifier list.
- ship.yaml: #64's assign-then-quote fixes, renamed to verify-gate; the
  pr node keeps master's feature variable for the spec.sh line.
- fixture and template claudex.json: keep both the verify and guard blocks.
- selftest.sh: keep both test blocks.

Also:
- render.sh fails when the config leaves any template value unset. The
  project config has no models.verify, so ship rendered 'model: null'
  and Archon rejected both ship workflows. It now stops with the missing
  keys. The project adds models.verify itself (the template has defaults).
- ship.yaml verify-gate: assign the handoff before quoting it.
- selftest: two render tests (102 pass).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016efois1hjx9JeuGhxWixrm
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