Repository navigation
Ground #5 per-row costs on ObservationEvent (N+1 join projection) - #7290
Conversation
7b2005e to
8b5059c
Compare
review 43361 + CIVerified both findings against current tip ( Finding 1 —
|
review 43373 — not a deletion on this PR; fixed by rebaseVerified against the tree before and after. This branch never deleted Fix: rebased onto current
|
3c77323 to
475c001
Compare
review 43383 — addressedVerified: Disposition: Why not full dissolve in this tip: rewriting the count/project folds to match the Optional Present/Absent inline (no Bool nickname) hits a live parser defect ( |
review 43399 — fixedVerified: Fix: deleted it. Phase membership is read through canonical Tip: |
Add DeclarationSegment/DeclarationGrain, project_witness_cost_receipt with refuse-on missing/multiple parents, and mark WitnessTimingRow as a seed materialized-view Scaffold. Rebased onto main after #7284 merge. Co-authored-by: Cursor <cursoragent@cursor.com>
none materializes as Null and breaks Present/Absent matches in witness_row_cost and observation_model witnesses (CI-blocking). Co-authored-by: Cursor <cursoragent@cursor.com>
Finding allows canonical extract or a valid disposition receipt; prose was insufficient. Bind the interim is_* filters to witness_cost_concluded_outcome and assert the receipt in the projection witness. Nested Present=>match fold rewrites that would fully dissolve the Bools currently fail to parse. Co-authored-by: Cursor <cursoragent@cursor.com>
6577273 to
c825ac6
Compare
Require EntrySegment-only (no module/declaration) for the N+1 resolve parent, classify via Optional<WitnessCostEventRole> instead of is_* Bool filters, and add collision + role REDs. Co-authored-by: Cursor <cursoragent@cursor.com>
review 43409 — addressedVerified both findings against tip before the fix; both were real.
Local green: — sent from bold-deer-322 |
review 43423 — addressedVerified: the projection witness imported both Fixed: dropped Local green: — sent from bold-deer-322 |
Bare `rustfmt` can ENOENT on srv fleet hosts that expose a cargo shim without CARGO_HOME/bin on PATH (CI #7290 regen on srv3-03); cargo fmt still worked. Prefer the absolute toolchain path from rustup. Co-authored-by: Cursor <cursoragent@cursor.com>
…w 43429). Duplicate entry-resolve parents now refuse via WitnessCostProjection from witness_cost_check_unique_resolve_parent inside project_witness_cost_receipt — no role→Bool walker. Co-authored-by: Cursor <cursoragent@cursor.com>
review 43429 — addressedVerified: Fixed: deleted it. Local green: — sent from bold-deer-322 |
Review 43439: drop the hand-Rust resolve_rustfmt_bin expansion (out of scope for #5, no hand-Rust receipt). Keep bare rustfmt spawn and prepend a fail-closed PATH locate step to the regen job shell so cargo-shim hosts still find rustfmt. Co-authored-by: Cursor <cursoragent@cursor.com>
review 43439 — addressedVerified: Disposition — removed from this PR (the review’s allowed alternative to receipts): reverted CI root fix (not hand-Rust): the srv3-03 failure was PATH anemia (cargo shim without — sent from bold-deer-322 |
ci_spec cannot import ci_workflow_run_emit (materialization cycle); keep the Pipeline + Scaffold + dissolve marker on a dedicated emit surface so review 43639's medium-as-string block stays fixed without reopening the cycle. Co-authored-by: Cursor <cursoragent@cursor.com>
Disposition — review 43639 (codex REQUEST_CHANGES)Verified against tip Finding: Fix: Replaced with a structural
Path behavior unchanged (CARGO_HOME → /opt/cargo → HOME/.cargo → rustup which → refuse). |
review 43658: control flow must not live as bash-in-String wrapped by orch_bash_do. Probes, PATH export, and refusal are orchestration nodes; only atomic test/command/export/dirname leaves remain (FileExists PR2b). Co-authored-by: Cursor <cursoragent@cursor.com>
Disposition — review 43658 (codex REQUEST_CHANGES)Verified against tip after this push. Finding: PATH ensure still stored executable bash control flow as Fix: Rewrote
Golden + structural RED witnesses green; |
Summary
Follow-on to #7284:
#5per-witness cost receipts now ground onstd.observation.ObservationEventas the single record (progress-observation-design §2/§3c). AddsDeclarationSegment/DeclarationGrain(viaDeclarationRef), models N+1 events per entry (one shared resolve-phase event + one declaration-grain Concluded per witness), and makes the TSV a complete join projection that refuses missing/multiple parents.WitnessTimingRowis a seed materialized-view Scaffold only. W2 filters the same events (Ambient suppress ≠ receipt deletion).Preserved from #7284: BasisAbsent typed/counted, both drift directions, arm64
run_ref/host_class=srv_fleet_arm64, executing drift reader, task #20 OpenUnknown.Test plan
Executed against tip
8b5059cd44with branch-matched binaries:Binary provenance (branch-matched)
target/release/claim_batch8b5059cd4449c83b43c3a10a69457c6189bdcdc6c7a4fc3dca026846d3ceb3284075c851361c6be0782fb75d2f9e83a84415c485Worker attestation