Skip to content

doc(architecture): the star design record arrives where the code is - #942

Merged
David-Noble-at-work merged 5 commits into
developfrom
doc/937-three-star-design-documents
Sep 24, 2026
Merged

David-Noble-at-work merged 5 commits into
developfrom
doc/937-three-star-design-documents

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Step 1 of NobleFactor/noblefactor-engprod#228, lane 19 of noblefactor-ops#217 -- the last lane of that schedule.
Upstream first: this repository receives, then noblefactor-ops deletes.

star was a product of noblefactor-ops until March 2026. Its code came here and its design documents did not; that
repository's README kept them as "the record of how it came to be". An audit on 2026-09-23 found that sentence
covers three different things, and three of those documents are the only written design of code that ships
here
.

Commit What
plan docs/plans/doc/937-three-star-design-documents.md
doc Numbered, received, salvaged
doc The indices
plan Phase 4 recorded, and a false Phase 5 claim removed before it shipped

Section 9 is numbered now

Ruled 2026-09-23: the numbered series, "as is our pattern for design documents (they sort in read order that
way)."
Section 9, Star, turned out to be the only section whose documents were not numbered -- 1 through 8
and 10 all are. So the section is numbered here too, not only its arrivals:

File From Subject
9-star-extensions.md star-extensions.md, renamed the section document
9.1-doc-comment-styling.md noblefactor-ops the goast styler behind star lint go-style
9.2-source-analysis.md noblefactor-ops starcode, starindex, starstats, starcomplexity, staranalysis
9.3-file-tree-walking.md noblefactor-ops pkg/gitignore's layered ignore stack

Each arrival says what it is

noblefactor-ops#130 deleted that repository's Starlark warning that "a diverged second copy is how the next
person builds the wrong thing"
. A document moved without that warning is the same hazard in prose, so each
carries a note: what is as-is against this code, and what is already superseded.

9.1's note is the longest, because its "Porting to devlore-cli" section reads like instructions and is an
unfinished migration.
Five items it lists as porting as-is are absent -- resizeProduction, regionProduction,
BoxStyle, the production registry and MultiCommentProduction -- and the ~90 lines of reflection it says the
port deletes are still in astrewrite.go:20-64. Tracked as #938. The note says to read that section as history.

9.2 arrived malformed. The entire document was wrapped in a stray ```markdown fence, opened on
line 1 and closed at EOF, so its frontmatter was never frontmatter -- which is why noblefactor-ops carried it in
.github/frontmatter-exempt. Unwrapped on arrival.

Two salvages, and two corrections to the indices

"The Shape of the Tree" into 9-star-extensions.md: star <service> <resource> <verb>; a service token
names a service or product and never a tool (gh yes, shellcheck no); star elides its own token; and a flag
that changes what a command is is a second verb. Grepped for across all of docs/ before moving it -- no hits.
10-command-line-interface.md section 3 states only the two-token rule for writ and lore.

Two tables from star-configuration.md into configuration.md: the field-type strings and the config.sync
source-to-generated mapping. The model and rationale were already here; those two were not. Type names brought
current -- ConfigSpec is config.Spec, ConfigElement is config.Element.

#228's scope was wrong on one point. It says this step closes the index's two "(planned)" gaps. Neither is a
document that moves, and one can never be closed: Star WASM Receivers described a subsystem noblefactor-ops#230
deleted the design for, because no repository holds it -- no wazero, no .wasm, and move-star-to-devlore-cli.md:35
still records internal/wasm/ as "TBD -- not yet moved". It is removed, not filled. Star Configuration is not
moving as a document, so its entry points at configuration.md. The index gains three entries and loses two
promises
.

3.5-provider-catalog.md calls itself "the index of record for which providers exist" and listed none of
star's own. It gains goast and the five analysis providers in a table of their own -- they announce identically
but live under cmd/star/provider rather than pkg/op/provider, and that is worth seeing. pkg/gitignore is
named as not-a-provider, pointing at 9.3.

Test plan

  • make vet, make lint, make test -- all rc=0. No Go changed, so these prove nothing was broken rather
    than anything was fixed
  • Every relative .md link in the seven changed architecture documents resolves, checked by resolving
    each target against the filesystem. It caught one the move carried in: 9.3 linked twice to
    ../guides/writing-extensions.md, a noblefactor-ops guide that does not exist here and that refactor(registry): Extract registry.Transport interface #228 disposes of
  • codespell's en-GB_to_en-US dictionary over the three arrivals and the four edited documents: zero hits.
    They come from a repository swept on 2026-09-23, and this confirms it rather than assuming it
  • Seven back-references repointed. Two were absolute github.com/NobleFactor/noblefactor-ops/blob/develop/...
    URLs into plans refactor(registry): Extract registry.Transport interface #228 deletes, so they are no longer links; one pointed at star-file-tree-walking.md, which
    is 9.3 here now; three are prose naming documents refactor(registry): Extract registry.Transport interface #228 retires, which now say so
  • CI on this PR

What follows

noblefactor-ops#228 step 2 deletes what is left there and rewrites its README. That pull request closes
noblefactor-ops#217, and carries noblefactor-ops#234's plan, which reads active behind a closed issue
because its last phase landed in this repository.

#935 does not close here, though an earlier draft of this claimed it would. Its remaining box reads "in the next
noblefactor-ops pull request through", a condition no pull request in this repository can meet. It closes after
noblefactor-ops#228 step 2, in whatever devlore-cli pull request follows. #234 and #935 are the same trap pointing
in opposite directions: a plan whose last phase lands in another repository cannot close itself.

Plan: docs/plans/doc/937-three-star-design-documents.md

Resolves #937

Time

Marker UTC Elapsed
opened (first commit) 2026-09-24T06:05:17Z —
submitted (PR opened) 2026-09-24T06:24:05Z 0.3 h after opened
merged 2026-09-24T07:47:45Z 1.4 h after submitted; 1.7 h in all

Computed by the algorithm of noblefactor-ops#188 at merge.

David Noble added 5 commits September 24, 2026 08:05
Step 1 of noblefactor-ops#228, lane 19 of noblefactor-ops#217 -- the last lane
of that schedule. Three documents in noblefactor-ops are the only written
design of code that ships here: the goast doc-comment styler, five star
analysis providers absent from this repository's own provider catalog, and
pkg/gitignore's ignore stack.

Ruled 2026-09-23: the numbered series, "as is our pattern for design documents
(they sort in read order that way)." Section 9, Star, turns out to be the only
section whose documents are not numbered -- 1 through 8 and 10 all are -- so the
section is numbered here too, not only its new arrivals. star-extensions.md
becomes 9-star-extensions.md and the three arrive as 9.1, 9.2 and 9.3.

The plan also corrects #228's scope. It says this step closes the index's two
"(planned)" gaps; neither is a document that moves, and the WASM one can never
be filled -- noblefactor-ops#230 deleted it because no repository holds that
subsystem. The index gains three entries and loses two promises.
Section 9, Star, was the only section whose documents were not numbered --
1 through 8 and 10 all are. star-extensions.md becomes 9-star-extensions.md and
the three arrivals are numbered with it:

  9.1-doc-comment-styling.md   the goast styler behind star lint go-style
  9.2-source-analysis.md       five providers: starcode, starindex, starstats,
                               starcomplexity, staranalysis
  9.3-file-tree-walking.md     pkg/gitignore's ignore stack

Each carries a note saying what is as-is against this code and what is already
superseded. noblefactor-ops#130 deleted that repository's Starlark warning that
"a diverged second copy is how the next person builds the wrong thing"; a
document moved without that note is the same hazard in prose. 9.1's note is the
longest, because its "Porting to devlore-cli" section is an unfinished
migration and reads like instructions -- #938.

9.2 arrived wrapped in a stray ```markdown fence, opened on line 1 and closed
at EOF, so its frontmatter was never frontmatter. That is why noblefactor-ops
carried it in .github/frontmatter-exempt. Unwrapped on arrival.

Two salvages. "The Shape of the Tree" -- star <service> <resource> <verb>, a
service token names a service or product and never a tool, and a flag that
changes what a command is is a second verb -- had no counterpart here.
10-command-line-interface.md section 3 states only the two-token rule for writ
and lore. And two tables into configuration.md: the field-type strings and the
config.sync mapping, with the type names brought up to date (ConfigSpec is
config.Spec now).
index.md section 9 gains the three arrivals and loses two promises. #228 said
this step closes the two "(planned)" entries; neither was a document that
moved, and one could never be closed -- Star WASM Receivers described a
subsystem noblefactor-ops#230 deleted the design for, because no repository
holds it. Removed rather than filled. Star Configuration is not moving as a
document, so its entry points at configuration.md, where its two salvaged
tables now live.

3.5-provider-catalog.md calls itself "the index of record for which providers
exist" and listed none of star's own. It gains goast and the five analysis
providers in a table of their own: they announce the same way, but live under
cmd/star/provider rather than pkg/op/provider, and that distinction is worth
seeing. pkg/gitignore is named as not-a-provider with a pointer to 9.3.

Six back-references repointed. Two were absolute URLs into noblefactor-ops
plans that #228 deletes, so they are no longer links; one pointed at
star-file-tree-walking.md, which is now 9.3 here, so it is a local link; three
were prose naming documents that #228 retires, which now say so.

One broken link came in with the move: 9.3 linked twice to
../guides/writing-extensions.md, a noblefactor-ops guide that does not exist
here and that #228 disposes of. Every relative .md link in the seven changed
architecture documents now resolves, checked.
…pped

vet, lint and test all rc=0. No Go changed, so they prove nothing was broken
rather than anything fixed. What was actually checked: every relative .md link
in the seven changed architecture documents resolves -- which caught one the
move carried in, 9.3 linking twice to ../guides/writing-extensions.md, a
noblefactor-ops guide that does not exist here -- and codespell's
en-GB_to_en-US dictionary over the three arrivals reports zero.

Phase 5 was wrong. It said this branch closes devlore-cli#935. #935's
remaining box reads "in the next noblefactor-ops pull request through", a
condition no pull request in this repository can satisfy, so the claim was
false and is removed from the plan and from the pull request body before
either shipped.

The shape is worth more than the tick: a plan whose last phase lands in
another repository cannot close itself. #234 and #935 are the same trap
pointing in opposite directions, written the same day by the same hand. #234
closes in noblefactor-ops#228 step 2, and #935 in whatever devlore-cli pull
request follows it.
@David-Noble-at-work
David-Noble-at-work merged commit d54626d into develop Sep 24, 2026
13 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the doc/937-three-star-design-documents branch September 24, 2026 07:47
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.

Three star design documents describe code that ships here and is documented nowhere

1 participant