Skip to content

Merge pull request #67 from programmerShinobi/feat/phase3-chat-advisor #122

Merge pull request #67 from programmerShinobi/feat/phase3-chat-advisor

Merge pull request #67 from programmerShinobi/feat/phase3-chat-advisor #122

name: Docs integrity
# Guards the decision model: the math must be correct, every document must agree, and the
# implemented app config (src/config) must mirror the docs. Runs when the model docs, the
# app config, or the scripts change. The full application CI (lint/test/build) is in ci.yml.
on:
push:
paths:
- 'docs/03-blueprint/**'
- 'docs/02-requirement-analysis/**'
- 'docs/specs/**'
- 'src/config/**'
- 'scripts/**'
- '.github/workflows/docs-integrity.yml'
pull_request:
paths:
- 'docs/03-blueprint/**'
- 'docs/02-requirement-analysis/**'
- 'docs/specs/**'
- 'src/config/**'
- 'scripts/**'
permissions:
contents: read
jobs:
model:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
- name: Verify the scoring model (fixtures, preset targets + margins, rounding, properties)
run: node scripts/verify-model.mjs
- name: Cross-check the documents for mismatches
run: node scripts/cross-check-docs.mjs
- name: Check the app config mirrors the model
run: node scripts/check-app-config.mjs