mirror of
https://github.com/bdbrown4/peltier.io.git
synced 2026-11-07 10:58:28 +00:00
phase3: generalize trust layer for C/C++; wire cJSON target
Trust-layer generalization (zero-regression verified on tokei):
- TargetSpec [build] uses an explicit {out} isolation-dir placeholder
instead of injected CARGO_TARGET_DIR, plus optional sanitizer/
sanitizer_binary templates. Nothing assumes cargo anymore.
- verdict rebuild_pristine_baseline, sanitizer_check, and harnessd
run_verdict candidate build all use {out} substitution. A target with
no sanitizer build caps accepts at needs-human-review.
- tokei/comrak target.toml migrated to the {out} form (CARGO_TARGET_DIR=
{out} + nightly ASan sanitizer command).
cJSON C target (v1.7.19, MIT):
- harness.c bench/golden driver (trust-layer; agent can patch workspace
cJSON.c but not the rig), compiled with clang against the patched tree.
- 5.6 MB deterministic corpus (gen-corpus.sh) + MANIFEST/GOLDEN pins.
- gates = hermetic Unity/CTest suite (19 tests pass); sanitizer =
ASan+UBSan; scripts/diff-fuzz-cjson.py for differential fuzzing.
coz causal profiler integration (SPEC §12):
- harness.c optional -DHOTPATH_COZ throughput progress point.
- scripts/install-coz.sh, coz-profile.sh, coz-summary.py; just coz/install-coz.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EcKPWQ3MQD4NdEHwar96u2
This commit is contained in:
@@ -56,3 +56,12 @@ agent-attempt target run_id max_turns="40":
|
||||
# Verify the OS boundary from the agent user's side (negative + positive)
|
||||
isolation-check:
|
||||
sh scripts/isolation-check.sh
|
||||
|
||||
# Install the coz causal profiler (apt, else source build)
|
||||
install-coz:
|
||||
sh scripts/install-coz.sh
|
||||
|
||||
# Causal profile of a C/C++ target: where a speedup would raise throughput
|
||||
coz target iters="200":
|
||||
sh scripts/coz-profile.sh {{target}} {{iters}}
|
||||
python3 scripts/coz-summary.py results/{{target}}/coz/profile.coz
|
||||
|
||||
Reference in New Issue
Block a user