Repository navigation
fix(ai-slop, testing): quote YAML-indicator branch names in findings frontmatter (0.3.7, 0.7.5) - #3241
Conversation
|
Claude finished @kyle-sexton's task in 1m 39s —— View job Security review — no issues found
Scope reviewed: the full diff ( Summary: This PR only changes how a
No vulnerabilities identified. This change is itself a reliability/integrity fix for the findings pipeline (a misparsed |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5e188b2e9f
ℹ️ 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".
|
Last security-reviewed head: |
44d204d to
181b868
Compare
|
Claude finished @cursor[bot]'s task in 5m 3s —— View job Code review — 1 finding
Scope: Finding (posted inline on
|
|
Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
…frontmatter (0.3.5, 0.7.5) Both `detector-findings` producers interpolated the branch name into their findings frontmatter as a bare YAML plain scalar. `git check-ref-format --branch` accepts `@foo`, `!foo`, `#foo` and `&foo`; emitted bare, `#foo` and `&foo` parse to null and `@foo`/`!foo` are outright YAML parse errors, so the `branch:` value a consumer reads is not the branch name. The consumer admits a findings file only when that value equals the current branch exactly (review/fanout fix-pass-mode.md, "Step 1"), so a misparse left the whole file unmatched — every finding for that branch dropped with no error, and nothing distinguishing it from "no findings". Both producers now route the value through a `yaml_scalar()` helper. Quoting is conditional, matching the reference implementation already on main in claude-config's emitter: an ordinary branch name stays a byte-identical unquoted scalar, so the wire format for the common path does not move. The predicate is duplicated per producer rather than extracted into a shared cross-plugin library, which would be a structural invention binding surfaces beyond this fix; a differential harness over 34 inputs confirmed the awk and bash implementations agree byte-for-byte. Regression coverage asserts both directions in each producer and was proven non-vacuous by mutation: reverting the helper call turns the indicator cases red, and making the predicate unconditional turns the ordinary-branch cases red. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014QH5jtNyrDCYYsDgxMxkHk (cherry picked from commit cecd44a)
…sample A five-name sample stayed green after |, >, %, backtick, " and ' were dropped from a sibling predicate — the drift acceptance criterion 3 forbids. Both suites now iterate every indicator the producer can actually reach. Stdin is closed on emit/grep so a missing-file grep cannot hang the suite. Closes #3179 Co-authored-by: Kyle Sexton <[email protected]>
true/null/123 and the other implicit types type-coerce as bare scalars and silently drop findings. Also unparsable spelling for typos. Co-authored-by: Kyle Sexton <[email protected]>
181b868 to
0e76d1d
Compare
|
Claude finished @kyle-sexton's task in 1m 47s —— View job Security review — no issues found
Scope reviewed: full diff ( What changed since the last security-reviewed head: both
No vulnerabilities identified. This follow-up commit is scope-correct — it hardens the YAML-quoting predicate further (a correctness/integrity fix for the findings pipeline) without introducing new input sources or trust-boundary changes. |
|
Claude finished @kyle-sexton's task in 40s —— View job Code review — skipped
Per |
Summary
Two
detector-findingsproducers interpolated the branch name into findings frontmatter as a bare YAML plain scalar.git check-ref-format --branchaccepts@foo,!foo,#fooand&foo. Emitted bare,#fooand&fooparse to null and@foo/!fooare YAML parse errors, so thebranch:value a consumer reads is not the branch name.The consumer admits a findings file only when that value equals the current branch exactly (
review:fanoutfix-pass-mode.md Step 1), so a misparse silently dropped every finding for that branch — with no error, and nothing distinguishing it from "no findings".Fix
Both producers now route the value through a
yaml_scalar()helper, matching the reference already onmaininclaude-config:audit-instructions. Quoting is conditional: an ordinary branch name stays a byte-identical unquoted scalar. The predicate is duplicated per producer rather than extracted into a shared library (plugins are portable). Tests now iterate the whole reachable indicator class, not a five-name sample.ai-slop 0.3.5, testing 0.7.5.
Verification
plugins/ai-slop/skills/audit/scripts/detect.test.sh— 116/116plugins/testing/skills/audit/scripts/cant-fail-scan.test.sh— 89/89scripts/check-changelog-parity.sh --check-bump origin/main— passThe leading-single-quote case (
'foo) that hung the first widening on Windows Git Bash does not hang here. Stdin is closed on emit/grep so a missing-file grep cannot fall through to stdin.Related
Closes #3179