Skip to content

fix: enforce reward hard gates, packet bounds, audit confinement, and safe sweeper I/O - #17

Merged
saariuslystoned merged 1 commit into
mainfrom
fix/state-machine-freepvr-slice-b
Nov 30, 2026
Merged

saariuslystoned merged 1 commit into
mainfrom
fix/state-machine-freepvr-slice-b

Conversation

@saariuslystoned

Copy link
Copy Markdown
Contributor

Summary

Hardens validation, confinement, and bounds checks across untouched clean-room tooling and probes:

  • freepvr-twin/freepvr_twin/reward.py: enforce hard reward gates on failing/invalid metrics.
  • tools/freecs/freecs_packet_validator.py: enforce strict packet bounds, reject reserved PPP bits, and verify PBE round-trip invariants.
  • scripts/clean-room-audit.sh: enforce symlink and path confinement during audit traversal.
  • probes/vk_pipeline_cache_sweeper.c: use openat confinement and bounded allocations.
  • Added regression tests in freepvr-twin/tests/test_freepvr_twin.py and tests/test_slice_b_guards.py.

Verification

  • Base-fail reproduced (10 failures / 16 tests) -> head-pass (16/16; freepvr-twin: 32 pass; tests/: 17 pass).
  • scripts/clean-room-audit.sh: PASS; git diff --check: clean; TruffleHog: 0 findings.

@saariuslystoned
saariuslystoned merged commit dfb914b into main Nov 30, 2026
3 checks passed
@saariuslystoned
saariuslystoned deleted the fix/state-machine-freepvr-slice-b branch November 30, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant