Skip to content

CSD: the standard's text, and the registry without a client's columns - #258

Open
emooreatx wants to merge 3 commits into
rc23from
csd/standard-and-registry
Open

emooreatx wants to merge 3 commits into
rc23from
csd/standard-and-registry

Conversation

@emooreatx

@emooreatx emooreatx commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

CSD: the CIRIS Specification Document, and the registry without a client's columns

The CSD is CIRIS's contract with the person it serves. A card states that contract for one screen: what the screen tells
the person and on what backing, what it asks before it acts for them (L6), and that it sends only what it showed (L7,
L12). This PR moves the standard's text into this repository and makes the registry the standard's alone.

What it carries

  1. csd/CSD.md, the merged standard, in the Parts' register (BCP 14, sentences of at most 40 words). It states every
    member a conforming checker reads, and says "not checked" where a rule is held by a separate check or by none:
    • confirm by step and by held, with confirmed_at;
    • hands_off, takes and cited_by, for a completion that several cards share;
    • answers on a write, the kinds of a 2xx;
    • via: none with a gap, facet and absent_route, keyed_on and served_by;
    • L14, a dead end, with terminal and terminal_why;
    • csd:parts, day_one, and cases with their csd-case: markers;
    • way_back: none on a write that signs no row (below).
      The key of csd:view that names the code that draws a card is source:. There is no alias. The one implementation
      is named once: "One implementation exists. It is not the reference."
      L6 ends with: "A write that signs no row is confirmed when it cannot be undone, as an erasure of the person's own data
      cannot. One write that signs no row and can be undone is confirmed by the steward's ruling: the shutdown of the
      assistant on this device, which a restart undoes. No other write without a row is confirmed."
  2. manifests/ui_primitives.json, from this repository's file at 0dbe7ae8, at draft 5 (_meta.bump_rule: L6's
    meaning changed and there is a new member).
    • The reference client's columns leave it: status, kotlin, legacy_prefixes and basis on each primitive,
      ships on each state, and _meta.reference_client_columns. The registry says nothing about any client. A client
      keeps its own file, keyed by primitive id and pinned to this file's sha256.
    • L6 gains the tail above.
    • model.breaks gains two entries. rowless_confirm_unruled is "put a ConfirmSheet in front of a write that signs no
      row and can be undone, other than the ruled one". rowless_irreversible_unconfirmed is "take a write that signs no
      row and cannot be undone in one step".
    • A new member, rowless_confirm_allowed, names the one ruled write that can be undone as a {card, write} pair.
  3. The card member for a write that signs no row (CSD.md 7.1). A write with row: null declares way_back: none when
    it cannot be undone. row: null with way_back: none requires confirm: true. row: null without it, and with any
    confirm, fails unless it is the ruled write. A way_back on a write that signs a row is refused, because the cell
    decides there.
  4. formal/screen gets property 8, a write that signs no row. It draws a ConfirmSheet when the write cannot be undone
    or is the ruled one, and one step otherwise. Each break has its own arm, and screen_expected.tsv is regenerated by
    check_screen.py --write.
  5. tools/check_ui_primitives.py drops the loop over legacy_prefixes, holds the shape of rowless_confirm_allowed,
    requires both rowless breaks to be listed, and requires every break of properties 7 and 8 to be listed.
    tools/ui_closure.py no longer prints the two columns.
  6. tools/check_csd_cards.py, wired into tools/gates.sh, the consistency workflow and recut_sections.py. It fails
    when a card under csd/cards/ cites a state, a signer, a policy or a confirm that the model does not have. It passes
    with no card present, and --self-test shows it red on ten planted breaks. csd/cards/ is empty.

What it does not carry

  • No change to a Part, to transitions.json or to STATE_TABLE.tsv.
  • No formal/csd/. The standard still proposes it.
  • The client's half (reference_client.json, the join in its checker, way_back, the source: rename) lands in that
    repository. The proposed L6 tail goes to Eric with the merge.

Checks, as run

On the rebased head (base rc23 33c3c230), as run:

ui primitives: CSD/5 draft 5: 24 primitives, 31 prefixes each with one owner, 17 states, 3 write outcomes, 13 laws, 13 breaks planted, 6 citations resolve, confirm is one value on each of 473 family-verb pairs and 2 stage arms
screen: 143 story steps, 108480 grid views, 720 generated worlds x 4 viewers, 384 writes in flight; breaches 0
  property 8: break rowless_confirm_unruled caught (3 views)
  property 8: break rowless_irreversible_unconfirmed caught (2 views)
screen: every property holds, and every break is caught
csd cards: 0 citation(s) on 0 card(s) under csd/cards/ agree with the model (no card yet; nothing to check)
csd cards self-test: 10 planted defects, every one went red
ui closure: 24 primitives: 1 closed over the tables, 18 open on a cell, 5 bound to no rule cell

The full bash tools/gates.sh takes about an hour and is running on this head; its result follows in a comment. The output further down was taken before the rebase and is kept for the red-then-green record.

Re-run on the rebased head. The output below was taken on 0dbe7ae8 plus this branch, before the rebase. The block is
to be replaced with the output of these commands, in this order, from the repository root:

python3 tools/check_ui_primitives.py
python3 -I formal/screen/check_screen.py
python3 tools/check_csd_cards.py
python3 tools/check_csd_cards.py --self-test
python3 tools/ui_closure.py --check
bash tools/gates.sh

If check_screen.py says the verdicts differ from screen_expected.tsv after the rebase, run it once with --write, read
the diff, and run it again. gates.sh takes about an hour, because build_cc_signed_object_v2.py runs cddl many times.
On 0dbe7ae8 two steps fail with or without this branch: tools/check_claims.py (a ticket the evidence register stages on
is closed) and tools/lean_statement_hash.py (FamilyModel.lean#registry_fits). The gate also rewrites
manifests/csd4_chain.json there, because its claims count lags the register. This PR leaves that file as committed.

Before the rebase:

ui primitives: CSD/5 draft 5: 24 primitives, 31 prefixes each with one owner, 17 states, 3 write outcomes, 13 laws, 13 breaks planted, 6 citations resolve, confirm is one value on each of 473 family-verb pairs and 2 stage arms
screen: every property holds, and every break is caught
  property 8: break rowless_confirm_unruled caught (3 views)
  property 8: break rowless_irreversible_unconfirmed caught (2 views)
csd cards self-test: 10 planted defects, every one went red

The second new break, red and then green. First the registry lists it before formal/screen records it:

ui primitives: FAIL
  model.breaks: rowless_irreversible_unconfirmed is not a break formal/screen plants and catches

Then its probes are left unchecked, so the break is not caught:

  property 8: break rowless_irreversible_unconfirmed missed (0 views)
screen: BREACH (a break was not caught: ['rowless_irreversible_unconfirmed']) (verdicts differ from screen_expected.tsv)

Then python3 -I formal/screen/check_screen.py --write, and the run above is green.

Answers recorded

  • (a) A local row with no family. One step. A lift that supersedes the record is its way back, and no family and no
    exception is needed. The node-standing card's act drops its confirm, as a recorded gap until the code follows.
  • (b) Seat states drawn on the roster. The invitation gets its own variable after the roll. The invitation card keeps
    its two declared gaps, seat-removed and seat-resigned.
  • (c) A held answer with no Choice. It is a held answer. held will name where the answer is held, a Choice or an
    install, in a later PR. Until then step with its cost line stands on the setup-completion card, recorded as debt that
    names this reading.
  • (d) Irreversible local deletion. Replaced by the L6 tail above: a write that signs no row is confirmed when it cannot
    be undone. The four writes on the data card (delete, reset, wipe, erase) keep their confirms, and each declares
    way_back: none in the client's change. The proposed L6 tail goes to Eric with the merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01A6v8R7bGvdXJkqmQ5eutrR

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-06T13:54:10.777633Z
We couldn’t complete this review. Comment @codex review to try again.
064408d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

emooreatx and others added 2 commits December 6, 2026 11:02
…nce client's columns.

csd/CSD.md is the CIRIS Specification Document: the contract with the person
served, the card format, the laws and the checks. The registry loses status,
kotlin, legacy_prefixes, basis, ships and _meta.reference_client_columns; a
client keeps those in its own file, keyed by primitive id.

L6 gains the steward's ruled sentence on the one confirmed write that signs
no row, with the break rowless_confirm_unruled planted in formal/screen and
the allowance named in rowless_confirm_allowed.

tools/check_csd_cards.py holds every card under csd/cards/ to the model and
is wired into the gate. csd/cards/ is empty until the cards land.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A6v8R7bGvdXJkqmQ5eutrR
…registry is draft 5.

L6's tail is the two-sided rule, with rowless_irreversible_unconfirmed
planted beside rowless_confirm_unruled. A card marks such a write
way_back: none. The card's key for its source files is source:, the
standard names no implementation, and requirement words are in capitals.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A6v8R7bGvdXJkqmQ5eutrR
@emooreatx
emooreatx force-pushed the csd/standard-and-registry branch from 064408d to 909b263 Compare December 6, 2026 17:03
…e words of CSD 7.1.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A6v8R7bGvdXJkqmQ5eutrR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant