Skip to content

feat(prompt): add W-0076 context hygiene audit and instruction pointers #126

feat(prompt): add W-0076 context hygiene audit and instruction pointers

feat(prompt): add W-0076 context hygiene audit and instruction pointers #126

Workflow file for this run

name: Checks
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
- experiments
jobs:
component-checks:
name: ${{ matrix.label }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- label: Runtime safety
command: npm run check:safety
- label: Smoke test
command: npm run smoke
- label: State sync
command: npm run check:state
- label: Memory validation
command: npm run check:memory
- label: Prompt drift
command: npm run check:prompt
- label: Production readiness
command: npm run check:production
- label: Dependency/API drift
command: npm run check:dependencies
- label: Queue consistency
command: npm run check:next
- label: Skill registry
command: npm run check:skills
- label: Document references
command: npm run check:docs
- label: Doctrine drift
command: npm run drift:scan
- label: Connection scan
command: npm run connection:scan
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "20.18.1"
cache: npm
- name: Setup Python for review-tool safety checks
if: matrix.label == 'Runtime safety'
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: npm ci
- name: ${{ matrix.label }}
shell: bash
run: |
set +e
set -o pipefail
${{ matrix.command }} 2>&1 | tee check-output.log
status=${PIPESTATUS[0]}
if [ "$status" -ne 0 ]; then
message=$(tail -n 30 check-output.log | tr '\n' ' ' | sed 's/%/%25/g; s/\r/%0D/g')
echo "::error title=${{ matrix.label }}::$message"
fi
exit "$status"
sqlite-checks:
name: SQLite operational store
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: npm ci
- name: SQLite safety checks
run: npm run check:safety
maintenance-summary:
name: Full maintenance summary
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "20.18.1"
cache: npm
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: npm ci
- name: Full maintenance suite
run: npm run maintain