@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / d32029b
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 4, 03:00 UTC

ci(stage3): test read-only fail-closed legacy invoice contract classification on free runner

davoodmehraban89 committed Oct 23, 2026 at 11:12 UTC d32029bb56c730b89381d94cae488d149626b07b
1 file changed +40
.github/workflows/stage3-legacy-source-readonly.yml new
+40
@@ -0,0 +1,40 @@
1 +name: FINORA Stage3 legacy read-only source readiness
2 +on:
3 + push:
4 + branches: [audit/finora-stage3-legacy-source-readonly-20261023]
5 +permissions:
6 + contents: read
7 +concurrency:
8 + group: finora-stage3-legacy-audit
9 + cancel-in-progress: true
10 +
11 +# Standard free public-repo GitHub runner. Only synthetic in-memory data;
12 +# no Supabase credentials, Production, paid compute or saved artifacts.
13 +jobs:
14 + legacy-source-contract-audit:
15 + runs-on: ubuntu-latest
16 + timeout-minutes: 10
17 + steps:
18 + - uses: actions/checkout@v4
19 + with:
20 + persist-credentials: false
21 + - name: Verify Node script syntax and input shape
22 + run: |
23 + node --check scripts/stage3-legacy-source-audit.mjs
24 + node --check scripts/stage3-legacy-source-audit.test.mjs
25 + - name: Fail-closed historical VAT, currency and posting-status regression
26 + shell: bash
27 + run: |
28 + set -euo pipefail
29 + node scripts/stage3-legacy-source-audit.test.mjs 2>&1 | tee stage3-legacy-classifier.log
30 + grep -q 'FINORA_STAGE3_LEGACY_CLASSIFIER_PASS' stage3-legacy-classifier.log
31 + - name: Clearly distinguish synthetic report from actual Production remediation
32 + if: always()
33 + run: |
34 + {
35 + echo '### FINORA Stage3 legacy-source classifier (READ-ONLY)'
36 + echo 'Synthetic invoice/purchase record shapes; never real customer data or credentials.'
37 + echo 'Read-only Production aggregate counts are separately documented; not fetched in CI.'
38 + echo 'Posted financial history is not modified or inferred as recoverable.'
39 + echo 'This DOES NOT authorize Stage3 acceptance, migration, merge or deployment.'
40 + } >> "$GITHUB_STEP_SUMMARY"