Skip to content

Subtitle search and view reconcile: emit store jobs, with a refusal the step can observe - #996

Merged
GLinnik21 merged 26 commits into
mainfrom
sansio/store-jobs-subsearch
Oct 24, 2026
Merged

GLinnik21 merged 26 commits into
mainfrom
sansio/store-jobs-subsearch

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Closes #995

The subtitle-search and view-reconcile stores no longer start workers or read the server registry from inside their step. Each emits a typed store job that the app's StoreRunner starts, the lane Detail (#975), Collection (#987) and Person (#990) already use. This is wave 2, lane A of the Sans-IO series (docs/sans-io.md, "The store job lane").

The lane also adds the shared piece the remaining stores need: a refusal the step can observe. Wave 1's stores could make do with releasing the claim. These two back off for RETRY_FRAMES after a refused start, and the backoff has to survive the start moving out of the step.

What changed

A refusal the step can observe (data/src/stores/mod.rs):

  • Fetch::refuse_for(gen) releases that generation's claim and records the refusal. It records only when the claim it gives back is its own, and it writes the record before freeing the claim.
  • A refusal for a superseded generation frees nothing and records nothing.
  • Fetch::take_refused(gen) answers once, and clear() resets it.

Subtitle search:

  • maybe_spawn claims the generation and pushes Job<SubSearchReq>, carrying the server and the ClientKey the step chose.
  • pump reads take_refused before maybe_spawn and sets the backoff a refused start always had. There is no respawn spin. The backoff lands one pump later, which the design allows.
  • The no-client branch is unchanged: no job, no claim, back off.
  • finish_subsearch_job runs the IO under catch_unwind. A panic lands as a failure of its kind.

View reconcile:

  • kick pushes Job<ReconcileReq> per server batch.
  • A landing is now Landing { id, outcome } with Outcome::{Read(rows), NotStarted}.
  • The port's refused posts NotStarted. That removes the flight and requeues its leaves and parents, and anything asked for again while the read was out goes back as an item. It drops the dirty marks the flight covered and sets retry_cd. It publishes and settles nothing.
  • reset() keeps a job still on the outbox, so it answers into the retired adapter.

The runner (app/adapters/stores.rs):

  • The SubtitleSearch and ViewReconcile arms resolve the client inside the launch and start only if ClientKey::of(c) still matches. Otherwise they refuse.
  • Both kinds are untaped, so there is no admission record, and they launch live under replay as before.
  • The Held runner parks them. run_held re-resolves or refuses, and a newer Detail request leaves them parked.

The Bridge:

  • subsearch_pump and reconcile_pump refill the keys, step, and drain their own store in the same call.
  • subsearch_run drains only: run is keyless and emits nothing today.

Ledgers

Before After
ci/allow/workers/data-subsearch.txt 1 line (maybe_spawn::spawn_small) deleted
ci/allow/globals/data-subsearch.txt 1 line (maybe_spawn::client_for) deleted
ci/allow/workers/data-viewreconcile.txt 1 line (kick::spawn_small) deleted
ci/allow/globals/data-viewreconcile.txt 1 line (kick::client_for) deleted
PINNED_LEDGER_TOTALS (workers/globals/forks/fxlanes) 22/97/60/11 20/95/60/11

ci/check-deps.sh's wall gate now scans data/subsearch.rs, with zero hits. Its step starts nothing and reads no clock. stores/viewreconcile.rs was already inside the scanned stores/ directory.

Tests

36 new tests:

  • Fetch (4): a refusal frees the claim and is observed once, only for its own generation; a superseded refusal does not overwrite the current one; a supersede discards an unobserved refusal.
  • data/src/subsearch_job_tests.rs (8): the job contract; the refusal backoff applied one pump later with no respawn, for one request and not the one after; a superseded refusal leaves the newer request alone; the no-client branch; a reset between emission and answer.
  • data/src/stores/viewreconcile_job_tests.rs (11), plus 1 in the parents tests: a refused or key-mismatched flight posts NotStarted, requeues and backs off; the dump-mode queue does not starve; an unstarted parent that was asked for again goes back as an item; a job still on the outbox at a reset answers into the retired adapter.
  • Runner (12, six per kind): started and answered once with no tape record; launched live under replay; refused (and, for reconcile, requeued) when the registry has moved on from the job's client; a newer Detail request leaves a parked job to run; a parked job whose client is gone is refused; the Bridge pump starts in the same call what it emitted.

lifecycle_regression_tests now runs parked reconcile reads between frames, so a stop that lands after an identity change really reads nothing back. Mutation checks failed the tests they should and were reverted: the runner resolving without the key compare, take_refused removed (the pump respawns every frame), and a silent reconcile refused.

Gates, run on the committed tree

Run on head 6a64a2626. It is stacked on #987's and #990's squashes using the documented recipe, plus a behaviour-identical simplify commit. On top of that head, 13b6d88dc changes one sentence in docs/sans-io.md and nothing else; a doc-claim audit had found it pointing at "the last bullet" after two bullets were appended. main has since gained #994 (gfx only), which merges clean.

Gate Result
make check exit 0, "106 steps — all ok". Every test result: line reports 0 failed; the application crate passed 969 (default features) and 1082 (hostsim). check-deps reports workers 20, globals 95, forks 60, fxlanes 11 and "all gates green".
make check-nodef exit 0, no warnings
make check-replay 3 fixtures, 6 replays, 0 failures. Every replay reports verdict=SAME, every *_diffs=0, no fixture changed.
make (ARM, tvdev) pkg/plxnative linked

One review, verdict FIX FIRST. Its should-fix finding is fixed here: a stop-after-identity-change test that passed while the read-back was still parked. Three of its four notes are fixed too, each with a test that failed first: the superseded refusal overwrite, the unstarted parent requeued as an item, and reset() dropping a job. So is the stale prose. One optional note is left by design: subtitle search re-asks one frame later than the inline spawn did, which the design allows.

Live path

Both stores run off tape, so the Live runner was checked in the macOS simulator against tests/mock_pms.py. These were mock-only runs, with no real account.

  • View reconcile: the Home hold menu's watched-state action against the mock. The app logged viewreconcile: 1 item(s) -> server 0 (sent to the runner), then server 0 answered, 1 of 1 row(s) applied.
  • Subtitle search: the player's "Search for subtitles" on a mock item. The mock saw one GET /library/metadata/<id>/subtitles?language=en&..., the Search page listed the mock's two results, and picking one loaded the subtitle stream.

This is host-simulator evidence only, with no TV claim. No drawing code or FFI changed.

🤖 Generated with Claude Code

GLinnik21 and others added 26 commits October 24, 2026 10:10
The store-agnostic pieces the Person and Collection stores need to move onto
the store job lane (the lane Metadata's detail fetch already uses).

plx_plex::plex::{ClientKey, ClientKeys}: the registry's answer for every
server slot as a plain value, so a store's step decides from an argument
instead of reading client_for itself. ClientKey is (instance, token): the
client object plus the credential it held. There is deliberately no reader on
the type; the application fills one in place from the live registry
(adapters::stores::refill_client_keys), and the Bridge owns the one buffer so
a pump that runs every frame allocates nothing for it.

Fetch::release_for(gen): a refusal hands back the claim of the request it
answers and leaves a newer request's claim alone.

Stores::take_jobs_of(StoreId) and Bridge::start_store_jobs_of(StoreId): a
store's Bridge pump drains only its own outbox, in the same call as its step,
so a job some other sender left behind is still found and counted by the
backstop instead of being started silently. take_jobs / has_jobs now walk
StoreId::ALL, so a store joins the aggregate in one place. metadata_run drains
its own store this way (the same jobs today: only Metadata has an outbox).
The backstop and frame-check texts name every drain, not only metadata_run.

The runner's parked-job handling (retire_parked_details, run_held) is a match
over every job kind, so a store that joins the lane must say what a newer
detail request does to its parked jobs.

store_admission_tests: pins the tape admission a pumped collection records as
literals (rating-key open, tag open, unregistered server). Written against
signatures that do not change when Collection moves onto the lane, so the same
file runs on both sides of that change.

Two dead-code expectations (the keys buffer and its refill) are fulfilled by
the next commit, which removes them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The collection store's step no longer starts a worker and no longer reads
the client registry. Its pump claims the fetch and pushes a typed
StoreJob::Collection (CollectionReq: server, the ClientKey it decided on,
the work) on an outbox; Bridge::collection_pump refills the Bridge's
ClientKeys, steps, and hands the job to the StoreRunner in the same call.

- CollectionReq / CollectionPort / CollectionAnswer / finish_collection_job
  in plx_data::collection. Addr.req is the listing generation (one fetch is
  out at a time). done() lands the answer stamped with that generation;
  refused() releases only that generation's claim (Fetch::release_for).
- CollectionStore::{run, pump} take &ClientKeys; Open and the pump's
  client-changed check compare ClientKey values instead of calling
  client_for. ViewState reaches the store through view_edit_collection,
  which only forwards ApplyView and passes no keys.
- The runner admits the request through the tape in the recorded shape
  (byte-identical to the old inline admission) and resolves the client
  inside the launch, accepting it only if it is still the client the step
  named. A Held runner parks the job; a newer Detail request retires only
  parked Detail jobs and keeps the rest.
- Contract tests for the emitted jobs (assert_fx!), the admission shape,
  refusal and supersede handling, and the runner's four outcomes; the
  Bridge-level admission test from the previous commit passes unchanged.
- The lifecycle rig that walks a collection page runs the held jobs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e lane

Collection's step emits its request as a store job and reads the client
registry as an input, so its four ledger lines are gone: the worker start
(`workers`, 25 to 24) and the three `client_for` reads (`globals`, 101 to
98). Both area files held nothing else and are deleted; PINNED_LEDGER_TOTALS
follows, forks and fxlanes unchanged.

The `wall` clock-read gate now scans data/src/collection.rs (no hit).

docs/sans-io.md "The store job lane" names Collection as the second store,
ClientKeys as the input for a registry read, the per-store drain inside each
Bridge pump (refill keys, step, start_store_jobs_of) and the generic
backstop. CollectionStore's unreached Machine::step comment no longer says
empty keys strand a job (they fail the page; real keys without a drain
strand it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s revision

a_server_without_a_client_emits_nothing_reads_failed_and_holds_off asserted Failed,
no job and no claim, then pumped with empty keys, which emit no job whether or not
retry_cd was set. It now asserts that the revision does not move across the
RETRY_FRAMES - 1 held-off pumps and does move when the hold-off ends. With the
`self.retry_cd = RETRY_FRAMES` line removed from maybe_spawn's no-client branch the
test fails (revision 3 against 2); with it, it passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… first

The Bridge-level admission pins opened and pumped a collection alone, so the order
across stores inside one frame (the positional tape comparison) was pinned on no
tree. One test opens a person and a collection, pumps person_pump then
collection_pump inside one FrameScope and compares tape::finish() with the full
literal list: the person's three requests in slot order (the shapes fixture 12
records), then the collection's header read. It uses only signatures that exist on
the base tree. Swapping the two pumps makes it fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Person store no longer starts its own worker and no longer reads the
client registry inside its step. Its pump emits one typed StoreJob::Person
per request, in ascending slot order, and the app's StoreRunner starts it.

- PersonReq names the request (slot, generation, args, guid, and the work:
  a plex.tv profile or credits read with the identity the step decided on,
  or a read of one registered server with the ClientKey it decided on).
  PersonPort lands the answer into the adapter slot it was emitted for, and
  its refusal releases only that generation's claim.
- The step decides from ClientKeys the Bridge refills right before the call
  (the scaffolding the collection lane added). A source whose server holds no
  client emits nothing and backs off, as before.
- Bridge::person_pump refills the keys, steps, and starts the person jobs in
  the same call, so the tape's admissions keep their cross-store order.
- The runner resolves the client inside the tape's launch closure and
  compares it with the job's key; a mismatch is a refused admission. Parked
  person jobs survive a newer Detail request and are re-resolved when run.
- finish_person_job is the old worker body, moved to the runner side:
  the Controlled identity answers the failure value without a read.

Admission records are byte-identical to the base tree's (pinned by a
Bridge-level test that passes on both trees). What stays in the step:
tape::active, session::peek_settled, session_watch, the synchronous
discover-refused landing, server_ids and server_roster_gen.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Fetch::release_for hands a refused request's claim back and says nothing, which
is enough for a store that retries at once. A store that backs off after a
launch that did not happen (it used to learn that from the failed spawn, in the
same call) would find the claim free on its next pump and ask again at once.

Fetch::refuse_for(gen) is release_for that also remembers the refusal, and
Fetch::take_refused(gen) answers it once. The step reads it at the head of its
next pump, before it decides to spawn, and applies the backoff it always did.
The claim is still freed in the call that refuses, so a take that is owed on
busy (dump mode) is never left waiting on a request that will not answer. A
supersede (clear) discards an unobserved refusal; a refusal of another
generation is neither taken by, nor frees the claim of, the generation that
asks.

The refusal is observed one pump later than a failed spawn was. No recording
holds a refused admission for a store that uses it, so no recorded byte moves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The subtitle-search store's step no longer starts a worker and no longer
reads the client registry. Its pump claims the fetch and pushes a typed
StoreJob::SubtitleSearch (SubSearchReq: server, the ClientKey it decided
on, the item and the work: search, download or install poll) on an
outbox; Bridge::subsearch_pump refills the Bridge's ClientKeys, steps, and
hands the job to the StoreRunner in the same call. Bridge::subsearch_run
steps a command and drains the same outbox (a command decides from the
model alone and emits nothing today).

- SubSearchReq / SubSearchPort / SubSearchAnswer / finish_subsearch_job in
  plx_data::subsearch. Addr.req is the search generation (one request is
  out at a time). done() lands the answer stamped with that generation;
  refused() calls Fetch::refuse_for, so the pump that sees the refusal
  backs off RETRY_FRAMES exactly as a failed spawn always did, instead of
  re-emitting the same request every frame.
- A server with no client emits nothing, claims nothing and holds off, as
  before; the registry's answer is a ClientKeys input to pump, not a read.
- The runner starts the request with no tape admission (the kind is not
  on the tape, as its inline spawn was not), resolves the client inside
  the launch and accepts it only if it is still the one the step named.
  A refused launch hands the claim back through the port. A Held runner
  parks the job; a newer Detail request keeps it.
- The step's old private Job type is now Work, so Job is the machine's.
- Contract tests for the emitted jobs (assert_fx!), the answer and
  refusal paths, the backoff applied one pump later with no respawn spin,
  a superseded request's refusal, a reset between request and answer; the
  runner's outcomes (answered once and untaped, live under replay, key
  mismatch refused, Held kept and refused when its client is gone); and
  the Bridge pump starting its own job in the same call.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The read-back store's step no longer starts a worker and no longer reads
the client registry. Its kick sends one StoreJob::ViewReconcile per server
(ReconcileReq: server, the ClientKey it decided on, the batch's ratingKeys)
on an outbox, with the flight it records; Bridge::reconcile_pump refills the
Bridge's ClientKeys, steps, and hands the jobs to the StoreRunner in the
same call, before the browse requery branch.

- ReconcileReq / ReconcilePort / ReconcileAnswer / finish_reconcile_job in
  plx_data::stores::viewreconcile. Addr.req is the flight id, now a u32 so it
  fits a RequestId (flights are minted only when a batch goes out). done()
  posts the rows under the flight's id; refused() posts Outcome::NotStarted
  under the same id, so a refused flight is still received and the dump-mode
  "owed" predicate cannot starve on it.
- A NotStarted landing requeues the flight's leaves into pending and its
  parents into pending_parents, drops the dirty marks the requeue covers and
  sets retry_cd = RETRY_FRAMES. It publishes nothing and settles nothing: the
  stop candidates, quiet marks and owed pages are as they were. The wait is
  the one the failed spawn gave, counted from the next pump.
- ClientKeys is an argument of pump_with_gate and Stores::reconcile_pump. A
  server with no client keeps today's branch: the batch is dropped with a log
  line.
- The runner starts the read with no tape admission (the kind is not on the
  tape, as its inline spawn was not), resolves the client inside the launch
  and accepts it only if it is still the one the step named; a refused launch
  answers the flight. A Held runner parks the job; a newer Detail request
  keeps it.
- The data crate's loopback-PMS tests play the runner through a small rig
  (viewreconcile_rig.rs) so a held-out read still runs on a real thread; the
  lifecycle rig's waits run the held read-backs in the frame that sent them.
- Contract tests for the emitted jobs (assert_fx!), the refusal landing and
  its timing, the dirty and candidate bookkeeping, the dump-mode wait, a
  reset between the job and its answer, a key mismatch at launch; the
  runner's outcomes and the Bridge pump starting its own job.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The collection lane's stage B and review fixes retire its own ledger lines and
pins; this branch needs them so ci/check-deps.sh sees no stale collection line.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Delete ci/allow/{workers,globals}/data-person.txt (both held only the lines
the store job lane removed; the fork lines stay, the fetch bodies stay in
data/). PINNED_LEDGER_TOTALS goes to the real sums with the collection lane
merged in: workers 22, globals 97.

docs/sans-io.md: Person is on the store job lane; PersonPort carries the slot
and the generation because several Person jobs are out at once; the Person
step is not pure and the section lists the reads it keeps (tape::active,
session::peek_settled, the session watch, the refused-discover landing,
server_ids, server_roster_gen). Comments that said the pump or the person
store spawns a worker now say it emits a job, and the capture-at-spawn rule
that left the step lives on the runner's resolve helper.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The job tests import Job and Port that the parent module's glob already supplies, the Bridge
spells StoreId in full where the file imports it, and the client_keys module doc narrated what
the step "used to" do. Names and wording only; no behaviour, expectation or ledger line moves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the wall gate, document the lane

Both steps emit their request as a store job and read the client registry as
an input, so their four ledger lines are gone: the two worker starts
(`workers`, 25 to 23) and the two `client_for` reads (`globals`, 101 to 99).
The four area files held nothing else and are deleted; PINNED_LEDGER_TOTALS
follows, forks (60) and fxlanes (11) unchanged.

The `wall` clock-read gate now scans data/src/subsearch.rs (no hit);
stores/viewreconcile.rs was already inside data/src/stores.

docs/sans-io.md "The store job lane" names the two stores and the refusal the
step can observe (`Fetch::refuse_for` / `take_refused` for a Fetch store, a
`NotStarted` landing for a mailbox store, never in a recorded mailbox, one
answer per job, applied one pump later). docs/stores-as-machines.md and the
viewreconcile docs say a read is sent, not spawned (`may_spawn` is `may_send`),
and the unreached SubSearchStore Machine::step comment no longer says empty
keys strand a job (they back off and emit nothing).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…y test

The rig's pump is step() plus run_jobs(), and run_jobs() hands each job to
finish_person_job, bypassing tape::admit, so the test's tape::finish()
assertions (no requests, no failure) could no longer see anything a controlled
step emitted. Step alone and assert_fx!(jobs, []) puts the 'no request' half
back where it can be observed. The person also carries a guid now, so the two
plex.tv reads WOULD be wanted if the profiled/credited flags were not honoured
(address() is None for an empty guid whatever the flags say); with address()
ignoring profiled, the test fails on the outbox.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sal records nothing

F1: a_stop_that_lands_after_an_identity_change_reads_nothing_back looped on
plain step, but the read-back is a StoreJob now and the rig's Held runner
parks it, so the request-count assertion stayed 0 even when the retired
identity's stop was read back. The loop runs step_and_run_jobs, like the
twin assertion. Checked by mutation: with the identity change retiring
nothing, the old loop passes and this one fails at the assertion.

F2: Fetch::refuse_for recorded its refusal whichever claim was held, so a
superseded request's refusal arriving after the current request's unread one
replaced it and the owner asked again at once. It now records only when the
claim it hands back was its own (held and made for that generation), and
writes the refusal before the claim is freed. The sans-io sentence that said
a superseded refusal "does neither" now says what is true.

F3: a refused flight's parent that was also asked for as an item while the
flight was out went back as a parent only, so its own season and show were
not read after it. It goes back as the item it was asked for, as a landing's
re-queue of its dirty marks does.

F4: ViewReconcileStore::reset dropped an unanswered job, against "every job
is answered once" and the other stores. The job stays on the outbox and
answers into the retired adapter, and a drain that missed it is still seen
by the backstop.

F5: the Held runner docs said every job is admitted through the tape, and the
reconcile log said "off-thread" before the launch decision.

F6 (the re-ask one frame later than the inline spawn) is left: the design
allows one pump later and the exact-frame assertions would all move for it.

Each of F2, F3 and F4 has a test that fails against the old code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…to sansio/store-jobs-person

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The list of what the Person step still reads omitted
plx_base::devtrig::read("personcredits"), which seed_dev_credits makes on every
pump while a person is open and no tape is armed (dev-trigger builds only).
Review note F3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Behaviour-identical cleanups from the pre-PR simplify pass:
- PersonPort::of and the cfg(test) at_for_test collapse into one private PersonPort::to.
- local_landing takes the key list by value, so the Roles landing moves it instead of cloning.
- The test owner drops its stored keys and its second run path: step is step_with over the
  registry's keys, run_jobs unwraps through person_jobs; holding() and media_job() replace
  eight repeated key literals and three repeated open/step/find preambles.
- Comments that narrated the migration ("as the worker did before", "the old pump") state the
  present behaviour; the plex-layer docs no longer name the data layer's launch mechanism; the
  K_RESOLVE note names the places a new kind now edits.
- bridge.rs uses the imported StoreId.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The lane was cut from ca9fe8a, Collection's first commit. Collection and
Person have since landed on main as squashes; this is the first step of the
documented stacked re-base. Both lanes extended the same store-job pieces, so
every conflict keeps both sides:

- StoreJob, StoreJob::store, Stores::take_jobs_of / has_jobs_of: Collection,
  Person, SubtitleSearch and ViewReconcile each have their arm.
- StoreRunner: start / retire_parked_details / run_held and the launchers for
  all four kinds; the subtitle-search and reconcile tests reuse the shared
  CollectionRig and registry_keys instead of a second copy.
- Bridge drain names (the late-job warning, the leftover-job assert) list
  person_pump, collection_pump, subsearch_pump and reconcile_pump.
- check-deps.sh wall list: data/collection.rs and data/subsearch.rs.
- docs/sans-io.md: Person's port and "what the step still reads" bullets, then
  this lane's refusal and subtitle-search bullets.
- tests/test_harness.py PINNED_LEDGER_TOTALS: workers 20, globals 95 (the sums
  of the ledger headers at this tree).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Records the squash on the branch; its tree is already in (c9b61f8's tree is
byte-identical to 10e9287's).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…arration

Behaviour-identical cleanups on the lane's own lines:

- viewreconcile: the "asked for again while the read was out" extraction from
  `dirty` was written twice (the landing path and `requeue_unstarted`); both
  call `take_asked_again` now.
- viewreconcile_rig: `registry_keys` is `ClientKeys::of` over the registry,
  as person.rs's test helper already is.
- viewreconcile_job_tests: three raw `pump_with_gate` calls use the file's
  `pump` helper.
- bridge: `StoreId::SubtitleSearch` / `ViewReconcile` (already imported)
  instead of the full path.
- comments and docs that narrated the migration ("as a failed spawn always
  did", "as the inline spawn did") state the present behaviour.

No test assertion, ledger line or signature changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit c7fbbca into main Oct 24, 2026
26 of 28 checks passed
@GLinnik21
GLinnik21 deleted the sansio/store-jobs-subsearch branch October 24, 2026 12:56
GLinnik21 added a commit that referenced this pull request Oct 24, 2026
…ore job lane) into sansio/store-jobs-catalog

Both lanes extended the same shared store-job pieces; both sides are kept.

- data/src/stores/mod.rs: StoreJob carries Catalog beside SubtitleSearch and ViewReconcile;
  StoreJob::store, take_jobs_of and has_jobs_of name all five job stores.
- app/adapters/stores.rs: StoreRunner::start, the start_* / launch_* pairs, run_held_where,
  run_held_of and retire_parked_details' kept list cover Catalog, SubtitleSearch and
  ViewReconcile; the Held doc names the three admission cases (tape, key check, neither).
  Both sides' tests are kept (35 tests = 19 base + 4 + 12).
- app/bridge.rs: catalog_open / catalog_pump / catalog_reset beside subsearch_run /
  subsearch_pump; the drain strings and the assert doc name every entry point.
- docs/sans-io.md: the intro orders the lane Detail, Collection, Person, Catalog, then
  subtitle search and the view-state read-back (fifth and sixth); the FIFO bullet lists the
  five gated stores and states Catalog's ungated take.
- tests/test_harness.py: PINNED_LEDGER_TOTALS is the sum of the '# count:' headers at the
  resolved tree: workers 19, globals 95 (forks 60, fxlanes 11 unchanged).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

Subtitle search and view reconcile: emit store jobs, with a refusal the step can observe

1 participant