1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! The product's audit records (spec 3.5 §9.3).
//!
//! | Action | Written by |
//! |---|---|
//! | `website.onboarding.started`, `website.onboarding.stage`, `website.onboarding.completed` | [`crate::onboarding::OnboardingProgress`] |
//! | `website.charter.drafted` | [`crate::onboarding::draft_charter`] |
//! | `website.alarm.raised`, `website.alarm.acknowledged` | [`crate::alarms::AlarmRouter`] |
//! | `website.review.sent` | [`crate::review::ReviewComposer::send`] |
//! | `site.status.changed`, `site.rollback` | [`crate::incident::IncidentPath`] |
//! | `awp.payment.created`, `awp.payment.settled`, `awp.payment.rejected` | [`crate::edge::handlers::PaymentHandler`] |
//!
//! A served site keeps every record — these, the pipeline's `site.content.*` and
//! `site.release.*`, the update engine's, the edge's and the kernel's — in `data/audit.jsonl`
//! through `adk-core`'s `FileAuditRecorder`; `adk-rust awp keys` appends `awp.keys.*` to the
//! same file.
//!
//! Each is an `AuditRecordKind::Other("website")` record whose fields carry the site, the
//! charter version and the release sequence where there is one; the kernel and the harness
//! write the charter, autonomy, signal and release records.
use ;
use Value;
/// Onboarding began (spec 3.5 §9.3).
pub const ONBOARDING_STARTED: &str = "website.onboarding.started";
/// An onboarding stage completed.
pub const ONBOARDING_STAGE: &str = "website.onboarding.stage";
/// Onboarding completed: the site is live.
pub const ONBOARDING_COMPLETED: &str = "website.onboarding.completed";
/// A charter version was drafted.
pub const CHARTER_DRAFTED: &str = "website.charter.drafted";
/// An alarm was raised to the owner.
pub const ALARM_RAISED: &str = "website.alarm.raised";
/// A person acknowledged an alarm.
pub const ALARM_ACKNOWLEDGED: &str = "website.alarm.acknowledged";
/// A weekly review was sent.
pub const REVIEW_SENT: &str = "website.review.sent";
/// The site's status changed.
pub const STATUS_CHANGED: &str = "site.status.changed";
/// The site rolled back to a signed release.
pub const ROLLBACK: &str = "site.rollback";
/// Writes one record when `trail` is set; a failed write is logged and never undoes the act
/// it records.
pub async