Repository navigation
docs: correct stale API claims, add guides and case studies, move the site onto gen's stack - #695
Merged
Merged
Conversation
sini
added a commit
that referenced
this pull request
Sep 24, 2026
## Summary
CI on PRs shows false reds when a run is cancelled by another run **for
the same commit**. If the cancel lands before a job's matrix expands,
GitHub records the job under its literal name (`Tests ${{ matrix.os }}`,
`Check template ${{ matrix.template }} ${{ matrix.os }}`) as failed. No
later run reports under those names, so the red check stays on the
commit even after a green re-run. #695 shows two such checks right now.
Two changes, in `test`, `docs` and `bogus`:
1. **Cancel in-progress runs only for new code.** `cancel-in-progress`
is now true only for `synchronize` (a new commit on the PR), or a `push`
in workflows that already cancelled on push. Same-commit events
(`labeled`, approving reviews, `opened` racing a review request) queue
behind the running build instead of killing it. If a third event
arrives, GitHub cancels the older *queued* run, which never started and
so leaves no checks. `main` builds are still never cancelled.
2. **Drop `review_requested` from the triggers.** CODEOWNERS requests a
review when a PR opens, so every PR started two runs at once, one
cancelling the other; any later review request did it again. A review
request doesn't change the code. `ready_for_review` still covers drafts,
and `labeled` stays so `allow-ci` still unlocks CI for outside
contributors.
On #695 the old behaviour produced three `test` runs for one commit:
| Time | Event | Effect |
|---|---|---|
| 20:23:59 | review requested (CODEOWNERS, on open) | run 1 |
| 20:24:01 | `opened` | run 2, cancels run 1 at 0s, leaving the two
literal-named failed checks |
| 20:27:30 | review requested (second reviewer) | run 3, cancels run 2
after 4 minutes of tests |
**Trade-off:** a label or approval arriving mid-run now costs one extra
full run after the current one, instead of a cancellation. Skipping
re-runs when the same commit already has a passing run would remove that
too, but needs more logic in `non-draft`, so it isn't done here.
## Validation
`actionlint` on all three files reports the same findings as `main` (12
pre-existing shellcheck notes in `test.yml`, none in the others).
den-diagram labels each policy-map edge with the policy that created the child scope; the pipeline already records it per scope, but the fleet capture did not return it.
den.defaults -> den.default, den.batteries.os-user -> the os-user.nix user class, and test/source paths that moved.
Astro 7 / Starlight 0.42 with astro check and link validation in the build, gen's typography and mermaid theming, a collapsible sidebar tree ordered Start, Understand, Build, Examples, Reference, Project, a programmatic logo animation drawn from the den logo, a tighter hero, and the ecosystem card covering gen.
…studies Fixes documented batteries, policies and diagram constructors that do not exist, wrong defaults and broken examples; adds pages answering recurring GitHub questions (where config lands, choosing a mechanism, standalone home-manager, nixpkgs, flake outputs, cross-scope pipes, quirk recipes, aspect settings), case studies (Kubernetes, access control, disks and impermanence, diagrams) and a Future page on gen. Every new behavioural claim was checked against den with a throwaway CI probe.
sini
force-pushed
the
docs/sweep-2026-09
branch
from
September 24, 2026 20:41
0bcf4b3 to
155fb02
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A documentation sweep: stale and incorrect API claims fixed, new pages answering the questions that recur in issues and discussions, a navigation reorganisation, and the docs site moved onto the same Astro/Starlight stack as gen's docs.
Corrections to existing pages
os-class,os-user,wsl,home-manager,hjemandmaidwere documented asden.batteries.*values; they are classes activated by policies, and are now documented as such. Home environments activate fromusers.<name>.classes, not from ahomeManagerkey on an aspect.hm-user,host.hm.enable,den.aspects.${host.aspect}); it now matchescore.nix,home-env.nixandwsl.nix.pipe.forsecrets recipe returned an attrset and threw.collect's entity-kind rule was vague: a scope must have its own kind named in the predicate.withProvenancehas a caveat with config thunks._: [ overlay ]).hostContext/userContext/homeContextandgraph.ofHostno longer exist in den-diagram; the pages usecaptureFleet+projectScope/context.host-to-users' per-user child include;resolve.shared.withIncludes;flake-scopebattery also serves class modules.New pages
specialArgsin Class Modules.Every behavioural claim on a new page was checked against den with a throwaway CI test (removed afterwards). Where a page documents a known bug it links the issue (#694).
Site
astro checkand internal link validation in the build.Code
feat(diag):captureFleetalso returnsscopeSourcePolicy, which den-diagram uses to label policy-map edges with the policy that created each scope (fix: diagram defects found by the den docs review den-diagram#3). It has a test cell ininternal-api/fx-diag-capture.nix.fix(batteries): stale names and paths in theforwardandhostnamebattery descriptions.Validation
nix develop -c just ci: exit 0, 1251/1251.pnpm buildindocs/:astro check0 errors, all internal links valid, 75 pages.mmdc.Depends on