GeezerVison is showing github.com — C7 leaf 1: canonical report records, KV append, period generation, and snapshots · Issue #12349 · developing-today/code
C7 leaf 1: canonical report records, KV append, period generation, and snapshots #12349DescriptionPart of #9575; implements leaf 1 from C7 design.
Build the durable canonical report-record foundation: stable IDs, append-only event/block records, idempotent KV append, period generation keyed by explicit CT calendar boundaries, conflict detection, soft-window enforcement, and immutable rollover snapshots. Inspect existing permanent PM-stack APIs first; do not create a parallel report database.
Acceptance: records retain source attribution/timestamps and source cursor; reruns are idempotent; daily periods open midnight America/Chicago with 08:00 next-day soft close; snapshot corrections are new linked records. Tests reject duplicate append, arbitrary off-window rewrites, and silent snapshot mutation. Document the storage/API seam for dependent leaves.
Dependencies: none. This is the first implementation leaf and foundation for leaves 2–5.
Progress
- Explicit America/Chicago daily period identity, DST-correct calendar boundaries, and next-day 08:00 soft close — partial period-generation slice in PR #12364.
- Canonical report records, append/idempotency, conflict and soft-window enforcement, snapshots/corrections, and dependent-leaf storage seam remain open.
Activitydeveloping-today commented on Nov 22, 2026 dezren39 commented on Nov 22, 2026 Progress: PR #12364 adds the first independently testable C7 slice: stable daily period IDs and America/Chicago midnight boundaries with next-day 08:00 soft close, including 23/25-hour DST days. bun test test/report-periods-c7.test.ts passes (3 tests, 11 assertions); git diff --check passes. Typecheck could not run because the worktree lacks the Bun type definitions (TS2688). This does not complete the report-record, idempotency, conflict, or snapshot acceptance. Next slice: build report-record append on the existing PM-stack permanent event/store seam without creating a parallel database. dezren39 commented on Nov 22, 2026
Parked with the period-boundary slice published as PR #12364 (2e15388). Resume point: implement the canonical append-only report-record API using the existing PM-stack permanent store, then add rerun idempotency, source cursor/provenance, soft-window conflict behavior, and immutable rollover corrections. The PR is open; its only checks are neutral/skipped, and TypeScript typecheck was unavailable because @types/bun is absent in the worktree. dezren39 commented on Nov 22, 2026 agent-note:v1
state: picked_up
task: 21000
lane: oc-code-07 (OpenChamber scheduled lane, worker repo-worker-code)
stage: claimed -> verified
Reclaimed the existing C7 implementation task and resumed canonical PR #12364 at d0b2def in the existing fleet worktree. Fresh verification: #12349 and #12364 are OPEN; no hard-stop labels are present. The PR currently contains the period-boundary slice and prior append hardening; the record persistence/idempotency/conflict/snapshot acceptance remains incomplete. Main is fast-forwarded to origin/main. Next: inspect the current permanent-record seam and continue only within this claim. dezren39 commented on Nov 22, 2026 agent-note:v1
state: parked
task: 21000
lane: oc-code-07 (OpenChamber scheduled lane, worker repo-worker-code)
stage: targeted_tests_passed -> parked
Parked with the linked snapshot-correction slice pushed to canonical PR #12364 (head 176c723). Targeted tests pass: 12 tests, 2100 assertions; git diff --check passes. Fresh PR read shows OPEN and no check runs yet. This is a partial slice, not completion of #12349: remaining work is the permanent PM-stack/KV storage integration and generation command, while preserving the no-parallel-database boundary. Resume in /home/user/git/fleet/task-21000-c7-20261122T032547Z-e617716a on branch task/21000-c7-canonical-records. dezren39 commented on Nov 22, 2026 Progress update for task 21000 / #12349:
- Added an append-only adapter to the existing
public.agg_store_documents table. C7 uses namespaced immutable keys and atomic insert-if-absent; it does not create a separate database or dual-write.
- Added regression coverage for remote idempotency/conflicts, snapshots/corrections, torn JSONL tails, and retries with omitted optional fields. Fixed inconsistent records that reused an ID across generations, snapshots, or corrections.
- Verification: typecheck passed; focused report/period/KV suites passed (21 tests); contract and provenance checks passed.
- Full aggregator suite hit the laptop's active PM-stack listener on port 4871 in quota-contract/health tests. The service was left running; this is recorded in PR feat(pm-stack): persist canonical C7 reports #12364.
The existing PR is updated and now closes this issue after merge. developing-today-fleet commented on Nov 22, 2026 Follow-up for the current C7 review: fixed the remote cross-event race with an atomic shared record-ID content claim in the existing document table, and changed record-ID tuple serialization to avoid delimiter collisions. Added concurrent generation/snapshot and newline-identity regressions. Reverified typecheck and focused suites: 22 passed, 0 failed; contract/provenance checks pass. Current head: a7f33fb.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|