test_pilot_large_preserved_docs.py file-level

at main · View file ↗ · Intel ↗

History
1 files
1 commits
0 hotspots
0 🧊 dead
0 💥 blast risk
sha256:6 fix(ISR): default require_independent_second_reviewer to require Opera… · aaronrene · Sep 2, 2026
1 """Stress: large preserved living docs under migrate (§K6.10)."""
2
3 from __future__ import annotations
4
5 from pathlib import Path
6
7 from tests.support import PILOT, git_status_runner, muse_mirror_status_runner, run_cli, seed_pilot_tree
8
9
10 def test_large_preserved_docs_migrate_status_bounded(tmp_path: Path) -> None:
11 big = "# large\n" + ("x" * 200_000) + "\n"
12 seed_pilot_tree(
13 tmp_path,
14 handover_rel="docs/OVERSEER-HANDOVER.md",
15 handover_text=big,
16 roadmap_rel="docs/ROADMAP.md",
17 roadmap_text=big,
18 )
19 runner = muse_mirror_status_runner(tmp_path)
20 assert (
21 run_cli(
22 [
23 "init",
24 "--migrate",
25 "--from-config",
26 str(PILOT / "config-scooling.yaml"),
27 "--non-interactive",
28 ],
29 cwd=tmp_path,
30 runner=runner,
31 )
32 == 0
33 )
34 assert run_cli(["status", "--check-footprint"], cwd=tmp_path, runner=runner) == 0
35 assert (
36 tmp_path / "docs/OVERSEER-HANDOVER.md"
37 ).read_text(encoding="utf-8") == big