Repository navigation
feat(doop/landing): trusted checklist read from Multica, inert (CHE-9673) [squash] - #159
Draft
congvc-bot-x99[bot] wants to merge 1 commit into
Draft
congvc-bot-x99[bot] wants to merge 1 commit into
congvc-bot-x99[bot] wants to merge 1 commit into
Conversation
…673) S3a of CHE-9448. trustedChecklist reads every comment page with no folding and returns the watcher's latest design-checklist, or a refusal. Nothing calls it yet.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CHE-9673 (S3a of CHE-9448, plan r5). Merges dark: nothing calls
trustedChecklist;DOOP_LANDING_WATCHER_IDis a new env key that stays unset; no C00 or production config changes.What
server/landingChecklist.ts:trustedChecklist(issueId, multica, watcherId, fetchImpl?)returns{ ok: true, link, decisionId, pin, text, recordCommentId }or{ ok: false, reason }.GET /api/issues/:id/comments?recent=50, nofoldparam (the CLI sendsfold=trueby default and omits it with--full; observed against a local stub). FollowsX-Multica-Next-BeforeandX-Multica-Next-Before-Idasbeforeandbefore_iduntil a page has no cursor (observed on the real server: a short page has no header, a full page has one). Any error, bad payload, half cursor, repeated cursor, badcreated_ator more than 200 pages givesproof_unavailable.records.pygrammar (tagdesign-<kind>:<ref>,key: valuelines,_decfor quoted values).watcherIdunset or empty givesproof_unavailablebefore Multica is asked.design-linkon the issue, by any author (member included, a stricter reading thanrecords.py, which sees agents only), must be the watcher's, elsewatcher_mismatch.link_conflict.design-checklistin comment time order is the authority; none givesno_checklist. A malformed latest one givesproof_unavailable, with no fall back to an older one..env.exampleandserver/env.tscarryDOOP_LANDING_WATCHER_ID(tests/env.test.tschecks the doc).tests/fixtures/design_records_fixtures.txt: S2 fixture fromcheese-work/multica-dotfiles@40822ddf, byte for byte (1077 bytes, sha256dc5ecdfc98e6d05fe50d423750cefad757fa49c7251673d46dc3f667228b5fd5).Test-first
Red, on the base (
e21b6250) before any implementation:Green, on this head:
Also local:
bun run typecheckclean,bun run lintPASS (68 s).bun run buildnot run locally (nothing imports the module); CI runs it.Self-review
.env.example.proof_unavailable; non-read-failure exceptions are rethrown.recent=Nthread-page contract observed on 26 Nov 2026 ICT; a server that changes it fails closed (cursor errors) or loops out at 200 pages.