feat(write-skill): compliance linter — production ledger grammar #42

Open
opened 2026-07-11 18:17:03 +02:00 by arcodange · 0 comments
Owner

Part of the AI back-office PRDcompliance › ledger grammar.

Context. Production is an append-only ledger (inaltérabilité, L.123-22): allowed ops = thirdparty create/complete · invoice create-draft→validate · payment record · creditnote (avoir) · GED attach. Forbidden regardless of who asks: mutating/deleting a validated document, manual refs where Dolibarr owns the sequence, back-dating validated entries, detaching GED originals.

Deliverables

  • Linter stage in promote-plan: a manifest containing any op outside the grammar never reaches the approval card; clear per-op verdicts.
  • Manifests destined for prod are linted before sandbox rehearsal too (rehearse only what prod would accept).
  • Test suite of forbidden manifests (one per rule above) that MUST be rejected.
  • Document the grammar in the dolibarr-sandbox-write SKILL.md.

Acceptance: each forbidden fixture is rejected with the right reason; the (legitimate) regularization manifests pass.


Execution — Blocked by: none · Blocks: #47 (and protects every #57 entry) · Human gates: none.
Start: claude --worktree compliance-linter from the erp repo root; read promote-plan + the PRD compliance leaf; the legitimate-manifest fixtures live in the preserved replay pack (.claude/skills/dolibarr-sandbox-write/replay-packs/2026-07-11-books-regularization/).
Done means: evidence comment here (per-fixture verdicts, forbidden all rejected + legitimate pass) → PR merged with Closes #42 → SKILL.md grammar section in the same PR.

Part of the **AI back-office PRD** — [compliance › ledger grammar](https://gitea.arcodange.lab/arcodange-org/factory/src/branch/main/vibe/PRD/ai-back-office/compliance.md). **Context.** Production is an append-only ledger (inaltérabilité, L.123-22): allowed ops = thirdparty create/complete · invoice create-draft→validate · payment record · creditnote (avoir) · GED attach. Forbidden regardless of who asks: mutating/deleting a validated document, manual refs where Dolibarr owns the sequence, back-dating validated entries, detaching GED originals. **Deliverables** - Linter stage in `promote-plan`: a manifest containing any op outside the grammar never reaches the approval card; clear per-op verdicts. - Manifests destined for prod are linted **before sandbox rehearsal** too (rehearse only what prod would accept). - Test suite of forbidden manifests (one per rule above) that MUST be rejected. - Document the grammar in the `dolibarr-sandbox-write` SKILL.md. **Acceptance:** each forbidden fixture is rejected with the right reason; the (legitimate) regularization manifests pass. --- **Execution** — Blocked by: none · Blocks: #47 (and protects every #57 entry) · Human gates: none. **Start:** `claude --worktree compliance-linter` from the erp repo root; read `promote-plan` + the PRD compliance leaf; the legitimate-manifest fixtures live in the preserved replay pack (`.claude/skills/dolibarr-sandbox-write/replay-packs/2026-07-11-books-regularization/`). **Done means:** evidence comment here (per-fixture verdicts, forbidden all rejected + legitimate pass) → PR merged with `Closes #42` → SKILL.md grammar section in the same PR.
arcodange added this to the P1 — Flagship pipeline milestone 2026-07-11 18:17:03 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arcodange-org/erp#42