Skip to content

feat(preview): human GitHub approval anchor (CHE-1431) - #145

Merged
congvc-dev merged 1 commit into
agent/x99-codex-sol/d9f26d1b19e4from
agent/x99-codex-sol/0031c6a2e70c
Oct 9, 2026
Merged

congvc-dev merged 1 commit into
agent/x99-codex-sol/d9f26d1b19e4from
agent/x99-codex-sol/0031c6a2e70c

Conversation

@congvc-bot-x99

@congvc-bot-x99 congvc-bot-x99 Bot commented Oct 9, 2026

Copy link
Copy Markdown

Status

Draft implementation of L5a3 for CHE-1431. Author: x99-codex-sol (OpenAI).
Independent review and current-head OCR are NOT-RUN. The dev team leader dispatches the different-lab verifier.

Conditions

Code, tests and documentation only. Cheese's Plan A approval applies: X99 previews, no spend, trusted root-origin insiders.
No deploy, Cloudflare change or privileged host change. No device work or provider calls. No build on C00 or vps-langfuse.
This PR bases on PR 142, not main.
The existing stack order is PR 139 → PR 142 → this PR.
Do not merge this layer into its predecessor as a substitute for integration into main. Agents do not merge.

Change

  • Add the protected numeric human approver allowlist. Old or empty policies fail closed.
  • Fetch native GitHub candidate, CI rollup and all review pages. Never accept submitter-supplied review bodies or CI flags.
  • Require an unedited, allowlisted human APPROVED review bound to every exact candidate and native Multica receipt field.
  • Store both anchors in create-once daemon-private admissions. Reject stale, edited, dismissed, deleted, bot and mismatched reviews.
  • Re-fetch GitHub after the Multica read. Invalidate changed evidence, changed policy, expired records and API failures.
flowchart LR
    Policy[Protected candidate and human allowlist] --> Verify[Fetch both native anchors]
    Multica[Independent Multica PASS] --> Verify
    GitHub[Exact tuple human GitHub APPROVED] --> Verify
    Verify -->|Both anchors match| Admitted[Protected admitted record]
    Verify -->|Missing or changed evidence| Refused[Refuse admission]
    Admitted --> Revalidate[Revalidate before every privileged use]
    Revalidate -->|Unchanged and unexpired| Admitted
    Revalidate -->|Changed expired or API failure| Invalidated[Persist invalidated record]
Loading

Evidence

  • Base: e70291f2445adc805536a4f634a14ffad009b549.
  • Head: 29fae3a2c8274696a511092b049d13fdde9e06ff.
  • Preview-host suite: 426 passed, 1 skipped. The existing nft integration check needs CAP_NET_ADMIN. No privilege was requested.
  • Focused Ruff format/check, quality ratchet and git diff --check: PASS.
  • Test-first evidence: the missing verifier failed collection. Dismissal during a Multica read failed before the second GitHub snapshot was added.
  • Native GitHub schema and exact-head CI metadata probes on PR 142: PASS. Live human approval enforcement is NOT-RUN.
  • Mermaid parsed, rendered and visually inspected locally. GitHub rendering is NOT-RUN.

Remaining risk: human-account custody and daemon read credentials need separately verified provisioning.
Later controller layers must persist invalidations, enforce the 5-minute reconciliation and hard 24-hour TTL, and revalidate before every privileged use.
Native CLI response limits are checked after subprocess capture. Peak output buffering is not a streaming memory bound.
This PR does not authorize activation, deployment or merge.
Writing receipt: meaning check PASS. The three passive-voice warnings are false positives with explicit subjects. The semicolon warnings are true positives and are corrected.

Closes CHE-1431
Refs CHE-1430
Refs CHE-1283

@congvc-bot-x99
congvc-bot-x99 Bot added this pull request to stack #143 October 9, 2026 06:07
@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review October 9, 2026 06:33
@congvc-dev
congvc-dev merged commit cb60415 into main Oct 9, 2026
7 checks passed
@congvc-dev
congvc-dev deleted the agent/x99-codex-sol/0031c6a2e70c branch October 9, 2026 07:07
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.

1 participant