PolicyStrata

Runner

How the self-hosted runner executes checks, stores local artifacts, and uploads normalized evidence.

Role

The runner is the execution boundary. It runs inside CI, a developer machine, or a customer-controlled environment. It should execute engines locally, normalize results, write artifacts, and upload only the metadata the control plane needs.

Runner boundary

Source credentials, private documents, full traces, customer rows, and raw schemas should stay local unless the customer explicitly enables redacted artifact upload.

Inputs

InputExampleStays local by default
Source setsdocs, tickets, runbooks, schemasYes
Policy suitestenant isolation, PII minimization, RLS driftYes
Representative tracestool calls, SQL, retrieval contextsYes
Release metadatacommit, release candidate, environmentUploaded
Tool versionsDocPull, PolicyStrata, runnerUploaded

Configuration

assurance.runner.yaml
project: support-bi-copilot
release: release_2026_07_06
apiUrl: https://app.policystrata.com
outputs:
  directory: .assurance
  uploadArtifacts: false
engines:
  docpull:
    source: customer-support-docs
    out: .assurance/docpull
  policystrata:
    suite: customer-data-access
    out: .assurance/policystrata
gates:
  blockOn:
    - tenant_scope_required
    - pii_minimization_failed
    - rls_drift
  reviewOn:
    - stale_context
    - missing_citation

Exit Codes

CodeMeaningCI behavior
0Passed or review-only findingsContinue
1One or more fail gatesFail job
2Blocking gateStop release
3Invalid runner configurationFail job
4Upload or auth failureRetry or fail based on CI policy

Upload Contract

runner-upload.json
{
  "project": "support-bi-copilot",
  "release": "release_2026_07_06",
  "run": {
    "schemaVersion": "0.1.0",
    "runId": "run_20260706_001",
    "status": "blocked"
  },
  "artifactRefs": [
    {
      "name": "docpull.summary.json",
      "sha256": "..."
    }
  ]
}

Local Artifact Directory

.assurance/
.assurance/
  assurance-run.json
  evidence-pack.json
  docpull/
    summary.json
    source-diff.json
  policystrata/
    findings.json
    witnesses.redacted.json

On this page