Skip to content

Register package-owned interval replay formats - #9040

Draft
kim-em wants to merge 9 commits into
agent/interval-payload-sessionfrom
agent/interval-package-replay
Draft

Register package-owned interval replay formats#9040
kim-em wants to merge 9 commits into
agent/interval-payload-sessionfrom
agent/interval-package-replay

Conversation

@kim-em

@kim-em kim-em commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Purpose

Let arbitrary function handlers own the representation formats for their proof payloads without adding a central arithmetic or function switch to the engine.

What this establishes

  • the exact replay address is (RuleKey, role, payload schema);
  • RuleKey.schema is the handler/theorem compatibility epoch, while payload schema is a recipe variant within that epoch;
  • each handler registers immutable, cache-independent role/schema/body validators;
  • registry, replay-snapshot, and invocation constructors are private;
  • the session freezes through one sealed replay snapshot, so owner and validator cannot be mixed independently on the proof-producing path;
  • duplicate formats are rejected during bounded registry assembly;
  • executable operations, aggregate registry metadata, and replay declarations have independent caps;
  • invokePlanned returns the plan together with the exact selected handler replay snapshot;
  • generic arena bounds and coverage run before package body validation;
  • undeclared formats and malformed bodies fail atomically;
  • two unrelated opaque packages safely reuse the same numeric schema with different validators;
  • all real dyadic and centered handlers declare exact empty-body schema-zero formats and run through the proof session.

These validators check representation shape only. Package-owned semantic checkers and soundness theorems are the next layer; caches and search policy remain outside replay. Compatibility of a changed callback under an existing rule epoch is explicitly a future semantic-replay obligation, not a property claimed by this layer.

Verification

  • lake build HexInterval.Experiment.PackageRegistry HexInterval.Experiment.PayloadSession HexInterval.PackageRegistryConformance HexInterval.PayloadSessionConformance HexInterval.DyadicRulesConformance HexIntervalExperiment
  • directly affected Propagator/StructureView/Policy/DyadicInterval conformance and scheduler bench targets
  • git diff --check
  • no added native_decide, axiom, or sorry

Stacked on #9038.

@kim-em
kim-em force-pushed the agent/interval-payload-session branch from acba9d6 to 59520ca Compare July 28, 2026 06:05
@kim-em
kim-em force-pushed the agent/interval-package-replay branch from b70fad3 to dd81fd5 Compare July 28, 2026 06:13
@kim-em
kim-em force-pushed the agent/interval-payload-session branch from 59520ca to 32ae124 Compare July 29, 2026 05:32
@kim-em
kim-em force-pushed the agent/interval-package-replay branch 3 times, most recently from 39c20ec to 2e85abd Compare July 29, 2026 06:13
@kim-em
kim-em force-pushed the agent/interval-payload-session branch from b6b7d0d to cf11011 Compare July 29, 2026 06:24
@kim-em
kim-em force-pushed the agent/interval-package-replay branch from 2e85abd to d152dc5 Compare July 29, 2026 06:26
@kim-em
kim-em force-pushed the agent/interval-payload-session branch from fa232f2 to e8a787a Compare July 29, 2026 06:47
@kim-em
kim-em force-pushed the agent/interval-package-replay branch from d152dc5 to 6ec486d Compare July 29, 2026 06:50
@kim-em
kim-em force-pushed the agent/interval-payload-session branch from e8a787a to 019ce52 Compare July 29, 2026 07:12
Kim Morrison added 9 commits July 29, 2026 07:12
Includes progress/20260728T054228Z.md.
Includes progress/20260728T054939Z.md.
Restack sealed package replay on reply-local payload limits while preserving exact handler formats and recovery semantics.\n\nProgress: progress/20260729T060046Z.md
Validate selected package formats before cumulative arena capacity and cover the partly filled-session case.\n\nProgress: progress/20260729T061237Z.md
Record the refreshed stack and validation in progress/20260729T062552Z.md.
Record the final lower-stack migration in progress/20260729T064950Z.md.
Record the final framework migration in progress/20260729T071332Z.md.
@kim-em
kim-em force-pushed the agent/interval-package-replay branch from 6ec486d to 79e3c9f Compare July 29, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant