# Engineering constitution: <product or repository>

> Agentic AI CoE delivery template · version 0.1 · draft for review.
> The constitution holds the few rules every spec, plan and agent run must respect. It changes rarely and only by approved pull request.
> Keep it short: about one page. Long, contradictory instruction files make agents follow them less well.

Version: <x.y> · Owner: <architect> · Approved by: <CoE delivery lead>, <security> · Last reviewed: <date>

## Article 1. Specs before code
Every change starts from an approved spec or a recorded small-change exception. Agents do not start work without one.

## Article 2. Tests prove requirements
Each requirement has a test or eval that fails before the change and passes after it. No test, no merge.

## Article 3. Small, reviewable changes
A change an agent proposes stays reviewable by one person in one sitting (guide: under about 400 changed lines). Larger work is split into tasks.

## Article 4. Security by default
No secrets in code, prompts or logs. New dependencies pass the dependency check (exists, maintained, licence allowed, no known critical vulnerability). Agents run sandboxed with the network allowlist for this repo.

## Article 5. Licence and provenance
Only licences on the approved list. Code matching public code above the threshold is rejected or attributed. Every agent-assisted commit carries an attribution trailer.

## Article 6. Architecture boundaries
<List the layering rules, allowed frameworks and forbidden patterns for this codebase.>

## Article 7. Data
<Data classifications this repo may touch; residency; what may never be sent to a model.>

## Article 8. Human decisions
Humans approve specs, architecture decisions that are hard to reverse, security exceptions and releases. Agents may propose, never self-approve.

## Article 9. Observability
Every service change keeps tracing, logging and metrics working; agent-built features emit the CoE trace attributes.

## Amendment
Changes to this constitution need a pull request approved by the owner and the CoE delivery lead, and a note in the change log.

| Date | Change | Approved by |
| --- | --- | --- |
