Port the 21 audit-missing functions name-preserving to the existing Rust crate (gap.rs: _ss_core probe, _sorted, new_doc, _redact_secrets+_is_secret_key, save, canonical_digest, snapshot, alias, spine_uri, resolve_uri, _doc_authorities, authority_health, bind_task, task_entities, impact_frontier, record_observed_impact, predicted_vs_observed, structural_events, diff, dedupe_observations), 19 doc-envelope FFI ss_* entry points, ctypes loader mirroring broker_loader.py, facade delegation with RUNE_STRUCTURAL_CORE=python pin. Fix-first: promote ordering (unknown-id silent), alias-aware entity resolution, resolve_status verbatim-status + pythonic conflicts, supersede add_relationship law, authority_failed observation, SCHEMA_VERSION 1. Frozen truth: 86 cases generated against the live oracle (pinned clock, deep-copied inputs), embedded verbatim in cfg(test) battery. Live parity 100%: 4387 checks, 0 failures (frozen 86 + fuzz 4300 + live 1). Contract BUILDER-2026-10-13T00:32:22Z-bc3aae-factory-gap-ss.
40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
#!/usr/bin/env python3
|
|
"""Open the #2479 dichotomy-wave gap-closing construction contract for
|
|
structural_store (PARTIAL → ≥80% fn coverage). Walks draft→approved→building
|
|
in ONE process (shared-store clobber hazard).
|
|
|
|
Usage: open_contract_gap_ss.py
|
|
"""
|
|
import json
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))
|
|
|
|
from rune.construction_interface import ConstructionInterface
|
|
|
|
iface = ConstructionInterface(builder="factory-gap-ss")
|
|
|
|
r = iface.submit_need(
|
|
"Close structural_store PARTIAL gaps (dichotomy wave, issue #2479 "
|
|
"tranche): port the 21 audit-missing functions name-preserving to the "
|
|
"existing Rust crate (doc-envelope FFI ss_*, ctypes loader mirroring "
|
|
"broker_loader.py, facade delegation with RUNE_STRUCTURAL_CORE=python "
|
|
"pin), frozen-truth battery generated against the live oracle, live "
|
|
"parity 100% on new fns, Phase B language-advantage pass.",
|
|
origin="builder",
|
|
)
|
|
print("submit_need:", json.dumps(r)[:400])
|
|
if not r.get("success"):
|
|
print("NEED FAILED — aborting")
|
|
sys.exit(1)
|
|
c = r["ids"]["contract_id"]
|
|
print("contract_id:", c)
|
|
|
|
for phase in ("approved", "building"):
|
|
t = iface.transition(c, phase)
|
|
print(f"transition->{phase}:", json.dumps(t)[:300])
|
|
if not t.get("success"):
|
|
sys.exit(1)
|
|
print("OPENED", c)
|