KeiSeiKit-1.0/_assembler/tests
Parfii-bot c7ca30ffb3 test(assembler): root.parent fallback under AGENT_ROOT=/
Regression test for the fix in 30cd08b (replaced
`root.parent().unwrap()` with `.unwrap_or(root.as_path())` at
main.rs:45). Two cases:

- `agent_root_slash_does_not_panic` — `AGENT_ROOT=/ assemble /dev/null`
  must reach the "parse failed" error path without panicking. Guards
  against the `relative_to()` call site specifically.
- `agent_root_slash_full_run_no_panic` — same env with a valid stub
  manifest supplied explicitly. Even though the run fails at
  `mkdir /_generated` (unprivileged), it must fail GRACEFULLY, not
  with SIGABRT from an `.unwrap()` on a None parent.

Both assertions: no "panicked at" in stderr, and `status.code()` is
Some (signal-kill would return None on Unix).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 04:37:37 +08:00
..
common test(assembler): add insta dev-dep and fixture-loading helpers 2026-04-21 04:15:04 +08:00
fixtures test(assembler): add insta dev-dep and fixture-loading helpers 2026-04-21 04:15:04 +08:00
snapshots test(assembler): golden-file snapshots for 4 representative manifests 2026-04-21 04:21:40 +08:00
determinism.rs test(assembler): determinism + roundtrip + validator-negative cases 2026-04-21 04:31:41 +08:00
golden.rs test(assembler): golden-file snapshots for 4 representative manifests 2026-04-21 04:21:40 +08:00
root_fallback.rs test(assembler): root.parent fallback under AGENT_ROOT=/ 2026-04-21 04:37:37 +08:00
roundtrip.rs test(assembler): determinism + roundtrip + validator-negative cases 2026-04-21 04:31:41 +08:00
validator_negative.rs test(assembler): determinism + roundtrip + validator-negative cases 2026-04-21 04:31:41 +08:00