Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add a single-shard annotation application path over the existing RF3 WAL. Successful mutation responses wait for ordered application and a retained request result. Point reads obtain a quorum barrier and wait for the background view, without scanning the WAL suffix in the read path. The Arrow contract supports label additions/removals and explicit Keep/Set/Clear operations for status and score.

The driver retains one decoded batch under pressure and a bounded latest outcome per producer slot. Missing turns reject the entire batch without blocking later records. Exact retries return the original result; changed or superseded requests cannot execute again. Upload and application workspaces are independent so waiting writers cannot occupy the memory needed to apply their own records.

This remains draft and disabled in the application registry. It recovers from the original Lance base plus retained WAL and refuses materialized/closed sources. Managed publication must persist request outcomes and handle result-only batches before source GC can be enabled; this PR does not complete the draining service or establish a throughput result.

Refs #378. Depends on #573 (stacked base).

Testing

  • Ingest all-target Clippy with service,http-client, Rust workspace Clippy and all-target tests passed. The local repository script was stopped during the Python release build; this is not a full local-script pass. Python CI passed.
  • A real TLS/RF3/Lance integration test passed: WAL acceptance while apply is paused does not acknowledge success; another ingress cannot return its stale base; updates, label operations, exact/changed retries and atomic rejection behave correctly; an orderly restart reconstructs both values and latest request results.
  • The test uses actual disk-backed WAL nodes and Lance files. SIGKILL, publication/GC recovery and sustained mixed-load qualification remain outstanding.

@beinan
beinan changed the base branch from codex/annotation-committed-apply to main October 25, 2026 05:48
@beinan
beinan marked this pull request as ready for review October 25, 2026 05:52
@beinan
beinan merged commit 2e5920c into main Oct 25, 2026
15 checks passed
beinan added a commit that referenced this pull request Oct 25, 2026
## Summary

After annotation WAL payloads are retired, an exact retry must still
return its original applied or rejected result. Freeze bounded latest
rejection results with the same native Lance transaction as the
annotation values, then restore that checkpoint and replay only its
suffix. Installation preserves later active values and request outcomes.

Result-only batches use a native metadata-only transaction with no new
data files, allowing rejected requests to drain too. This integrates
checkpoint recovery with the existing fenced publication adapter;
automatic publisher scheduling and production owner routing remain
follow-up work.

Depends on #574. Refs #378.

## Testing

- Core and ingest all-target Clippy with `service,http-client` passed.
- 11 native annotation staging tests and 7 ingest annotation tests
passed.
- Real TLS/RF3/Lance cases cover concurrent suffix updates,
selected-manifest reply loss, source payload retirement and reopen,
exact accepted/rejected retries, and producer generation reuse.
- Result-only publication writes zero data files and preserves fragment
references; the maximum bounded rejection snapshot fits within the
existing descriptor limit.
- Formatting, diff checks, and the repository script’s Rust workspace
Clippy and all-target tests passed. The script was stopped during its
Python extension release build; local Python results are not claimed,
and merge remains gated on the PR’s Python CI.

Recovery fixtures use orderly shutdown/reopen. Process SIGKILL and
sustained drain under mixed pressure are still required before enabling
this path.
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