Skip to content

Bound the harness audit and move it to claude-code-action v1.0.247 - #892

Merged
seathatflowsinourveins merged 15 commits into
mainfrom
claude/api-actions-w4a-harness-audit-20261008
Oct 10, 2026
Merged

seathatflowsinourveins merged 15 commits into
mainfrom
claude/api-actions-w4a-harness-audit-20261008

Conversation

@seathatflowsinourveins

@seathatflowsinourveins seathatflowsinourveins commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Scope

  • What this PR changes, in one or two sentences: harness-audit.yml moves from anthropics/claude-code-action v1.0.245 to v1.0.247 and becomes a bounded read-only job (Read, Glob and Grep under --restricted; at most 20 assistant turns, checked after the run; a $5 client budget; no write scope beyond the OIDC token; the report in the job summary from a model-free step; the run's token and cost numbers kept). It runs only while the repository variable CLAUDE_HARNESS_AUDIT_ENABLED is true, and only on the first attempt of a run, so merging this starts nothing.

  • Effort (added 2026-10-08 at head a2f2570): --effort max in claude_args, because judgment work (designated reads, adjudication, pull request and security reviews, audits) runs at max under the command center's effort mapping, and every job records its level and reason. The level has to be in claude_args: --restricted ignores the settings files that would otherwise carry it, and Opus 5.5 runs at medium on the API when a request leaves effort unset. The bounds test now requires the flag; removing it fails the test. A loopback dry run of the installed 2.1.295 client with this workflow's claude_args sent output_config.effort: "max" on every request.

  • Fixes from the pre-cue read (2026-10-09, head 5891534): a pre-cue read by Anthropic's pr-review-toolkit agents found six behaviour changes this description and the record did not name, and four overstated claims. The record's new section "Behaviour changes in this PR" now names every change against main: the timeout 45 to 30, the slug, first-attempt, variable and owner-only guards, the guard step's exit 2, the display name and prompt, no issue, the two explicit action inputs display_report and track_progress (defaults, declared in the pinned action.yml), and the 14-day usage artifact. The bounds step now uses an allow-list, fails on a start record without lists or on an empty result, and names each unmet bound. The report cut is character-safe and says when it cut. The step tests no longer skip without PyYAML. The stale issues: write lines in ci-least-privilege are fixed in place, and the 2026-10-03 cooldown waiver is cited.

  • Pre-cue toolkit read of this PR (J8 on 4d0a14d, 2026-10-09; pr-test-analyzer and silent-failure-hunter): every finding at confidence 80 or above, and its status at head 725d25c.

    Finding Status at 725d25c Fixing commit and evidence
    pr-test-analyzer F1 (80): the runtime receipt is not "the same flag set", and one result is confounded fixed 5891534 dropped "the same flag set"; 725d25c tables every flag difference, says the receipt's claudeMdExcludes means it does not show that --restricted alone keeps instruction files out, and limits native_proven to the receipt's flag set
    silent-failure-hunter 1 (85): the receipt does not test the flag set the workflow ships fixed 725d25c, as F1; for the .git deny rules a local subscription probe (2026-10-09) measured Read and Grep into .git as refused, and Glob and Grep are measured as bound by the deny rules against a control run
    pr-test-analyzer F3 (90): "17 tests" is wrong fixed 725d25c: 24, from Ran 24 tests (it had gone stale again at 89d05dd)
    pr-test-analyzer F4 (80): the description's evidence and metadata do not describe this head fixed (description) this description: base, checks and counts at 725d25c
    silent-failure-hunter 9 (90): description inaccuracies fixed this description, and the record's test count in 725d25c
    silent-failure-hunter 4 (85): the acceptance check fails with no explanation fixed 5891534 names each failed bound; 725d25c adds the result subtype to the record, the summary and the message, so a turn-limit stop and a budget stop read apart (two new tests, seven mutants caught)
    silent-failure-hunter 8 (90): display_report and track_progress undeclared fixed 5891534 (record), 89d05dd (test), 725d25c (action.yml lines in the sources)
    silent-failure-hunter 10 (95): timeout-minutes 45 to 30 undeclared fixed 5891534 (record and description)
    silent-failure-hunter 11 (85): the job if gained two undeclared clauses fixed 5891534 (record and description); 725d25c adds the slug, first-attempt and owner-only guards to docs/github-automation.md and says why the triggering-actor clause stays

    725d25c also names the execution-file step 89d05dd added (undeclared until now), and adds the LR entry fields Add an on-demand, read-only pull request review by the Claude action #894 cites (Make the credential guard hook fail closed #897 at 24821c5, two blocking findings, the report's sha256) as a marked 2026-10-09 amendment of local-parity-receipt.json.

  • R4, debug logging set as a repository secret or variable (2026-10-09; the cc-native-practice lane's L3 read against anthropics/claude-code-action v1.0.247 practice): the guard binds (secrets.ACTIONS_STEP_DEBUG || vars.ACTIONS_STEP_DEBUG) == 'true' and (secrets.ACTIONS_RUNNER_DEBUG || vars.ACTIONS_RUNNER_DEBUG) == 'true' as booleans and refuses either before any token is requested; a test pins both bindings, and six weakened copies each fail at least one test. This is hardening: the action step already pins ACTIONS_STEP_DEBUG: 'false', which is what the action's full-output switch reads. zizmor's auditor persona reports secrets-outside-env on the two reads; CI runs the regular persona with --no-ignores, which reports nothing. The R4 lines are byte-identical in Bound the harness audit and move it to claude-code-action v1.0.247 #892, Add an on-demand, read-only pull request review by the Claude action #894, Add an on-demand Claude security review and a model-free flag on risky paths #895, Add a weekly lane triage: the model proposes, a model-free job applies #896 and Add a pre-cue read by Anthropic's pr-review-toolkit agents in Actions #909.

  • The report notice at the cap (2026-10-09; the J8 micro read of Bound the harness audit and move it to claude-code-action v1.0.247 #892): the publish step wrote with jq -r, which adds a newline, so a 60,000-byte report was announced as cut. It writes with jq -j now; a test publishes exactly 60,000 and 60,001 bytes, and a copy that writes with jq -r fails it.

  • From the J8 micro read of 61494a3 (2026-10-09; 7 of 9 listed findings fixed, F4 and SFH 9 partly, both about this description, which this refresh makes current): the deny-rule probe and its control are kept as deny-probe-receipt.json (flags, client, model, authentication, every call and its outcome, each stream's sha256), so the Glob and Grep finding no longer rests on runs outside the repository; the record states that the workflow is unchanged from e48de2e6 to the merge base aba02ec3; and the step comment now says the last non-empty result text is published.

  • R5 (2026-10-09, head e5ff29f), quality and correctness plus the approved caps, from the command center's security read of 0be47ac, a designated GPT read of Add an on-demand Claude security review and a model-free flag on risky paths #895 (P2) and the command center's caps from measurement. The step "Keep the run's numbers and check the bounds" now binds the session's whole tool list as $listed and adds one non-string tool entry to forbidden_tools for each entry that is not a string. A list holding {"name":"Bash"}, null or 17 therefore fails with "Bounds not met: tools outside Read, Glob and Grep: non-string tool entry" instead of passing (GPT designated read of Add an on-demand Claude security review and a model-free flag on risky paths #895, P2). The client budget moves from $3 to $5 while the turn limit stays 20. That covers --max-budget-usd 5, the numbers step's cost check .total_cost_usd > 5 with the message "client cost estimate USD, above 5", the workflow header comment and the Harness audit entry of docs/github-automation.md. The caps follow the command center's measurement-based caps: the one measured run used 10 turns and $2.03; twice that is 20 turns and about $4.1, rounded up to $5; a run is expected to cost about $2. HarnessAuditShapeTests no longer skips without PyYAML: it reads the workflow with the policy test's strict loader. A new test, test_claude_args_and_the_settings_json_are_pinned_exactly, pins the whole claude_args token list and the whole --settings JSON. test_the_cap_never_splits_a_character_and_a_short_report_has_no_notice now requires exit 0 and the report published inside <pre>. test_the_turn_bound_counts_assistant_turns_not_transcript_messages now requires a run with no assistant message to fail with "0 assistant turns, outside 1 to 20". Two more tests are new: test_a_non_string_tool_entry_is_a_forbidden_tool and test_the_cost_bound_is_the_five_dollar_budget ($5 passes, $5.01 fails, named). The budget values in test_claude_has_three_read_tools_and_fixed_bounds, test_an_unmet_bound_fails_after_the_numbers_were_kept and test_the_step_names_every_unmet_bound follow the $5 budget. The module runs 29 tests with and without PyYAML, none skipped. The record gains a dated R5 section. It names every change, lists 17 weakened workflow copies and a control with the tests each one fails, and notes that the symbolic-link strip does not apply because no pull request head is checked out. It also carries the shared agent-mode origin URL sentence, the gap-5 note (binding the federation rule to job_workflow_ref is an owner Console decision outside this PR) and the follow-ups line. The record also gains the cap derivation under Cost of one run, $5 throughout its current-state text, a description of forbidden_tools in the by-name list, the test count 29 and the no-PyYAML run in Evidence class. The evidence manifest rows for the four changed files are rehashed. The guard step is unchanged from 0be47ac7. The record now gives the shape class's test count as ten (the nine that skipped plus the pin test), and withdraws its earlier dry estimate of $0.90 to $1.10 a run, which was below the measured $2.03 of a run of this shape; the measurement replaces it, and the Effort sentence that called the estimate a floor now points to the withdrawal. Security hardening from the 2026-10-09 read (debug-value widening, tool-list shape, extra deny rules, token-source and guard-step assertions) is filed as follow-ups before any enabling variable is set.

  • Base commit: aba02ec3 (the merge base at 0be47ac, on which R5's changes were made; by 0be47ac main had moved to ebe6c223 with Split readiness G6 and record G5 closure criteria #890, docs(trading): revise R3 census to 2018-2023 #900, Make the credential guard hook fail closed #897 and Record G2 STARTED at 2026-10-08T23:02:18Z #907, and against the local origin/main ref, 861c475e, the only path both sides change is still manifests/evidence.json; the one rebase happens at landing)

  • Lane: lane:foundation

  • Owned paths touched: .github/workflows/harness-audit.yml, tests/test_claude_harness_audit_bounds.py (new), tests/test_workflow_policy.py (one inventory entry), docs/decisions/2026-10-08-claude-actions-harness-audit-bounds.md (new), docs/decisions/2026-10-04-ci-least-privilege.md (dated addendum only), docs/github-automation.md (current-practice bullet), evidence/artifacts/claude-actions-fence-smoke-20261008/receipt.json (new; the same file as in Add an on-demand, read-only pull request review by the Claude action #894), evidence/artifacts/claude-actions-fence-smoke-20261008/local-parity-receipt.json (new), evidence/artifacts/claude-actions-fence-smoke-20261008/deny-probe-receipt.json (new), manifests/evidence.json (registration; R5 rehashes the rows of the four files it changes).

R6 (2026-10-09), at bf34373

  • Cost bound: the budget × 1.10 = $5.50, from four measured J8 runs on a $5 budget ($5.46, $5.33, $5.16, $5.0007), re-derived after the first three hosted runs. A budget stop at or under it publishes and is named. The publish step runs on !cancelled() && steps.bounds.outcome == 'success', because the action fails its own step on any budget stop.
  • --max-turns 20 removed: the pinned action (base-action/src/run-claude-sdk.ts:241-250 at 2dca132f, since 6ef6450f) fails a success whose num_turns exceeds it. On Claude Code 2.1.295 num_turns counts transcript messages: 57 for 12 requests under --max-turns 12. That is a code reading plus a local measurement, not a hosted run, and upstream has no fix as of 2026-10-09. The bounds step's 1-to-20 assistant-turn check stays.
  • Settings pin: compares canonical JSON, so 1 no longer passes for true.
  • Record: the shared cost paragraph, and an upstream-issue draft (not filed).
  • Local checks at bf34373:
    • validate.py and the manifest check pass (10,907 files);
    • six modules, 247 tests, OK;
    • this module, 30 tests with and without PyYAML;
    • actionlint and zizmor are clean;
    • every R6 weakened copy fails a test.
  • Hosted checks at bf34373: not read yet.

SOTA sources

  • anthropics/claude-code-action, v1.0.247 at 2dca132ff0e0c4094ce6048b422c6915a071210b (https://github.com/anthropics/claude-code-action/tree/2dca132ff0e0c4094ce6048b422c6915a071210b): action.yml (federation inputs, settings, claude_args, show_full_output, output execution_file), docs/setup.md ("a static credential takes precedence and federation will not be used"), base-action/src/parse-sdk-options.ts (full output is forced on when ACTIONS_STEP_DEBUG is true), base-action/src/setup-claude-code-settings.ts (a pre-existing settings file is logged), base-action/src/run-claude-sdk.ts (console output drops token counts).
  • R5's citations at the same pin (2dca132f): src/github/operations/git-config.ts lines 129-134 (without allowed_non_write_users, the checkout's origin URL is rewritten to carry the job token), src/modes/agent/index.ts lines 52-61 (agent mode runs that git setup when neither commit-signing input is set) and src/modes/detector.ts lines 79-80 (a schedule or dispatch run falls through to agent mode). These three were read in the v1.0.246 tree (38c80c1a32cdbc0c6f34042464a0669d89363dde); the v1.0.246-to-v1.0.247 compare touches none of them.
  • Release path read with gh api repos/anthropics/claude-code-action/compare/...: v1.0.245 to v1.0.246 and v1.0.246 to v1.0.247 are one commit each ("bump Claude Code to 2.1.294 / 2.1.295 and Agent SDK to 0.3.294 / 0.3.295"); the root action.yml is in neither diff.
  • Claude Code 2.1.295 (the version the pin installs), claude --help: --restricted, --permission-prompts, --tools, --allowedTools, --max-budget-usd, --setting-sources, --strict-mcp-config, --add-dir, --settings; --max-turns is accepted by the same build's argument parser. anthropics/claude-code CHANGELOG.md, 2.1.295: "Fixed --tools and --restricted not applying to built-in tools that register after launch" (the reason for the newest pin); 2.1.259 (--permission-prompts none); 2.1.248 (--restricted).
  • Anthropic documentation read 2026-10-08: How Claude Code uses prompt caching, "Cache lifetime" (https://code.claude.com/docs/en/prompt-caching); Pricing (https://platform.claude.com/docs/en/about-claude/pricing); Claude Code fast mode (https://code.claude.com/docs/en/fast-mode).
  • GitHub, OpenID Connect reference, subject of a run on a branch and the job_workflow_ref claim (R5's note on the federation rule) (https://docs.github.com/en/actions/reference/security/oidc).

Evidence-class table

Claim Evidence class Command / receipt
With the fence flags (--restricted, --tools/--allowedTools Read,Glob,Grep, --strict-mcp-config, --permission-prompts none, --settings with hooks off and three deny rules; Haiku 5.5, 10 turns, $0.50, as the receipt lists; this workflow adds --setting-sources user, --add-dir, --effort max, three more deny rules and blockReadsOutsideWorkingDirectories, and does not set the receipt's claudeMdExcludes; the record tables every difference) the session's tools are Glob, Grep and Read; reads outside the tree and of .git/config are denied; planted hooks have no effect; because of claudeMdExcludes the receipt does not show that --restricted alone keeps instruction files out native_proven for the receipt's own flag set on the installed 2.1.295 client (not this workflow's flags, not through the action, not on a GitHub runner) evidence/artifacts/claude-actions-fence-smoke-20261008/receipt.json, three runs
The action's own parser turns this workflow's claude_args into those flags and that JSON local_integration the parser's three helpers replayed with shell-quote 1.10.0 on the workflow text
The guard, numbers and report steps behave as described on synthetic inputs synthetic tests/test_claude_harness_audit_bounds.py, 29 tests at e5ff29f, all of which run without PyYAML too (none skipped); the steps' shell is taken from the workflow file and executed
The tests detect a weakened workflow synthetic 16 mutated copies on 2026-10-08 (that day's bounds), 16 failed at least one test; on 2026-10-09 three turn-bound mutants each failed, and the new bounds have their own tests; at 725d25c seven result-subtype mutants each failed at least one test; at e5ff29f 17 weakened copies (exact pins, the short report, the lower turn bound, non-string tool entries, the $5 cap) each failed at least one test with and without PyYAML, and an unmodified control failed none
A non-string entry in the session's tool list fails the bounds, named (it passed at 0be47ac) synthetic the numbers step's shell on synthetic execution files listing Read, Glob, Grep and {"name":"Bash"}, null or 17: at 0be47ac exit 0 with forbidden_tools empty; at e5ff29f exit 1 with "Bounds not met: tools outside Read, Glob and Grep: non-string tool entry" (test_a_non_string_tool_entry_is_a_forbidden_tool)
This workflow's own prompt and claude_args stay within bounds at --effort max on Opus 5.5 local_integration (installed client, billed to a second key; not through the action) evidence/artifacts/claude-actions-fence-smoke-20261008/local-parity-receipt.json: 10 of 20 assistant turns, about $2.03 of the $3 budget it ran with, tools Glob/Grep/Read, no MCP; the same file records num_turns 57 for a 12-request run
The $5 budget is about twice the one measured run ($2.03, rounded up) and the 20-turn limit twice its 10 turns; a run is expected to cost about $2 local_integration (one run, as above) local-parity-receipt.json; the command center's caps from measurement (2026-10-09); the record's Cost of one run, which also withdraws the earlier dry estimate of $0.90 to $1.10
In agent mode the action writes the job token into the checkout's origin URL, so persist-credentials: false does not keep it out of .git/config; the .git deny rules are what keep the model from reading it source_review (the URL rewrite); local_integration (the deny rules, two local probe runs on 2.1.295, probe and control) the R5 sources above; evidence/artifacts/claude-actions-fence-smoke-20261008/deny-probe-receipt.json
The workflow is well formed and has no audit finding local_integration at e5ff29f: actionlint 1.17.0 exit 0; zizmor 1.30.1 offline, pedantic and regular with --no-ignores, no findings (2 suppressed)
The repository's policy tests accept the change local_integration unittest run below
Pin, flags and settings keys exist upstream source_review the sources above; settings keys disableAllHooks, blockReadsOutsideWorkingDirectories found in the 2.1.295 build
A hosted run authenticates, stays in bounds and reads the cache not established no hosted run is part of this PR; run 37739403956 failed at the token exchange before this change

Local commands run

# at e5ff29fd: run on the R5 tree before it was committed
$ python3 scripts/validate.py
{"components": 70, "hashed_files": 10907, "profiles": 4, "receipts": 239, "status": "passed"}   exit 0
$ python3 scripts/evidence_manifest.py --check
{"files": 10907, "status": "passed"}   exit 0
$ uv run --quiet --no-project --python 3.12 --with pyyaml==6.0.3 python -m unittest tests.test_claude_harness_audit_bounds tests.test_workflow_policy tests.test_workflow_security_coverage tests.test_workflow_hardening tests.test_github_automation_practice tests.test_adoption_docs_consistency
Ran 246 tests ... OK (skipped=2)   exit 0
$ uv run --quiet --no-project --python 3.12 python -m unittest tests.test_claude_harness_audit_bounds   # no PyYAML
Ran 29 tests ... OK   exit 0
$ actionlint .github/workflows/harness-audit.yml
exit 0
$ zizmor --offline --no-config --persona=pedantic .github/workflows/harness-audit.yml
No findings to report. Good job! (2 suppressed)   exit 0
$ zizmor --offline --no-config --no-ignores --persona regular .github/workflows/harness-audit.yml
No findings to report. Good job! (2 suppressed)   exit 0
$ uv run --quiet --no-project --python 3.12 [--with pyyaml==6.0.3] python mutants.py   # scratch script outside the repository
control: 0 failing; each of 17 weakened copies fails at least one test, with and without PyYAML   exit 0

The two skips are outside this PR's module: test_workflow_hardening's hash-frozen exemptions test (no workflow is hash-frozen) and test_adoption_docs_consistency's release-notes cell check (no profile's coverage differs).

A wider run of the first commit before its rebase (base e48de2e6, the 66 test modules that read workflows, the automation doc or the evidence manifest, plus the new module): 4,493 tests, 2 failures, both in tests/test_token_e2e_grader.py, a file this PR does not touch. F27c_KeysOnRealContent.test_keys_at_the_pinned_revision failed on git clone --local across filesystems (the temporary directory was on tmpfs) and passes with the temporary directory on the repository's filesystem. F19_Mutants.test_M31_user_base_dropped_from_the_allowlist fails the same way on a clean checkout of main at 9f7b38b2 in the same interpreter environment. Hosted checks at e5ff29f: not read yet.

Decision record

docs/decisions/2026-10-08-claude-actions-harness-audit-bounds.md (what was wrong, the pin, each bound and its source, cost of one run with the cap derivation, changed test contract, alternatives, what would overturn it, and a dated R5 section that names every R5 change). docs/decisions/2026-10-04-ci-least-privilege.md gets a dated addendum: the audit job no longer holds issues: write.

Host evidence

Not applicable: no file under evidence/hosts/ changes.

Checklist

  • New/changed GitHub Actions are pinned to a full commit SHA with a
    version comment (no floating tags).
  • New/changed workflows declare top-level permissions: {} and grant each job
    only what it needs (contents: read, or an explicitly justified addition).
  • No secrets are printed, logged or committed; no new required secret was
    added without a documented owner.
  • No new paid hosting, subscription or billing surface was introduced.
  • Peer-owned untracked files and worktrees were preserved (not deleted,
    moved or overwritten).

Activation is a separate step after landing: an owner sets CLAUDE_HARNESS_AUDIT_ENABLED to true. Runs authenticate by workload identity federation and spend from the Console organization the four ANTHROPIC_* repository variables name; no Anthropic key is stored in GitHub. Once enabled, each weekly schedule tick and each owner dispatch is one run, capped at $5 by the client's estimate and expected to cost about $2.

R7 (2026-10-09, head 0cf13fc)

Fixes from the J8 micro read of the R5 and R6 delta (0be47ac7..bf34373d):

  • N1: a test pins the budget-stop exemption to the success and result-text checks only. A $5.20 stop that breaks the tool, MCP, turn, session or cache bound fails, named.
  • N3: the budget-stop note moves to the publish step, so it is never written without a report.
  • N2 and N4: record and comment text no longer describes a client turn limit.

N5 is a proposed follow-up; N6 is a corrected count; N7-N9 are dispositioned. 32 tests; the read's mutant and three more weakened copies each fail; validate rc 0; zizmor pedantic and actionlint rc 0.

🤖 Generated with Claude Code

@seathatflowsinourveins seathatflowsinourveins added the lane:foundation Foundation lane: Claude/Codex setup, hosts, memory, RAG, research, workers label Oct 8, 2026
@socket-security

socket-security Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Dependency limit exceeded — report not shown.

This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report.

Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard.

Socket is always free for open source. If this is a non-commercial open source project, contact us to request a free Team account.

@seathatflowsinourveins
seathatflowsinourveins force-pushed the claude/api-actions-w4a-harness-audit-20261008 branch from 67846d3 to b59923c Compare October 8, 2026 22:25
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
A pre-cue read by Anthropic's pr-review-toolkit agents (J8, on d6f8909)
found these, and every one is fixed here:

- The diff step expanded an empty paths array bare; bash before 4.4
  (macOS /bin/bash 3.2) treats that as unset under set -u. It now uses
  ${scope[@]+"${scope[@]}"}, and a test requires that form.
- A review step reporting success without an execution file left the
  job green with nothing checked or published; a final step now fails
  the job in that case, with a test.
- display_report and track_progress are now asserted 'false'.
- The record named the artifact pr-review-usage-…; the workflow uploads
  claude-pr-review-usage-….
- docs/github-automation.md said the workflow uses the same action pin
  as the harness audit; main's audit is on v1.0.245 until #892 lands.
- The record cites the local parity receipt that #892 adds; it now says
  so, and that #892 precedes this PR in the landing order.
- blockReadsOutsideWorkingDirectories is now named as a key in the
  2.1.295 build that the fence receipt does not exercise.
- ci-least-privilege now lists claude-pr-review.yml:review in both grant
  tables, and its exemption paragraph names each exempt job instead of
  "the one job" (fixed in place).
- The record states that a public run's job summary is public, and when
  to use the local route instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
The pre-cue toolkit read of d6f8909 left two findings partly fixed at
8e64120: the record said the workflow's prompt and claude_args reviewed #897
and returned two blocking findings, but the receipt it cites, #892's
local-parity-receipt.json, recorded neither.

#892 now adds those fields to the receipt's LR entry, marked as a
2026-10-09 amendment from the same run's harness receipt. The record cites
them field by field and calls the verdict the model's own. It names the
workflow commit the run used, a6d2379. The prompt, claude_args and the
action step's inputs are unchanged from that commit to this head; the diff,
numbers and publish steps and the execution-file step changed. So the run
is evidence for this head's prompt, flags and client limits, not for those
steps.

A new test pins the usage artifact's name. Three weakened names each pass
the 30 earlier tests and fail it. The record's test count goes from 28
(already stale at 30) to 31.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
…ding findings

The pre-cue toolkit read of 459777d left findings standing at df440f4:

- The record's link to the pull request review's record, and its receipt
  citation, now say that #894 (and #892) add those files and land first.
- The docs bullet names #894 as where the shared pin, federation, fence and
  bounds are defined.
- The binding step's unused id `bind` is removed; nothing referred to it.
- The record's by-name list now names what df440f4 added: the final
  execution-file step, the bash 3.2 expansion and the Visibility section.
  It also names this PR's edits outside the record.
- The test count, stale at 32, is 34.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
…y the parity receipt

- R4: the guard binds the ACTIONS_STEP_DEBUG and ACTIONS_RUNNER_DEBUG
  secrets and variables as booleans, the secret first, and refuses either.
  A test pins both bindings, and six weakened copies each fail it.
- The publish step writes the review with `jq -j`, so a 60,000-byte review
  is no longer announced as cut. A boundary test covers it.
- The record cites local-parity-receipt.json, and this PR now carries a
  byte-identical copy of #892's file (sha256 ba498b82), so the citation does
  not depend on which PR lands first.
- The docs bullet states the action pin and the federation variables
  instead of comparing with the harness audit on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
… the record stand alone

- R4: the guard binds the ACTIONS_STEP_DEBUG and ACTIONS_RUNNER_DEBUG
  secrets and variables as booleans, the secret first, and refuses either.
  A test pins both bindings, and six weakened copies each fail it.
- The publish step writes the review with `jq -j`, so a 60,000-byte review
  is no longer announced as cut. A boundary test covers it.
- From the J8 micro read of fbe30ad: the record and the docs bullet no
  longer rest on #894 being present.
  - They state the action pin, the federation variables, the fence flags
    and the bounds themselves.
  - They name the pull request review's record by plain path, not by link.
  - They cite receipt.json from this PR's own tree, a byte-identical copy of
    the one #892 and #894 add.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
- R4, from the cc-native-practice lane's L3 read against claude-code-action
  v1.0.247 practice: the guard binds the ACTIONS_STEP_DEBUG and
  ACTIONS_RUNNER_DEBUG secrets and variables as booleans, the secret first,
  and refuses either. A test pins both bindings, and six weakened copies
  each fail it.
- The publish step writes the reports with `jq -j`, so a 60,000-byte report
  is no longer announced as cut, as the J8 micro read of #892 found for the
  same step. A boundary test covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
…o 30 minutes

R7. With --max-turns removed in R6, the numbers step's bound of 30 assistant
turns is the turn limit. At the one measured pace of this shape (LR: 12 turns
in 512,670 ms, Opus 5.5 at max) 30 turns take about 21.4 minutes before
checkout and setup, so a 20-minute job timeout would cancel a run inside the
approved bounds before execution_file exists. A new test pins 30, and a
weakened copy setting it back to 20 fails it; #892 and #894 use 30.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
…894)

### Scope

- What this PR changes, in one or two sentences: adds `claude-pr-review.yml`, an on-demand, read-only review of one same-repository pull request head by `anthropics/claude-code-action` v1.0.247. A maintainer dispatches it from `main` with the pull request number and the exact head commit; the review goes to the job summary and nothing is posted to the pull request. It runs only while the repository variable `CLAUDE_PR_REVIEW_ENABLED` is `true`, so merging this starts nothing.
- Effort (added 2026-10-08 at head a6d2379): `--effort max` in `claude_args`, because judgment work (designated reads, adjudication, pull request and security reviews, audits) runs at `max` under the command center's effort mapping, and every job records its level and reason. The level has to be in `claude_args`: `--restricted` ignores the settings files that would otherwise carry it, and Opus 5.5 runs at `medium` on the API when a request leaves effort unset. The bounds test now requires the flag; removing it fails the test. A loopback dry run of the installed 2.1.295 client with this workflow's `claude_args` sent `output_config.effort: "max"` on every request.
- Fixes from the pre-cue read of the sibling #892 (2026-10-09, head d6f8909): the record names every behaviour of this new workflow: the trigger; the slug, owner, first-attempt and variable guards; the timeout and grants; the guard and binding exits; the head-as-data checkout and diff limits; the explicit action inputs `display_report` and `track_progress` (defaults in the pinned `action.yml`); and the 14-day usage artifact. The bounds step now uses an allow-list, fails on a start record without lists or on an empty result, and names each unmet bound. The review cut is character-safe and says when it cut. The step tests no longer skip without PyYAML. The 2026-10-03 cooldown waiver is cited.
- Fixes from this PR's own pre-cue toolkit read (J8 on d6f8909, head 8e64120):
  - the empty paths array is now expanded safely on bash before 4.4;
  - a success without an execution file now fails the job;
  - `display_report` and `track_progress` are asserted;
  - the artifact name and the action-pin sentence are corrected, and the parity receipt's dependency on #892 is stated;
  - `claude-pr-review.yml:review` is now in both grant tables of ci-least-privilege;
  - the record states that a public run's summary is public.
- Pre-cue toolkit read of this PR (J8 on d6f8909, 2026-10-09; `pr-test-analyzer` and `silent-failure-hunter`): every finding at confidence 80 or above, and its status at head 41c9c15.

  | Finding | Status at 41c9c15 | Fixing commit and evidence |
  | --- | --- | --- |
  | `pr-test-analyzer` 1 (90): the record names the wrong artifact | fixed | 8e64120: the record names `claude-pr-review-usage-<run id>-<attempt>`, the upload's name; 41c9c15 adds `test_the_usage_artifact_is_named_for_the_run_and_its_attempt` |
  | `silent-failure-hunter` 2 (88): the record and the workflow disagree on the artifact | fixed | the same two commits |
  | `pr-test-analyzer` 2 (85): `docs/github-automation.md` claims the harness audit's action pin | fixed | 8e64120: the bullet says the two pins differ until #892 lands |
  | `silent-failure-hunter` 1 (92): the same false claim (pin and federation variables) | fixed | 8e64120, as above; the four federation variables are the same |
  | `pr-test-analyzer` 3 (85): the headline evidence file is not in this PR | fixed | 8e64120 states that #892 adds it and lands first; 41c9c15 cites its `LR` entry field by field |
  | `silent-failure-hunter` 3 (80): "#897" and "two blocking findings" have no source in that receipt | fixed | #892 adds `target_pull_request`, `target_head`, `report_blocking_findings` and `report_sha256` to the `LR` entry (a marked 2026-10-09 amendment from the run's harness receipt); 41c9c15 cites them, calls the verdict the model's own, and states that the prompt and `claude_args` are unchanged from the run's workflow commit a6d2379 to that head (R5 later raises the two caps and the prompt's turn sentence; see R5 below) |
- R4, debug logging set as a repository secret or variable (2026-10-09; the cc-native-practice lane's L3 read against `anthropics/claude-code-action` v1.0.247 practice): the guard binds `(secrets.ACTIONS_STEP_DEBUG || vars.ACTIONS_STEP_DEBUG) == 'true'` and `(secrets.ACTIONS_RUNNER_DEBUG || vars.ACTIONS_RUNNER_DEBUG) == 'true'` as booleans and refuses either before any token is requested; a test pins both bindings, and six weakened copies each fail at least one test. This is hardening: the action step already pins `ACTIONS_STEP_DEBUG: 'false'`, which is what the action's full-output switch reads. zizmor's auditor persona reports `secrets-outside-env` on the two reads; CI runs the regular persona with `--no-ignores`, which reports nothing. The R4 lines are byte-identical in #892, #894, #895, #896 and #909; R5 leaves them unchanged here.
- The report notice at the cap (2026-10-09; the J8 micro read of #892): the publish step wrote with `jq -r`, which adds a newline, so a 60,000-byte report was announced as cut. It writes with `jq -j` now; a test publishes exactly 60,000 and 60,001 bytes, and a copy that writes with `jq -r` fails it. R5 adds the 59,999-byte case.
- From the J8 micro read of 41c9c15 (2026-10-09; 4 of 6 listed findings fixed, PTA-3 and SFH-3 partly because the receipt the record cites was not in this tree): this PR now carries a byte-identical copy of `local-parity-receipt.json` (sha256 `ba498b82…`, the file #892 adds), so the citation no longer depends on which PR lands first, and the docs bullet states the action pin and the federation variables instead of comparing with the harness audit on `main`.
- R5 (2026-10-09, head d1bcb6c, limited by the command center to correctness and test quality) adds a model-free step, `Remove symbolic links from the pull request head`, right after the head checkout: `set -euo pipefail; find pr-head -path pr-head/.git -prune -o -type l -exec rm -f {} +`. It raises the approved caps from measurement: `--max-turns` 12→30 and `--max-budget-usd` 3→5. The prompt's "You have at most 30 turns", the numbers step's bounds (1 to 30 assistant turns, at most $5, with matching messages), the header comment and `docs/github-automation.md` follow. The numbers step now counts each non-string tool-list entry as a forbidden tool named `non-string tool entry` instead of dropping it. The R4 guard lines, the deny list and the `github_token` input are kept exactly as at a1bc3bc. The test module goes from 33 to 41 tests. Eight are new: the symlink step's position and exact text; its behaviour on planted links to `/proc/self/environ`, `../.git/config` and a subdirectory, plus a re-run on a link-free head; a 59,999-byte report published whole; object, null and number tool entries refused and named; the prompt stating the `--max-turns` value; and the caps at 30 turns and $5 and just above. Changed tests pin the full `claude_args` list and `--settings` JSON exactly, assert the exact `if:` strings of the publish and numbers steps, run the guard with production's debug-off values (false/false/empty), and check that the 59,999-byte prefix before a cut character survives. All 28 weakened copies of the workflow fail at least one test with PyYAML present, as the hosted validate job has it; without PyYAML 15 of 28 do, because the pins sit in the PyYAML-only shape tests. The decision record gains a dated R5 section and names the R4 guard change in its what-changed paragraph. It corrects "Read denies for every `.git` directory" to "for the files under every `.git` directory". It restates the cap derivation and the expected cost per run, and withdraws the dry $0.70–$1.30 estimate, which was below the measured first-read cost. It adds the shared follow-up line, the shared `origin` URL sentence and two action sources. `manifests/evidence.json` is rehashed for the four changed files.
  - Sources of the R5 items: the command center's security read of a1bc3bc (the symbolic links, the closed flag list, the exact `if:` strings, the guard's debug-off values, the 59,999-byte prefix, and the stale guard sentence in the record); the command center's caps decision of 2026-10-09; the GPT designated read of #895, P2 (non-string tool entries, applied to all five W4 workflows); the cc-native-practice lane's third audit, P3-1 (the shared `origin` URL sentence).
  - Caps derivation: `LR`, a first read of #897 with this workflow's prompt and `claude_args` on the installed client, used all 12 of its 12 assistant turns and cost $2.23 ($1.87 by the client's estimate). So the need is above 12, and 2.5 times that floor gives 30 turns; twice $2.23 is about $4.5, rounded up to $5. Four delta re-reads (LR2 to LR5) used 5, 6, 7 and 6 turns and cost $1.75, $1.35, $1.54 and $0.73. A run is expected to cost about $1.9 to $2.3 for a first read and $0.7 to $1.8 for a delta re-read.
  - Filed as follow-ups before any enabling variable is set, not in R5: the security hardening from the 2026-10-09 read (debug-value widening, the tool-list shape apart from the non-string entry above, extra deny rules, token-source and guard-step assertions); the rest of F-02 (a non-empty tool list, checking the `tool_use` names); F-16 (the pins that run only with PyYAML).
  - Not run in R5: a fence smoke with a planted symbolic link, which needs a model run; any hosted run. On the first run, watch whether the action appends an `--mcp-config` that `--strict-mcp-config` still honours (the read's G3); the numbers step fails the run on any MCP server.
- Base commit: `aba02ec3` (merge base at a1bc3bc and at d1bcb6c, which builds on a1bc3bc; as read at a1bc3bc, main had moved to `ebe6c223` with #890, #900, #897 and #907; only `manifests/evidence.json` overlaps, and the one rebase happens at landing)
- Lane: `lane:foundation`
- Owned paths touched: `.github/workflows/claude-pr-review.yml` (new), `tests/test_claude_pr_review_workflow.py` (new), `tests/test_workflow_policy.py` (one inventory entry, one exemption), `tests/test_workflow_security_coverage.py` (coverage set and one zizmor test), `docs/decisions/2026-10-08-claude-actions-pr-review.md` (new), `docs/decisions/2026-10-04-ci-least-privilege.md` (dated addendum only), `docs/github-automation.md` (current-practice bullet), `evidence/artifacts/claude-actions-fence-smoke-20261008/receipt.json` (new), `evidence/artifacts/claude-actions-fence-smoke-20261008/local-parity-receipt.json` (new; byte-identical to the copy #892 adds), `manifests/evidence.json` (registration, last commit).

### R6 (2026-10-09), at bd10ba3

- **Cost bound:** the budget × 1.10 = $5.50, from four measured J8 runs on a $5 budget ($5.46, $5.33, $5.16, $5.0007),
  re-derived after the first three hosted runs.
  - A budget stop at or under it publishes the text written before the stop, with a line naming the stop.
  - Publishing is gated on `!cancelled() && steps.numbers.outcome == 'success'`, because the action fails its own step on
    any budget stop.
- **`--max-turns 30` removed:** the pinned action (`base-action/src/run-claude-sdk.ts:241-250` at 2dca132f, since
  6ef6450f) fails a success whose `num_turns` exceeds it.
  - On Claude Code 2.1.295, `num_turns` counts transcript messages: 57 for 12 requests under `--max-turns 12`. That is a
    code reading plus a local measurement, not a hosted run.
  - The numbers step's 30-assistant-turn bound and the prompt's "at most 30 turns" stay.
- **Job timeout:** 20 → 30 minutes. 30 turns at the measured pace (12 turns in 512,670 ms) take about 21.4 minutes before
  setup. #892 uses 30.
- **Settings pins:** both compare canonical JSON, so `1` no longer passes for `true` (J8 R5 micro, N1, confidence 70).
- **Record:**
  - the shared cost paragraph;
  - an upstream-issue draft (not filed);
  - the seven changed test expectations the J8 R5 micro found undeclared (U1–U7).
- **Local checks at bd10ba3:**
  - `validate.py` and the manifest check pass (10,906 files);
  - six modules: 262 tests, OK;
  - this module: 44 tests (16 skip without PyYAML);
  - actionlint and zizmor are clean;
  - 39 of 39 weakened copies fail a test with PyYAML.
- **Hosted checks at bd10ba3:** not read yet.

### SOTA sources

- anthropics/claude-code-action, v1.0.247 at `2dca132ff0e0c4094ce6048b422c6915a071210b` (<https://github.com/anthropics/claude-code-action/tree/2dca132ff0e0c4094ce6048b422c6915a071210b>): `docs/security.md` ("Do not check out an untrusted ref into the workspace root before this action"; base ref at the root and head ref in a subdirectory), `docs/setup.md` (federation inputs; "a static credential takes precedence and federation will not be used"), `action.yml` (inputs and the `execution_file` output), `base-action/src/parse-sdk-options.ts` (argument parsing with `shell-quote`, default setting sources, debug forcing full output), `src/github/operations/git-config.ts` (git authentication in the root checkout; lines 129-134 write the job token into the checkout's `origin` URL when `allowed_non_write_users` is unset) and, new in R5, `src/modes/agent/index.ts` (lines 52-61, where agent mode calls that configuration). R5 read both files at v1.0.246 (`38c80c1`); the command center's compare of v1.0.246 and v1.0.247 changes only the bundled Claude Code version.
- Claude Code 2.1.295, the version the pin installs, `claude --help`: `--restricted` ("removes the built-in tools that run commands or code ... and ignores user, project and local settings files ... Also confines the file tools to the working directories"), `--permission-prompts none` ("anything that would prompt is denied automatically"), `--tools`, `--settings`, `--strict-mcp-config`, `--max-budget-usd` and, for the R5 caps, `--max-turns`. The help does not say whether a symbolic link's target is resolved, which is why R5 removes the links before the model runs.
- GNU findutils `find` 4.10.0 as installed (`find --version`), new in R5: `find pr-head -path pr-head/.git -prune -o -type l -exec rm -f {} +`, measured by the step test on planted links and on a link-free head (exit 0, no `rm` started). The runner image's `find` was not measured.
- GitHub, Contexts reference, `runner.debug` (set only while debug logging is on, so the guard's `RUNNER_DEBUG_SIGNAL` is empty on a normal run), new in R5 as the basis of the guard tests' debug-off values; taken from the command center's read of a1bc3bc, not re-read in R5 (no network).
- GitHub, OpenID Connect reference, "Filtering for pull_request events" and "Filtering for a specific branch" (<https://docs.github.com/en/actions/reference/security/oidc>); GitHub Security Lab, Preventing pwn requests (<https://securitylab.github.com/research/github-actions-preventing-pwn-requests/>).
- Anthropic documentation read 2026-10-08: Workload identity federation (<https://platform.claude.com/docs/en/manage-claude/workload-identity-federation>); How Claude Code uses prompt caching (<https://code.claude.com/docs/en/prompt-caching>); Pricing (<https://platform.claude.com/docs/en/about-claude/pricing>).

### Evidence-class table

| Claim | Evidence class | Command / receipt |
| --- | --- | --- |
| With the fence flags (`--restricted`, `--tools`/`--allowedTools` Read,Glob,Grep, `--strict-mcp-config`, `--permission-prompts none`, `--settings` with hooks off, `claudeMdExcludes` and three deny rules; Haiku 5.5, 10 turns, $0.50, as the receipt lists; this workflow adds `--setting-sources user`, `--add-dir`, `--effort max`, four deny rules and `blockReadsOutsideWorkingDirectories`, a key in the 2.1.295 build that the receipt does not exercise) the session's tools are Glob, Grep and Read; reads outside the tree and of `.git/config` are denied; planted hooks, instruction files and a skill under `pr-head` have no effect | `native_proven` on the installed 2.1.295 client (not through the action, not on a GitHub runner) | `evidence/artifacts/claude-actions-fence-smoke-20261008/receipt.json`, three runs |
| The action's own parser turns this workflow's `claude_args` into those flags and that JSON | `local_integration` (at a1bc3bc only) | the parser's three helpers replayed with `shell-quote` 1.10.0 on the workflow text at a1bc3bc; not re-run at d1bcb6c (no network to install `shell-quote`). R5 changes two plain values (`12` to `30`, `3` to `5`), and `test_claude_has_three_read_tools_and_fixed_bounds` asserts the whole list, split per line with `shlex`, and the `--settings` JSON |
| The guard, binding, symbolic-link, diff, numbers and review steps behave as described | `synthetic` | `tests/test_claude_pr_review_workflow.py`, 41 tests at d1bcb6c (the 26 step tests run without PyYAML too; the 15 shape tests need it); each step's shell is taken from the workflow file and executed against a local stand-in for `gh`, a local git repository or a planted `pr-head` tree |
| Symbolic links under `pr-head` are removed before the model runs, `pr-head/.git` is left as the checkout wrote it, and a link-free head passes | `synthetic` | `test_symbolic_links_in_the_head_are_removed_and_nothing_else` (links to `/proc/self/environ`, `../.git/config` and `../..`; GNU find 4.10.0); no fence smoke with a planted link has run on the client |
| The tests detect a weakened workflow | `synthetic` | 20 mutated copies on 2026-10-08 (that day's bounds), 20 failed at least one test; on 2026-10-09 three turn-bound mutants each failed, and the new bounds have their own tests; at 41c9c15 three artifact-name mutants each pass the 30 earlier tests and fail the new name test; at d1bcb6c 28 mutated copies (the symbolic-link step, the flag and settings pins, the `if:` strings, the guard's debug-off values, the report cap, the non-string tool entries, the caps and the prompt) each fail at least one test with PyYAML 6.0.3 present, as the hosted validate job has it; without PyYAML 15 of 28 do (the other 13 are pins in the shape tests; follow-up F-16) |
| This workflow's own prompt and `claude_args` review a real pull request within bounds at `--effort max` on Opus 5.5 | `local_integration` (installed client, billed to a second key; not through the action) | `evidence/artifacts/claude-actions-fence-smoke-20261008/local-parity-receipt.json`, carried byte-identical in this PR and in #892 (sha256 `ba498b82…`), its `LR` entry: workflow commit a6d2379, whose prompt and `claude_args` are unchanged at d1bcb6c apart from the two caps R5 raised (`--max-turns` 12 to 30, `--max-budget-usd` 3 to 5) and the prompt's turn sentence; #897 at `target_head` 24821c5; 12 of 12 assistant turns; $1.868667 of the then $3 budget; tools Glob/Grep/Read; no MCP; `success`; `report_blocking_findings: 2`, the report's own verdict line, unchecked (`report_sha256` c49bee04, a 2026-10-09 amendment) |
| The caps, 30 assistant turns and $5, bound a runaway at about twice the measured need; a run is expected to cost about $1.9 to $2.3 for a first read and $0.7 to $1.8 for a delta re-read | `local_integration` (installed 2.1.295 client, billed to the second key; not through the action) | the `LR` entry above (12 of 12 turns, client estimate $1.868667); the $2.23 figure and the delta re-reads LR2 to LR5 (5, 6, 7 and 6 turns; $1.75, $1.35, $1.54 and $0.73) come from the command center's caps decision of 2026-10-09 and are not in this repository |
| In agent mode the action writes the job token into the root checkout's `origin` URL, so `persist-credentials: false` does not keep it out of `.git/config`; the deny rules keep the model from reading it | `source_review` for the code path; the denial of `.git/config` reads is the fence receipt's (first row) | `src/github/operations/git-config.ts:129-134` and `src/modes/agent/index.ts:52-61`, read at v1.0.246 (`38c80c1`; the command center's compare shows only the bundled client version changing at v1.0.247); the record's shared sentence also cites two 2026-10-09 probes on the installed 2.1.295, not reproduced here |
| The workflow is well formed and has no audit finding | `local_integration` | at d1bcb6c: `actionlint` 1.17.0 exit 0; `zizmor` 1.30.1 offline, regular (`--no-ignores`) and pedantic, no findings (2 suppressed in each: `secrets-outside-env` on the R4 secret reads, as at a1bc3bc) |
| A hosted run authenticates, stays in bounds and reads the cache | not established | no hosted run is part of this PR |

### Local commands run

```
$ python3 scripts/validate.py            # on the R5 tree, committed as d1bcb6c
{"components": 70, "hashed_files": 10906, "profiles": 4, "receipts": 239, "status": "passed"}   exit 0
$ python3 scripts/evidence_manifest.py --check
{"files": 10906, "status": "passed"}   exit 0
$ uv run --quiet --no-project --python 3.12 --with pyyaml==6.0.3 python -m unittest tests.test_claude_pr_review_workflow tests.test_workflow_policy tests.test_workflow_security_coverage tests.test_workflow_hardening tests.test_github_automation_practice tests.test_adoption_docs_consistency
Ran 259 tests ... OK (skipped=2)   exit 0
$ uv run --quiet --no-project --python 3.12 python -m unittest tests.test_claude_pr_review_workflow    # without PyYAML
Ran 41 tests ... OK (skipped=15)   exit 0
$ actionlint .github/workflows/claude-pr-review.yml
exit 0
$ zizmor --offline --no-config --persona=pedantic .github/workflows/claude-pr-review.yml
No findings to report. Good job! (2 suppressed)   exit 0
$ zizmor --offline --no-config --no-ignores --persona regular .github/workflows/claude-pr-review.yml
No findings to report. Good job! (2 suppressed)   exit 0
$ uv run --quiet --no-project --python 3.12 --with pyyaml==6.0.3 python -B <scratchpad>/r5_pr894_mutants.py . a1bc3bc    # outside the repository
28 mutants, 28 caught, survivors: []   exit 0
$ uv run --quiet --no-project --python 3.12 python -B <scratchpad>/r5_pr894_mutants.py . a1bc3bc    # without PyYAML
28 mutants, 15 caught   exit 1 (expected: the 13 survivors are pins in the PyYAML-only shape tests; follow-up F-16)
```

Hosted checks at d1bcb6c: not read yet.

### Decision record

`docs/decisions/2026-10-08-claude-actions-pr-review.md` (why a manual dispatch and no pull request trigger, how the head is handled, the model's fence and what was checked at runtime, cost of one run with the measured runs and the cap derivation, changed test contracts, alternatives, what would overturn it), with a dated R5 section: the symbolic-link step, the caps from measurement, the non-string tool entries, the closed flag list and the boundary tests, the mutants, and the follow-ups. `docs/decisions/2026-10-04-ci-least-privilege.md` gets a dated addendum naming the second job on the federation rule.

### Host evidence

Not applicable: no file under `evidence/hosts/` changes.

### Checklist

- [x] New/changed GitHub Actions are pinned to a full commit SHA with a
      version comment (no floating tags).
- [x] New/changed workflows declare top-level `permissions: {}` and grant each job
      only what it needs (`contents: read`, or an explicitly justified addition).
- [x] No secrets are printed, logged or committed; no new required secret was
      added without a documented owner.
- [x] No new paid hosting, subscription or billing surface was introduced.
- [x] Peer-owned untracked files and worktrees were preserved (not deleted,
      moved or overwritten).

Activation is a separate step after landing: an owner sets `CLAUDE_PR_REVIEW_ENABLED` to `true`, then dispatches the workflow with a pull request number and head commit. Runs authenticate by workload identity federation and spend from the Console organization the four `ANTHROPIC_*` repository variables name; no Anthropic key is stored in GitHub. Each run is capped at 30 assistant turns and a $5 client budget, the owner's per-run spend limit on that organization. This PR and #892 both edit the write-grant inventory and the evidence manifest, so the second to land rebases once.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
claude-pr-toolkit-review.yml runs pr-test-analyzer and
silent-failure-hunter from anthropics/claude-code's pr-review-toolkit
plugin on one pull request head, through claude-code-action v1.0.247.
Both agents list every behaviour and test change the description does
not declare, with a confidence on every finding. It is the command
center's J8 pre-cue step (W4 draft f), the same agents and settings that
found six undeclared changes in #892 and two verifier defects in #900.

The toolkit is checked out at anthropics/claude-code@602df92b, sparse to
its plugin directory, moved outside the workspace, verified file by file
against recorded SHA-256 values (git blob ids matched GitHub's at the
pin), and loaded with --plugin-dir; the action's plugins and
plugin_marketplaces inputs install unpinned code at run time and are
not used. Sonnet 5.5 at max effort; Read, Glob, Grep and the Agent tool;
CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 so background agents are awaited;
a $5 budget; a review time limit of 20 or 35 minutes by diff size.

The bounds step counts the coordinator's own turns only, allows the
budget plus a $2 allowance for the agents' last requests, requires both
reports, uses an allow-list and names every unmet bound. Dispatch only,
owner only, first attempt only, gated by CLAUDE_PR_TOOLKIT_ENABLED; no
write scope beyond the OIDC token; nothing is posted to the pull request.

34 tests run the steps as written (without PyYAML too); eight weakened
copies each fail them; actionlint and zizmor (pedantic) report nothing.
openai/codex-action is recorded as WATCH with its pin and overturn
condition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
- R4, from the cc-native-practice lane's L3 read against claude-code-action
  v1.0.247 practice: the guard binds the ACTIONS_STEP_DEBUG and
  ACTIONS_RUNNER_DEBUG secrets and variables as booleans, the secret first,
  and refuses either. A test pins both bindings, and six weakened copies
  each fail it.
- The publish step writes the reports with `jq -j`, so a 60,000-byte report
  is no longer announced as cut, as the J8 micro read of #892 found for the
  same step. A boundary test covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
claude-pr-toolkit-review.yml runs pr-test-analyzer and
silent-failure-hunter from anthropics/claude-code's pr-review-toolkit
plugin on one pull request head, through claude-code-action v1.0.247.
Both agents list every behaviour and test change the description does
not declare, with a confidence on every finding. It is the command
center's J8 pre-cue step (W4 draft f), the same agents and settings that
found six undeclared changes in #892 and two verifier defects in #900.

The toolkit is checked out at anthropics/claude-code@602df92b, sparse to
its plugin directory, moved outside the workspace, verified file by file
against recorded SHA-256 values (git blob ids matched GitHub's at the
pin), and loaded with --plugin-dir; the action's plugins and
plugin_marketplaces inputs install unpinned code at run time and are
not used. Sonnet 5.5 at max effort; Read, Glob, Grep and the Agent tool;
CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 so background agents are awaited;
a $5 budget; a review time limit of 20 or 35 minutes by diff size.

The bounds step counts the coordinator's own turns only, allows the
budget plus a $2 allowance for the agents' last requests, requires both
reports, uses an allow-list and names every unmet bound. Dispatch only,
owner only, first attempt only, gated by CLAUDE_PR_TOOLKIT_ENABLED; no
write scope beyond the OIDC token; nothing is posted to the pull request.

34 tests run the steps as written (without PyYAML too); eight weakened
copies each fail them; actionlint and zizmor (pedantic) report nothing.
openai/codex-action is recorded as WATCH with its pin and overturn
condition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
- R4, from the cc-native-practice lane's L3 read against claude-code-action
  v1.0.247 practice: the guard binds the ACTIONS_STEP_DEBUG and
  ACTIONS_RUNNER_DEBUG secrets and variables as booleans, the secret first,
  and refuses either. A test pins both bindings, and six weakened copies
  each fail it.
- The publish step writes the reports with `jq -j`, so a 60,000-byte report
  is no longer announced as cut, as the J8 micro read of #892 found for the
  same step. A boundary test covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
…#909)

* Add a pre-cue read by Anthropic's pr-review-toolkit agents in Actions

claude-pr-toolkit-review.yml runs pr-test-analyzer and
silent-failure-hunter from anthropics/claude-code's pr-review-toolkit
plugin on one pull request head, through claude-code-action v1.0.247.
Both agents list every behaviour and test change the description does
not declare, with a confidence on every finding. It is the command
center's J8 pre-cue step (W4 draft f), the same agents and settings that
found six undeclared changes in #892 and two verifier defects in #900.

The toolkit is checked out at anthropics/claude-code@602df92b, sparse to
its plugin directory, moved outside the workspace, verified file by file
against recorded SHA-256 values (git blob ids matched GitHub's at the
pin), and loaded with --plugin-dir; the action's plugins and
plugin_marketplaces inputs install unpinned code at run time and are
not used. Sonnet 5.5 at max effort; Read, Glob, Grep and the Agent tool;
CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 so background agents are awaited;
a $5 budget; a review time limit of 20 or 35 minutes by diff size.

The bounds step counts the coordinator's own turns only, allows the
budget plus a $2 allowance for the agents' last requests, requires both
reports, uses an allow-list and names every unmet bound. Dispatch only,
owner only, first attempt only, gated by CLAUDE_PR_TOOLKIT_ENABLED; no
write scope beyond the OIDC token; nothing is posted to the pull request.

34 tests run the steps as written (without PyYAML too); eight weakened
copies each fail them; actionlint and zizmor (pedantic) report nothing.
openai/codex-action is recorded as WATCH with its pin and overturn
condition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Publish the toolkit agents' reports from their handbacks when the relay is missing

In the local J8 run on #894 the coordinator hit --max-budget-usd 5
(error_max_budget_usd) after both agents had handed back their full
reports through SubagentHandback, so it never relayed them and the
workflow would have withheld two complete reviews. The numbers and
report steps now take the coordinator's relay when it carries both
sections, and otherwise assemble the reports from each agent's own
SubagentHandback message in the execution file (model-free); with
neither, the relay text stays. The usage record says which source was
used. All three J8 streams so far carry SubagentHandback calls.

Three new tests cover a coordinator that stopped before relaying, a
missing handback and a complete relay preferred to the handbacks (37
tests); three mutants of the fallback each fail them; actionlint and
zizmor report nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add the J8-SUMMARY trailer and the sweep fixes to the toolkit read

The command center approved a machine-readable trailer for the "defects
caught before a cue" ledger: each agent ends its report with one line,
J8-SUMMARY {"undeclared": <n>, "confidences": [...]}, so counts come
from the agents' own numbers and never from prose. The review itself is
unchanged. A test asserts the trailer in the prompt.

The sweep of the W4 drafts for the classes #894's pre-cue read found,
applied here: the empty paths array is expanded safely on bash before
4.4; a read step that succeeds without an execution file fails the
job; display_report and track_progress are asserted; the record states
that a public run's summary is public. 39 tests; actionlint and zizmor
report nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Bind repository debug settings in the guard and fix the cap notice

- R4, from the cc-native-practice lane's L3 read against claude-code-action
  v1.0.247 practice: the guard binds the ACTIONS_STEP_DEBUG and
  ACTIONS_RUNNER_DEBUG secrets and variables as booleans, the secret first,
  and refuses either. A test pins both bindings, and six weakened copies
  each fail it.
- The publish step writes the reports with `jq -j`, so a 60,000-byte report
  is no longer announced as cut, as the J8 micro read of #892 found for the
  same step. A boundary test covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Run the toolkit review on Opus with a $22 budget, check every result record and remove links from the head

R5, quality and correctness only. The coordinator moves to Opus 5.5 at max
with a $22 client budget; the cost bound is the budget times the measured
overrun factor 1.10 ($24.20), re-derived after the first three runs. The
numbers step reads every result record: each must be a success, or a budget
stop after both agents handed back, and a budget stop at or under the bound
publishes both reports. Publishing is gated on the numbers step's outcome.
The coordinator must call both toolkit agents and no other (retries
allowed), replayed on three J8 streams. A tool-list entry that is not a
string is a forbidden tool. A model-free step removes symbolic links from
the pull request head right after its checkout (GPT designated read of
b80a6eb, P2). New tests pin claude_args and --settings exactly; the module
goes from 41 to 56 tests. The record names every change and states that the
hosted file ends at the first result record, so a run whose agents have not
handed back by then fails closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Publish only the agents' own handbacks, require both before publishing, and share the cost-factor wording

R6. The numbers step fails unless both called agents handed back (a
handback counts only under the coordinator's Agent call for that agent,
once per agent); relay headings no longer count anywhere (GPT designated
read of 7aa2c12, P2). The report step publishes the two handbacks,
pr-test-analyzer's then silent-failure-hunter's, and never the
coordinator's relay; the coordinator prompt no longer asks for a relay and
ends with one line, which saves its output tokens. Publishing is gated on
!cancelled() and the numbers step's success, as in the other W4 workflows.
The exact --settings pin compares canonical JSON, so 1 or 0 no longer
passes for true or false (J8 R5 micro of #894, N1). The record adopts the
shared cost-factor paragraph ($22 budget, $24.20 bound) and declares the
eight R5 changes the J8 R5 micro read found undeclared. 57 tests; 49 of 49
weakened copies fail a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: seathatflowsinourveins <234074349+seathatflowsinourveins@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins and others added 9 commits October 9, 2026 19:27
The audit job ran with 60 turns, no budget, a `gh issue create` shell tool and
`issues: write`. It now gets Read, Glob and Grep, 20 turns and a $3 client
budget, holds only `contents: read` and `id-token: write`, and runs only while
CLAUDE_HARNESS_AUDIT_ENABLED is 'true'. A model-free step keeps the run's token
and cost numbers and fails the job when a bound or the cache-read check is
unmet; a second copies the report to the job summary, escaped and capped.

The pin moves from v1.0.245 to v1.0.247 (two one-commit releases that bump the
bundled Claude Code to 2.1.295). Federation stays the only authentication.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code now runs under --restricted with --permission-prompts none, and
the deny rules travel in --settings, because --restricted ignores the settings
file the action's `settings` input writes. The job runs on a first attempt
only (a re-run would spend again), for the owner as actor and triggering
actor. The numbers step also reads the session's own tool list and fails on a
shell, write, web, subagent or MCP tool, writes its record atomically and
replaces names that are not plain identifiers. Step debugging is pinned off in
the action step's environment.

The flag set was run on the installed 2.1.295 client against a planted tree;
the receipt is under evidence/artifacts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The audit job now passes `--effort max` in claude_args. Under the command
center's effort mapping of 2026-10-08, judgment work (designated reads,
adjudication, pull request and security reviews, audits) runs at `max`, and
every job records its level and the reason. The level has to be in
claude_args because `--restricted` ignores the settings files that would
otherwise carry it, and Opus 5.5 runs at `medium` on the API when a request
leaves effort unset. A loopback dry run of the installed 2.1.295 client with
this workflow's claude_args sent `output_config.effort: "max"` on every
request. The bounds test now requires the flag (removing it fails the test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bounds step failed the job unless the result's num_turns was at most
the --max-turns value. On Claude Code 2.1.295 num_turns counts transcript
messages, tool results included: a local run with #894's prompt and
claude_args (api-actions LR, 2026-10-08) made 12 API requests under
--max-turns 12 and reported num_turns 57. The step now counts distinct
assistant message ids in the execution file and checks that count against
20; num_turns stays in the record and the job summary as "messages". The
test fixture emits two messages per turn id, as the client does, and a new
test passes a 20-turn run that reports 57 messages and fails a 21-turn one.
Three mutants (bound on num_turns, count forced to 0, count without
de-duplicating ids) each fail the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pre-cue read by Anthropic's pr-review-toolkit agents (J8, on 4d0a14d)
found gaps in this PR; this commit fixes them.

Bounds step: the tool check is an allow-list (any tool outside Read,
Glob and Grep fails, not only the nine named ones); a session start
record without its tool or MCP lists fails instead of passing as empty;
a run without result text fails; and the step names every bound it finds
unmet instead of a bare exit 1. The report step takes the last non-empty
result, cuts on a character boundary (iconv -c, whose exit 1 for a cut
character no longer fails the step) and says when the report was cut.

Tests: the step tests read the workflow with the policy test's own
loader when PyYAML is absent, so they no longer skip; new tests cover an
unknown tool, a start record without lists, an empty result, the named
failures, the character-safe cap and its notice, and the last non-empty
result (21 tests).

Record: every behaviour change against main is named (timeout 45 to
30, the slug, first-attempt, variable and owner-only guards, the guard
step's exit 2, the display name and prompt, no issue, the two explicit
action inputs verified in the pinned action.yml, the usage artifact);
the fence receipt's flags are stated instead of "the same flag set"; the
cooldown waiver of 2026-10-03 is cited; and a numbers-only receipt of
local runs of this workflow's own prompt and claude_args at max effort
(10 of 20 turns, about $2.03 of $3) and of the num_turns measurement is
added. ci-least-privilege's stale issues-write lines are fixed in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sweep of the W4 drafts for the classes #894's pre-cue toolkit read
found, applied here: an audit step that succeeds without an execution
file now fails the job instead of leaving it green with nothing checked;
display_report and track_progress are asserted; the record states that
a public run's summary is public. The workflow has no paths input, so
the bash 3.2 empty-array class does not apply. 22 tests; actionlint and
zizmor report nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pre-cue toolkit read of 4d0a14d left six findings only partly fixed at
89d05dd, and the test count was stale again.

- The record now lists every flag difference between the fence receipt and
  this workflow's claude_args. The receipt's runs set claudeMdExcludes, so
  they do not show that --restricted alone keeps instruction files out, and
  native_proven is limited to the receipt's own flag set.
- The .git deny rules: a 2026-10-09 local subscription probe measured Read
  and Grep into .git as refused. Whether the empty Glob results come from the
  rules is pending a control run. Whether
  blockReadsOutsideWorkingDirectories binds Glob and Grep stays not
  established.
- The numbers step records the result's subtype through its name filter, in
  the usage record, the summary table and the failure message, so a
  turn-limit stop and a budget stop read apart. Two new tests; seven weakened
  copies are each caught.
- The by-name list now names the execution-file step 89d05dd added, and the
  other inputs and messages it had left out.
- The docs bullet adds the slug, first-attempt and owner-only guards. The
  record says why the triggering-actor clause stays.
- The source list adds action.yml's lines for track_progress,
  display_report and show_full_output.
- The test count is now 24.
- local-parity-receipt.json's LR entry gains its target pull request #897
  at 24821c5, its report's two blocking findings and the report's sha256.
  This is a marked 2026-10-09 amendment from the run's harness receipt, and
  #894's record cites it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…trol

A control run of the 2026-10-09 probe, with the same fence flags and the
deny rules removed, lists the .git files, finds both markers, returns the
.env marker through Grep, and reads every marker. With the rules, the same
calls returned nothing or were refused. So the empty Glob and Grep results
come from the deny rules, not from the tools skipping hidden paths. The
record now shows probe against control step by step, and the bounds table
and evidence classes say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the probe receipt

- R4, from the cc-native-practice lane's L3 read against claude-code-action
  v1.0.247 practice: the guard binds
  (secrets.ACTIONS_STEP_DEBUG || vars.ACTIONS_STEP_DEBUG) == 'true' and the
  same for ACTIONS_RUNNER_DEBUG. Only a boolean reaches the shell, and the
  guard refuses either setting. A test pins both bindings, and six weakened
  copies each fail it.
- From the J8 micro read of 61494a3: the publish step wrote the report with
  `jq -r`, which adds a newline, so a 60,000-byte report was announced as
  cut. It now uses `jq -j`, and a boundary test covers exactly 60,000 and
  60,001 bytes. The step comment now says it publishes the last non-empty
  result.
- The deny-rule probe and its control are kept as deny-probe-receipt.json:
  flags, client, model and authentication, every call and its outcome, and
  each stream's sha256.
- The record states that the workflow is unchanged from e48de2e to the
  merge base aba02ec, and no longer says the documentation exceeds the runs
  for the deny-rule question.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
seathatflowsinourveins and others added 5 commits October 9, 2026 19:28
…e the audit budget to $5

R5, quality and correctness only. The numbers step counts every tool-list
entry that is not a string as a forbidden tool, named "non-string tool
entry", instead of dropping it (GPT designated read of #895, P2). A new
test pins the whole claude_args list and the whole --settings JSON. The
client budget moves from $3 to $5 with the turn limit at 20, from the
command center's measurement-based caps: the one measured run used 10
turns and $2.03. The shape tests now read the workflow with the policy
test's strict loader, so none skips without PyYAML. The record gains a
dated R5 section, the cap derivation, the shared agent-mode origin-URL
sentence and the follow-ups line, and withdraws the earlier dry estimate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… budget stops, and drop --max-turns

R6. The cost bound becomes the budget times the measured overrun factor 1.10
($5.50); a budget stop at or under it publishes and is named, and the
publish step runs on the bounds step's own outcome because the action
fails its step on any budget stop. --max-turns 20 leaves claude_args:
the pinned action fails a success whose num_turns exceeds it, and on
Claude Code 2.1.295 num_turns counts transcript messages (57 for 12
requests); the bounds step's check of 1 to 20 assistant turns stays. The
exact --settings pin compares canonical JSON, so 1 no longer passes for
true. The record gains the shared cost paragraph and an upstream-issue
draft (not filed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…op note, stale turn text

The budget-stop exemption is tested to waive only the success and result-text checks (a stop that breaks any other
bound fails, named). The budget-stop note moves to the publish step, so it is written only once every bound passed.
Record and workflow comments no longer describe a client turn limit or an error_max_turns stop. N5-N9 are
dispositioned in the record's R7 section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…laimed were held

The GPT read of 0cf13fc found R7's N8/N9 disposition overstated the tests. The action step's complete input set is
now compared, and budget stops at $0.01, $1 and $4.99 must pass, so an added input or a cost floor fails. The record
corrects the disposition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dget-floor pins

The record names the pinned upstream sources the two R8 tests rely on (the action's input declarations at 2dca132f,
the Agent SDK 0.3.295 result type, Python 3.13 unittest assertEqual and subTest), states that the 10-input set and the
absent cost floor are this repository's acceptance policy over an unchanged workflow, and labels the mutation results
synthetic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@seathatflowsinourveins
seathatflowsinourveins force-pushed the claude/api-actions-w4a-harness-audit-20261008 branch from 803cc1e to b41b969 Compare October 9, 2026 23:30
@seathatflowsinourveins
seathatflowsinourveins marked this pull request as ready for review October 9, 2026 23:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T23:53:11.794226Z b41b969 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b41b969a27

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/harness-audit.yml Outdated
Comment thread .github/workflows/harness-audit.yml
…les out of the audit session

R10, the two Codex P2 threads at b41b969:
- harness-audit.yml:231: after a budget stop without result text, the bounds and publish steps use the text the
  model wrote until then, as claude-pr-review.yml does; every other subtype still gets result text only.
- harness-audit.yml:125: the audit step sets CLAUDE_CODE_DISABLE_CLAUDE_MDS=1 (documented); a measured 2.1.295
  probe shows project, imported, rules and nested instruction files load only without both --restricted and
  --setting-sources user, and not at all with the switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@seathatflowsinourveins
seathatflowsinourveins merged commit b0b4b10 into main Oct 10, 2026
36 checks passed
@seathatflowsinourveins
seathatflowsinourveins deleted the claude/api-actions-w4a-harness-audit-20261008 branch October 10, 2026 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lane:foundation Foundation lane: Claude/Codex setup, hosts, memory, RAG, research, workers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant