Skip to content

docs(data-analytics-demo): align ADR-0070 + README with shipped env-var contract#93

Merged
leagames0221-sys merged 1 commit into
mainfrom
fix/env-vars-docs-coherence
May 17, 2026
Merged

docs(data-analytics-demo): align ADR-0070 + README with shipped env-var contract#93
leagames0221-sys merged 1 commit into
mainfrom
fix/env-vars-docs-coherence

Conversation

@leagames0221-sys

Copy link
Copy Markdown
Owner

Summary

  • Closes the AC-γ.3 drift surfaced by the 2026-05-18 objective evaluation of @craftstack/data-analytics-demo 0.1.0.
  • ADR-0070 L62 previously claimed .env.example ships placeholders only (deferred to T-03), but no .env.example was ever shipped (.env* is blocked by the user's Security Master Layer 6 credential-leak guard by design).
  • The env-var surface (DEMO_RANDOM_SEED, DEMO_N_CUSTOMERS/SUBSCRIPTIONS/EVENTS/INVOICES, OLLAMA_HOST, OLLAMA_MODEL, plus the AC-4.3 prohibited cloud-LLM key list) is now documented inside packages/data-analytics-demo/README.md as a single source of truth; ADR-0070 points at it.

What changed

  • packages/data-analytics-demo/README.md — new Environment variables section (table of 7 supported vars with in-code defaults + explicit prohibited-credential list mirroring ollama_client.EXTERNAL_API_ENV_VARS).
  • docs/adr/0070-data-analytics-demo-polyglot-adoption.md — security-mitigations bullet rewritten to reference the README section and enumerate the AC-4.3 fail-stop credentials explicitly. No tradeoff or decision is altered.

No source / test / Makefile / CI / pyproject change. Defaults are unchanged; behavior is unchanged.

Test plan

  • ruff check src tests → All checks passed
  • mypy -p data_analytics_demo → no issues (21 files)
  • pytest → 36 PASS, coverage 87.20% (≥ 80% floor)
  • node scripts/check-doc-drift.mjs → 0 failure
  • node scripts/check-adr-claims.mjs → 77/77 PASS

…ar contract

Closes the AC-γ.3 drift surfaced by 2026-05-18 objective review:
- ADR-0070 L62 previously stated `.env.example ships placeholders only
  (deferred to T-03)`, but no `.env.example` was ever shipped (Security
  Master Layer 6 blocks the `.env*` filename pattern by design).
- The package's env-var surface (DEMO_* seed + row counts, OLLAMA_HOST /
  MODEL, prohibited cloud-LLM credentials) is genuinely documented; it
  just had no single source of truth.

This commit:
- Adds an "Environment variables" table to packages/data-analytics-demo/README.md
  (defaults match in-code constants; prohibited cloud-LLM credential
  list mirrors `ollama_client.EXTERNAL_API_ENV_VARS` exactly).
- Rewrites ADR-0070 security-mitigations bullet to reference the README
  section and enumerate the AC-4.3 fail-stop credential list explicitly.

Verify:
- ruff + mypy --strict: clean
- pytest: 36 PASS, coverage 87.20%
- doc-drift: 0 failure
- adr-claims: 77/77 PASS
@vercel

vercel Bot commented May 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
craftstack-collab Ready Ready Preview, Comment May 17, 2026 4:49pm
craftstack-knowledge Ready Ready Preview, Comment May 17, 2026 4:49pm

@leagames0221-sys leagames0221-sys merged commit 69b325b into main May 17, 2026
12 checks passed
@leagames0221-sys leagames0221-sys deleted the fix/env-vars-docs-coherence branch May 17, 2026 18:23
leagames0221-sys added a commit that referenced this pull request May 21, 2026
…ar contract (#93)

Closes the AC-γ.3 drift surfaced by 2026-05-18 objective review:
- ADR-0070 L62 previously stated `.env.example ships placeholders only
  (deferred to T-03)`, but no `.env.example` was ever shipped (Security
  Master Layer 6 blocks the `.env*` filename pattern by design).
- The package's env-var surface (DEMO_* seed + row counts, OLLAMA_HOST /
  MODEL, prohibited cloud-LLM credentials) is genuinely documented; it
  just had no single source of truth.

This commit:
- Adds an "Environment variables" table to packages/data-analytics-demo/README.md
  (defaults match in-code constants; prohibited cloud-LLM credential
  list mirrors `ollama_client.EXTERNAL_API_ENV_VARS` exactly).
- Rewrites ADR-0070 security-mitigations bullet to reference the README
  section and enumerate the AC-4.3 fail-stop credential list explicitly.

Verify:
- ruff + mypy --strict: clean
- pytest: 36 PASS, coverage 87.20%
- doc-drift: 0 failure
- adr-claims: 77/77 PASS

Co-authored-by: leagames0221-sys <leagames0221@users.noreply.github.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