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 — pkgs/id crate split — step 2: extract id-store, then id-events · Issue #4405 · developing-today/code

pkgs/id crate split — step 2: extract id-store, then id-events #4405

New issue
Copy link
New issue
Copy link
Closed
Closed
pkgs/id crate split — step 2: extract id-store, then id-events#4405
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)design/id-crate-splitDesign: id-crate-split - all issues of this effort carry iteffort/lLarge: multi-day or open-ended; expect staged check-insepic/id-crate-splitEpic: id-crate-split - all issues of this effort carry itepic/id-programReprioritization program epic (2026-11-12)expediteImportant - do this very soon, before anything not expeditedkind/performancePerformance problem or optimizationprimary-parent/id-crate-splitPrimary parent epic id-crate-split (design §3)priority/highImportant and time-sensitivequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Nov 2, 2026
Issue body actions

Crate split step 2 of 7 — from the merged design

Design: doc/2026-11-01T16-53-00Z_design_id_crate_split/2026-11-01T16-53-00Z_design_id_crate_split.md (merged as PR #3824, 2026-11-01). Tracking issue: #3447. Program: #3195 (build-time review; Drew's priority order — shipped-binary runtime performance first, build time second).

Scope (design, verbatim intent)

Design step 2: id-store, then id-events. Traits down (seam 3's trait half), then the event store with the membership-trait inversion for ingest.

Current state

Not started. Nothing extracted yet for this step.

Dependency — do not start early

Step 1 (id-caps) merged. If this step's queue task is claimed before the dependency lands, park it with that reason.

Fuel canary (non-negotiable, every step): the FUEL_BUDGETS tables in pkgs/id/src/sandbox.rs must be byte-identical after this step; the fuel-tables diff is committed in the step PR. Any drift means behaviour changed and the step stops. Full verification protocol: design note §"Verification protocol".

Verification protocol (design, every step): one PR; main green throughout; the shipped binary is built by the same Nix derivations at every point (all three entry points: the sub-flake's id-web and id-lib, and default.nix); test count matches or exceeds the step-0 baseline with any delta named; cold check-build timing recorded on #3447 and #3195 with the laptop load noted. Heavy builds run under ~/tools/fleet-build-lock on the laptop (max 2 concurrent, CARGO_BUILD_JOBS = half the cores) — there is no load gate (Drew, 2026-11-02).

{
  "pm_meta": 1,
  "direct_parent": {
    "repo": "developing-today/code",
    "number": 3447,
    "kind": "sub-issue"
  },
  "links": [],
  "provenance": {
    "actor": "dezren39",
    "ingested_by": "metadata-sweeper",
    "ingested_at": "2026-11-24T03:22:16.815Z"
  },
  "ascertained": {
    "title": "pkgs/id crate split — step 2: extract id-store, then id-events",
    "state": "CLOSED",
    "labels": [
      "kind/performance",
      "task/triage",
      "status/parked",
      "source/creator",
      "priority/high",
      "queue/parked",
      "app/id",
      "work/assigned",
      "effort/l",
      "expedite",
      "epic/id-program",
      "epic/id-crate-split",
      "design/id-crate-split"
    ],
    "milestone": null,
    "created_at": "2026-11-02T15:22:51Z",
    "updated_at": "2026-11-12T18:43:46Z",
    "closed_at": "2026-11-11T13:03:39Z"
  }
}

Activity

Next
  1. dezren39
    added
    kind/performancePerformance problem or optimization
    priority/highImportant and time-sensitive
    queue/queuedHas a queued queue task
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 2, 2026
  2. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Task: 6298 · repo-health-code-pilot
    • Verified: Issue pkgs/id crate split — step 2: extract id-store, then id-events #4405 is OPEN with no hard-stop labels. Dependency step 1 (pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403) is still OPEN — only pkgs/id/crates/id-core exists on origin/main, no id-caps; step 0 (PR id: ci-check profile for the nix test phase (#3195 phase 1) #3674) also still OPEN. Sibling task 6294 holds the step-1 pickup.
    • Next: Park until pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403 lands (id-caps extraction on main); revalidate before creating a worktree. No code or build work started. Per packet sequencing, step 2 must not start early.
  3. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 2, 2026
  4. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Task: 6298 · repo-health-code-pilot (parked 30 min)
    • Reason: Dependency not landed — step 1 (pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403, id-caps extraction) still OPEN; only pkgs/id/crates/id-core on origin/main; step-0 PR id: ci-check profile for the nix test phase (#3195 phase 1) #3674 also OPEN. Sibling task 6294 holds the step-1 pickup. Packet forbids starting step 2 early.
    • Resume: Revalidate pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403 closed with id-caps on main, then create worktree queue/6298-4405-* and begin extraction. No branch or worktree created; nothing to salvage.
  5. 308 remaining items

    Load more actions
  6. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked — Agent: repo queue worker, lane code-b (repo-worker-code). Task: task 6298 (small_fix) for issue #4405, crate split step 2 (extract id-store, then id-events). Fresh verification this shift: issue #4405 OPEN, no hard-stop labels. Dependency gate re-checked fresh: step-1 issue #4403 is still OPEN (updated 2026-11-08T21:11Z, claimed/parked under task 6294) and origin/main fd2b0c8 pkgs/id/crates contains only id-core and id-native-shell — no id-caps crate has landed. The packet forbids starting step 2 before step 1 lands, and step 2 itself is ~18,400 lines across 13 modules (design doc step 2), so no worktree or code changes were made. Parking task 6298; resume when issue #4403 closes / the id-caps extraction lands on main.

  7. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · parked (dependency not landed)

    • Agent: queue worker (repo-worker-code), lane code-l
    • Session / ID: task 6298
    • Found via: queue claim (assigned_lane=direct)
    • Task: Crate split step 2 (issue pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447): extract id-store, then id-events — parked before starting, per the packet's own sequence rule: "If claimed before the dependency lands, park with that reason; do not start early."
    • Verification (fresh, this shift): step 1 (issue pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403, extract id-caps) has NOT landed — issue pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403 is OPEN; pkgs/id/Cargo.toml on origin/main lists workspace members crates/id-core and crates/id-native-shell only (no crates/id-caps); no commit on origin/main mentions task/issue pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403 and no id-caps/id_caps reference exists under pkgs/id on main.
    • Expectation / resume: resume task 6298 only after step 1 (issue pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403) merges and pkgs/id/crates/id-caps exists on main. The step-2 seams are as scoped in the packet (id-store: store_traits + implementations; id-events: src/event_store/* with the membership-trait inversion for ingest; FUEL_BUDGETS in src/sandbox.rs byte-identical canary).
    • Links: issue pkgs/id crate split — step 2: extract id-store, then id-events #4405, issue pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403, issue pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447
  8. dezren39
    added a commit that references this issue on Nov 11, 2026

    Merge pull request #8641 from developing-today/crate-split-step2-id-s…

    17b2be8
  9. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Step 2 status: 2a (id-store) landed; 2b (id-events) blocked on a seam the design's inversions do not cover — evidence below. This issue stays open.

    2a — id-store: PR #8641, merged 17b2be8

    Extracted crates/id-store (depends on id-core only): store_traits, store, chain, documents, tag_claims, tag_index, tags, search. Facade re-exports keep every id:: path; main.rs/tests//benches/ untouched.

    Seam adaptations made (all relocation or lower-crate-owned inversion, no behaviour change):

    • Preliminary seam 4 as ordered: rejection → id-core; also text → id-core (leaf, used by chat).
    • Seam 3: SharedEventStore is now generic over a new id_store::store_traits::EventStoreBackend trait; the facade pins SharedEventStore<EventStore> by type alias and implements the trait for EventStore. The event-store vocabulary the traits name (StoreError, Ingest/Refusal, BlockKind/Block/BlockList, the Chain row type, range (Key, Id)) moved down into id_store::event_types / id_store::range ahead of the implementation.
    • chain embeds op types in ChainExt, so the leaf modules chat, notes, note_links, session_checkpoint, issuer_rotation moved whole; currency::{IssuerId, issuer_id, author_id} moved into issuer_rotation; groups::policy::History moved to id_store::policy (the policy record itself stays with groups until step 4).
    • idset was checked and is not a leaf (src/idset.rs uses crate::groups::Role; src/idset/expand.rs uses crate::groups::fold), so it stayed in the facade as the fallback prescribed.
    • store_traits' tests became an integration suite under crates/id-store/tests/ (a crate's unit tests compile against a second instance of the crate, hiding the facade's backend impl).

    Verification (detail in PR #8641): baseline main @8b7bc7bebf 62 suites / 3,666 passed / 1 failed / 33 ignored → PR 65 suites / 3,666 passed / 1 failed / 33 ignored (the one failure is the pre-existing frames::tests::byte_refusal_does_not_spend_a_frame_token_or_increment_counters, on main in all profiles). sandbox.rs sha256 identical (db88ec8d…); print_fuel_baseline byte-identical (72 lines). Nix nix build ./pkgs/id#id-lib check phase hits the same pre-existing frames failure with the facade lib at 2,471/1 — parity with main. Repo CI is currently failing wholesale for unrelated infra reasons (same all-red pattern on merged PR #8611), so the merge went on local parity, as step 1 did.

    2b — id-events: blocked

    The blocker is not the ingest wire seam alone; it is that event_store's resolution calls the groups fold — group logic the design assigns to id-groups (step 4), which itself depends on id-events. Concrete cycle, on current main:

    • src/event_store/resolve.rs:50 imports crate::groups::{Body, Create, DeviceOp, Event, MemberOp, Policy, Projection, Role, Template}; resolve.rs:303–330 calls crate::groups::fold(&events); resolve.rs:422 uses groups::RemoveMode::Revoke; resolve.rs:448 uses groups::Key.
    • resolve is internal to the store: src/event_store/mod.rs:769–780 (EventStore::roster) loads stored events and calls resolve::load/resolve::resolve on every roster/claims/writer-set read. There is no call site to inject through — the fold would have to be a field set at construction.
    • Construction is fixed by untouched integration tests: EventStore::open(dir, limits, now_ms) (src/event_store/mod.rs:659; called at tests/production_ingest.rs:35, tests/voiding_scenarios.rs:142,156, tests/voiding_properties.rs:183,201), and those same tests read rosters back through the fold (tests/production_ingest.rs:143–145 via SharedEventStore::read). A default/no-op fold changes behaviour; a registry set by the facade cannot be set by the tests.
    • The group model types themselves are defined in src/groups/mod.rs (lines 61–180: Key, Role, Event, Body, DeviceOp, Create, MemberOp) and use groups::log::wire serde helpers; groups::fold is 1,690 lines of logic in src/groups/fold.rs. Moving model+fold down is a relocation of the groups layer's core into id-events and contradicts the design's step-4 crate map; inverting it needs an EventStore API change beyond relocation. Per the step's stop rule, 2b was not attempted past this point.

    Secondary seams with the same upward shape, for the record:

    • src/event_store/ingest.rs:327,503–512: &crate::groups::DeviceOp parameter and crate::groups::event::decode → EventBody::Group(Body::Device(op)); ingest.rs:275: crate::idset::is_writer_kind/is_rescind_kind (idset stays facade, see above).
    • src/event_store/claims.rs:17: groups::{Projection, Role}; src/event_store/chat.rs:27: groups::policy::{History, Policy} (History now resolves from id-store; Policy does not).
    • src/event_store/writer_set.rs:41–43,131,151: groups::Role plus the full idset surface (idset::view::expand_set, WRITER_KIND, RESCIND_KIND, body decoders) — and idset/expand.rs itself calls groups::fold.
    • src/event_store/sync.rs:57: pull_policy::{PullGate, PullRefused}; src/event_sync.rs:43,46: blob_gate::WorldAccess, pull_policy::{PullGate, PullPolicy}; src/local_events.rs:28,259: local_claims::LocalClaims, pull_policy::PullGate. pull_policy and blob_gate are step-4 (id-groups) modules per the design map, i.e. above id-events.

    Suggested resolution for a future attempt: rule on whether the group model + fold are "store/events vocabulary" that may live below id-groups (then 2b is a relocation), or schedule 2b's fold seam together with step 4 so the fold trait can be owned by id-events and implemented by id-groups with EventStore construction composed in the facade — either needs a design decision, not a bigger inversion of the same kind used in 2a.

  10. dezren39
    added 3 commits that reference this issue on Nov 11, 2026

    Merge pull request #8656 from developing-today/crate-split-step2b1-id…

    b8be94f

    pkgs/id crate split step 2b-2: move event store family into id-events (…

    746cb28

    Merge pull request #8664 from developing-today/crate-split-step2b-id-…

    33bad1e
  11. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Step 2b (id-events) is landed — this issue is closed by the two PRs below. The blocker recorded on this issue (the event_store → groups::fold cycle) was resolved by the coordinator's design ruling, applied as written.

    Design ruling (recorded per the close-out protocol)

    The group model and fold are ruled group-projection vocabulary owned by the events layer: groups::fold is a deterministic projection over the event log, resolve/roster is internal to EventStore, and the design's own note already puts group-semantics-at-ingest behind events-owned surfaces. Therefore the model + fold moved down into id-events, and step 4's id-groups will be the policy/enforcement remainder of the group layer depending on id-events (noted on #4407). The same ruling covered the secondary seams: idset (its only group refs were groups::Role/groups::fold) and the leaf-like sync-gating value types (pull_policy, blob_gate::WorldAccess, local_claims) moved down alongside; facade re-exports preserve every historical path. No duplicated types, no feature hacks, no EventStore API or behaviour change was needed.

    PRs and merges

    • PR pkgs/id crate split step 2b-1: extract id-events (#4405) #8656 — "pkgs/id crate split step 2b-1: extract id-events (pkgs/id crate split — step 2: extract id-store, then id-events #4405)", merged b8be94f. Created crates/id-events (deps: id-core, id-store — no moved module names a caps surface, so id-caps is not linked yet) and moved down:
      • the group model types from groups/mod.rs (Key, Role, Event, Body, DeviceOp, Create, MemberOp, Delegate, DEVICE_ADD_KIND/DEVICE_REVOKE_KIND), groups::policy (Policy/Template/Delegation/RemoveMode family), groups::fold (+ Projection/GroupView/Outcome/Refusal/FoldError/DeviceGrant), groups::delegation (Grant), groups::friendship, groups::event (the wire decode), the serde wire adapters (extracted from groups/log.rs), and the groups test suite;
      • idset in full (idset.rs, idset/expand.rs, idset/view.rs);
      • pull_policy (PullPolicy/PullGate/PullRefused), local_claims (LocalClaims), and world_access::WorldAccess (the blob gate's leaf trait; blob_gate keeps FoldedWorlds + gate logic in the facade and re-exports the trait).
      • Facade: id::groups is a shim (re-exports + local actions/log/warnings/worlds remainder; groups::log::wire re-exported), id::idset/id::local_claims are re-exports, src/pull_policy.rs is a shim holding the facade-side test fixtures and the one store-backed gate test. In id-events, pull_policy's test fixture folds with this crate's own groups::fold and answers membership from the projection (same membership set; the fixture world has no grants).
    • PR pkgs/id crate split step 2b-2: extract id-events (#4405) #8664 — "pkgs/id crate split step 2b-2: extract id-events (pkgs/id crate split — step 2: extract id-store, then id-events #4405)", merged 33bad1e. Moved event_store (mod/ingest/resolve/claims/chat/documents/range/sync/waiting_rows/writer_set), local_events, event_sync, attestation into id-events; implementation exists only there, facade re-exports preserve id::event_store, id::local_events, id::event_sync, id::attestation, and id::store_traits::SharedEventStore still pins the same store (the EventStoreBackend impl moved with EventStore). Minimal visibility widenings only: event_store::sync::{RangeStore, sync_on_streams} and event_sync::CLOSE_WAIT are pub (were pub(crate)) because the facade's log_sync/artifact name them; one event_sync test compares the ALPN against the literal /id-sync/1 instead of the facade's log_sync::SYNC_ALPN.

    Verification (steps 1/2a protocol)

    • Baseline, unmodified main @a3cc79eb8a, full workspace cargo test --no-fail-fast via the cargo-target-broker from pkgs/id: 66 suites / 3,676 passed / 1 failed / 33 ignored; the one failure is the pre-existing frames::tests::byte_refusal_does_not_spend_a_frame_token_or_increment_counters (pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620).
    • PR pkgs/id crate split step 2b-1: extract id-events (#4405) #8656 tree: 68 suites / 3,676 passed / 1 failed (frames only) / 33 ignored — parity (suite delta = relocated suites).
    • PR pkgs/id crate split step 2b-2: extract id-events (#4405) #8664 tree: 68 / 3,676 / 1 / 33 on its original base; after rebase onto current main (drift: web/*.ts, world_dev.rs, tests/toolchain_pin.rs), the merged tree re-verified: 68 suites / 3,688 passed / 1 failed (frames only) / 33 ignored — the +12 are tests that landed on main with the drift; no test lost, no new failure.
    • Fuel canary, both PRs: sha256sum pkgs/id/src/sandbox.rs identical before/after (db88ec8d52e961702353c97a407b77badadef1bd7e0a610a6075267e175d80b5); print_fuel_baseline output byte-identical (72 lines) on main, 2b-1 and 2b-2 trees.
    • Nix nix build ./pkgs/id#id-lib (no NIX_CONFIG override), per PR: check phase fails on exactly the pre-existing frames failure — pkgs/id crate split step 2b-1: extract id-events (#4405) #8656: facade lib 2,362/1; pkgs/id crate split step 2b-2: extract id-events (#4405) #8664 rebased: 2,215/1. Main's own Nix check phase measured directly: 2,490/1, same single failure — parity, stated explicitly on both PRs. Merges went on local parity, as steps 1/2a did (repo CI is failing wholesale for unrelated infra reasons).
    • Completeness grep: moved modules have no implementation left in facade src — only pub use shims/re-exports.
    • Incidental parity note: cargo check -p id --no-default-features fails identically on unmodified main and on the final tree (pre-existing world_compile → world_cache/world_session feature-gating errors, untouched by this split). One broker pooled-dir registration race was hit while alternating checkouts (SQLite UNIQUE on dirs.path); re-measured in a fresh target dir, as the protocol prescribes.

    Step 2 of the split (#3447) is now complete: 2a (id-store, PR #8641) + 2b (id-events, PRs #8656/#8664). Closing.

  12. dezren39
    closed this as completedon Nov 11, 2026
  13. dezren39
    added a parent issue on Nov 12, 2026
    • pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447
  14. dezren39
    added
    epic/id-programReprioritization program epic (2026-11-12)
    epic/id-crate-splitEpic: id-crate-split - all issues of this effort carry it
    design/id-crate-splitDesign: id-crate-split - all issues of this effort carry it
    on Nov 12, 2026
  15. dezren39
    added a commit that references this issue on Nov 16, 2026

    feat(id): port v1 attestation to id-events crate split (#3792, PR #7179)

    75ba94b
  16. dezren39
    added
    primary-parent/id-crate-splitPrimary parent epic id-crate-split (design §3)
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)design/id-crate-splitDesign: id-crate-split - all issues of this effort carry iteffort/lLarge: multi-day or open-ended; expect staged check-insepic/id-crate-splitEpic: id-crate-split - all issues of this effort carry itepic/id-programReprioritization program epic (2026-11-12)expediteImportant - do this very soon, before anything not expeditedkind/performancePerformance problem or optimizationprimary-parent/id-crate-splitPrimary parent epic id-crate-split (design §3)priority/highImportant and time-sensitivequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

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.