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 — docs(id): did-it tracker data model — events, expectations, per-entity detail, later opinions (#2029) by dezren39 · Pull Request #2330 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Oct 29, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Investigation doc for #2029 (LIST 7a), queue task 3392. Docs-only: one file, no runtime code.

What it settles

The tracker is modelling on the existing event substrate, not new infrastructure: four didit.* kinds on the free-string ChainExt.kind, CBOR bodies hash-committed by the signed header, group-scoped replication, and a pure evaluator instead of stored due state.

  • Expectations are data, not events-as-state: window + active (arbitrary hours, IANA tz) declared per household/entity, superseded by a new declaration that names its predecessor. "Twice a day" and "every 2–4h while awake — which may not be daytime" are both plain data; the night-shift case is a wrapping span, not a special case.
  • Per-entity cardinality: one record with subjects: [ids] plus a details map keyed by entity. "Walked both, one peed" is one act with divergent detail, not two events.
  • Non-metric records: measure is optional at both levels; "drank water" is a record with no quantity and no sentinel.
  • Later opinions: didit.opinion names its targets by event ID, carries its own author/time, never mutates the record — and may target expectations as well as records.
  • Cross-app retrieval: summary vs full projections, derived not stored, on top of group roles (Pull replicates ciphertext, Read reads content).

Six decision records (D0–D6) state each choice with its rejected alternative. Five dog-care examples are worked end to end (§4), and the query shapes the schema must support are tabulated (§6).

What it does not settle

Stated as open questions rather than papered over (§9): whose clock decides a window boundary for a travelling author, whether the summary projection still leaks a behavioural graph, retirement vs live expectations, and whether opinions need a stance taxonomy.

Verification

Docs-only, so CI is the treefmt/prettier gate (formatted locally with prettier --write). Every substrate claim carries a path:line citation read at origin/main 2026-10-29; schema examples are checked against the constructs the doc defines.

Follow-up

  • id: did-it tracker schema types + evaluator (library slice) #2329 — library slice: schema types + evaluator, with the golden tests named in §8.

The app-side rendering belongs to the app-packaging work (#2026) and is out of scope here.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dezren39 added 2 commits October 29, 2026 08:06
@dezren39
docs(id): did-it tracker data model — events, expectations, per-entit…
d43ffc3
…y detail, later opinions (#2029)

Investigation doc for LIST 7a: schema sketch over the existing event substrate
(kind strings in ChainExt, append-only bodies, group-scoped replication), five
dog-care examples worked end to end, six decision records, projection story for
cross-app retrieval, and the open questions the design round must settle.
@dezren39
docs(id): prettier formatting for the tracker data model doc
3e01809
@dezren39
dezren39 requested a review from a team as a code owner October 29, 2026 13:06
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 96207a6c-f402-409e-b72f-7a76c940d156
Commits

Reviewing files that changed from the base of the PR and between 5a34fa7 and 9f8b5e9.

Files selected for processing: 1
  • doc/2026-10-29T13-04-50Z_investigation_didit_tracker_data_model/2026-10-29T13-04-50Z_investigation_didit_tracker_data_model.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T13:10:36.728480Z 3e01809 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Oct 29, 2026
id: investigate: did-it tracker data model — events, expectations, per-entity cardinality, details + later opinions #2029
Closed
@dezren39
docs(id): ground the tracker model in the verified envelope — no time…
9f8b5e9
…stamp in ChainExt, unsigned group log, unindexed reads
@dezren39

dezren39 commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

Accuracy pass after a full substrate read (commit 9f8b5e9):

  • The envelope has no timestamp. ChainExt carries no time field; time exists in the store only as the local arrival clock on waiting rows. The doc now says so and uses it to justify at living in the record body.
  • The group fold is a precedent, not a dependency. groups::fold runs over groups.jsonl, an unsigned JSONL log, not over the event store — so the tracker evaluator is its own pure function, same shape, different input. Encryption epochs are named as living in the encryption scheme, not on ChainExt.
  • Retrieval is unindexed by design. Reads walk every applied event and sync is whole-store set reconciliation, not a filtered query; §6 now states the real cost model instead of implying a range query.
  • D0 corrected from "three" to four kinds, with LocalEvents::record(kind, …) cited as the existing generic constructor, plus the header CBOR caps (512-byte text, 512-element arrays) that push subject sets and detail maps into the body.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 29, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3e0180908c

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...tion_didit_tracker_data_model/2026-10-29T13-04-50Z_investigation_didit_tracker_data_model.md

```
didit.record {
id: bytes32, // = event id; carried for convenience in projections

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...tion_didit_tracker_data_model/2026-10-29T13-04-50Z_investigation_didit_tracker_data_model.md
Comment on lines +318 to +319
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

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...tion_didit_tracker_data_model/2026-10-29T13-04-50Z_investigation_didit_tracker_data_model.md
Comment on lines +239 to +241
- **"Fed twice a day"** →
`{kind: "count_per_period", count: 2, period: {anchor: <local midnight>, length_seconds: 86400}}`
with `active: {kind: "always"}`.

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...tion_didit_tracker_data_model/2026-10-29T13-04-50Z_investigation_didit_tracker_data_model.md
Comment on lines +160 to +162
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.

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...tion_didit_tracker_data_model/2026-10-29T13-04-50Z_investigation_didit_tracker_data_model.md
Comment on lines +215 to +217
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

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot assigned dezren39 Oct 29, 2026
@dezren39
dezren39 added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 3b21720 Oct 30, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/3392-2029-tracker-data-model branch October 30, 2026 01:05
This was referenced Nov 1, 2026
id: design+PoC: sticky-notes / did-it tracker — the first ID app #2031
Closed
id: did-it tracker schema types + evaluator (library slice) #2329
Closed
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.