Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

A bounded annotation staging view needs a publisher that continuously drains it and resumes an interrupted publication. Add one owned applier/publisher runtime using the existing catalog fencing, source pins, native descriptors, confirmation and closure protocol. Source thresholds, apply pressure and a low-volume timer trigger publication without discarding later updates.

Startup replays a plan-only prefix to its original cut, reuses already prepared files, or verifies an already selected manifest before completing closure. Upload, apply and publication have independent memory capacity. Storage/protocol errors stop the owner for fenced reconciliation; they do not create replacement mutation requests.

Depends on #578. Refs #378.

Testing

  • Ingest all-target Clippy with service,http-client passed.
  • All 13 annotation tests passed against real TLS/RF3 WAL and native Lance.
  • New runtime cases cover plan-only recovery, prepared-file reuse, selected-manifest reply loss, timed result-only publication, and repeated concurrent status/score updates followed by complete drain.
  • A Rust subprocess containing the three WAL replicas and runtime publishes a prefix, acknowledges a still-unmaterialized suffix, then receives SIGKILL. Reopen preserves the exact response and current fields and drains the suffix. Its child test role is ignored in ordinary discovery and explicitly invoked by the passing parent test.
  • Formatting and diff checks passed.

Production registry/HTTP wiring, shard-owner routing and sustained pressure/latency qualification remain follow-up work. These small correctness fixtures do not establish annotation throughput; the SIGKILL test preserves the backing storage.

@beinan
beinan marked this pull request as ready for review October 25, 2026 07:11
@beinan
beinan changed the base branch from codex/annotation-source-window to main October 25, 2026 07:52
@beinan

beinan commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

All test and feature-check steps in the HA job passed, including the process-recovery step at 08:52:22 UTC. The job reached its 60-minute limit while saving the Rust cache and was cancelled.

Commit 8eff554 gives the HA job 75 minutes so cold builds, recovery tests, and cache cleanup can finish. Test commands and assertions are unchanged. The new head must pass its checks before merging.

@beinan
beinan merged commit 112172d into main Oct 25, 2026
14 checks passed
beinan added a commit that referenced this pull request Oct 25, 2026
## Summary
Multiple HTTP ingresses now route narrow annotation reads and updates to
one fenced owner runtime. A successful update waits for quorum
persistence and application; readers through another ingress see the
current narrow annotation, including after publication and source GC.
Forwarders stream the original request bytes without decoding Arrow or
opening Lance.

The owner exposes producer, update, point-read, and close endpoints with
existing credentials and receipts. Data and control admission are
independent, response memory remains bounded, and epoch changes fence an
old listener. Deployment supplies a stable owner address and
authentication wrapper. Application role/configuration and etcd
integration follow separately.

## Testing
- `cargo fmt --all -- --check`
- `cargo clippy -p lance-context-ingest --all-targets --features
service,http-client -- -D warnings`
- `cargo test -p lance-context-ingest --features service,http-client
annotation -- --nocapture`: 14 passed, 0 failed. The ignored
child-process role is explicitly exercised by the passing SIGKILL
recovery test.
- Real RF3/Lance HTTP test: two ingresses, immediate visibility,
partial-upload admission, original request outcomes after GC, fencing,
owner replacement at the same address, field clearing, and producer slot
reuse.

Based on #579. Refs #378.
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