Skip to content

docs: the stdlib sourcing plan moves to docs/completed - #2632

Merged
ehartford merged 1 commit into
mainfrom
sourcing-completed
Oct 25, 2026
Merged

ehartford merged 1 commit into
mainfrom
sourcing-completed

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

docs/proposals/stdlib_sourcing_plan.md -> docs/completed/stdlib_sourcing_plan.md (complete against its own gates; Eric asked for the move). Every reference follows (31 sites: docs, build/*.w, lib/std comments, tools/drop_audit.w); the proposals index drops the entry; the inventory's relative link is repaired. Comment-only changes outside docs, so the battery runs. spec-inventory-check and the census green.

…ce follows

The plan is complete against its own gates (Eric, 2026-10-25: move it). The 31 references in docs, build, lib and tools comments point at the new path; the proposals index drops it; the inventory's relative link, which already pointed at a sibling that never existed, points at the archive.
@ehartford
ehartford marked this pull request as ready for review October 25, 2026 16:15
@ehartford
ehartford merged commit 2b7fc58 into main Oct 25, 2026
@ehartford
ehartford deleted the sourcing-completed branch October 25, 2026 16:15
ehartford added a commit that referenced this pull request Oct 25, 2026
… name (doc-path-check); the battery skips sources already green (#2633)

* Source cites a document by its file name, never its path; doc-path-check refuses a path

Moving one proposal to docs/completed changed 31 source files (#2632) because source spelled the document's directory, and directories are what move. Every `docs/…md` path in src, build, lib, tools, rt and test (310 sites: comments, compiler diagnostics, the corpus shapes units' header text, test comments; 17 still pointed at docs/proposals after #2632, several at docs/mut.md, which no longer exists) is now the file name alone. `doc-path-check`, in the gate's fixed list, refuses a path outside the files the program itself reads or writes: with_for_ai.md (the init templates and the AGENTS/CLAUDE agreement check read it), the bundle-root line build/corpus.w writes into every promoted corpus (it changes only with a re-promotion, D112), the corpora themselves, tools/docs_restructure.w's move table and the green-identity test's path data. behav_std_os asserts a file that is not a document. The rule is in CLAUDE.md's editing protocol.

* The battery exits GREEN without running when the committed sources already have a published green

A docs-only change has the same inputs as its parent (the green is keyed on the committed tree without docs/ and top-level *.md, D49), so a battery over it has nothing to bless; #2632 ran one anyway. tools/battery.w now asks `:sources-green` first (the seed's digest and the full HEAD as keyed inputs, so a cached answer is never another commit's; it builds nothing): on a green it writes GREEN with the recording commit to status.txt and exits. The lookup is one function, ret_green_commit, behind :install-user, require-last-green and sources-green.

* doc-path-check: the ABI sources keep their citations; their bytes are every bundle's key

The battery found it: rewriting three comments in src/FnAbi.w changed the ABI hash (abi-hash-check), which keys every .wo bundle on every host. FnAbi.w is restored to main's bytes and the ABI's two sources are exempt from doc-path-check; their citations change only with the ABI itself.

---------

Co-authored-by: Eric Hartford <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant