Prove this notebook: continuation note
Internal — engineering working material. This is a dated implementation, design, or planning record. Use the user guides for current instructions and check releases for shipped behavior.
The working state of the program plan. Whoever picks this up next starts here. Updated with every PR.
Last updated: 2026-10-16.
Branches and PRs#
| Stage | Branch | PR | State |
|---|---|---|---|
| 0 Plan | claude/prove-this-notebook-plan-sxnf3y |
#55 | Merged |
| 1 Foundations | claude/prove-stage1-foundations |
#59 | Merged |
| 2 Proofs engine | claude/prove-stage2-proofs |
#62 | Merged |
| 3 First-release UI | claude/prove-stage3-ui |
#65 | Merged |
| 4 Kernel process | claude/prove-stage4-kernels |
#67 | Merged |
| 5 Notebook state | claude/prove-stage5-state |
#68 | Merged |
| FD-112 Side by side asks before overwriting tables | claude/prove-sbs-sandbox |
#81 | Merged |
| FD-110 Engine request time limits | claude/prove-rpc-timeouts |
#83 | Merged |
| Plan: AI from the developer's own tools (stage 8) | claude/prove-ai-rescope |
#97 | Merged |
| FD-110 Quick-call limit for the side-by-side write check | claude/prove-quick-sbs-writes |
#114 | Merged |
| FD-110 Notebook cell time and memory limits | claude/prove-kernel-limits |
#115 | Merged |
| 5 Variable history, watches, hidden state (45, 46, 48) | claude/prove-variable-history |
#129 | Merged |
| 5 Failure replay bundles: save (47) | claude/prove-replay-bundles |
#142 | Ready for review (Chris approved board 9) |
| 5 Failure replay bundles: open and replay (47) | claude/prove-replay-open |
#148 | Open for review (stacked on #142) |
Merge order: stages merge in number order. Each stage's PR lists any PR it is stacked on.
Completed backlog items#
None yet.
In progress#
- Stage 1 is in review (#59): stable cell ids,
receipts.py,envprofile.py. - Stage 2 is in review (#62):
proof_runtime.py,proof.py,verify.py,measure.py,scorecard.py,prove_*requests inprove_service.py; guide in how-proofs-work.md. - Stage 5 (items 41 dependency map, 42 stale outputs, 43 conservative re-run):
sidecar/fabric_desktop/depgraph.py(dependencies read from code withast; detected and declared edges kept apart), requestnotebook_dependencies,app/ui/deps.js(staleness decided in the UI from what each cell's code was when it last ran in this kernel). Mockup board 6. - Stage 3 is a draft (#65):
app/ui/prove.js(panel, diff grid, scorecard, receipt export),app/ui/wizard.jsandsidecar/fabric_desktop/wizard.py(three fixed templates, proof contract in notebook metadatafabric_desktop.proof). Mockup: https://claude.ai/artifact/Jqhxo9LVmqocGYgmT2ok7W (private to Chris's account).
Decisions and assumptions#
- Proof sandboxes live in the attached lakehouse under
Files/_fabric_desktop/proofs/<id>/<side>/, so a proof creates no lakehouses or tables. The Fabric run publishes one notebook item,<notebook>_proof, in the notebook's workspace (as Run in Fabric does), so the user's own notebook and its schedules are never changed. - Inputs are pinned to the Delta version of every table at proof start; files are verified by SHA-256 on both sides rather than copied.
- First-release proofs support notebooks whose writes go through
fabric_desktop.lakehouse(Python notebooks in Fabric). Spark notebooks are proven too (PB-015): in Fabric,proof_spark.pypoints Spark's table reads and changes at the proof; what it can't contain blocks the proof with a reason. - No AI is built into the app (Chris, 2026-10-17: AI-ready, not AI-dependent; no embedded model, no provider integrations, no AI keys). Backlog 11, 13, 16, 18, 20 and 50 come from the developer's own AI tools through the MCP server and local API of the "Bring your own AI integration" program; this plan registers Prove capabilities there (plan stage 8). The earlier AI service question is withdrawn.
- Side by side stays as it is; Prove is added next to it, so nothing that works today changes.
- Ownership split with the sister plan (decided by the project coordinator, 2026-10-16): this plan owns environment profiles (33, 34, 36), isolated comparisons (51–60), compatibility analysis (32), process-isolated kernels and debugging (41–50) and the run receipt schema (81). The sister plan owns large-table execution, guided ingestion, Git and release workflow (82, 86 build on it), pipeline handoff, remote agent control, lineage (97 builds on it) and monitoring.
- The workload management program (thread "Workload management workspace") reuses this plan's receipt schema, run planner (31), placement recommendation (35) and scorecards and cost model (71–80). Keep them as engine modules returning plain dicts. Cost settings stay in the existing store (
costs.py,Service._cost_settings). - Where environment profiles install packages from (Chris, 2026-11-03, card): "IT folder, then PyPI". Packages come first from the approved wheel folder named in the policy file; PyPI is used only when the policy allows it. This settles the source only. Chris gave the go for the build on 2026-11-03: the policy keys
notebook_package_folderandallow_pypi_packages, read byenvironments.install_commands(Preview). - Not ours to change: the concurrent-writes work (PR #54) and
meta/keys.py,meta/store.py,xray_service.py.
Validation results#
main at af11938: engine tests 322 passed, 2 skipped (Linux, Python 3.13).
#59: 337 passed, 2 skipped; UI tests pass.
Stage 2: 353 passed, 2 skipped; UI tests pass; docs build strict.
Stage 4: 372 passed, 2 skipped. With the setting on (LOCALAPPDATA app-settings), agent, schedule and side-by-side tests pass except two side-by-side tests that monkeypatch the lakehouse module in the engine process, which the kernel's process doesn't see (a test limitation).
Stage 5: 9 new engine tests (
test_depgraph.py) and 4 new UI tests pass; the Dependencies view, Stale tags and the Run stale cells confirmation rendered in headless Chromium with dependency answers from the realdepgraph.graphand cell runs stubbed.Stage 3: 366 passed, 2 skipped; 6 UI tests pass; docs build strict; panel, dialogs and wizard rendered in headless Chromium against a real proof record (engine calls stubbed in the browser). The Fabric side was exercised by running the exact published notebook in a subprocess with a fake
notebookutils, not on a tenant.FD-110 time limits: 5 shell tests (
cargo testinapp/src-tauri, Linux) cover a call that answers, one that hangs (the process is ended within the limit), one whose process exits, which calls have a limit, and that every limited call is an engine method; 1 new UI test. The full shell compiles with the change. Not run on Windows in this session; CI builds the Windows exe but doesn't runcargo test.
Blockers#
- Live tenant checks: plan section 5, needs Chris.
- Stage 8 capabilities: wait on the AI integration program's capability registry; shapes agreed through the project coordinator.
Next action#
Breakpoints (44) are done: debugger.py (a sys.settrace tracer on the cell's thread that traces only code objects compiled from that cell; pause state in _Run.paused, commands through Kernel.debug / debug_cell) and the breakpoint gutter, debug panel and F5/F9/F10/F11 keys in app/ui/debugging.js. Replay bundles (47) are done: saving is replay.py, app/ui/replay.js and the read recorder in lakehouse.py (reads, cleared on kernel restart); replay is prove_service.replay_* (process kernel only; _replay_guard in start_cell keeps replay notebooks inside a replay). Replay sandboxes are remembered per notebook (replay_sandboxes extra) and deleted with replay_delete_outputs. Variable history (45), watches (46) and hidden state (48) are in #129 (app/ui/debugging.js; watches run in notebook.Kernel._watch). Known gap in 42: a cell isn't yet marked stale when a table it reads gets a new Delta version from outside the notebook (needs the version at run time; the proof runtime already reads it). Stage 4 remaining: per-profile virtual environments, installing from the policy's wheel folder, then PyPI if the policy allows (decided 2026-11-03; the build waits on Chris's go). The receipt schema's cost carries FinOps #117's classification and measurement per side (scorecard._pc_cost, scorecard.fabric_cost). When Chris reacts to the mockup, apply his changes to #65 first. cloud_service.py _publish and run_notebook_in_fabric get a hook from the workload program (PR #60); keep it if those change.
Need a hand?
Find a fix in troubleshooting, or share a reproducible issue with the community.
Get support ↗Improve this guide on GitHub ↗