99df14c792
A re-grep found 15 live references (excluding docs/specs/ and
docs/plans/, which stay historical) the previous two commits
missed — all in source comments, doctests, bench helpers, and one
agent file.
Per-file:
- crates/ail/src/main.rs: typeclass-coherence diagnostic comment
pointed at "the JOURNAL queue's wording" — points at
design/contracts/typeclasses.md alone.
- crates/ailang-prose/src/lib.rs: `//!` header referred to
docs/JOURNAL.md "Pinned: human-readable prose surface" —
retargeted to design/contracts/authoring-surface.md.
- crates/ailang-check/src/lib.rs: bugfix tag + "see iter
method-dispatch-refactor journal" prose collapsed to a clean
rationale paragraph; the canonical shape is stated inline.
- crates/ailang-surface/tests/prelude_decouple_carve_out_pin.rs:
"(d) record the rationale in a per-iter journal" →
"(d) record the rationale in the commit body".
- crates/ailang-surface/tests/prelude_module_hash_pin.rs: header
collapsed (pd.2/pd.3 milestone narrative dropped — the test's
purpose is self-evident from its body); both "per-iter journal"
drift-instructions point at the commit body.
- runtime/rc.c: "bench numbers in JOURNAL 18f.2" →
"original profiling bench numbers".
- bench/run.sh: two "JOURNAL entry" comments → "commit body".
- bench/architect_sweeps.sh: header rewritten (cross-ref to the
design-md-consolidation milestone commits, not a JOURNAL entry).
Sweep-4 extended with two new anti-regrowth phrases
("see the per-iter journal", "in a per-iter journal") so journal
prose can't grow back into design/contracts/ silently.
- skills/audit/agents/ailang-architect.md: "unlike a journal it
lives on main" → "since it lives on main".
- ail-embed/src/bin/timeshard_runner.rs: "records it in the
close-out journal" → "prints it to stderr".
- ail-embed/tests/timeshard.rs: two "journal-only friction timing"
→ "stderr-only friction timing".
Verification (after the edit):
- `grep -rin '\bjournal\b'` against live tree returns exactly two
hits: the Sweep-4 regex itself (intentional — TABU phrases that
prevent regrowth) and the PHRASES array in design_index_pin.rs
(intentional — the same regrowth guard at test level). Both are
load-bearing negative assertions.
- `bash bench/architect_sweeps.sh` exits 0 ("All five sweeps
clean") — no design/-side regrowth.
- `cargo build --workspace` green; `cargo test --workspace` green.
30 lines
1.3 KiB
Rust
30 lines
1.3 KiB
Rust
//! pd.3 (`prelude-decouple` milestone): pin that
|
|
//! `examples/prelude.ail.json` does NOT exist on disk. Surfaces
|
|
//! immediately if the file is recreated by accident or a future
|
|
//! refactor reverts the embed-source swap.
|
|
//!
|
|
//! Companion to the `examples_ail_json_inventory_matches_carve_outs`
|
|
//! test in `crates/ailang-core/tests/carve_out_inventory.rs`: that
|
|
//! one asserts the carve-out list is exactly seven; this one
|
|
//! asserts the eighth (retired) file specifically does not exist.
|
|
//! Either test detects an accidental re-introduction; this one
|
|
//! pinpoints the file by name in the error message.
|
|
|
|
use std::path::Path;
|
|
|
|
#[test]
|
|
fn prelude_ail_json_does_not_exist_on_disk() {
|
|
let path = Path::new("../../examples/prelude.ail.json");
|
|
assert!(
|
|
!path.exists(),
|
|
"examples/prelude.ail.json must NOT exist after the prelude-\
|
|
decouple milestone (closed 2026-05-14). The prelude is now \
|
|
embedded as prelude.ail in ailang-surface. If you intentionally \
|
|
re-introduced this file, you must also: (a) remove this pin, \
|
|
(b) restore the §C4 (b) entry in carve_out_inventory.rs, \
|
|
(c) revert the §C4 (b) status marker in \
|
|
docs/specs/2026-05-13-form-a-default-authoring.md, and \
|
|
(d) record the rationale in the commit body."
|
|
);
|
|
}
|