Repository navigation
test(id): first app PoC — sticky notes + did-it tracker (#3790) - #12707
Conversation
…t store (#3790) Phase 3 of #2031, under epic #2056. Composes the landed slices — documents + tag claims, didit schema/evaluator (#3788), writer-set projection (#3789), generic body persistence (#4837) — into the #2031 acceptance scenario: A and B exchange notes and did-it events in one shared group timeline; A's counted view excludes C's record while C's claim stays stored, listed with its author, and retrievable byte-exact after a restart. A control evaluation over all records shows the exclusion is what holds the verdict at 2 of 3 walks. PoC only: no permanent feature is built on this without the #2031 review round. The executable artifact is the integration test; the example README lives at pkgs/id/examples/first-app-poc/README.md.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 22 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 718bb0fb1b
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| heads.insert( | ||
| note_id.clone(), | ||
| NoteHead { |
There was a problem hiding this comment.
Preserve all concurrent heads for each logical note
When two revisions share a note.id and both supersede the same earlier revision, both survive the superseded filter, but this insertion overwrites one with the other. Since documents() returns records sorted by event ID, the view silently selects the larger-hash revision instead of exposing the conflict. This contradicts the README's concurrent-head guarantee and the explicit requirement in doc/2026-11-01_design_id2031.md. Store multiple heads per logical note and include a concurrent-edit case so the PoC demonstrates that revisions remain visible.
Useful? React with 👍 / 👎.
What
The #3790 PoC — Phase 3 of #2031, under epic #2056: the first ID app (sticky notes fused with the did-it tracker) composed from the library slices that landed independently, as one Rust integration test plus the example README.
pkgs/id/tests/first_app_poc.rs— the executable PoC. A and B exchange notes and did-it events in one shared group timeline until their replicas converge; A's counted view excludes C's claim while keeping it retrievable.pkgs/id/examples/first-app-poc/README.md— states the PoC is not a feature and names the id: design+PoC: sticky-notes / did-it tracker — the first ID app #2031 review-round gate. The executable artifact is the integration test rather than a Roc example, per id(app): PoC — sticky notes + did-it tracker, the first ID app (Phase 3 of #2031) #3790's dispatch note (the Roc examples are world/capability demos; the A/B/C acceptance is an event-store integration property).How it composes what already landed
document.putevents in the shared group; a logical note is thenote.idtag on each revision, an edit is a new document linked by anote.supersedestag (concurrent heads would stay visible; this scenario's edit is sequential).didit.*events (id(didit): schema types + pure evaluator in pkgs/id/src/didit/ (Phase 1 of #2031) #3788 schema + pure evaluator) in the same timeline, bodies persisted/retrieved via the generic body store (id: generic event-body persistence, retrieval and range-sync — prerequisite for the didit tracker phases (#2031) #4837).Evidence (laptop venue, under fleet-build-lock)
cargo test --test first_app_poc→error: no test target named 'first_app_poc'.cargo test --test first_app_poc→ 1 passed; 0 failed. The test asserts: replica convergence (documents + tag claims identical); notes view (2 logical notes; B's revision is note-1's head; C's note present — the writer set filters the did-it view, not the timeline); did-it view (3 records listed, exactly C's uncounted, with author); counted verdict for the live window = 2 of 3 walks,Due; control verdict over all records = 3 of 3,Satisfied(the exclusion is what held the view at two); C's record body retrieved byte-exact from A's store after a restart.Scope
PoC only. It does not build the permanent feature, and the #2031 review round (schema, trust behaviour, the design's open privacy questions for Drew) remains the gate before any product work. This PR references #3790; it does not close #2031, whose tracker closes when the review round is recorded.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.