Skip to content

Dogfood a repo architecture diagram into TECHNICAL.md; fix arch alt reproducibility - #17

Merged
inth3shadows merged 1 commit into
masterfrom
dogfood-architecture-diagram
Jul 18, 2026
Merged

Dogfood a repo architecture diagram into TECHNICAL.md; fix arch alt reproducibility#17
inth3shadows merged 1 commit into
masterfrom
dogfood-architecture-diagram

Conversation

@inth3shadows

Copy link
Copy Markdown
Owner

What

Uses codeshot's own --embed to add a whole-repo file-dependency diagram (docs/architecture.svg) to TECHNICAL.md, refreshable in place via the codeshot:arch marker block.

Fix surfaced by dogfooding

The --architecture embed's alt text was derived from the checkout directory's basename — so the committed markdown varied by where the repo was cloned (a bare-worktree dir, master, a branch name…). That read wrong and broke --check portability: a fresh clone under a different dir name would report the committed diagram as drifted.

Now a fixed, path-independent Architecture — generated by codeshot (the repo name is redundant — the diagram lives in that repo's own doc). Pinned by a test assertion.

Verification

  • npm test75 passed.
  • --check verified green against the committed diagram (up to date).

🤖 Generated with Claude Code

…eproducibility

Runs codeshot's own --embed on codeshot: a whole-repo file-dependency
diagram (docs/architecture.svg) embedded into TECHNICAL.md via the
codeshot:arch marker block, refreshable in place with
  codeshot --architecture --path . --embed TECHNICAL.md --format svg --out docs/architecture.svg

Fix surfaced by dogfooding: the --architecture embed's alt text was
derived from the checkout directory's basename, so the committed markdown
varied by where the repo was cloned (a bare-worktree dir, "master", a
branch name...). That both read wrong and broke --check portability — a
fresh clone under a different dir name would report the committed diagram
as drifted. The alt is now the fixed, path-independent
"Architecture — generated by codeshot" (the repo name is redundant; the
diagram already lives in that repo's own doc). Pinned by a test assertion.

Tests: 75 passed; --check verified green against the committed diagram.
@inth3shadows
inth3shadows merged commit 95cf5e7 into master Jul 18, 2026
4 checks passed
@inth3shadows
inth3shadows deleted the dogfood-architecture-diagram branch July 18, 2026 03:04
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