Skip to content

Document the data-directory env pattern with a runnable example (refs #258) - #300

Merged
jimhoyd merged 1 commit into
mainfrom
docs/258-data-dir-pattern
Sep 20, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
docs/258-data-dir-pattern

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Refs #258 (does not close it). Docs only, per the maintainer decision: no {value: default, from: host}, no new semantics.

  • New runnable example examples/data-dir: a trusted function reads env.DATA_DIR from an {env: DATA_DIR} binding. Validated, tested and audited with an operator policy generated by urlcode permissions; with no grant or DATA_DIR unset it refuses to activate.
  • Short pattern note in docs/yaml/organization.md section 12.
  • docs/OPEN-DECISIONS.md [Request]: Runtime override for declared env values #258 row now records only the deferred optional default on {env: NAME}.
  • Registered the example in src/examples.ts and bumped the catalog count in test/recipes.test.ts (13 to 14).

Verified: npm ci, npm run verify (exit 0), npm run docs:llms, npm run check:docs; CLI validate/test/audit on the example (audit ready, 4/4 checks).

🤖 Generated with Claude Code

…xample (refs #258)

Adds examples/data-dir (validated, tested and audited with an operator policy),
a short pattern note in the YAML guide, and narrows the #258 row in
OPEN-DECISIONS to the deferred optional default on {env: NAME}.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jimhoyd
jimhoyd force-pushed the docs/258-data-dir-pattern branch from fcd8eb1 to 3e11819 Compare September 20, 2026 15:09
@jimhoyd
jimhoyd enabled auto-merge (squash) September 20, 2026 15:09
@jimhoyd
jimhoyd merged commit 2664fc0 into main Sep 20, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the docs/258-data-dir-pattern branch September 20, 2026 15:17
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