build(preflight): install CommonMark runtime - #312
Conversation
Punchcard-Session: brisk-workshop-valley-n7
|
Codex review: needs changes before merge. Reviewed August 29, 2026, 8:00 AM ET / 12:00 UTC. ClawSweeper reviewWhat this changesThe PR pins CommonMark, installs dependencies before three CI workflows, and adds a contract test for parser availability and Markdown text extraction. Merge readiness⛔ Blocked by patch quality or review findings - 4 items remain Keep this member-authored prerequisite PR open, but its added boundary test has a definite P1 failure: it expects a reference-definition title that the test’s text-only AST walk discards. Priority: P2 Review scores
Verification
How this fits togetherClownfish’s validation and external-merge-preflight workflows run Node scripts that inspect pull-request review text. This PR supplies a locked Markdown parser dependency before those workflows run their commands. flowchart LR
A[Pull request review text] --> B[External merge preflight]
B --> C[CI workflow]
C --> D[Install locked dependencies]
D --> E[CommonMark parser]
E --> F[Review-text decision]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep one locked CommonMark runtime installed before each parser consumer, correct the boundary fixture so it tests visible text versus reference-definition metadata, and then land the paired consumer work in #311. Do we have a high-confidence way to reproduce the issue? Yes—source inspection gives a high-confidence reproduction: the helper only collects text/code literals, yet the asserted positive sentinel appears only in a reference-definition title. Is this the best way to solve the issue? No: the locked dependency and workflow ordering address the stated prerequisite, but the current fixture must be corrected before it can prove the advertised parsing boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 00c1adb10bbe. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (50 earlier review cycles; latest 8 shown)
|
Summary
0.31.2with an npm lockfileWhy
Clownfish PR #311 needs authoritative CommonMark parsing in the external-merge
preflight. Repeated review found that a handwritten Markdown state machine was
reimplementing parser semantics and accumulating bypasses. This prerequisite PR
adds only the maintained parser runtime and its workflow installation boundary;
it does not change preflight authorization behavior.
Validation
node --test test/commonmark-runtime.test.mjspassesnpm run validatevalidates 6,707 jobsnpm testpasses all 557 testsnpm audit --omit=devreports zero vulnerabilities31f2feffac0d58ca1beded6ab883957acb7d5ae0Risk
The workflows gain an npm install step. The runtime version and transitive graph
are locked, lifecycle scripts are disabled, and audit/funding network calls are
disabled during CI installation. Exact-head hosted CI must still exercise the
clean-runner installation and cache ordering before merge.
Maintainer decision
Adopt
commonmark@0.31.2as the locked parser runtime for external-mergepreflight review text. The reference parser owns Markdown syntax; Clownfish owns
the authorization projection over its AST. The paired parser PR must load it
only in the review-text parsing path so apply-only execution remains independent.
Any incompatible parser or contract change requires a separately reviewed
dependency update.
Gate disposition
installation before all 557 tests