Repository navigation
feat(doop): service read route for design attestations (CHE-7080) [squash] - #69
Merged
congvc-dev merged 3 commits intoNov 23, 2026
Merged
Conversation
congvc-bot-x99
Bot
force-pushed
the
agent/x99-claude-sonnet-200k/che-7080-ad466bf8e9b2
branch
from
November 22, 2026 00:55
3d2fd5d to
13cbd3d
Compare
congvc-bot-x99
Bot
force-pushed
the
agent/x99-claude-sonnet-200k/che-7080-ad466bf8e9b2
branch
from
November 22, 2026 01:46
13cbd3d to
93fc96c
Compare
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 23, 2026
congvc-dev
deleted the
agent/x99-claude-sonnet-200k/che-7080-ad466bf8e9b2
branch
November 23, 2026 09:32
This was referenced Nov 27, 2026
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.
Closes CHE-7080
Part of CHE-7064
Slice S1 of plan r3 (root CHE-6628).
What
GET /api/service/design-attestations/:id— registered before the/apisession gate. Returns the session route's JSON pluspageIssueId(the attested page's currentissueId, ornull).Authorization: Bearer <token>is compared withtimingSafeEqualover SHA-256 digests. Missing or wrong token: 401.DOOP_ATTESTATION_READ_TOKENunset: 503 for every request.DOOP_ATTESTATION_READ_TOKENinserver/env.ts(optional, at least 32 characters)..context/TECHSTACK.mdnames the route.Environment documentation
.env.examplenow documentsDOOP_ATTESTATION_READ_TOKEN, its 32-character minimum, and unset = 503 behavior. No token value is committed.Test-first evidence
npx vitest run tests/designAttestationService.test.tsRed (before the route; behavioural, server boots, route falls through to the session gate):
(The 3 passing then were the 401 cases and GET-only, which the session gate already answered. The "current true" fixture was widened afterwards to a complete page, because only a complete attestation can be current; its red was the same 401.)
Green (after):
Covered: 503 unset, 401 missing, 401 wrong (also near-miss and no
Bearerprefix), 404, 200current: true, 200current: falseafter an edit,pageIssueIdnull then set, DELETE refused.Earlier author checks (
ac9576f, historical; X99)related-tests: 1 failed (the
.env.exampletest above) / 696 passed; browser-tests SKIP; typecheck PASS; lint PASS; format PASS; doc-lint PASS; build SKIP.Out of scope and untouched: G5 lock/pin, C00 config/secrets/deploy, writes to real canvases,
design_card_guard.Environment documentation correction — observed red then green (X99)
Head:
3d2fd5db215eb4163a349ddb3837805cce6f4af3.Command for both runs:
bun run test -- tests/env.test.ts.The existing documentation-contract test was used; no new test was added.
Red, before the
.env.exampleedit (exit 1):Green, after the edit (exit 0):
Self-review: only
.env.examplechanged in this correction; the entry follows the neighbouring optional-variable style, remains commented and empty, and matchesserver/env.tsand the route's error behavior.git diff --checkpassed. CI on this new head must be checked by the reviewer; earlier check results above apply to the previous head.Update 22 Nov: CI fix on head
93fc96cf9082a59c193a9125a6870ddd84c599e2Head
13cbd3d3failedci-policyandtest (4). Cause: the branch was 44 commits behindmain. The oldci.ymlpush trigger broke ci-policy R1 (fixed onmainby #96). G3 ruleset g3-r7 onmainattests only a page bound to an issue, with a requirement ledger read from Multica, so my test fixture was no longer complete (current: false).mainaa43b682(clean; route and.env.examplecommits unchanged in content).pageIssueIdset is asserted while bound;nullafter the page is unbound. The edit test runs before the unbind socurrent: falseis caused by the edit.bun run test -- tests/designAttestationService.test.ts tests/env.test.ts tests/designAttestation.test.ts-> Test Files 3 passed (3), Tests 17 passed (17), run twice;bun run typecheckandbun run lintclean.returns the view with current true ...).Authorship: every commit on this head is Anthropic-authored (x99-claude-sonnet-200k). The OpenAI commit
3d2fd5dbis gone. PR stays draft. An OpenAI reviewer signs the full head.