Skip to content

Proof-or-Stop v0.3.418 — Validation Reliability and Inventory Protection

Choose a tag to compare

@Harmonynet Harmonynet released this 18 Sep 10:20
· 1457 commits to main since this release

Overview

Proof-or-Stop v0.3.418 consolidates the eleven locally integrated maintenance releases from v0.3.408 through v0.3.418. It improves partial-DONE recovery, hash-verifier portability, low-risk validation selection, diagnostic clarity, validation-fixture compatibility, review guidance, stale-evidence reporting, causal-evidence tests, and protection of the validation inventory.

The release also refreshes the two exact source digests changed by the validation-companion repair. This restores the static-source verifier without adding a new exception, changing an allowed invocation, or weakening any production policy.

Problem, evidence, and result

Area Before Evidence After
Partial-DONE recovery Recovery could miss a committed Story record that existed only on an unmerged Story branch, and a same-named tag could make checkout detection ambiguous. The branch-only recovery fixture reproduced the failure and also covered non-main integration, same-named tags, cleanup, and release-ledger behavior. Recovery resolves the integration target from the same committed branch snapshot used for discovery and uses explicit local branch references while retaining clean-worktree and merge-feasibility safeguards.
Native hash verification The independent exact-digest oracle could fail while loading production TypeScript that contains non-erasable syntax. The existing 27 golden digest cases and tamper/invalidation controls exposed the loader failure. A process-local TypeScript compilation hook is installed for the verifier only; production loading behavior is unchanged.
Changelog maintenance Historical detail made the top-level changelog expensive to review and easy to regenerate incorrectly. A frozen-history verifier checks the compact baseline against byte-verified Git history. Older history remains reachable in Git, while new entries are limited to concise delivery bullets and links to detailed evidence.
Low-risk validation selection Selection was observable but did not execute the selected subset in the eligible low-risk path. A frozen A/B/B/A harness exercised the real selector, executor, signing, and consumer paths. It reduced physical launches from six to two, while mean wall time increased from 3.964 seconds to 5.528 seconds. validate.dynamic.mode=enforce-low-risk can execute the selected subset for eligible inputs. Missing baselines, shared risk, unmapped material, full-only policy, or invalid evidence still fail closed to the full plan. No latency improvement is claimed.
Verification-type diagnostics Invalid evidence kinds did not reliably show the received value, making configuration mistakes harder to correct. Six invalid-kind cases, accepted canonical types, compatibility aliases, escaping, length limits, and pre-mutation refusal were exercised through the actual CLI. Errors now include a JSON-escaped, 64-character-bounded received value and the legal types without creating Story metadata.
Validation companion fixtures Two fixtures asserted superseded capture and display contracts. The current complete-capture API and bounded-output behavior reproduced both stale expectations. The fixtures now require one physical capture, preserve the original result, reject fabricated receipts, keep truncation markers within the display cap, and retain reuse and tamper controls.
Module initialization An eager circular dependency could prevent the flow-validation entry from starting. Fresh-process import-order tests reproduced the initialization failure. The unchanged dirty-category tuple now lives in an import-free data module; category types and blocking decisions remain unchanged.
Review guidance Pending REVIEW guidance did not explicitly bind the final finding or pass to the run ID returned by review_run_start. An isolated REVIEW Story exercised the real session handler and canonical dispatch contract. The guidance now names the returned run ID while preserving distinct child identities, exact waits, and reviewer ownership.
Stale-evidence hint extraction Variable-length stale-intent rows could truncate an indented remediation hint. Focused cases with one, three, and fifteen stale intents reproduced the truncation and checked surrounding output. Extraction retains the complete hint and preserves byte-exact recovery-command assertions across surfaces.
Causal-evidence fixtures Receipt tests had drifted from current output storage, bounded retry, and sealed-input contracts. Focused tests covered oversized output, an injected index-write failure, topology/pre-review execution, and a missing-source negative case. Tests use the real receipt store, exhaust the bounded retry path, prove one physical execution and immutable recovery, and keep topology inputs sealed. Production authority is unchanged.
Validation inventory protection The regression fixture did not fully compare the real caller state with local main or cover every protected mutation class. Real Git mutations exercised command changes, removals, reordering, duplicates, collection shape, package configuration, runner sources, timeout literals, and override shadowing in working and committed states. The fixture mechanically protects existing commands, argv, order, timeouts, budgets, scripts, and runner sources while allowing bounded additive registration and separately gated scope paths.
Static source closure The v0.3.413 fixture changes left two dependency digests at their prior values. The strict scanner reported one incomplete exception; recomputation identified only validation-input-contract.mjs and validation-shared-output.mjs as changed dependencies. The exact two digests were refreshed. The scanner reports zero needs-review rows, zero nested registered calls, zero unexpanded commands, and no configuration drift or stale exceptions.

Safety and compatibility

  • No public command was removed or renamed.
  • Existing validation commands, argv ordering, timeout limits, budget limits, package scripts, and runner sources remain protected.
  • Dynamic selection is restricted to eligible low-risk inputs and retains conservative full-plan fallback.
  • The causal-evidence and validation-companion work changes tests and diagnostics, not production authority.
  • The release contains no co-author attribution trailers.

Verification

The release candidate was built from the exact tagged source and exercised with the version-pinned verification commands for v0.3.408 through v0.3.418. Key current results include:

  • Build binding: PASS.
  • Artifact release ledger recovery: 14 assertions passed.
  • Independent hash oracle: 27/27 cases passed.
  • Changelog compaction contract: PASS.
  • Dynamic selection cost harness: DYNAMIC_SELECTION_COST_GREEN, including fault detection and conservative fallback controls.
  • Verification enum diagnostic: PASS.
  • Dirty-category import orders and missing-category refusal: PASS.
  • Review run-ID guidance: PASS.
  • Stale-hint extraction: PASS.
  • Focused causal-evidence cases: 3/3 passed.
  • Protected inventory fixture: PASS.
  • Static validation edges: needsReview=0, nested=0, unexpandedCommands=0, with U18_STATIC_PASS.

The repository-wide managed-asset diagnostic still reports three pre-existing STALE_SAFE files (.gitignore and two generated hook files). They are outside this release diff and were not silently rewritten.

Included versions

  • v0.3.408 — branch-snapshot recovery for partial DONE.
  • v0.3.409 — native exact-digest hash-verifier loader.
  • v0.3.410 — compact, history-preserving changelog policy.
  • v0.3.411 — enforced low-risk dynamic validation selection with fail-closed fallback.
  • v0.3.412 — actionable verification-type diagnostics.
  • v0.3.413 — current validation companion contracts.
  • v0.3.414 — circular module-initialization repair.
  • v0.3.415 — returned review run-ID guidance.
  • v0.3.416 — complete variable-length stale-hint extraction.
  • v0.3.417 — causal-evidence fixture compatibility.
  • v0.3.418 — real-Git protected validation inventory fixture.

Full diff: v0.3.407...v0.3.418