Production Control Surface

Operational Primitives Directory

A concrete set of agent operating contracts, production policies, command gates, validators, loop patterns, and skills that can be copied into a real repository and used to bound autonomous work before it touches production surfaces.

Primitive
Description
Tags
Actions
System prompt AGENTS.md
public/artifacts/system-prompts/AGENTS.md

A production agent contract that forces every run to define intent, allowed scope, blocked scope, validators, rollback, escalation, and completion evidence before changing files.

#agent-contract#production-boundaries#evidence
View
public/artifacts/skills/governed-remediation/SKILL.md

A production remediation skill for failing tests, contracts, builds, or incident symptoms, with strict intake fields, blocked repairs, two-attempt limits, and JSON evidence output.

#incident-repair#validator-gates#attempt-limit
View
public/artifacts/skills/repo-migration/SKILL.md

A migration skill for deprecated APIs, config formats, package imports, and schema contracts, requiring inventory counts, batch limits, protected path checks, and final validator evidence.

#migration#batching#compiler-guided
View
public/artifacts/skills/security-audit/SKILL.md

A security review skill for changed code, dependencies, auth, input handling, infrastructure, and deployment paths, with critical finding stop rules and scanner evidence requirements.

#security#secrets#auth-boundaries
View
public/artifacts/skills/advanced-troubleshooting/SKILL.md

A troubleshooting skill that gathers structured runtime, git, package, artifact, environment-name, and optional health-check diagnostics before choosing remediation.

#incident-triage#diagnostics#health-check
View
public/artifacts/hooks/policy-gate.ts

A pre-execution hook that checks planned files, operations, validators, cost, and rule-specific requirements before allowing autonomous work to proceed.

#pre-execution#policy#validator-plan
View
public/artifacts/hooks/command-gate.ts

A command hook that normalizes shell requests, denies destructive git and shell fragments, and escalates commands outside an explicit allow list.

#security#pre-execution#cli-boundaries
View
public/artifacts/hooks/after-execution.ts

A post-run hook that emits outcome, duration, changed files, validators, policy decisions, attempts, remaining risk, escalation state, and cost metrics.

#trace#cost#post-run
View
public/artifacts/policies/protected-production.yaml

A production policy with default escalation, explicit blocked paths and operations, billing and migration validator requirements, and evidence rules.

#production#secrets#billing-auth
View
public/artifacts/policies/git-safety-policy.yaml

A git policy that blocks protected branch writes, destructive history commands, unrelated dirty worktree changes, and unvalidated merge attempts.

#git#branch-protection#dirty-tree
View
Validator Billing contract
public/artifacts/validators/billing-contract.json

A billing validator that protects totals, idempotency, refunds, integer currency handling, provider side effects, and secret-free logs with required contract commands.

#billing#unit-checks#contract
View
Validator Coverage guardian
public/artifacts/validators/coverage-guardian.json

A coverage validator that fails changed production files without test evidence and escalates when coverage cannot run or thresholds must be lowered.

#testing#coverage-check#build-gate
View
public/artifacts/loop-patterns/governed-remediation.yaml

A bounded remediation loop with named phases, required evidence per phase, adaptation rules, two-attempt maximum, and explicit escalation entry conditions.

#remediation#adaptation#retry-limit
View
public/artifacts/submission-template.json

A fill-in envelope that gives contributors a concrete starting structure to submit new operational primitives.

#contribution#review-envelope#primitives
View
public/artifacts/schema/csg-artifact.schema.json

The JSON schema contract that every operational primitive must satisfy: kind, intent, scope, evidence, and escalation.

#validation#metadata-standards#schema
View