Reject YAML non-printable frontmatter residuals - #3169
Conversation
|
Implementation review complete. Required CI, docs governance, Smart CI self-tests, visual regression, Chromium/Firefox/mobile browser matrices, backend solution, containers, security, and dependency review are green on |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b35149425f
ℹ️ 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".
|
Left draft. This branch was updated the morning of 2026-09-18 and is treated as in-flight (criterion 4): not marked ready, not reviewed as complete, not merged. Resume from the existing head; do not steal the session. |
|
Not a finding: tabs in comment-only frontmatter lines are already permitted, and I measured it. The whole-line check is not const commentOnly = /^ *#/.test(line)
const forbiddenCharacter = commentOnly ? FORBIDDEN_COMMENT_CONTROL : FORBIDDEN_SCALAR_CONTROLand Measured directly by injecting each shape into
The last row is a real residual, on the other branch of the ternary: a horizontal tab inside a non-comment frontmatter line is now rejected although a YAML loader accepts a tab inside a quoted (or plain) scalar, so this is a new over-strictness, not the fail-open shape the check targets. Leading-tab indentation already has its own earlier, correctly-worded error, so the structure check could use Non-blocking under global law 2a: the only rule file this validator reads is |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
Refs #3006.
Follow-up to merged PR #3134 for two unresolved Codex review findings:
Regression-first evidence
c95a670827706425eb0cda66b231f34a369ac993adds focused coverage for:Scope
scripts/check-docs-governance.mjsscripts/check-docs-governance.review-residuals.test.mjsNo workflow, policy, rule-frontmatter, or canonical status changes.
Verification
Exact head
b35149425fb0f0329169e0c572d81f80105a731chas green required CI, Smart CI self-tests, docs governance, security, backend solution, containers, visual regression, and Chromium/Firefox/mobile browser matrices. The advisory WebKit internal-error failure is the pre-existing #2763 flake and is owned by #3157.