build(preflight): install CommonMark runtime - #312
Conversation
Punchcard-Session: brisk-workshop-valley-n7
|
Codex review: found issues before merge. Reviewed August 23, 2026, 10:24 PM ET / August 24, 2026, 02:24 UTC. ClawSweeper reviewWhat this changesThis PR pins CommonMark, installs dependencies in three GitHub workflows, and adds a runtime/workflow contract test for future external-merge preflight parsing. Merge readiness⛔ Blocked by patch quality or review findings - 6 items remain Keep this member-authored draft open: current main does not contain the CommonMark runtime prerequisite, but the unchanged contract test has a P1 assertion that cannot pass. Landing also needs a maintainer decision to adopt the parser dependency for the paired preflight work. Priority: P2 Review scores
Verification
How this fits togetherClownfish’s external-merge preflight runs in GitHub Actions before automated adoption and turns pull-request review evidence into a merge decision. This change supplies a locked Markdown parser runtime for the paired review-text parsing work and makes project workflows install it first. flowchart LR
A[Locked CommonMark package] --> B[Dependency installation]
B --> C[Validation workflow]
B --> D[External merge preflight]
B --> E[Cluster worker]
D --> F[Review-text parsing]
F --> G[Merge decision]
Decision needed
Why: The mechanical test repair is clear, but adding a new core runtime dependency and CI installation boundary is an architectural choice that cannot be inferred from this prerequisite alone. Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Repair the visible-Markdown test fixture, then adopt the locked no-lifecycle-install parser runtime only if maintainers approve the paired preflight parser direction. Do we have a high-confidence way to reproduce the issue? Yes—source inspection shows the positive assertion cannot observe a reference-definition title through this walker; no test was executed under the read-only review policy. Is this the best way to solve the issue? No—the intended contract needs visible Markdown for its positive sentinel, and the dependency adoption still needs explicit maintainer direction. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 90d7db5c754e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (46 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