feat(planning): explain and trace planning decisions
This commit is contained in:
1 parent
609b3dece9
commit
d7a13b0b1e
24 files changed
+6073
-342
No files matched your search
@@ -0,0 +1,9 @@
|
||||
# Stable Explanation, Original Trace, and Counterfactuals
|
||||
|
||||
VacOptimizer exposes one client-side calculation context. Its immutable submitted snapshot and planning outcome are independent from three explanation concerns:
|
||||
|
||||
- the stable plan explanation is derived from the final displayed plan and remains useful for complete or incumbent plans;
|
||||
- the calculation trace is captured while the producing run executes, grouped by phase and atomic decision, and may become ready after the outcome;
|
||||
- counterfactual date analysis is an explicitly hypothetical operation that removes only the selected final placement, or starts from a selected trace decision's exact pre-decision state, and never rewrites the plan or historical trace.
|
||||
|
||||
The public planning outcome is delivered as soon as planning work finishes. Trace capture and delivery have separate readiness/failure state, remain local to the latest calculation, and cannot turn a valid outcome into an explanation error. Counterfactual work is cancellable or ignored when its calculation identity is stale. The existing deterministic constraint-first planner and its planning-work deadline remain unchanged.
|
||||
@@ -4,10 +4,11 @@ Open the deployed application at `/benchmark` on the reference phone. Tap
|
||||
**Run benchmark**, wait for the five scenarios to finish, then tap **Copy
|
||||
report** and save the tab-separated output with the date and build identifier.
|
||||
|
||||
The harness measures preparation, asynchronous calculation, and total wall
|
||||
time separately. It records the outcome, last completed quality stage,
|
||||
placement count, and determinism between repetitions. `PlanningIncomplete` is
|
||||
not a conflict: its last completed stage and incumbent are retained.
|
||||
The harness measures preparation, planning-to-outcome latency, later trace
|
||||
delivery, and total wall time separately. It records the outcome, last
|
||||
completed quality stage, placement count, determinism, trace status, and trace
|
||||
candidate count. `PlanningIncomplete` is not a conflict: its last completed
|
||||
stage and incumbent are retained.
|
||||
|
||||
## Protocol
|
||||
|
||||
@@ -24,5 +25,7 @@ not a conflict: its last completed stage and incumbent are retained.
|
||||
hardware limitations. No mobile-device measurement is claimed by the source
|
||||
tree until a human records it here.
|
||||
|
||||
The browser page uses the same `planLeave(request)` operation as the calendar
|
||||
and adds no solver or backend dependency.
|
||||
The browser page uses the same `createPlanningCalculation(request)` context as
|
||||
the calendar and adds no solver or backend dependency. The ten-second release
|
||||
ceiling applies to planning latency; trace delivery is reported separately and
|
||||
cannot replace a valid planning outcome.
|
||||
Reference in new issue
Block a user