The charter

The charter is what a site is for and what it may do: its kind, who governs it, its mission, goals and KPIs, the guardrails that override growth, each job's authority, the budget, the voice, the red lines and how it reports (spec 3.5 §7.6, D-6 to D-9). Its format is part of AWP 2.0, awp_types::Charter, so a site's goals, history and authority move with it to any conforming runtime. The public part is published; the rest stays in the charter store.

Note: the charter types are in awp-types, which is Beta. The charter store, the KPI tracker and the autonomy ladder are adk-kernel's charter feature (Charter, KPIs, Signals and Earned Autonomy).

Who uses itHow
OnboardingDrafts version 1 from the site kind's template; the owners review each section and sign
The kernelKeeps every committed version, measures each KPI against its baseline, pauses a job whose guardrail breaks, holds each job to its level
The harnessCompiles each job's level into the policy its agent runs under
The edgePublishes the public terms and asks for the consent scopes they name
Onboarding and the weekly reviewCheck the running-cost estimate against the budget, and report the month's spend against it

Sections

MemberTypeHolds
versionu32Set by the charter store when a version is committed
siteIdUUIDThe site
kindSiteKindpersonal, business, ecommerce, government, nonprofit, education, media, health, community or events
governanceGovernanceThe people who hold each role, and the approval chain per action class
mission, strategytext, StrategyPillarsWhat the site is for and how it gets there
goalsGoalsEach goal names the KPIs that measure it
kpisKpisMetric, source, direction, baseline, target, cadence
guardrailsGuardrailsMetric, threshold, breach direction, window, action, jobs
authorityJobAuthoritysEach job's autonomy level and limits
budgetBudgetPeriod, currency and caps per spending category
voiceVoiceTone, languages and the disclosure line
redLinesRedLinesClaims, topics and actions never allowed
reportingReportingReview cadence, the channels per urgency, quiet hours
publicPublicTermsUsage terms, policies, consent scopes and contact: the published part
priceRulePriceRulePrice changes that act without the owner (default within 10%)
handoffThresholdinteger 0–100, optionalThe lead score at which a lead goes to the owner
publishDelayHoursinteger, optionalHow long a page the site drafts on its own waits before it can go live
amountThresholdscapability → minor units, optionalThe amount above which a call of the capability waits for the owner
signedOwnerSignatureThe decision, the owner, the signed note and the time; absent on a draft

An example

A bakery's charter, trimmed from the business kind's template. Durations are seconds and amounts are minor units of the budget's currency.

{
  "version": 1,
  "siteId": "0b2f7c1e-5d4a-4c3b-9a8e-1f2d3c4b5a69",
  "kind": "business",
  "governance": {
    "roles": [
      { "principal": "amina", "roles": ["owner", "editor"] },
      { "principal": "baraka", "roles": ["publisher"] }
    ],
    "approvalChains": [
      { "action": "charter_change", "roles": ["owner"] },
      { "action": "publish", "roles": ["editor", "publisher"] }
    ]
  },
  "mission": "Fresh rye and sourdough for Nakuru, baked every morning.",
  "strategy": [{ "name": "Win qualified enquiries" }, { "name": "Earn good reviews" }],
  "goals": [
    { "id": "enquiries", "name": "Win qualified enquiries", "kpis": ["qualified_leads"] },
    { "id": "reputation", "name": "Earn good reviews", "kpis": ["review_rating"] }
  ],
  "kpis": [
    {
      "id": "qualified_leads",
      "name": "Qualified enquiries",
      "metric": "leads.qualified",
      "source": "commerce",
      "direction": "up",
      "baseline": { "value": 12.0, "window": 1209600, "measuredAt": "2026-10-12T00:00:00Z" },
      "target": { "value": 20.0, "horizon": "2027-01-31T00:00:00Z" },
      "cadence": "daily"
    },
    {
      "id": "review_rating",
      "name": "Average review rating",
      "metric": "reviews.rating",
      "source": "reviews",
      "direction": "up",
      "cadence": "daily"
    }
  ],
  "guardrails": [
    {
      "id": "unsubscribes",
      "metric": "email.unsubscribe_rate",
      "threshold": 0.02,
      "breach": "above",
      "window": 604800,
      "action": "pause_job",
      "jobs": ["email", "nurture"]
    }
  ],
  "authority": [
    { "job": "onboarding", "level": "act_with_approval" },
    { "job": "protect", "level": "propose" },
    { "job": "seo", "level": "propose", "limits": { "actionsPerDay": 100 } },
    { "job": "running-costs", "level": "propose", "limits": { "spendCap": 5000, "actionsPerDay": 100 } }
  ],
  "budget": {
    "period": "monthly",
    "currency": "KES",
    "caps": { "hosting": 200000, "models": 500000, "advertising": 0, "domains": 30000, "other": 100000 }
  },
  "voice": {
    "tone": "Warm, clear and practical",
    "languages": ["en", "sw"],
    "disclosure": "Written by Juniper Bakery's assistant, an AI agent, on behalf of the site's owner."
  },
  "redLines": [
    { "kind": "action", "text": "Never invent facts, testimonials, team members, prices or credentials" },
    { "kind": "claim", "text": "No health claims about bread" }
  ],
  "reporting": {
    "review": "weekly",
    "routes": [
      { "urgency": "p1", "channels": ["whatsapp", "sms"] },
      { "urgency": "p2", "channels": ["whatsapp"] }
    ],
    "quietHours": { "start": "21:00:00", "end": "07:00:00", "timezone": "Africa/Nairobi" }
  },
  "public": {
    "usage": "train-ai=n, search=y",
    "policies": [
      { "name": "privacy", "url": "/privacy/", "version": "1" },
      { "name": "terms", "url": "/terms/", "version": "1" }
    ],
    "consentScopes": ["contact", "newsletter"],
    "contact": { "security": "/.well-known/security.txt", "page": "/contact/" }
  },
  "priceRule": { "autoWithinPct": 10.0 }
}

adk-website new writes a draft like this for the kind you choose, charter.draft.json, and adk-rust awp migrate-config drafts one from an AWP 1.x business.toml. The JSON Schema is awp-types/schemas/2.0/charter.schema.json (feature json-schema).

Site kinds

The kind is the charter's first fact. adk_website::kinds::template(kind) holds each kind's goals, KPIs, guardrails, jobs, agents, capabilities and rules, and KindTemplate::draft_charter turns them into version 1 with the owner holding the owner and editor roles — and the publisher role, unless the kind requires two-person publication. A government site's template, for example, adds an editor-and-publisher chain for publish, every official language, WCAG 2.2 AA and no third-party scripts (Site kinds). The owner can change anything a template proposes.

Governance

RoleTypical holder
ownerThe person or people the site answers to; at least one is required
publisherApproves what goes live
editorProposes and edits content
approverApproves an action class a chain names
auditorReads the record

An approval chain lists the roles an action class needs: publish, charter_change, or any other class a product names. A chain is satisfied only by distinct people, each holding the role they approve in; the proposer of an action cannot also approve it, and no agent holds a role — a principal under urn:adk:agent: is refused (A-I23). A charter with no charter_change chain needs one owner to commit a new version; with one, a draft cannot loosen the chain that approves it, because the chain in force decides.

KPIs and baselines

MemberValues
metricA metric name, such as leads.qualified or pages.answer_citations
sourcebeacon, host_logs, analytics:<driver>, commerce, spend, email, or a name a product registers
directionup or down
baseline{value, window, measuredAt}
target{value, horizon}; only beside a baseline
cadencedaily, weekly, monthly or quarterly

No KPI has a target until it has a baseline, and the owner sets targets (A-I14), so the site is never graded against numbers it chose. The KPI tracker measures a KPI without a baseline for 14 days, locks the period's mean as its baseline, and reports it to the owner; the target comes with the next charter version. The measurement sources are the edge's beacon, host logs, analytics and search-console drivers, the commerce and spend ledgers and the email driver (Website experiments and measurement).

Guardrails

A guardrail names a metric, a threshold, whether a breach is above or below it, a window over which the metric's mean is taken, an action, and the jobs it governs. Guardrails override growth targets (A-I15):

ActionOn a breach
pause_jobEach job is paused before its next action, the owner gets a P2 alarm, and each job is lowered one autonomy level
alertThe P2 alarm and the demotion, without a pause

A breach acts once until the metric recovers. Only a person resumes a paused job. An experiment monitors the guardrails of its job throughout and stops when one breaks (Website experiments and measurement).

Authority

Each job runs at a level the charter sets, with optional limits: spendCap bounds the amount of the job's financial calls, and actionsPerDay caps the tool calls of a run.

LevelThe job's agent
observeReads only; output goes to reports
proposeDrafts and proposals; nothing acts
act_with_approvalEvery non-read call is held for the owner
act_reversible_onlyActs alone only for reversible acts: a rollback to a signed release, the edge in read-only mode, drafts
act_within_budgetActs within its rules and budget; anything beyond is held

A new site starts its jobs at observe or propose; onboarding acts with approval. The site may lower a job's level — on a guardrail breach, two rejections in a row, or an incident in its area — and never raise one: raising a level is an owner's decision that creates the standing rules the level needs (A-I13). After 20 unchanged approvals within 30 days the weekly review offers a promotion. The harness compiles each level into policy (The website runtime).

Budget, voice and red lines

SectionMembers
budgetperiod (a cadence), currency, and caps per category: hosting, models, advertising, domains, other. Payments run under the wallet's own category mandates, which hold a payment over a cap and which the site never raises (A-I16; Wallet)
voicetone, languages (the first is the default), and disclosure: the line every outbound message carries to say an AI agent wrote it (A-I17)
redLineskind (claim, topic or action) and text; a launch gate given them (LaunchGate::with_red_lines) refuses an item that states one
priceRuleautoWithinPct: a price change within it acts within budget; a larger one is held for the owner, and an open quote keeps its price until it expires (A-I25)

The owner's settings

Three optional members hold the owner's settings. A charter without them is valid, and the runtime applies its own default for each one it lacks; adk-website shows all three on the charter card "When the site asks you", defaults included, and the owner changes them there.

Memberadk-website reads it inDefault when absent
handoffThresholdleads::Leads::current_scorer: a lead at this score is handed to the owner, once70
publishDelayHourspublish_delay::PublishDelay::current_delay: a page freshness, seo or aeo drafts must be scheduled at least this far aheadSiteOptions::publish_delay, else 24
amountThresholdsThe edge's declarations: a call of the capability above the amount answers 202 and waits for the owner (ApprovalHint::AboveAmount)approvals.json, else none

The handoff threshold and the publish delay follow the charter in force at once. The amount thresholds change what the capability manifest publishes, so a committed change applies when the site next starts. A threshold names an amounted capability (place_order, pay_order, book, book_appointment, donate).

{
  "handoffThreshold": 60,
  "publishDelayHours": 48,
  "amountThresholds": { "place_order": 20000, "book": 15000 }
}

Reporting

review sets the review cadence. routes maps each urgency to the owner's channels — web, chat, email, sms, voice, whatsapp, telegram, slack, discord, matrix — and quietHours gives a start, an end and an IANA time zone.

UrgencyDelivery
p1At once on the P1 channels, inside quiet hours too, repeated until acknowledged
p2On the owner's chosen channel, outside quiet hours
p3The weekly review

Public terms

public is the only part of the charter a visitor or an agent sees. It is published at /.well-known/awp/charter.json, and its digest is in the contract's charter.digest, so adk-rust awp verify fails with charter.digest when the two disagree.

MemberPublished as
usageThe Content-Usage line of robots.txt (IETF AI preferences); every kind's charter drafts one for the owner to review — search=y, and train-ai=n, search=y for news and media
policiesName, URL, version and optional digest of each policy page
consentScopesThe consent scopes the site asks for: session_continuity, proactive_outreach, persistent_profile, payment_data, newsletter, or a scope a capability names, such as contact
contactThe security contact, an email and a contact page

Validation

Charter::validate() returns every violation at once:

ViolationRule
TargetWithoutBaselineA target needs a baseline (A-I14)
NoOwnerAt least one person holds the owner role
AgentHoldsRoleRoles belong to people (A-I23)
EmptyApprovalChain, DuplicateApprovalChainA chain names roles, and each action class has at most one
UnsatisfiableApprovalChainEnough distinct people hold the chain's roles
DuplicateKpi, UnknownKpiKPI ids are unique, and goals name only defined KPIs
HandoffThresholdOutOfRangeA handoff threshold is a lead score from 0 to 100
use awp_types::{Charter, CharterViolation};

fn check(charter: &Charter) {
    if let Err(error) = charter.validate() {
        for violation in &error.violations {
            match violation {
                CharterViolation::TargetWithoutBaseline { kpi } => println!("measure {kpi} first"),
                other => println!("{other}"),
            }
        }
    }
}

Signing and committing

A charter version takes effect only when its owners commit it. CharterStore::commit validates the draft, refuses an agent among the role holders, checks the decision against the charter_change chain in force, gives the version the next number, and stores it with an OwnerSignature: the decision's id, the first owner who approved, the signed note that seals the commit in the audit log, and the time. The store is append-only, so the site's charter history has no gaps (The charter store).

SurfaceHow the owners sign
Onboarding on the web homeEach section as a card; Sign as for each role the person holds (The Website's Views)
The harnesscharter_commit_request submits an approval request with one slot per required signer and commits nothing; SiteRuntime::sign_charter commits once distinct people fill every slot, and the kernel's inbox or a chat card can sign the same request
CodeCharterStore::commit(draft, decision), or commit_audited to record the chain and the commit in the audit log

adk-rust site reads charter.json, or the draft charter.draft.json, from the project: a charter whose publish chain needs two or more roles makes the site commands that change the site refuse, because such a site publishes only through its approvals, each role by a different person (Sites and AWP from the command line).