Expand description
§adk-website
A prebuilt AWP 2.0 website (spec 3.5 Part C, §7.16–§7.24): a site that onboards its owner, builds or migrates itself, passes its own launch gate, and then works towards the owner’s goals with a team of eight agents, inside the authority, budget and guardrails of its charter.
The product holds no framework code (D-1): the harness supplies the agents, tools,
partitions and the autonomy ladder; the kernel the charter store, KPI tracker, signals,
pairing and processes; adk-site the pipeline, gate, releases and probes; adk-payments
the wallet. This crate decides what a website is for each kind of site.
| Module | Contents | Spec 3.5 |
|---|---|---|
kinds | One charter template per site kind, the rules each adds, kind detection | §7.16.1, D-15 |
team | The eight agents; the back office as a TeamSpec led by the Steward; building them over the harness kits | §7.19, §7.10 |
jobs | The §7.20 jobs, their ladder bindings, first-week authority, and the kernel processes that run them | §7.20, §7.11 |
onboarding | The nine-stage plan, three starting points, the setup-code gate, discovery, building release 1, the live preview, the cost estimate | §7.17, §7.18, A-I20 |
themes | Three themes with light and dark tokens for the built-in renderer | §7.16, §7.23 |
packs | Capability declarations: contact, quote, booking, order, search, components | §7.16, §7.4 |
playbooks | A skill file for every job | §7.16, §7.15 |
incident | Drift, incident status, rollback by standing rule or proposal, the person’s exit | §7.20, A-I11 |
inbox | The Inbox: the site’s email and the chat messages of unpaired accounts, answered in their own thread | §7.19, §7.10, X12, A-I24 |
leads | Lead scores and the handoff threshold, consent for nurture, the durable contact book, nurture sends inside quiet hours | §7.20, §7.21, S8, A-I8 |
alarms | P1, P2 and P3 routing to the owner’s channels | §7.21 |
channel | The owner’s chat channel: photos into the Steward’s draft, alt text confirmed from the thread | §7.8.2, S18, A-I24 |
repository | Files and git as an entry point: a signed push from an authorised committer proposes a release | §7.8.2, A-I24 |
publish_delay | The delay a page the site drafts on its own waits before it can go live | §7.20, S10 |
quotes | The reviews discovery found, the owner’s approvals to quote them, and the launch gate’s check over them | §7.18, S2 |
review | The weekly review | §7.21 |
learning | Outcomes into playbook revision proposals, decided by the owner; versioned playbooks | §7.15, A-I13 |
upkeep | Upgrade proposals for advisories against the edge’s lockfile, certificate renewal proposals | §7.20, S10 |
wallet | The wallet as a KPI source and the site’s commerce outcomes | §7.14 |
experiments | Charter KPIs and guardrails as experiments, variants as static files, daily looks, pauses on a breach, the review’s evidence | §7.12, A-I15 |
measurement | KPI sources that are not drivers: the beacon, host logs, the commerce, action and spend ledgers, agent search at the edge, AEO | §7.12, §7.11 |
workflows | The probe and the weekly review as kernel runs | §7.20 |
contract | The signed contract, key set and charter terms released with the site | §7.2, §7.7, D-11 |
deploy | The four deployment shapes, agency mode and serving the kernel and the edge | §7.22, A-I22 |
edge | The site on the agent edge: the packs’ handlers, the adapters to the back office, the read-only step | §7.9, §7.16, A-I11 |
observability | Spans, metrics and the site view | §7.24 |
ui | Onboarding and owner views on the web home: setup code, onboarding, charter cards, the site view, the weekly review, the web editor | §7.16, §7.18, §7.21, §7.24, §8.2 |
§Example
use adk_harness::website::SiteRef;
use adk_website::kinds::{CharterInputs, template};
use adk_website::team::{AgentRole, SiteTeam};
use awp_types::SiteKind;
let id = uuid::Uuid::new_v4();
let personal = template(SiteKind::Personal);
let team = SiteTeam::new(SiteRef::new(id, "notes", "https://notes.example"), &personal);
assert!(team.runs(AgentRole::Guardian) && !team.runs(AgentRole::Revenue));
let inputs = CharterInputs::new(id, "Notes", "user:wanjiru", "Essays on cities.", vec!["en".parse().unwrap()], "USD");
let charter = personal.draft_charter(&team, &inputs);
assert!(charter.validate().is_ok());§Stability
Experimental — new in 3.0.0 (spec 3.5), and its API may change while the spec lands. See STABILITY.md.
Modules§
- alarms
- Alarms by urgency (spec 3.5 §7.21, §7.20 “Alarms by urgency and channel”).
- audit
- The product’s audit records (spec 3.5 §9.3).
- channel
- The owner’s chat channel as an authoring surface (spec 3.5 §5 S18, §7.8.2 “Entry points”, “Media”, A-I24): the photos a paired person sends join the draft their message made, and they confirm the photos’ alt text from the same thread.
- contract
- The site’s signed AWP documents (spec 3.5 §7.2, §7.3, §7.7, D-11, A-I5): the contract at
/.well-known/awp.json, the key set with the root’s delegations, and the public charter terms, built withadk-awp’sStaticBundleand released with every release soawp verifycan walk the chain from the DNS-anchored root to every served page. - deploy
- Deployment shapes (spec 3.5 §7.22, §7.17).
- edge
- The site on the agent edge (spec 3.5 §7.9, §7.10, §7.16
packs, §7.20, A-I11). - experiments
- Web experiments on the site (spec 3.5 §7.12, A-I15, S11): the charter’s KPIs and
guardrails as an
adk-evalexperiment, variants as separate static files, stable assignment of an anonymous bucket, exposures and goals counted through the edge beacon, a daily look at the cumulative counts, and the decision with its evidence in the weekly review. - inbox
- The Inbox: the site’s messages from people who are not paired to it (spec 3.5 §7.19, §7.10, §10 X12, A-I2, A-I3, A-I24).
- incident
- The incident path (spec 3.5 §7.20 “Run and protect”, §7.21 P1, §7.11, A-I4, A-I11, S5).
- jobs
- The site’s jobs and the kernel processes that run them (spec 3.5 §7.20, §7.11, §7.19).
- kinds
- Site kinds: one charter template per kind (spec 3.5 §7.16.1, §7.6, D-15, G13).
- leads
- Leads: their score, the handoff threshold, consent for nurture, and nurture sends inside the owner’s quiet hours (spec 3.5 §5 S8, §7.20 “Qualify and nurture with consent”, “Warm handoff with context”, §7.21, A-I8, A-I17).
- learning
- Learning (spec 3.5 §7.15, §7.20 “Playbook learning”, §7.23, A-I13): the week’s outcomes become proposals to revise playbooks, which land only as the owner’s decisions.
- measurement
- KPI sources that are not drivers (spec 3.5 §7.12, §7.11): what the KPI tracker and the experiments read besides the analytics, search-console, email and advertising drivers.
- observability
- Observability (spec 3.5 §7.24): spans, metrics and the site view.
- onboarding
- Onboarding and self-building (spec 3.5 §7.18, §7.17, D-12, A-I18, A-I19, A-I20, A-I21).
- packs
- Default capability packs (spec 3.5 §7.16
packs, §7.4, §7.16.1 “Capabilities”, §7.23). - playbooks
- Playbooks: one skill file per job (spec 3.5 §7.16
playbooks, §7.15, §7.20, §7.23). - publish_
delay publish_delay: the time a page the site drafts on its own waits before it can go live, on top of the owner’s approval (spec 3.5 §5 S10, §7.20 “Freshness … Propose for new pages”; AWP 1.0’s[content] publish_delay).- quotes
- Review quotes in the running site (spec 3.5 §5 S2, §7.18 “no invented … testimonials”, A-I18): the reviews discovery found, kept with the owner’s approvals, and the launch-gate check that polices every page quoting one.
- repository
- Files and git as an entry point (spec 3.5 §7.8.2 “Entry points”, A-I23, A-I24): a push from an authorised committer to the content repository arrives through a signed webhook and proposes a release, which waits at the site’s normal approval.
- review
- The weekly review (spec 3.5 §7.21, §7.11, §7.20 “Weekly review and reports”).
- team
- The team: eight agents in two partitions, led by the Steward (spec 3.5 §7.19, §7.10, D-5, A-I2, A-I3).
- themes
- Default themes for the built-in renderer (spec 3.5 §7.16
themes, §7.18 stage 6, §7.23 “Themes”, §13 Q3). - ui
- Onboarding and owner views on the web home (spec 3.5 §7.16
ui, §7.8.2 “Web editor”, §7.18, §7.21, §7.24, §8.2; spec 3.3 §5.1, §8, §9). - upkeep
- Upkeep proposals: dependency upgrades for security advisories and certificate renewals (spec 3.5 §5 S10, §7.19 “Guardian … advisories daily”, §7.20 “Hosting, domains, certificates, backups — Propose; renewals within budget”).
- wallet
- The wallet wired into the site (spec 3.5 §7.14, §7.11, §7.12, §7.21).
- workflows
- The site’s model-free jobs as kernel runs (spec 3.5 §7.20, §7.11, §7.21): the Guardian’s
probe (
PROBE_WORKFLOW), the hosting job’s upkeep check (WATCH_WORKFLOW) and the weekly review’s composition (DIGEST_WORKFLOW), a push to the content repository (REPOSITORY_WORKFLOW), and the playbook-learning run (LEARNING_WORKFLOW). RegisterSiteWorkflowswithKernelBuilder::workflowsand each process’s trigger fromcrate::jobs::processes; the other site processes run their job’s agent.