Repository navigation
[CTX-0735] feat(hint): wire hint overlay + dispatch slice - #1331
Merged
Merged
Conversation
Overlay: HintOverlayPresent projects the live HintBatch 1:1 into CwPresentPlan (label order, anchors, shed; zero overlay slots) so the render path can paint one annotation pass. Dispatch authority: Runtime::cw_hint_dispatch_armed dispatches against the armed session batch only (no caller-supplied batch); disarmed fails closed with NotArmed, success disarms. Config: top-level hints_enabled (default-on) from Lua through plan, merge with attribution, reload-live diff, project-layer trust reject, into ChromeState; disabled Leader keeps normal owner (fail-open). Tests: 2 cw_present unit + 2 runtime integration + 1 app intercept + config merge/reload/trust/lua resolve coverage. Task: CTX-0735
Xuepoo
force-pushed
the
ctx-0735/feat-hint-overlay-dispatch
branch
from
September 23, 2026 10:38
57725fd to
7526127
Compare
This was referenced Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Priority: P1 | Area: area:ui | Labels: feat,P1,area:ui | Milestone: v0.1.0 | RFC: OQ-089 (P7 Beacon engine, packet-2 adopted), OQ-051 (Scene path) | Task: CTX-0735
Closes #981
Scope
Minimal viable slice of CW-02 on top of the live Leader/hint sessions (#1307 lit, #1312 live): the overlay paint payload, session-authority dispatch, and the anchor-independent config surface. Label pools, script authority, and pixel painting stay ordered after OQ-050 anchors / the OQ-051 placed contract (#985, #990).
What changed
bitty-runtimecw_present):HintOverlayPresentprojects the liveHintBatch1:1 intoCwPresentPlan(label order, kinds, anchors, shed;overlay_cost() == 0,4+1bound untouched) so the render path can paint one annotation pass.bitty-runtimecw_live):Runtime::cw_hint_dispatch_armeddispatches against the armed session batch only — it takes no batch, so a stale or foreign batch cannot be smuggled through the live path. Disarmed fails closed (NotArmed); success disarms; errors keep the window for retry.bitty-lua->bitty-config->bitty-app): top-levelhints_enabled(default-on) throughConfigData, plan, scalar-replace merge with attribution, reload-live diff, project-layer trust reject,resolve_hint_config, intoChromeState; while disabled the Leader keeps its normal owner (fail-open) and no session arms. Startup logs once when disabled.Fail-closed throughout; zero unwrap/expect/panic in non-test code.
Verification
cargo fmt --all -- --check: cleanRUSTFLAGS="-D warnings" cargo clippy --workspace --all-targets --locked: cleancargo test --workspace --all-targets --locked: greenRUSTFLAGS="-D warnings" cargo +1.85 check --workspace --all-targets --locked: green (MSRV)cargo check --target x86_64-pc-windows-gnu --workspace --all-targets --locked: green (Ctrl+Space Windows path untouched)./scripts/check-scratch-paths.sh: OKcw_presentunit (1:1 projection, empty batch), 2cw_uipresentintegration (armed-only dispatch incl. disarmed/second-callNotArmed, plan carries overlay), 1 app intercept (disabled Leader falls through, incl. platform leader mods), config/lua merge+reload+trust+resolve coverage (7 tests).Follow-ups (not this slice)
FocusPanel/CopyRequestedoutcome execution (loud no-ops, as before).