Repository navigation
refactor: separate typed job queries and post-record response projection - #770
Conversation
yyjeqhc
left a comment
There was a problem hiding this comment.
Reviewed on the exact current head in ~/git/webcodex-review against 58bfc0bbcfe90f92c6b0f69a881de2af40ac033a. The typed Job inventory refactor preserves visibility-before-filtering, ordering/limits, invalid-filter behavior, Console allowlisting, and non-recording query semantics. The Kernel post-record extraction preserves the original response-phase order: canonical telemetry/audit capture precedes model projection, while recorder-gap, collaboration, observe_jobs and passive-attention overlays remain response-only and do not gain dispatch or Session authority. Focused local regressions passed (job_query 3/3, post_record 3/3, fmt/diff checks), and the PR CI's Linux server/workspace/runner/tooling/contract lanes are green. No blocking findings.
Summary
Continue the local architecture cleanup after #769, based on
58bfc0bbcfe90f92c6b0f69a881de2af40ac033a. Two independently reviewable commits:1f6488a1— share typed Job inventory with Console projections. Introduce an internal, non-serializableJobInventoryPage. Normalize filters, obtain caller-visible matching Registry records, apply status/order/limit, then let the model and Console use their own explicit projections. The Console no longer constructs and reparses model-facing Job JSON or discarded validation metadata;list_jobsprojects only returned records.a55ca880— isolate ordinary Kernel post-record response finalization. Authorization, dispatch, control transitions, permission evidence, and Session recording stay in the Kernel. The dedicated response stage captures canonical audit/telemetry evidence before consuming the existing one-shot model projection plan, then applies the same ordered response overlays. Its internal result keeps canonical audit output separate from the model response.Boundaries preserved
Validation
The final committed tree
6a47d8bb82256627564a38fb16f17180a2b645damatches the reviewed, formatted and tested source tree.cargo test --locked -p webcodex --lib: 3,095 passed, 3 ignored, 0 failed. Full root-library coverage was used because the ordinary Kernel response stage is shared by many tools.cargo fmt --all --checkandgit diff --check.bash scripts/workspace_boundary_check.sh: all 21 packages pass, with unchanged dependencies/layer direction/test ownership.No full workspace/all-features or native Windows/macOS execution was run locally. No frontend changes or UI latency benchmark; reduced intermediate JSON work is an implementation property, not a measured throughput claim. No deployment, restart, release, or merge performed.
Architecture ownership is documented in the new Typed queries and post-record responses section of
docs/ARCHITECTURE.md.