feat(knowledge): harden docpage-digest pipeline (0.13.5) - #3099
Conversation
Interview-ratified #3015 bundle: fence mandate, standing check-fences-exact.py / check-snippets.py gates, pin-on-report plus hash manifest, subagent-death fallback ladder, and gate-as-claim blind-spot enumeration. Bumps knowledge 0.13.4 → 0.13.5 and keeps the 0.13.4 / #3014 heading. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude finished @kyle-sexton's task in 1m 24s —— View job Security review —
|
|
Claude finished @kyle-sexton's task in 4m 56s —— View job Claude code review —
|
|
Last security-reviewed head: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 757faca97c
ℹ️ 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".
editorconfig-checker flags physical trailing whitespace in *.py. The load-bearing trailing space now lives in a KEEP constant so the negative-control payload stays exact without dirtying the file. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude has reviewed this PR 3 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Blank Prompt-snippets is not a none-marker. Empty fence payloads do not match the source. A leftover blockquote or inline span is still a forbidden carrier when a later fence is valid. H2 lines inside a fence are payload, not section boundaries. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude finished @cursor[bot]'s task in 6m 45s —— View job Code review —
|
CommonMark closers must be at least as long as the opener. A 3-tick line inside a 4-tick wrapper is payload, not a close — the old any-3+ rule truncated nested source examples to "" or a prose prefix. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude finished @cursor[bot]'s task in 2m 41s —— View job Code review —
|
…3100) ## Summary Compress the session-flow handoff instruction walk (`save-point.md`, `structure.md`, `skills/handoff/SKILL.md`) under docs-hygiene flavor-only discipline. Re-review the Stop-hook escalation from #3018; no defect found, hook not shipped. ## Fix Author-time compression of the three named files: drop filler and verbose verbs that do not carry contract meaning. Preserve find-handoff detection contract (rails, copy instruction, `Read @…-handoff-…` directive, `Re-arm <i> of <n> — <L> lines:`), redaction rules, rooted-path / `Handoff origin:` rationale, and STOP / output-order contract. Bump session-flow 0.32.2 → 0.32.3. Stop-hook re-review: 0.26.1 already shipped the STOP/output-order contract; one observed occurrence; find-handoff rung 1 still recovers file-mode; the 0.22% cut does not change occupancy. No hook change. ## Test plan - [x] `markdownlint-cli2` on the three compressed files + CHANGELOG: 0 issues - [x] `scripts/changelog-parity.sh --check --check-bump origin/main --check-order --check-preserved origin/main` - [x] Contract tokens remain: rails, copy instruction, Read @…-handoff-…, Re-arm header, redaction markers, STOP / output-order - [x] Byte delta vs author-time snapshots: 188 B / 0.22% (save-point 152 B, structure 27 B, SKILL 9 B) ## Verification - `markdownlint-cli2` on the three files + CHANGELOG: 0 issues. - Changelog-parity `--check`, `--check-bump origin/main`, `--check-order`, `--check-preserved origin/main`: all pass. - Contract-token grep: rails, copy instruction, `Read @…-handoff-…`, `Re-arm <i> of <n> — <L> lines:`, redaction markers, STOP / output-order all still present. - Byte savings vs `/tmp/wt-3018-snap`: save-point 40831→40679 (152 B), structure 23296→23269 (27 B), SKILL 19641→19632 (9 B); total 188 B / 0.22%. ## Related - Closes #3018 - Follows #3097 / #3098 / #3099 - Stop-hook re-review; no defect — hook not shipped Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Closes #3015
Summary
Lands the interview-ratified
/knowledge:docpage-digestpipeline-hardening bundle from the 9-slice cloud-fleet corpus run. Knowledge plugin0.13.4→0.13.5. Keeps the0.13.4/ #3014 heading.Fix
**CN.**label. Blockquotes and inline code spans are forbidden quote carriers.scripts/check-fences-exact.pyandscripts/check-snippets.pyalongside the quote gate. Both fail loud on zero-parse and compare payloads without.strip(). Negative-control suites (test_check_*.py) are the evidence a PASS needs.verification/pin-manifest.jsonfreezes the tree; each arm restates the hashes it audited. A verdict file on disk is an intermediate write, never a report.SKILL.mdenumerates each gate's parse surface. Format and pin-manifest shape live incontext/pipeline-hardening.md.Verification
bash plugins/knowledge/skills/docpage-digest/scripts/check-fences-exact.test.sh— 14/14 PASS (zero-parse, indented fence, lost trailing space, blockquote/inline substitutes, fabricated quote).bash plugins/knowledge/skills/docpage-digest/scripts/check-snippets.test.sh— 8/8 PASS (missing section, unparsed prose, fabricated snippet, indented fence, recognised none-marker).scripts/check-changelog-parity.sh --check,--check-order,--check-bump origin/mainPASS. Newest heading is## [0.13.5];## [0.13.4](knowledge plugin: publisher-profile amendment bundle from the 9-slice cloud-fleet corpus run #3014) is retained.CHECK_SKILL_SKILLS_ROOT=plugins/knowledge/skillscheck-skill.sh --require-evals docpage-digestPASS (0 errors). Trigger phrases preserved. Script tests invoked by the checker.npx markdownlint-cli2on the four markdown files: 0 issues.check-evals-quality.shPASS (only the pre-existing Q4 narration warn on eval id=2).Related
Refs the 9-slice interview + dual-validator pass recorded in the issue body. Profile amendments already landed as #3014 / 0.13.4. Graduation-gate residual-verification is out of scope (operator decision record; binds graduation, not this skill PR).