Repository navigation
feat(store)!: named readers mounts (#944) and a step grid with an origin (#945) - #966
Merged
Merged
Conversation
…gin (#945) readers is a map of named mounts, each with its own members, showOwner and properties, so one collection serves a projected directory and a members-gated whole-record view side by side. Each mount keeps its own gate, projection, query rules, may and ETag; OpenAPI describes each as its own path with its own reader schemas. The single-object form is removed. intervals.origin sets where the step grid counts from: a date-time with Z or a fixed offset for date-time bounds, an integer for integer bounds. The check compares residues modulo the step, so it stays exact; no time-zone rules or daylight saving are followed, and the docs say why. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…grid-944 # Conflicts: # packages/store/CHANGELOG.md # scripts/package-audit.ts
jimhoyd
enabled auto-merge (squash)
September 29, 2026 20:11
…grid-944 # Conflicts: # packages/store/CHANGELOG.md
…generate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
…generate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
…generate references Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #944
Fixes #945
#944: several readers mounts per collection
readersis now a map of named mounts (at most 8):members?,properties?andshowOwner?. A mount with neithermembersnorpropertiesis still refused.may(hidden-fromtransitions left out) andETag(a hash of the projection on a projected mount, the record's own ETag on a whole-record mount).readers audit: ...).showOwnermount gets its ownStore<Collection><Name>ReaderRecordand...ReaderList. A plain members-gated mount reusesStore<Collection>Record.private-requestsproofs;readers(empty when none), so every collection's declaration fingerprint changes once. As with any declaration change, the first activation of this release wins the fence (Supported multi-process serving on one host: auth SQLite pragmas, database rate limit, declaration fence, setup refusal, multi-process harness (#902 item 4) #927).#945:
intervals.originorigin(withsteponly) sets where the grid counts from:Zor a fixed±hh:mmoffset, for date-time bounds;The default stays the epoch, or 0.
Example:
origin: 1970-01-01T00:00:00+05:30putsstep: PT1Hon the local hour at UTC+05:30. WithP1Dit is local midnight there.The origin is stored as its residue modulo the step, and a bound is on the grid when its own residue matches. This keeps the check exact for any safe integer, including bounds before the origin.
A
422names the declared origin, for examplemust be a whole multiple of PT1H from 1970-01-01T00:00:00+05:30. The OpenAPI 422 says the same.Activation refuses:
step;Why "Fixes #945" without IANA time zones. No IANA time zones, and no daylight saving. docs/STORE.md ("A grid with an origin") explains why:
The remaining gap is narrow. For a grid of an hour or less, a whole-hour daylight-saving change does not move it (UTC+09:30 and UTC+10:30 both put
PT1Hat :30 past). Only daily or longer grids in zones that change their offset shift for part of the year. No trial has needed that, so I'm closing the issue. Reopen it with the YAML if one does.Evidence
packages/store/test/readers-grid.test.tscovers:mayand ETags;-Number.MAX_SAFE_INTEGER;npm run verifyandnpm run test:packageboth pass locally (macOS, Node 26), after merging origin/main (Fixtures: hermetic test databases and seeds; assert one JSON property; resolved captures in failures #930).BEGIN IMMEDIATE: no write path changed, only the interval rule and the read-only readers dispatch.Limitations: local runs only on macOS; the CI matrix covers Windows and Linux. Not an independent security review.
🤖 Generated with Claude Code