KeiSeiKit-1.0/_assembler
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
..
src fix(assembler): replace unwrap on root.parent with safe fallback 2026-04-21 03:05:14 +08:00
tests test(assembler): root.parent fallback under AGENT_ROOT=/ 2026-04-21 04:37:37 +08:00
.gitignore feat: KeiSeiKit v0.1.0 — initial public release 2026-04-20 23:58:34 +08:00
Cargo.toml test(assembler): add insta dev-dep and fixture-loading helpers 2026-04-21 04:15:04 +08:00