Skip to content

PolicyAsCode MVP

Fabrizio Degni edited this page Nov 22, 2026 · 2 revisions

PolicyAsCode MVP

PolicyAsCode MVP: local verification, 22 November 2026

Final implementation checkpoint: e9bf90809b0114ac87a0e234726de72b1488fdf1 has all six GitHub checks green (CodeQL analysis/status, Sonar, build/dataset, PostgreSQL portability and critical coverage). The complete local application suite passed offline: 1,776 passed,14skipped. Initial punctuation and tampering-test race findings were corrected with controls retained. Native GLM review remains outstanding, so PR#81 stays a draft.

Stable diary package prepared and source pushed: stable5.5 commit f70799d7a717e484af6e899e29f38d29d85ca47c, ZIP SHA256 45fa72229977f7f92bbe2b452be65689bbab87b24d7e81289beeab2fd1e88192. Only the diary page and release manifest differ across1,071 entries;120 inspected runtime entries are unchanged. This content-only package contains no MVP endpoint/importer. No staging or production deployment was performed; the desktop-control failure still blocks Hostinger. Prior private Preview maintenance state was not changed or reverified.

A versioned public InsightIR export and an offline draft importer are implemented in draft PR #81, source 50954e4dc410beee59a7096a9b7c301bc6b174da. 20 contract/storage tests and 48 relevant application tests passed with OS-denied networking, alongside two intentionally failing mutation controls. The Next16.4.6 build passed; 15 additional compiled-route/database checks used a disposable synthetic SQLite database. The private-distribution HTTP front door still requires authentication.

The generic adapter is installed locally as a separate PolicyAsCode sidecar. One synthetic draft was imported and re-imported idempotently; all 79 protected authoritative/generated/runtime files retained identical hashes. This is a local draft store, not a live corporate database or UI connector. Private Preview records, private predecessor text/hashes and reviewer metadata are excluded from export. Every interpretation stays inferred, unapproved and non-executable.

Delivery: code pushed; PR remains a draft and the EN/IT website notebook is prepared, not published. Native GLM5.3MAX challenge is pending because the app-control service reports Trusted RPC service is not configured: sky; no response is claimed. GitHub CI results are a separate checkpoint. This adds no source-completeness or 500-policy/day qualification. PolicyAsCode MVP contains contract and trust boundaries.

Flow and limits

Source capture → retained public evidence → inferred interpretation → InsightIR0.1.0 → read-only export → separate draft → future human-reviewed mapping. A data export is not an executable legal rule or operational mandate.

Candidate route: GET /api/v1/insights/{changeId}. Schema: GET /schemas/insight-ir/0.1.0. Neither candidate route is claimed to be available on the official public domain. Strict public gates cannot be widened by the development seeded-data bypass; unsupported query/private modes are rejected. The schema route serves only a static contract.

The payload declares exact retained-text hashes and UTF-16 end-exclusive quote spans. Unknown completeness, identity, language, freshness and semantic verification stay explicit. Ambiguous, invented and overlong quotes are not repaired into evidence; legacy interpretations remain unanchored. Evidence occurrence is distinct from interpretation accuracy.

The offline CLI takes an explicit trusted local tenant/project/actor context and writes immutable0700/0600 draft storage. Repeat imports preserve their original receipt; same-revision conflicts and tampering are rejected. Tenant directories partition local storage and are not a hosted authentication service. Unsigned digests and actor labels do not prove origin or verified identity. A hostile process with the same OS authority is outside this local filesystem guarantee.

Reproduce on macOS with node scripts/verify-policy-as-code-mvp.mjs; portable tests with node --test integrations/policy-as-code/*.test.mjs. No OPA execution, private export, signatures, live model promotion or runtime activation is included. GLM review remains outstanding; separate Codex adversarial review is identified as such.

Architecture and commands · Executed evidence and retained failures · Adapter source

Clone this wiki locally