Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A committed annotation batch that references a missing turn must not block every later update. Add typed application outcomes: permanent whole-batch rejections advance the ordered cursor without changing values; temporary staging pressure and storage errors leave it unchanged. Reject batches that cannot fit even after draining, and expose an explicit advance for already processed control entries.

The existing apply_batch error semantics remain unchanged. The new committed path does not authorize an ACK or WAL reclamation by itself; callers must retain request outcomes independently of dirty values.

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

Testing

  • Core all-target Clippy passed.
  • All 10 native annotation staging tests passed, including rejection/replay, release of pressure after real Lance publication, and repeated draining.
  • Rust workspace Clippy and all-target tests passed on the service integration descendant with these exact core changes. Full CI remains a merge gate.

@beinan
beinan changed the base branch from codex/annotation-managed-publication to main October 25, 2026 04:32
@beinan
beinan merged commit 2ef8f8f into main Oct 25, 2026
14 checks passed
beinan added a commit that referenced this pull request Oct 25, 2026
## 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.
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