Skip to content

feat: harden acceptance tooling, rootfs-swap verifier, and fastboot parity - #3

Merged
brainbudt merged 6 commits into
mainfrom
feat/i14-acceptance-hardening-20261123
Nov 23, 2026
Merged

brainbudt merged 6 commits into
mainfrom
feat/i14-acceptance-hardening-20261123

Conversation

@brainbudt

Copy link
Copy Markdown
Owner

Summary

Hardens and completes host-side acceptance tooling, safety gates, and verification coverage across all active roadmap tracks (Security/DNS, Rootfs R, H1, H2/H3 Soak C, C13 Battery Calibration, M0 Linux 7 Recovery Timing, and i14-fastboot differential parity).

All changes are host-verified only; no hardware acceptance claims are added to docs/STATUS.md.

Changes

  • Security & DNS policy tests (068ee8a)
    • Fixed vacuous invalid-client tests in tests/test_i14_hardening.py by using fresh templates per subtest and verifying absent/empty/comment-only DNS client lists leave external access blocked.
    • Tightened docs/ROOTFS-SWAP-ROLLBACK.md with pre-trial inode verification and independent restored-image checks.
  • Rootfs R staging & rollback verifier (6aa6bd1)
    • Implemented scripts/i14-rootfs-swap.py and tests/test_i14_rootfs_swap.py matching initramfs/i14init and rootfs/overlay/usr/sbin/i14-rootfs-trial invariants (2 GiB free-space floor, regular-file / no-symlink enforcement, hardlinked candidate inodes, 512-byte rootfs-trial record, pre-Unbound root.key receipt verification, and rollback/confirmation checks).
  • H1 & H2/H3 Soak C tooling (937b8cc)
    • Fixed H1 idle PID-reuse binding (--start-ticks) and DNS probe EOF-hang / empty-answer false positives.
    • Integrated phone-local collector, bounded retention / persistent quota-stop, guarded export, host receiver with hash-pinning and teardown checks, and docs/verification/H1-SOAK-C.md.
  • C13 Battery Calibration gates (bc65e28)
    • Enforced real userdata free-space checks, fixed observer overhead reservation, 8 h Full-anchor deadline ordering, strict failure propagation, and lock exclusion against competing charge controllers (docs/C13-READINESS.md).
    • Zero current_cmd reads introduced; Item D remains on hold.
  • M0 Linux 7 Recovery timing (f57a753)
    • Added passive host anchor writer (scripts/i14_k70_capture.py), enforced the unrounded 40 s timing limit, rejected doubly-marked boot stages, and updated docs/K70-RECOVERY-TIMING.md.
  • i14-fastboot differential parity & cleanup (722bbbc)
    • Aligned Python/Rust RAM-boot-only refusal diagnostics so all 154/154 differential CLI sessions match identically.
    • Guarded differential_receipt_matches_v9_evidence_shape when local evidence/ is absent, and cleaned up minor soak-script message typos (with updated SHA-256 pin).

Verification

  • ruff check . — passed
  • python3 -B -m unittest discover -s tests -p 'test_i14_*.py' — passed (889 tests, 13 env skips)
  • python3 -B -m unittest discover -s tests -p 'test_boot_install.py' — 14/14 passed
  • python3 -B initramfs/test-usb-network.py & initramfs/test-display-packaging.py — passed
  • sh -n scripts/i14-soak-procs.sh — passed
  • cargo fmt --all -- --check & cargo clippy --workspace --all-targets --locked -- -D warnings — passed
  • cargo test --workspace --locked — passed (including 154/154 i14-fastboot differential CLI sessions)
  • cargo build --release --workspace --exclude i14-tools --exclude i14-fastboot --target aarch64-unknown-linux-musl --locked — passed

@brainbudt
brainbudt force-pushed the feat/i14-acceptance-hardening-20261123 branch from 6aa6bd1 to db24079 Compare November 23, 2026 14:06
@brainbudt
brainbudt merged commit fb00a71 into main Nov 23, 2026
8 checks passed
@brainbudt
brainbudt deleted the feat/i14-acceptance-hardening-20261123 branch November 23, 2026 19:52
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