Bridge Recovery Harness
Use this skill when a soft-mode recovery must prove BridgeStan-like score-model behavior without compiling the full BridgeStan stack. It coordinates the other generated skills and produces auditable recovery artifacts.
Inputs
- Attempt directory.
- Generated skills root.
module_plan.jsonfast recovery target.environment/runtime_handoff.json.
Outputs
recovery/recovery_result.json.recovery/source_manifest.json.recovery/logs/experiment_command_log.json.recovery/logs/generated_skill_invocations.json.- Data, contract, transform, and score logs used by the proxy.
Workflow
- Confirm the runtime handoff recommends reduced/proxy recovery or that full BridgeStan runtime is unavailable.
- Create a tiny Bernoulli Stan source and observation data inside the current attempt.
- Call the generated contract, transform, and score scripts through subprocesses.
- Compute a mechanism-check pass-rate metric from the generated outputs.
- Write source manifest entries limited to allowed recovery sources.
- Run the Distiller recovery validator after the harness completes.
Validation
Run python tests/test_bridge_recovery_harness.py from this skill directory for a command-free smoke check of metric aggregation.
Limitations
This harness is a declared proxy. It must not claim that the real BridgeStan package or compiled Stan shared object ran unless environment evidence proves that separately.