docs: correct three contract comments in types.ts #42
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/contract-comment-accuracy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #40, from review
01M44JG9B4Q3392GK4XWBNRQK9(summary-only findings01M44K0VQRN7Y3M9EDNWXDQRFG,01M44K1Z23FBMBS7ZXYYQEDM2Yand01M44JYTM6XFMG5EG6CWK9401J).Three comments in
src/contract/types.tsdescribed the code wrongly:createInlineReconciler()posts one inline comment per finding, and findings on the same display line share one conversation, whichsettle()resolves together. It now says "one inline comment".headShacomment said the value is as of the event. Aworkflow_dispatchrun takes it from a laterforge.getPull()call. It now names the source for each event.service-sessionmodule that doesn't exist. It now namessession, matching how the neighbouring headings namewaitandorchestrator;createReviewSession()lives insrc/review/session.ts.It targets
main, because these comments are older than #40.🤖 Generated with Claude Code
Review
01M44MA8Z8WP4CKWK93AKVSDF7— head821a5ced4bc360560540f1ef234e267c43f0514fReview — j4k-oss/review-wrapper @
82743dc8b5Scope: diff against base tree
e69943819640Status: dispatched — coverage complete (5/5 slots terminal)
Facts: current review-wide projection
Computed under:
Findings (1)
low — README says manual dispatch gets PR details from the event payload
01M44MGAPFPZ6WW2CP45Y0ZQ8VREADME.md(snippet)01M44MJ3R4V8GXQWJ9Y3K94SAK· valid: The exact grounded README excerpt attributes the run inputs to the event payload. The reviewer supplies a specific static trace of workflow_dispatch: the payload provides pr_number, while forge.getPull supplies the head SHA, branches, and fork status. That makes the unqualified README description misleading for manual dispatch. The separate environment-table wording is not quoted and is not needed to support this low-severity finding.Other claims
01M44MFV8NGBKS47H4Z81TR2ZWlow — README says manual dispatch gets PR inputs from the event payloadCoverage
Coverage pass: 01M44MA92HDEV445N97HPXVM6J
Accounting: complete
Slot health: healthy
@ -21,3 +21,3 @@readonly forgeHost: string;readonly prNumber: number;/** PR head SHA as of the event (workflow_dispatch: fetched via the forge). *//** PR head SHA: event payload on pull_request_target, forge lookup on workflow_dispatch. */medium — headSha comment duplicates the supported event set
lens
restated-sets· armdefault· tally 1 valid / 0 invalid / 0 uncertainclaim
01M44KTCGBF8B6JSK6071P04DYof review01M44KJDCVN043SBMQ63FJPTA0Fixed in
821a5ce. The comment now points atreadWrapperInputsinsrc/wrapper/event-context.tsinstead of naming the events.This is review
01M44KJDCVN043SBMQ63FJPTA0of760cb97. Run 64404 lost its project-docs slot to a sandbox infrastructure failure; the fix push starts a new review with every slot. The finding with a thread,01M44KTCGBF8B6JSK6071P04DY(theheadShacomment lists the events), is fixed in821a5ceand answered there, and its duplicate01M44KV1TRM585MXA446CTQCT1is covered by it.01M44KTYYGN97NH6CM0JYRE8J2(the README's environment table says a dispatch run's PR inputs come from the event payload) is summary-only, about text this PR doesn't change. It is valid: aworkflow_dispatchpayload carries onlypr_number, andreadWrapperInputsfetches the rest withforge.getPull. #37 already rewrites that row to say a dispatch run fetches the PR's current state from the forge.This is review
01M44MA8Z8WP4CKWK93AKVSDF7of821a5ce, which replaced the earlier report in this comment. Its one finding,01M44MGAPFPZ6WW2CP45Y0ZQ8V(the README says a manual dispatch gets its PR details from the event payload), is summary-only and about text this PR doesn't change. It is the same README row as01M44KTYYGN97NH6CM0JYRE8J2in the earlier review, and it is valid. #37 rewrites that row to say a dispatch run fetches the PR's current state from the forge. The ungrounded claim01M44MFV8NGBKS47H4Z81TR2ZWsays the same thing.