GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — docs(id): did-it tracker data model — events, expectations, per-entity detail, later opinions (#2029) by dezren39 · Pull Request #2330 · developing-today/code Conversation
|
|
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 50 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. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…stamp in ChainExt, unsigned group log, unindexed reads
|
Accuracy pass after a full substrate read (commit 9f8b5e9):
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e0180908c
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| ``` | ||
| didit.record { | ||
| id: bytes32, // = event id; carried for convenience in projections |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Keep the event ID outside the signed record body
As written, the CBOR body must contain the ID of the event that signs it. However, pkgs/id/src/chain.rs::sign hashes the body into the header before deriving the event ID from the signed header, creating a cryptographic circular dependency. Adding the ID after signing also fails the payload-hash check in event_store/ingest.rs. Remove this field from the serialized body and populate it only in the derived projection.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Records at 07:05, 09:30, 12:10, 16:45, 21:00 → each gap is inside 2–4h except 16:45→21:00 | ||
| (4h15m, over the max) → one `violated` interval. The evaluation is a scan of consecutive records |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Count both over-limit gaps in the interval example
For the listed records, 12:10→16:45 is also over the four-hour maximum: it lasts 4h35m. The example therefore contains two violated intervals, not one. Since §8 proposes using the worked examples to establish evaluator behavior, correct this expected result so an evaluator that misses the earlier violation is not treated as correct.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - **"Fed twice a day"** → | ||
| `{kind: "count_per_period", count: 2, period: {anchor: <local midnight>, length_seconds: 86400}}` | ||
| with `active: {kind: "always"}`. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Use calendar-day boundaries for daily expectations
For households in a DST-observing zone, a fixed 86,400-second period does not preserve local midnight boundaries. For example, in America/Chicago, midnight on 2026-11-01 plus 86,400 seconds is 23:00 that same date, so a feeding at 23:30 would count toward the next period instead of that calendar day. This happens even without travelling authors, so resolving §9's clock-choice question does not fix it. Represent this expectation using calendar period: "day" with an explicit household IANA zone rather than a fixed-duration custom period.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| The entity ID is `BLAKE3(household || kind || name_at_creation)`, so two devices that create the | ||
| same dog independently converge instead of forking the household's entity set. Renames are new | ||
| events with `after` naming the previous one; the ID never changes, because records reference it. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Distinguish separate entities when creation names are reused
If a household creates a dog named Rex, renames it to Max, then adds a different dog named Rex, both dogs receive the same BLAKE3(household || kind || name_at_creation) ID because renaming deliberately preserves the first dog's ID. Records, per-subject details, and retirement events can no longer distinguish these separate dogs, even though their current names differ. Include a per-creation identity discriminator and reconcile duplicate offline creations explicitly rather than using the creation name alone as identity.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| active: window_active, // when the expectation applies at all | ||
| supersedes: bytes32?, // previous expectation event id, if this replaces it | ||
| ends_at: int?, // optional stop date |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Record when an expectation becomes effective
When an expectation changes from twice daily to three times daily, this schema records which declaration it replaces but not when the replacement takes effect. The signed envelope cannot supply that information either: the complete header layout tested in pkgs/id/src/chain.rs:1000–1011 contains no timestamp. Causal ordering alone cannot distinguish a change made Monday from one made Wednesday when no intervening dated records exist, so the promised historical evaluation for Tuesday cannot determine which rule applied. Add a signed effective-start time and select the declaration applicable to the queried window rather than only the latest non-superseded declaration.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.