diff --git a/crates/cli/tests/properties.rs b/crates/cli/tests/properties.rs index 12a2d94..9cb17ba 100644 --- a/crates/cli/tests/properties.rs +++ b/crates/cli/tests/properties.rs @@ -189,15 +189,6 @@ $$ const INSERTED_PROSE: &str = "这是一段与执行结构无关的纯叙述文字,它只改变 Markdown 文本节点。"; -fn repo_root() -> std::path::PathBuf { - std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .parent() - .expect("crates/cli has a parent") - .parent() - .expect("crates has a parent") - .to_path_buf() -} - /// Strip source spans so narrative edits (which shift byte offsets) compare /// equal. This mirrors the invariance definition in blueprint section 14.2. fn without_spans(value: &serde_json::Value) -> serde_json::Value { @@ -322,11 +313,9 @@ fn variants(base: &Base) -> BTreeMap { #[test] fn pure_prose_edits_do_not_change_executable_ir() { - // Keep the fixture root meaningful for the documented layout even though - // these tests are generated in code: assert the directory exists so a typo - // in the workspace layout is caught. - assert!(repo_root().join("tests").join("properties").is_dir()); - + // All fixtures are in-code strings. The test deliberately does not depend + // on an on-disk `tests/properties/` directory: Git cannot track empty + // directories, so such an assertion failed only on a fresh clone (B-01). let mut checked = 0usize; for base in BASES { let expected = executable_projection(base.source); diff --git a/docs/STATUS.md b/docs/STATUS.md index e79dd70..1a25836 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -39,10 +39,32 @@ example smoke tests. The R0 ADRs are `docs/adr/0008`–`0012` (package identity, callable resolution, plugin export routing, capability broker, kernel providers). +### S0/H0 baseline record (current) + +Starting point: `0adebe42f14d72a2a275564d03ff9558f197766e`, 2026-11-20. B-01 +fixed by removing the `tests/properties/` empty-directory assertion from +`crates/cli/tests/properties.rs`; all fixtures are in-code strings, so the test +no longer depends on a directory Git cannot track. The prose-invariance +assertions were not reduced. + +Local gate after the fix (Linux x86_64, rustc 1.100.0 / cargo 1.100.0): + +```text +cargo fmt --all -- --check ok +cargo clippy --workspace --all-targets -- -D warnings ok +cargo test --workspace ok +cargo test -p marqdo-cli --test properties ok (2 tests) +``` + +CI run URL: not yet available from this environment; record the first pushed +run here before treating H0 as CI-verified. The local gate is reproducible with +`CARGO_HOME=.cache/cargo CARGO_TARGET_DIR=.cache/target`. + ### M0.6 implementation progress | Step | State | Evidence | |---|---|---| +| S0/H0 CI baseline | **Done locally** | B-01 fixed in `crates/cli/tests/properties.rs`; fresh-clone path no longer needs an empty directory; full local gate green (see §S0/H0) | | R0 baseline + ADRs | **Done** | this section; `docs/adr/0008`–`0012`; full workspace gate | | R1 package-aware identity + callable registry | **Done for statics** | `ModuleId { instance, relative_path }`; `PackageResolver` path sources; `lock_version: 2` with v1 migration; `CallableRegistry` for builtins/marqdo/declared ABI exports; external manifest wiring is R2 | | R2 ABI/Kernel/Broker | **Done (worker = crash isolation)** | `KernelRegistry` external providers; complete-name export routing; `CapabilityBroker`; static `check --plugin`; multi-export C test; isolated worker with timeout/crash tests; host handle table. Native/worker are not an OS sandbox |