workflow: scrub residual JOURNAL/journal refs missed in the first sweep
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.
This commit is contained in:
@@ -11,15 +11,13 @@
|
||||
# Wunschdenken / post-mortem invariant.
|
||||
#
|
||||
# Companion to skills/audit/agents/ailang-architect.md "What you check
|
||||
# / design/ history-anchor regrowth". See JOURNAL 2026-05-10
|
||||
# ("Milestone close: design-md-consolidation") for the rationale of
|
||||
# each sweep regex; the regexes here are copied verbatim from JOURNAL
|
||||
# entries 12487 (Sweep 1), 12619 (Sweep 2), 12718-12720 (Sweep 3),
|
||||
# and 12840 (Sweep 4).
|
||||
# / design/ history-anchor regrowth". The rationale of each sweep
|
||||
# regex (Sweeps 1–4: history anchors; Sweep 5: honesty / Wunschdenken)
|
||||
# lives in the design-md-consolidation milestone commits (2026-05-10).
|
||||
#
|
||||
# A non-zero exit is advisory, not authoritative: the architect agent
|
||||
# reviews each match and decides whether it is a legitimate quote
|
||||
# (e.g. a JOURNAL citation inside a block-quote) or fresh drift.
|
||||
# (e.g. a block-quote citation of a commit body) or fresh drift.
|
||||
|
||||
set -u
|
||||
INDEX="design/INDEX.md"
|
||||
@@ -54,7 +52,7 @@ run_sweep "3 (schema SoT)" \
|
||||
'^\s*(struct |enum |pub (struct|enum|fn))|whenever the two disagree|ast\.rs is the source of truth'
|
||||
|
||||
run_sweep "4 (workflow + stale cross-references)" \
|
||||
'agents/README\.md|ailang-docwriter|Recently lifted|see the JOURNAL queue|later the same day|Sharpened later|closure conversion in JOURNAL'
|
||||
'agents/README\.md|ailang-docwriter|Recently lifted|see the JOURNAL queue|later the same day|Sharpened later|closure conversion in JOURNAL|see the per-iter journal|in a per-iter journal'
|
||||
|
||||
run_sweep "5 (honesty: wunschdenken + non-citation post-mortem)" \
|
||||
'on the path to|may land in a future|ships in a future iter|[Ww]ill back `Show|[Ww]ill eventually (be|support|back)|[Ii]f/?when [a-z]+ (arrives|lands)|[Aa]n earlier draft of this|previously all diagnostics were|[Ww]hat did change in 20|were retired 20[0-9]{2}-|retired in iter [a-z]|originally listed|\bwas deferred\b|foundation for [a-z]'
|
||||
|
||||
+3
-3
@@ -8,7 +8,7 @@
|
||||
# The bump number minus the gc number is the upper-bound cost of GC.
|
||||
#
|
||||
# Output: a table with gc-median, bump-median, overhead %, and max RSS
|
||||
# for both modes. Designed to be captured verbatim into a JOURNAL entry.
|
||||
# for both modes. Designed to be captured verbatim into a commit body.
|
||||
#
|
||||
# Requirements: bash, /usr/bin/time -v (GNU coreutils), bc, sort, awk,
|
||||
# a release-mode `ail` binary.
|
||||
@@ -192,8 +192,8 @@ if [[ -x "$LAT_HARNESS" && -f "$LAT_IMPL_SRC" && -f "$LAT_EXPL_SRC" ]]; then
|
||||
"$AIL" build --opt=-O2 --alloc=rc "$LAT_IMPL_SRC" -o "$OUTDIR/bench_latency_implicit_rc" >/dev/null
|
||||
|
||||
# The harness prints a multi-line block per arm; we let it speak
|
||||
# for itself. The orchestrator captures the verbatim output into a
|
||||
# JOURNAL entry like the throughput table above. `--runs 5` runs
|
||||
# for itself. The orchestrator captures the verbatim output into
|
||||
# the commit body like the throughput table above. `--runs 5` runs
|
||||
# each arm five times; the harness drops the slowest run and
|
||||
# reports median + range per cell, matching the throughput
|
||||
# table's drop-slowest convention.
|
||||
|
||||
Reference in New Issue
Block a user