Skip to content

design(pm-orchestration): Full-history replay and bounded retention feasibility research #9466

Closed

Description

@dezren39

JRN-04 — Full-history replay and bounded retention feasibility research

Issue title: design(pm-orchestration): Full-history replay and bounded retention feasibility research
Design parent: #9208 · Scope: #9208 relations/journal/authority · Version: V3 proposal; not an authorization to implement. Requirement IDs (ALLOCATED): H-R023, P-R006. Slice status: design-expansion support, intentionally separate from intake-source requirement IDs. Pinned baseline: a038f084dbeb525494d7bb928ad91f597db2ac51.

This batch creates design/research/validation handoff issues only. After PR #9225 is merged and this slice's granular prerequisites are resolved, a separately scoped implementation issue may be filed; production adoption, migration, deployment, and live acceptance remain separately authorized stages. The local FDR decisions are accepted design defaults; global #9180 registration is pending and is not a blocker to this bounded design work.

Goal and deliverable

investigate the source requirement for full event/history replay against current queue events, result, blocked_deps, #3424 six-piece durable task model and #8579/#8602 schema audit; define what can be reconstructed, what is merely telemetry/observation, and bounded retention/redaction/compaction alternatives. Do not create a second event database or claim full event sourcing.

Curated requirement trace

  • P-R006 — design-only (candidate); basis: parent-approved semantic support mapping; not a direct implementation_slice_keys match; support rationale: design-expansion feasibility research only; also consumes design(queue): durable task data model — blocker links, park revalidation, status reasons + notes, full event history, actor provenance #3424's existing full-history requirement; not a literal full-event-store mandate or parallel DB; occurrences P-110, P-111, P-112, P-113, P-114, P-115, P-116, P-117, P-118, P-119, P-120, P-121, P-122; citations: 03_full_orchestration_proposal.md#P-110:165, 03_full_orchestration_proposal.md#P-111:167, 03_full_orchestration_proposal.md#P-112:169, 03_full_orchestration_proposal.md#P-113:171, 03_full_orchestration_proposal.md#P-114:172, 03_full_orchestration_proposal.md#P-115:173, 03_full_orchestration_proposal.md#P-116:174, 03_full_orchestration_proposal.md#P-117:175, 03_full_orchestration_proposal.md#P-118:176, 03_full_orchestration_proposal.md#P-119:177, 03_full_orchestration_proposal.md#P-120:178, 03_full_orchestration_proposal.md#P-121:179, 03_full_orchestration_proposal.md#P-122:181; design: components/9209-leases-fencing-outbox-direct-completion.md#3-leasefencing-and-existing-one-queue-contract; outcome: Make work recoverable across interruption using durable progress/ownership, idempotency, outbox, optimistic concurrency, leases, checkpoints, incremental activity, and repair.; residual: See status reason and missing_evidence; implementation slices are local keys, not issue IDs.; missing evidence: exact implementation/parser tests for the full behavior, deployment/live acceptance unless separately cited
  • H-R023 — design-only (requirement); basis: parent-approved semantic support mapping; not a direct implementation_slice_keys match; support rationale: design-expansion feasibility research only; also consumes design(queue): durable task data model — blocker links, park revalidation, status reasons + notes, full event history, actor provenance #3424's existing full-history requirement; not a literal full-event-store mandate or parallel DB; occurrences H-083, H-084, H-085, H-086, H-087; citations: 01_handoff_pm_stack_fleet_orchestration.md#H-083:65, 01_handoff_pm_stack_fleet_orchestration.md#H-084:65, 01_handoff_pm_stack_fleet_orchestration.md#H-085:65, 01_handoff_pm_stack_fleet_orchestration.md#H-086:65, 01_handoff_pm_stack_fleet_orchestration.md#H-087:65; design: components/9198-requirement-crosswalk-current-state-census.md#2-v1-census--actual-state-and-bounded-facts; outcome: Deliver committed inventory, architecture/component designs, ADRs, traceability, issue index, staged plan, acceptance/migration/rollback tests, census evidence, gaps, and truthful status/receipts; keep implementation issues open until verified.; residual: See status reason and missing_evidence; implementation slices are local keys, not issue IDs.; missing evidence: exact implementation/parser tests for the full behavior, deployment/live acceptance unless separately cited

Deliver this bounded slice only. It enables downstream work only after its stated contracts and prerequisites are accepted; it does not imply that other component specs, closed parent issues, source code, tests, deployments, or runtime behavior are complete.

Owned files and boundaries

  • doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/research/full-history-replay-retention.md

Explicit read-only consumers (not writable ownership): none declared.

Use the existing Fleet queue/PM Stack/adapter owners named in the design; do not add a queue, database, scheduler, service, resolver, executable, GitHub client, or general creation-outbox producer. Shared CLI glue remains owned by the single CLI-13 registration slice. Do not edit #6533 or duplicate its live acceptance; consume #9028/#9073–#9076/#9079/#9081/#9178/#9179/#3424/#8575/#8579 as applicable, not as replacement work.

Prerequisites and sequencing

Hard blockers named by the source slice, after granular-key normalization: CEN-04
File-collision sequencing edges added by stable topological serialization: none.
Existing issue references retained as non-blocking runtime/evidence gates: #3424 (existing durable-task-model compatibility evidence; do not duplicate its research/intake issue), #8579 (existing schema-audit evidence; consume, do not duplicate).
Domain-starter parent references are never emitted as hard native blockers. Source parents normalized to granular slices or runtime gates: #9198→runtime gate.

Source-local candidate aliases normalized for this packet: DEP-01 → CEN-04.

Use only granular issue-key edges after all keys are resolved. Never make a whole domain starter a hard blocker when it creates a cycle. File collisions are hard sequencing edges. Parent integration adds native parent/blocker edges in a later pass after the command map, requirements IDs, and acyclic graph are verified.

Starting failing test, oracle, and done check

  • First failing test: pmo_history_replay_evidence_matrix_distinguishes_observation_from_authority
  • Oracle: The source slice’s stated reference model, golden fixture, or invariant; compare expected and observed state explicitly. No mock-only claim of deployed/live behavior.
  • Done command: ``python3 -I -c 'from pathlib import Path; s=Path("doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/research/full-history-replay-retention.md").read_text(); assert all(x in s for x in ("retention", "replay", "telemetry", "unknown", "alternatives", "prior art"))'.
  • Tests must first be listed by exact name in the owning target (-- --list); assert the test exists before execution. A zero-test filter passing is not acceptance.

Acceptance and negative cases

use Track A/B prior-art receipts and historical issue/doc sources; record source pointer, accessible surfaces, limits, retention/redaction and rollback implications, migration evidence requirements and alternatives including no full replay. Never infer immutable domain-journal semantics from an events table name.

Negative coverage: reopen/alter #3424/#8579 research ownership, equate matching schema shapes, invent unbounded retention, or claim deployment.

Compatibility, migration, and runtime gates

Source trail


Original slice text (preserved)

JRN-04 — Full-history replay and bounded retention feasibility research

Tier: research only. Goal: investigate the source requirement for full event/history replay against current queue events, result, blocked_deps, #3424 six-piece durable task model and #8579/#8602 schema audit; define what can be reconstructed, what is merely telemetry/observation, and bounded retention/redaction/compaction alternatives. Do not create a second event database or claim full event sourcing.
Owned files: doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/research/full-history-replay-retention.md (future research deliverable only).
Hard blockers: none for read-only research; coordinate with DEP-01 and #9198 crosswalk, but do not duplicate the worker's #3424/#8579 candidate investigation.
Recommended after: DEP-01 crosswalk review where available.
First failing oracle: pmo_history_replay_evidence_matrix_distinguishes_observation_from_authority checks every record source is classified as authoritative mutation, observation, telemetry, projection or unknown, and every replay claim has primary-source support.
Done command: python3 -I -c 'from pathlib import Path; s=Path("doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/research/full-history-replay-retention.md").read_text(); assert all(x in s for x in ("retention", "replay", "telemetry", "unknown", "alternatives", "prior art"))'.
Acceptance: use Track A/B prior-art receipts and historical issue/doc sources; record source pointer, accessible surfaces, limits, retention/redaction and rollback implications, migration evidence requirements and alternatives including no full replay. Never infer immutable domain-journal semantics from an events table name. Negative: reopen/alter #3424/#8579 research ownership, equate matching schema shapes, invent unbounded retention, or claim deployment. Rollback: research only.

Merged source-key/facade acceptance

  • OPT-REPLAY-01 → JRN-04: Full-history replay/retention research maps to JRN-04; no event-sourcing rewrite. Exact command rows allocated here: no direct command rows.

Activity

  1. added
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    Contributor
  3. added
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 13, 2026
  4. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Triage (task 15930, lane code-b, 2026-11-13): JRN-04 is a well-formed research-only slice; its deliverable is correctly gated on the design doc tree landing. Routed to a gated research follow-on (task below).

    Fresh verification:

    Labels decided: priority/normal, effort/m, source/queue-worker; kind/design stands (already present).

    Routing: research follow-on enqueued as queue task 15991 (dedupe repo-health:v1:fix:developing-today/code:issue:9466) with the gate as its first instruction — on claim, if PR #9225 is unmerged, dep-block on it instead of starting. Acceptance: the deliverable doc exists in the merged design tree and passes its done command (contains retention, replay, telemetry, unknown, alternatives, and prior art — including the no-full-replay alternative), using Track A/B prior-art receipts and recording source pointers, accessible surfaces, limits, retention/redaction and rollback implications, and migration evidence requirements.

  5. added
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    source/queue-workerFiled or worked by the queue/worker pilot
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 13, 2026
  6. 11 remaining items

  7. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 13, 2026
  8. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Picked up (task 15991, lane code-d, 2026-11-13): JRN-04 research — gate PR #9225 has MERGED, so research starts now instead of a dep-block.

    Fresh verification by this lane:

    Next: worktree from origin/main, investigate the current queue events / result / blocked_deps record sources against the #3424 six-piece durable task model and the #8579/#8602 schema audit, and write the deliverable doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/research/full-history-replay-retention.md classifying every record source as authoritative mutation, observation, telemetry, projection, or unknown. Research only: no code, schema, or production change; no second event database; no claim of full event sourcing.
    state: in-progress

  9. added a commit that references this issue on Nov 13, 2026
  10. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Done (task 15991, lane code-d, 2026-11-13): JRN-04 research delivered and merged in PR #9555; issue #9466 closing on its deliverable.

    Outcome:

    • Gate cleared: PR docs(pm-orchestration): build out both orchestration design tracks #9225 MERGED 2026-11-13T13:36:36Z (fresh gh pr view on claim), so per the packet's first instruction the research proceeded instead of a dep-block. CEN-04 (design(pm-orchestration): Cross-model schema owner and migration compatibility matrix #9434) is a coordination input, cited in the deliverable as an open prerequisite for any future migration; the slice text names no hard blocker for read-only research.
    • Deliverable: doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/research/full-history-replay-retention.md — evidence matrix classifying every current record source as authoritative mutation, observation, telemetry, projection, or unknown (oracle pmo_history_replay_evidence_matrix_distinguishes_observation_from_authority); verdict that literal full-history replay is not feasible from current records (no before/after guarantee; progress/result overwritten, blocked_deps NULLed in place; prune_events 30-day rolling retention; approximated Turso atomicity per design: move agent append streams (agent.events, agent.quota_records) from Supabase to Turso staging #5690; non-broker writes exist) and is not mandated by H-R023/P-R006; feasible bounded forms, retention/redaction/compaction analysis, migration evidence requirements, and alternatives including no full replay (recommended now), with Track A/B prior-art receipts.
    • PR docs(pm-orchestration): JRN-04 full-history replay and bounded retention feasibility research (#9466) #9555 MERGED 2026-11-13T13:52:44Z, merge commit a0bf3c3. Deliverable verified on main post-merge: sha256 6e6833ad3411c6c3b72a89a1ab9b409a7f9269d0feb8f43bc34646d063eda178, identical to the worktree copy.
    • Done command from this issue, run in the worktree: PASS (deliverable contains retention, replay, telemetry, unknown, alternatives, and prior art).
    • Checks: PR was MERGEABLE; only CodeRabbit reported (NEUTRAL, rate-limited, no findings); no Codex review findings existed on the PR to disposition. Diff was exactly the one deliverable file. Research only: no code, schema, or production change; no second event database; no claim of full event sourcing.
      state: done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleetpkgs/fleet multicall binary + platform cratesapp/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilotstatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions