Skip to content

feat(debugging): search for defect siblings, propose an always-on signal, and state the legitimate-state test - #12200

Merged
kyle-sexton merged 9 commits into
mainfrom
feat/debugging-12146-signal-gate
Nov 2, 2026
Merged

kyle-sexton merged 9 commits into
mainfrom
feat/debugging-12146-signal-gate

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #12146

Replaces #12164

Summary

Owner-login replacement for #12164 (the lanes App cannot add a new .sh scaffold or edit PR bodies). This branch merges #12164's head (66894e62f7) onto current main and adds the fix for its open review thread: only the default when-instrumented path of the always_on_signal gate had an eval. Phase 6 of /debugging:debug searches for the fixed defect's siblings, proposes one cheap always-on signal gated by always_on_signal in docs/conventions/debugging.yaml, and states the legitimate-state test on the null-check line. See #12164 for the full change description.

Fix

Verification

  • python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/debugging/evals: no FAIL, exit 0. The new case's regex grader sorts all 5 samples correctly. Its only WARNs are the same as the sibling cases': allowed_tools Bash/Edit/Write need --allow-tools, and the llm samples need judge calibration.
  • bash -n on the new scaffold: clean.
  • scripts/check-changelog-fragments.sh --check: all 8 fragments valid.
  • scripts/check-line-citations.py: clean.
  • Pre-push check-affected: passed.

Not verified:

  • The eval suite was not run (claude plugin eval, a paid run).
  • docs/contracts/config-cascade/README.md still has no Implementers row for the debugging surface. That table is generated by scripts/sync-config-cascade-semantics.py; this is carried over from feat(debugging): search for defect siblings, propose an always-on signal, and state the legitimate-state test in #12164 and not changed here.
  • The skill skips the convention file when the repo root is at or above HOME. The new case relies on the eval workspace not being HOME, as the 40+ other scaffolds that commit a docs/conventions/*.yaml do (for example plugins/testing/evals/write-refactor-off).

Related

🤖 Generated with Claude Code

melodic-automation-lanes Bot and others added 6 commits November 1, 2026 23:09
Lane-Activity: work-resolve-issue/resolve-issue
…ugging-12146-signal-gate

# Conflicts:
#	docs/upstream/cursor-pstack.md
Add phase6-signal-gate-never: the instrumented checkout fix with a
committed docs/conventions/debugging.yaml setting always_on_signal to
never, graded by a regex on the reported value and an llm grader that no
signal is proposed. Set the executable bit on the sibling case's
scaffold.sh to match the other scaffolds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ILL.md lines

The row cited debug/SKILL.md :337, :183 and :323; after this change the
second-failed-fix rule is at :383, the restart row at :200 and the
workaround rule at :369.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-02T01:58:15.598771Z 52954d1 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: 52954d1741

ℹ️ 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 plugins/debugging/skills/debug/SKILL.md Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 52954d174100efee6e02a7842532eae1cc0a8a30; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/debugging/skills/debug/SKILL.md Resolved
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review, incremental (588ff7bf → b06a19bf), PR #12200

Scope. I read every hunk of the 9 files in .claude-lane/incremental.diff and used pr.diff for context. To check the new wording I also read the head plugins/debugging/lib/resolve-convention-home.sh (its exit-code contract), plugins/debugging/README.md (Configuration) and plugins/debugging/skills/debug/SKILL.md:300-389. This is round 3 of a cap of 3. The file says past the cap: no, so the cap did not apply.

The new changes check out:

  • SKILL.md:314-317: exit 4 now skips the file, so the default applies. This matches the resolver's own contract at resolve-convention-home.sh:90-91 ("the caller uses the bundled defaults"). Before this change, exit 4 sent the run to docs/conventions, which would have read a team file the repository had declined. The hunk replaces 4 lines with 4, so no later line numbers shift.
  • New case phase6-signal-gate-bound-home:
    • The scaffold's AGENTS.md region and Documentation/conventions directory pass the resolver's grammar. The token is valid, the directory exists, and its case matches the disk. So the resolver exits 0 and prints Documentation/conventions.
    • The stray docs/conventions/debugging.yaml (always) makes the case fail a run that reads the default path.
    • Both regex pass samples match always_on_signal:?\s*?never`, and none of the fail samples do.
  • The schema description now says "convention home (default docs/conventions)", which matches the README.

Findings (neither can sit on a changed line in this round's scope):

  1. The changelog fragment does not describe what ships (advisory, restated from the last round and widened by this one). .changes/debugging/work-resolve-issue-issue-12146-41358889357-1-9f297cce.md:14-16:
    • It still lists only two eval cases. It leaves out fix-handles-legitimate-missing-coupon (raised last round) and this round's phase6-signal-gate-bound-home.
    • Line 14 still places the key in "a repository's docs/conventions/debugging.yaml". The skill now reads it from the convention home the AGENTS.md/CLAUDE.md pointer binds, and a declined home falls back to the default. A user reading the release notes in a repository with a bound home would put the file in the wrong place.
    • Fix: say "in debugging.yaml under the repository's convention home (default docs/conventions)", as the README and schema now do, and add a line for each of the two missing cases.
  2. A debug/SKILL.md citation is still off by 3 (restated from the last round; the file is unchanged since then). docs/upstream/cursor-pstack.md:92 cites debug/SKILL.md:383, which is now a blank line. The second-failed-fix escalation paragraph it means is at SKILL.md:386. The :369 citation on line 87 is correct at this head. Last round's summary also named a second citation as off by 3. That entry is cut off in the prior-findings file, and I could not find it again by searching cursor-pstack.md, so recheck it against the head.

Prior inline finding: the legitimate-state eval advisory (#12200 (comment)) was settled last round by fix-handles-legitimate-missing-coupon. I have not posted it again or counted it.

Other checks

Author-claimed, not verified by this lane: the PR body's validate-cases.py, bash -n, changelog-fragment, check-line-citations.py and check-affected results. The author also says the eval suite was not run.

Spend (not a finding): the new case adds 3 runs per eval sweep (runs: 3, max_turns: 40, timeout_seconds: 900). These draw on prepaid credit.

I found no embedded instructions in the PR context or the prior-findings file.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12200, incremental (588ff7bf → b06a19bf)

No security issues found.

critical-findings: 0

I read every hunk of all 9 in-scope files in .claude-lane/incremental.diff.

What I checked

  • Trusted paths: none of the 9 files matches a TRUSTED PATHS: glob. The increment does not touch any trust control, token request, kill switch, merge hold or workflow.
  • Plugin manifests: no .claude-plugin/plugin.json or marketplace.json changes, so there are no manifest lines to report.
  • New eval case phase6-signal-gate-bound-home/:
    • scaffold.sh builds a local git repo from fixed, quoted heredocs (<<'MD', <<'YAML', <<'PY'). It takes no outside input, makes no network calls and uses no credentials.
    • allowed_tools (Read, Glob, Grep, Skill, Bash, Edit, Write) matches the sibling eval cases.
    • The graders and samples are static text and JSON.
  • debugging.schema.json: only the description string changed (it now says "convention home" where it named a fixed path). No change to keys, types or additionalProperties.
  • skills/debug/SKILL.md, Phase 6 resolver exit codes:
    • Exit 4 ("the repository declined a home") used to fall back to docs/conventions/debugging.yaml. It now skips the file, the same way exit 5 does.
    • This narrows what gets read: when a repo declines a home, a stray docs/conventions file no longer sets the value.
    • The setting it affects is always_on_signal. It only decides whether Phase 6 proposes a log line, metric or assertion. That proposal stays out of the fix commit and gets its own review. It does not gate cost, permissions, autonomy or any protected class in the instruction exception register (irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance, agent-authority).
    • The resolver is still the only parser ("never parse the instruction file yourself" is unchanged).
  • PR context: I found no embedded instructions aimed at this lane.

Spend (not a finding): the new eval case uses prepaid model usage when the eval suite runs: runs: 3, max_turns: 40, a 900-second timeout, plus the LLM grader calls.

Prior findings: the only earlier post is one summary at 588ff7bf with no findings, so nothing is repeated. The PR is not past the round cap (0 of 3 rounds).

kyle-sexton and others added 3 commits November 1, 2026 22:08
Phase 6 now reads `<home>/debugging.yaml` through the shared
resolve-convention-home.sh copy instead of a fixed docs/conventions path, so
a repository whose pointer region names another home keeps its setting.

A new eval case, fix-handles-legitimate-missing-coupon, grades the
legitimate-state test: an optional coupon left blank is handled as the fix,
not rejected as a symptom guard.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolver exit 4 means the repository declined a convention home, so the
bundled default applies and no file is read; only exit 1 falls back to
docs/conventions. A new eval case, phase6-signal-gate-bound-home, binds the
home to Documentation/conventions with a contrary docs/conventions file, so
a run that ignores the pointer fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 062dbd6 Nov 2, 2026
55 checks passed
@kyle-sexton
kyle-sexton deleted the feat/debugging-12146-signal-gate branch November 2, 2026 03:54
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.

feat(debugging): place the sibling-search, always-on-signal and legitimate-state principle parts in /debugging:debug

1 participant