GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) · Issue #2898 · developing-today/code

Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898

New issue
Copy link
New issue
Copy link
Done
6 / 66 of 6 issues completed
Done
Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id)#2898
6 / 66 of 6 issues completed
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepicMeta-issue grouping multiple items (org Project Type=Epic)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this itemuser/reviewNeeds a user-look: Muse reviews first and handles what it can

Description

@dezren39
dezren39
opened on Oct 31, 2026
Issue body actions

Design (design-architect pass 23): reconstruction is admission — validate authority-bearing inputs where they are rebuilt.

Design doc: files/designs/code-id-reconstruction-validation.md in the keep-the-four-repos-healthy goal workspace. Audited against origin/main 206f4fd7.

Summary

Six issues filed independently in one evening are one defect with six addresses: in pkgs/id, data that carries authority is validated when it is created live, and trusted when it is reconstructed — a world journal being restored, an attestation being computed from decoded objects, a manifest being parsed, a schedule cap being checked. The live path enforces invariants (only issued, JOIN-holding participants act; claims answer the agreement they name; a manifest step means what it says); the reconstruction paths enforce almost none of them, so a crafted or corrupted artefact acquires authority the live path would never have granted.

The recorded rule: reconstruction is admission. Anywhere pkgs/id rebuilds authority-bearing state from stored or supplied data, the rebuilding code validates the same invariants the live path enforces at creation, and refuses (never partially applies, never silently repairs) data that violates them. Corollaries: validate against state you hold, not claims the input makes; unnamed means refused (scope bits, manifest keys, outcomes); the system shape (sequence 0 / participant 0) is not borrowable by authority-carrying entries.

Evidence (origin/main 206f4fd)

  • pkgs/id/src/world/core.rs restore: the Committed arm's only check is sequence continuity, then commit_prepared spends by event.participant_id with no record lookup (id(world): journal restore never validates Committed/Checkpoint event authors — inputs and chat from never-issued participants restore, replay, and project #2894); the Checkpoint arm validates ordering/schedules but no author; the Issued arm validates digest/parent/expiry/uses but never scopes — unnamed bits and CHAT/INPUT without JOIN restore clean (id(world): journal restore never validates Issued scopes — unnamed bits and JOIN-less capabilities restore clean, and a CHAT-/INPUT-only token can act without ever joining #2890). The function's own doc comment promises "unknown participants" are refused.
  • The live invariants exist: issuance requires JOIN (core.rs issuance path, scopes.contains(WorldScopes::JOIN)), delegation subsets keep JOIN (world/mod.rs WorldScopes), admission runs authorize(token, required) per act. Restore consults none of it.
  • pkgs/id/src/attestation.rs compute_state: signatures (verified by chain::decode) prove who signed, not that the agreement is well-formed — players = [A, A] computes Agreed from one key (id(attestation): compute_state never checks the two players are distinct — players=[A,A] attests Agreed from one key's single genesis + single claim #2863), and a claim's free-form winner naming a third party computes Agreed (id(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed #2868).
  • check_schedule_replacing trusts a caller-supplied replacing: bool for the pending-schedule cap restore enforces — a mismatched flag admits a 65th pending schedule and underflows on an empty map (id(world): check_schedule_replacing trusts a caller-supplied replacing flag — a mismatched flag admits a 65th pending schedule past the cap restore enforces, and underflows on an empty map #2882). The ground truth is in self.schedules.
  • pkgs/id/src/world_manifest.rs: serde with defaults, no deny_unknown_fields — a typo'd grants/ceiling revocation parses clean, plans zero steps, diff says "no drift" (id(world-manifest): unknown or misspelled world.toml keys are silently ignored — a typo'd grants/ceiling revocation parses clean, plans zero steps, and diff reports 'no drift' #2876).
  • Safety of strictness: there are no Revoked journal entries in the enum yet, and every capability live code has issued satisfies JOIN + named bits — a strict restore cannot refuse a journal the live code actually wrote.

Phases (adopted origins — no parallel issues filed)

  • Phase 1 — journal restore validates authors and scopes. id(world): journal restore never validates Committed/Checkpoint event authors — inputs and chat from never-issued participants restore, replay, and project #2894 (Committed + Checkpoint author check: author issued, holding the scope its kind requires) + id(world): journal restore never validates Issued scopes — unnamed bits and JOIN-less capabilities restore clean, and a CHAT-/INPUT-only token can act without ever joining #2890 (Issued scope check: named bits only, JOIN required). One seam, the security core. Independent.
  • Phase 2 — attestation agreement validity. id(attestation): compute_state never checks the two players are distinct — players=[A,A] attests Agreed from one key's single genesis + single claim #2863 (players must be distinct, else Proposed) + id(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed #2868 (claim outcome domain: winner is None or one of the two players; out-of-domain claims ignored under the existing non-player rule). Independent of Phase 1.
  • Phase 3 — derive-don't-trust + closing audit. id(world): check_schedule_replacing trusts a caller-supplied replacing flag — a mismatched flag admits a 65th pending schedule past the cap restore enforces, and underflows on an empty map #2882 (schedule predicate derived from self.schedules; trusted parameter removed) + id(world-manifest): unknown or misspelled world.toml keys are silently ignored — a typo'd grants/ceiling revocation parses clean, plans zero steps, and diff reports 'no drift' #2876 (deny_unknown_fields on the manifest's authority-bearing structs) + a closing inventory audit of the remaining reconstruction seams (sandbox snapshot restore, world_store restore_program, directory/petname persistence), each dispositioned already-validating / fixed / exempt-with-reason, and the rule written into the restore and attestation module docs.

Alternatives considered

  • Fix the six sites independently: each lands, the rule stays unstated, the next seam re-opens the hole — the six-in-one-evening pattern is the evidence this is a family.
  • Validate at write time only: journals outlive and out-travel the writer (forks copy them, backups restore under newer binaries); restore is the only point where data, invariants and refusal coexist.
  • Sanitise at consumers: many consumers, one state; a phantom capability record has no single consumer to patch.
  • Version-gate strictness: the invariants are not new, so no legitimately-written old journal can violate them; a gate would only protect journals that were never valid.

Risks / open questions

  • Restore corpus (v1/v2 headers, delegate expiry, fork fixtures) must pass unchanged; if Phase 1 triage finds a legitimate historical scope/kind mismatch, the issued-author check stands and the mismatch is filed as evidence — the check is not silently dropped.
  • Manifest strictness: Phase 3 greps the repo's own manifest writers/fixtures for extra keys before the attribute lands.
  • Open questions stay in the design doc (Revoked-entry semantics when that feature arrives; payload-shape validation at replay is execution, not admission; outcome domains for non-duel agreements; sandbox snapshot integrity if the audit finds authority flowing through it).

Agent note: this issue is the design of record for #2894, #2890, #2863, #2868, #2882, #2876 — they are adopted as its phases and linked as sub-issues. Their triage should record the phase structure, not re-file or split them.

Acceptance criteria

  • Every authority-bearing reconstruction path in pkgs/id named by this design (journal restore, attestation computation, manifest parsing, schedule checks) validates the same invariants its live creation path enforces, and refuses — never partially applies, never silently repairs — violating input.
  • Each of the six filed instances (id(world): journal restore never validates Committed/Checkpoint event authors — inputs and chat from never-issued participants restore, replay, and project #2894, id(world): journal restore never validates Issued scopes — unnamed bits and JOIN-less capabilities restore clean, and a CHAT-/INPUT-only token can act without ever joining #2890, and the siblings named in the design doc) is either fixed under this contract or explicitly dispositioned against it.
  • Regression tests exist for at least the journal-restore and attestation paths proving crafted/corrupted artefacts are refused.
  • The recorded rule ("reconstruction is admission") is documented where a future reconstruction path author will find it.

Sub-issues

Collapse Sub-issuesSub-issues

6 of 66 of 6 Issues completed
Loading 6 sub-issues

Activity

Next
  1. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    epicMeta-issue grouping multiple items (org Project Type=Epic)
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    source/design-architectFiled by the repo design architect job
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Agent note (design-architect, 2026-10-30): design of record for the six adopted origins, linked as sub-issues and labelled source/design-architect: Phase 1 = #2894 + #2890 (journal restore), Phase 2 = #2863 + #2868 (attestation), Phase 3 = #2882 + #2876 (derive-don't-trust + manifest strictness + closing audit). Each origin already carries a queued triage packet (queue/queued verified at filing); no new implementation issues or packets were created by this design — triage of each origin should record its phase structure and the decisions noted on it, not re-file or split. Phase 3 closes this issue with the closing-audit evidence. Register: added to files/potential-projects.md (status: proposed).

  3. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Correction (design-architect, same pass): the design doc has been amended after a full read of the six origins' acceptance criteria. Three corrections of record:

    1. Participant 0 is a legitimate Committed author (host chat + ProgramInstalled, per id(world): journal restore never validates Committed/Checkpoint event authors — inputs and chat from never-issued participants restore, replay, and project #2894's acceptance) — the author rule is "0, or issued earlier in the journal and not revoked before that entry"; events by a participant revoked later stay valid. An earlier draft of the doc wrongly implied participant-0 events were borrowable system shape only, and wrongly stated Revoked entries do not exist — they do, and their restore arm already validates; the Committed/Checkpoint arms simply never consult revocation state.
    2. The attestation outcome domain includes the "draw" sentinel (documented on ResultClaim.outcome) alongside the two seat players' id-as-hex — not a None winner. Whether an out-of-domain claim is ignored or counts as a position is id(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed #2868's triage pin.
    3. Phase 1's Issued arm also carries id(world): journal restore never validates Issued scopes — unnamed bits and JOIN-less capabilities restore clean, and a CHAT-/INPUT-only token can act without ever joining #2890's adjacent ruling (delegate scopes vs parent's implied scopes), and Phase 3's manifest strictness names WorldExecutionProfile (world_limits.rs) plus the commands/world.rs JSON round-trip check from id(world-manifest): unknown or misspelled world.toml keys are silently ignored — a typo'd grants/ceiling revocation parses clean, plans zero steps, and diff reports 'no drift' #2876's acceptance.

    The design doc (files/designs/code-id-reconstruction-validation.md) now states all three; the per-issue notes have matching corrections.

  4. dezren39
    added sub-issues on Oct 31, 2026
    • id(world): journal restore never validates Committed/Checkpoint event authors — inputs and chat from never-issued participants restore, replay, and project #2894
    • id(world): journal restore never validates Issued scopes — unnamed bits and JOIN-less capabilities restore clean, and a CHAT-/INPUT-only token can act without ever joining #2890
    • id(attestation): compute_state never checks the two players are distinct — players=[A,A] attests Agreed from one key's single genesis + single claim #2863
    • id(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed #2868
    • id(world): check_schedule_replacing trusts a caller-supplied replacing flag — a mismatched flag admits a 65th pending schedule past the cap restore enforces, and underflows on an empty map #2882
    • id(world-manifest): unknown or misspelled world.toml keys are silently ignored — a typo'd grants/ceiling revocation parses clean, plans zero steps, and diff reports 'no drift' #2876
  5. dezren39
    added
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Oct 31, 2026
  6. 232 remaining items

    Load more actions
  7. dezren39
    added
    status/blockedQueue or user escalation state
    on Nov 8, 2026
  8. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: blocked
    task: 12804
    worker: repo-worker-code
    lane: 9aca43b4-5439-4939-9f71-323f5d32521b
    origin: openchamber-scheduled-lane
    reason_class: packet_defect
    summary: Task 12804 blocked because its packet materially omits the later completed triage in task 12795, which already routed the sole unlanded #2894 remainder as fix task 12800. Fresh checks show #2894 OPEN and its canonical PR #4518 OPEN. The requested triage/routing is already done; no duplicate packet or PR was created.
    resume: Regenerate/revalidate the packet against current task 12795/12800 state before retrying.

  9. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Program tending (#1352): all 6 sub-issues under this epic are closed. Proposing closure — if the Definition of done holds, closing this epic keeps the planning layer honest. Blockers: queue/blocked, status/blocked.

    (Epic #2898: one completion comment per run; the epic itself is left open for a human to close.)

  10. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    agent-note:v1 cross-note from design #4000 Phase 3 audit (task 5934, lane code-h, 2026-11-11): the #4000 follow-on phases have landed - Phase 1 #3942 (checkpoint-carried handoff validation), Phase 2 #3736 + #3961 (checked succession in restore), Phase 3a #3911 (WaitingPool restore guards + explicit proof-park route) - and the closing reconstruction-admission inventory for pkgs/id is posted on #4000 (comment 6783525274, baseline origin/main 45638b8). The two designs cite one rule: reconstruction is admission, and succession predicates are checked_add (saturation loses). One same-shape remainder was found by the audit and filed as #8370 (restore Committed-arm sequence predicate still saturating_add).

  11. dezren39 commented on Nov 12, 2026

    @dezren39
    dezren39
    on Nov 12, 2026
    MemberAuthor
    More actions

    Program tending — epic completion (tracking: #1352)

    • Child progress: 6 of 6 children closed (0 open).
    • Last movement: 2026-11-11T00:46:38Z.
    • All recorded children are closed. Proposing closure of this epic: if more work belongs here, reopen a child or say what remains and this stays open.
  12. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: triaged
    task: 12804
    worker: repo-worker-code
    lane: code-i
    origin: openchamber-scheduled-lane
    summary: Design #2898 is fully resolved on current main; no live remainder. All six adopted phases are CLOSED (#2894, #2890, #2863, #2868, #2882, #2876). The one remainder routed by triage task 12795 (fix task 12800, PR #4518) landed: PR #4518 state MERGED at c64448a (2026-11-08T08:25:28Z), issue #2894 CLOSED. The recorded rule is present where the next reconstruction-path author looks: "Reconstruction is admission" in pkgs/id/crates/id-worlds/src/world/core.rs:3-4 (restore/restore_replica docs) and pkgs/id/crates/id-events/src/attestation.rs:34 (compute_state docs). Acceptance criteria 1-4 of this design are therefore met; no fix packet is enqueued and none is needed.
    evidence:

    • gh issue view 2894/2890/2863/2868/2882/2876 -> all CLOSED (2026-11-16)
    • gh pr view 4518 -> MERGED, merge_sha c64448a
    • queue: task 12795 done (routed 12800), task 12800 done (already_done, PR 4518 merged), tasks 12659/12669 done
    • code: core.rs:3 "Reconstruction is admission", attestation.rs:34 same rule
    • program tending proposed epic closure twice (2026-11-09, 2026-11-12); 6 of 6 children closed
      next: Epic-closure bookkeeping only. Per the standing program-tending convention this epic is left for the owner to close, so it is labelled user/review rather than closed by this worker. Stale in-flight labels (queue/blocked, status/blocked, work/assigned, expedite) removed: nothing is in flight.
  13. dezren39
    added
    user/reviewNeeds a user-look: Muse reviews first and handles what it can
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    work/assignedQueue worker lifecycle state
    expediteImportant - do this very soon, before anything not expedited
    on Nov 16, 2026
  14. dezren39 commented on Nov 19, 2026

    @dezren39
    dezren39
    on Nov 19, 2026
    MemberAuthor
    More actions

    Program tending — epic completion (tracking: #1352)

    • Child progress: 6 of 6 children closed (0 open).
    • Last movement: 2026-11-16T14:15:03Z.
    • All recorded children are closed. Proposing closure of this epic: if more work belongs here, reopen a child or say what remains and this stays open.
  15. dezren39
    removed their assignment
    on Nov 20, 2026
  16. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Closing as completed (done check by lane 5, 2026-11-25).

    • All six reconstruction instances fixed: id(world): journal restore never validates Committed/Checkpoint event authors — inputs and chat from never-issued participants restore, replay, and project #2894, id(world): journal restore never validates Issued scopes — unnamed bits and JOIN-less capabilities restore clean, and a CHAT-/INPUT-only token can act without ever joining #2890, id(attestation): compute_state never checks the two players are distinct — players=[A,A] attests Agreed from one key's single genesis + single claim #2863, id(attestation): compute_state never validates the claim outcome's domain — claims naming a third party (or any string) as winner compute Agreed #2868, id(world): check_schedule_replacing trusts a caller-supplied replacing flag — a mismatched flag admits a 65th pending schedule past the cap restore enforces, and underflows on an empty map #2882 and id(world-manifest): unknown or misspelled world.toml keys are silently ignored — a typo'd grants/ceiling revocation parses clean, plans zero steps, and diff reports 'no drift' #2876 are closed as completed.
    • The rule is documented where a future author will find it: "reconstruction is admission" is in pkgs/id/book/design/foundations.md and doc/2026-11-01_design_id2898.md.
    • No objection to closing: the 2026-11-19 completion proposal drew none.

    Reopen this issue if a reconstruction path is still undispositioned.


    Generated by Claude Code

  17. dezren39
    closed this as completedon Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepicMeta-issue grouping multiple items (org Project Type=Epic)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this itemuser/reviewNeeds a user-look: Muse reviews first and handles what it can

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.