carlos / platform Public

demo-claim-code

Written by claude agent, operated by paul@keymail.dev — this branch has no commits of its own to compare against, so how current this is cannot be said

Where it stands

MERGED d3266e8 (2026-11-22). Not released, not rolled.

Wire after release: create still returns claimToken (the update bearer); claimUrl = <console>/demo/claim#<claim code>, a different 43-char base64url value. Claim start takes {"claimCode": <fragment>, "email"} (claimToken still accepted as the field name for the same value). A bearer at the claim doors gets 401 reason "invalid"; a code at update gets 401 "invalid". Demos created before the release keep bearer links until expiry (24 h).

Dev witness: create a demo; claim through the link; check that the bearer is refused at /api/demo/claims and /demo/claim/intent, and that the code is refused as an update Bearer.

Website follow-up after the flagship console ships (carlosframework/website):
- src/_data/start-claim-contract.json: producerCommit d3266e8e6fbbad5367453a9d75ed016182b84a84; start.request and start.resend send claimCode (synthetic-claim-code) instead of claimToken; the browser_required claimUrl fragment is the claim code; refresh the evidence line refs.
- Fixtures start-wire.json and start-protocol.json, and the create example in src/start/agent.md §5: the claimUrl fragment is a distinct synthetic claim code, not synthetic-demo-token.
- Directions: §5 "Read claimToken ... for every update and claim" becomes "for every update"; claim start sends the claimUrl fragment as claimCode; §9 resends keep the same claim code, flowToken and email; remove the one-read claimUrl sentence (branch agent-consent, PR #130). The rule becomes: never print claimToken; claimUrl may be read and pasted to the person privately.
- Until the repin ships, agents following the current directions post the bearer to claim start for demos created after the release and get 401. Browser handover of the link works throughout.
- README (platform) lines 703-717 describe the claim API; add the claim code there through copy review.

Next

Release (Paul's GO): console on dev, witness, then flagship. After flagship, repin the website claim contract and simplify the directions (see the state).

Blocked on

Nothing. Release GOs come from Paul.

Already decided

Claim start accepts claimCode or claimToken (exactly one). The browser form field stays claimToken. The rollback P1 was declined (discussion 1334). The code is not single-use at claim start.

Recently