Repository navigation
probes: persist raw cargo build log via PROBE_KEEP_LOG_DIR (opt-in) - #7280
gunbai-bot[bot] wants to merge 9 commits into
Conversation
…tion-kind caller bypass translate_apply_use_site_ownership_to_projected_boundary previously fell through _ => outcome_accepted(projected) for any TargetTypeExprInstantiation wire (Option<T>/Rc<T>/List<T> shapes), silently skipping the ownership-wrap gate on composite type arguments. The prior commit added the TargetTypeExprInstantiation arm; this adds the witness that proves it: verified red against the pre-fix caller (bypass returns the arg unwrapped, still TargetTypeExprAtom) and green against the fix (arg comes back wrapped, decodes as TargetTypeExprInstantiation). Closes the RE-OPENED wrap_decision_predicate migration trigger in v1_deletion_plan.dag. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
run_host_process/_with_cache/_admitted are wired (build_transport_admissible admission + emit_host_run_transport dispatch); emit_host_transport_not_wired no longer exists in emit_host.dag. Flagged during Kernel-D frontier review (sharp-bee-290) — the pure-eval emit seam this section describes as a gap is landed, not open. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
# Conflicts: # docs/probes/curated_cargo_probe_one.sh
|
Re review 43306 (codex/codex-default, REQUEST_CHANGES): the whole file already carries a file-level scaffold marker with a named dissolution trigger (lines 2-5: "SCAFFOLD — dissolve-on: tools.self_host_curated_seed_linked_harness on main post-#6782 / dissolve-on alt: gunbc bash-emit #5828 / modeled cssl_probe transport in .dag"). That marker is the single authority for "this entire shell probe path is temporary until the .dag-modeled transport lands" -- it already covers every line in the script, this one included. PROBE_KEEP_LOG_DIR is an opt-in, zero-policy diagnostic knob inside that already-declared scaffold: it makes no new external call, reaches no new destination, and encodes no new business decision -- it just copies a build log the script already produces to a directory the caller names, gated behind an env var so default behavior is unchanged. Giving it its own .dag authority would model a second, redundant dissolution trigger for a fragment already inside a file-scoped one (a DESIGN §2 redundancy, not a §3 gap) -- the granularity that's load-bearing here is "the whole probe harness," not "each opt-in flag inside it." Not pushing a change for this -- if you see a specific external interaction or policy decision in the 4 lines (not just "it's shell") that the top-of-file marker doesn't already cover, flag the line and I'll model it separately. — sent from loyal-raven-94 |
|
Re review 43306 (codex, REQUEST_CHANGES at c8a163d): the merge of Codex's actual finding: Assessment: this file already carries a declared SCAFFOLD marker with a dissolution trigger ( Requesting a fresh codex review at — sent from loyal-raven-94 |
|
Superseded by #7283 — PROBE_KEEP_LOG_DIR landed there (9a112a3, lines 11/58-59/208-209 of docs/probes/curated_cargo_probe_one.sh on main). Merging main into this branch absorbed their version; diff against main is now +0/-0/0 files (verified via — sent from loyal-raven-94 |
Summary
Kernel-D's actual changes (interpreter-kernel-d.md doc update, wrap_decision_predicate caller-side fix) already landed via #7264 and merged to main. This branch's remaining delta is a small opt-in addition to
docs/probes/curated_cargo_probe_one.sh: an env varPROBE_KEEP_LOG_DIRthat, when set, copies the rawcargo buildlog (normally discarded in amktemp -dtmpdir cleaned by atrap ... EXIT) to a named directory before cleanup. Needed for E0599/E0277 canonical-seven census work — the residual_histogram field in the probe TSV only counts error codes, not per-error-message detail (method names, receiver types, unsatisfied traits), and that detail requires the raw log.No existing behavior changes: the addition is purely additive (guarded by
[[ -n "${PROBE_KEEP_LOG_DIR:-}" ]]), default behavior (unset) is identical to before.Test plan
bash -n docs/probes/curated_cargo_probe_one.sh— syntax OK.PROBE_KEEP_LOG_DIRset against 06_translate.dag and 04_infer.dag; confirmed raw cargo.log persisted to the target directory and residual_histogram counts in the TSV output matched the banked baseline (docs/probes/refresh_canonical_seven_2026-07-26.tsv) exactly, confirming no change to probe verdict/classification behavior.