Skip to content

docs(k8s): a post-synth check sees one build root at a time, and WK8505 says so (#1939) - #2208

Merged
lex00 merged 1 commit into
mainfrom
docs/1939-wk8505-single-build-assumption
Sep 7, 2026
Merged

lex00 merged 1 commit into
mainfrom
docs/1939-wk8505-single-build-assumption

Conversation

@lex00

@lex00 lex00 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The docs half of #1939, per the decision on the issue: document the single-build-root assumption now, and leave the project-level runner as the open design question. #1939 stays open for that.

A build-level post-synth check sees one build root per chant build invocation, because ctx.outputs, ctx.docs and ctx.entities are all scoped to it. A check that joins across resources goes silent, not wrong, once the two halves of the join live in different build roots, which is the shape a Flux project takes as it grows. WK8505 is the worked example: it warns when a committed-encrypted secret has no Kustomization setting decryption, and that join needs both declared in one build root. Until now the assumption lived only in the rule's docstring.

This adds a subsection to the post-synth-checks authoring page stating the limitation, the WK8505 example, what an author can do today, and that #1939 tracks a project-level mode. The same one-sentence caveat is appended to WK8505's description and its audit-catalog remediation, so both generated reference pages carry it; both were regenerated from their sources. examples/flux-apps does not mention WK8505, so it is untouched.

Gates

node scripts/lint-docs-sentences.mjs   4108 gated finding(s), no regressions (3 below the 4111 baseline)
node scripts/check-docs-diataxis.mjs   clean
npx tsc --noEmit                       clean
chant dev check-lexicon lexicons/k8s   23/23 tier 1, 17/17, 9/9
npx vitest run lexicons/k8s            1528 passed, 1 skipped

The baseline is not ratcheted here because a concurrent PR (#2074) already moves the same file; one ratchet lands after both.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FoXyD9UvKQ5ZdhiR9JT1yB

A bundle-join post-synth check only sees the current chant build
invocation, so it goes silent (not wrong) once the resources it joins
move into separate build roots. Document that as a known limitation
on the post-synth check authoring guide and on WK8505's own rule
entries (the k8s lexicon's generated rules.mdx and the root
audit-rules.mdx, regenerated from their metadata sources), pointing at
#1939 for the tracked project-level mode. The flux-apps example does
not mention WK8505, so it is left untouched.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FoXyD9UvKQ5ZdhiR9JT1yB
@lex00
lex00 merged commit f065e60 into main Sep 7, 2026
6 checks passed
lex00 added a commit that referenced this pull request Sep 7, 2026
…2214)

Peer session dropped findings in #2198, #2203, #2206; this session dropped
findings in #2208, #2210, #2213. Each PR deferred the ratchet so the drops
would not conflict on the same baseline file, per PR #2174's precedent that
the baseline is ratcheted down rather than left slack.


Claude-Session: https://claude.ai/code/session_01FoXyD9UvKQ5ZdhiR9JT1yB

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
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