Skip to content

docs(guardrails): record the #9768 delete guard arm's measured wall time - #13272

Merged
kyle-sexton merged 2 commits into
mainfrom
docs/5946-delete-guard-wall-time
Nov 4, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
docs/5946-delete-guard-wall-time

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Refs: #5946

Summary

This PR delivers the one item left on #5946, not the whole issue: the block-root-delete-target #9768 entry in the hook budget accounting said its wall time "is recorded under #5946", and no measurement existed. This PR runs it and puts the figures in that entry. The common call shows no change outside noise; the four newly judged shapes cost +359 to +428 ms.

Fix

Verification

On melo-lap-001's Windows lane (on AC, Git Bash 5.3.15, Node 24.21.0, hyperfine 2.0.0, harness sha256 e1bbebb9…), 2026-11-04T13:48Z to 15:06Z, guardrails at 772577404a against its parent. Sanity first: the head arm refused all 6 deny payloads, and the base arm let through the 4 that #9768 added (watch, cmd, echo | sh, heredoc).

hyperfine -N, 300 runs per arm per payload in five alternating blocks, all exit 0:

Payload base (ms) head (ms) change (ms)
git status --short 276.4 265.2 −11.2
rm -rf ./build (control) 832.4 725.1 −107.4
eval 'rm -rf build/x' 808.4 729.0 −79.4
wsl rm -rf build/x 787.0 634.4 −152.6
watch rm -rf build/x 295.2 654.5 +359.3
cmd //c rd //s //q build 250.8 679.1 +428.3
echo 'rm -rf build/x' | sh 279.6 658.4 +378.8
bash heredoc 257.4 648.1 +390.7

Fan-out harness, 15 interleaved rounds of --runs 7, paired median change: Bash −16 ms, $(…) +9 ms, against the untouched Write −3 ms and Edit +16 ms.

Read these with one limit: the laptop was busy, with other lanes and my own #12891 eval runs alongside (S 19 to 66 ms, hyperfine floor 128 ms). The control moved −107 ms, so differences of that size are noise. The four increases are well above it.

#5946 also asked to check the #9770 entry's figures. The hook budget accounting has no #9770 entry to check: #9770 closed by leaving such an operand alone, which the README records as "a measured decision", and this PR adds a sentence saying so. No sub-issue of #5946 is open.

Left out: local test suites, since CI runs them and this changes prose only.

Remaining

Related

  • The earlier claim stopped at a refused copy to a remote host. The prepared scripts target this machine, so no remote copy was needed.

🤖 Generated with Claude Code

Replaces the pointer to #5946 in the hook budget accounting with the
figures from the Windows reference lane.

Closes #5946

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 4, 2026 15:12
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 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-11-04T15:14:00.858792Z 6f70c86 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.

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed c01e71c33885daeb0efc5f2719f2dee2be665339: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13272 at c01e71c3 (incremental since 6f70c86f)

I found no security issues. This was an incremental review. I read the one hunk of the one file in scope.

Prior findings: the lane's earlier review at 6f70c86f reported 0 findings, so there is nothing to restate.

This review was blocking only: the prior-findings file says "blocking only: yes", so only CRITICAL and IMPORTANT findings would have been posted. There were none.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed c01e71c33885daeb0efc5f2719f2dee2be665339: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, since 6f70c86f): no findings. This lane already reviewed an earlier head, so this review reported blocking findings only. It found none.

Scope. The push changed one file, plugins/guardrails/README.md, and I read its whole hunk. It adds one sentence to the end of the #9768 hook-budget entry (README.md#L498-L499). The sentence says #9770 added no judged shape, because it leaves an unresolved expansion alone, so it has no budget entry.

Checked against the code and the PR:

Closing issue #5946. My earlier review noted that #5946 asked for the #9770 entry's figures to be checked, and that the README has no such entry. The new sentence now records that in the README.

Not verified by me. The timing figures and host details are what the author reports. I could not reproduce them here.

Other checks:

  • No plugin manifest changed.
  • The PR context contains no embedded instructions.
  • The earlier summary-only post had no findings to carry forward.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 6f70c86fee37a586eaf441558bf1349bbd186b8c. What it wrote, as data:

What it wrote (26 lines)
Summary: The PR says `Closes #5946`, but the diff only covers the issue's last hook-budget item, so
  it doesn't deliver the issue as judged. The diff is docs only. It replaces the #9768 entry's
  "recorded under #5946" pointer in `plugins/guardrails/README.md` with measured figures and adds a
  no-bump change file. The figures match the PR body's tables, and the arithmetic holds: the four
  new shapes cost +359 to +428 ms, about 11 to 13 S at the 33 ms median. That overage is recorded as
  Rule 2 spawn-reduction work and the budget is not relaxed, as the 2026-10-30 decision asks. The
  common call shows no change outside noise. CI was green on the judged head: the shell, lint,
  plugin and test-bash jobs passed, and test-python and test-node were skipped by design for a prose
  change. The diff has no secrets and touches no takeover-set files. The blocking problem is the
  spec. A `closes` link means #5946's whole body must be delivered, apart from items that
  `person_checks` or `credited_siblings` excuse. spec-text.json has neither, so nothing is excused.
  The body's acceptance criteria are still judged in full: per-mechanism deny and allow cases, the
  quoted-prose case, the protected-tree cases and the guard header and README listings. This diff
  delivers none of them. They were done in earlier slice PRs, and this PR's body credits none of
  those PRs on a `Siblings:` line. No capture was recorded.
- PR body: `Closes #5946` makes the whole issue the spec, but nothing excuses the body's acceptance
  criteria. Those are the per-mechanism deny/allow stdin-JSON cases, quoted prose staying allowed,
  the protected-tree cases and the guard header/README mechanism lists. Add a `Siblings:` line
  naming the merged PRs that delivered them with a `Refs: #5946` line (for example #11316, #11620
  and #11855, plus any slice PRs that referenced #5946), so they are credited. Otherwise this diff
  alone doesn't deliver the issue.
- plugins/guardrails/README.md:485: the 2026-10-30 decision asks for the #9770 entry's figures, and
  the 2026-11-02 comment asks to check them in the same pass. The PR body says no #9770 entry
  exists, but the diff doesn't show that. State in the README, next to the hook budget accounting,
  that #9770 added no judged shape and so has no budget entry, so the item can be checked from the
  diff.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 4, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 4, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 0908944 Nov 4, 2026
53 checks passed
@kyle-sexton
kyle-sexton deleted the docs/5946-delete-guard-wall-time branch November 4, 2026 15:37
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