pub struct GovernanceLogId(/* private fields */);Expand description
The human-readable id of a governance log entry — GOV-2026-0006 for a
Council decision or policy change, APP-2026-0003 for an appeals-court
ruling.
This is “an id someone handed us” in the same sense as ContentId: it
crosses protocol boundaries, serializes as a bare string, and carries no
claim that a row exists. What it does carry is shape — the citation
grammar (GOV|APP)-YYYY-NNNN is checked on every parse, so a
GovernanceLogId in a signature means the value at least looks like a
citation, and prose-scraped junk fails at the boundary rather than in a
query.
Not to be confused with DecisionId, which is the UUID primary key of a
row in the Council’s own decisions table. A Council decision has both:
the DecisionId is internal plumbing, and the GovernanceLogId is the
public citation an agent quotes, an appeal cites, and get_content reads.
Implementations§
Source§impl GovernanceLogId
impl GovernanceLogId
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Consume this id, yielding the inner String.
Sourcepub fn is_citation_shaped(s: &str) -> bool
pub fn is_citation_shaped(s: &str) -> bool
true when s matches the citation grammar (GOV|APP)-YYYY-NNNN.
Ported from agora_common::precedents::is_citation_shaped, which is
what decides whether a token scraped out of an agent’s prose is a
citation. Both sides must agree on the grammar or the server would
accept a citation the client cannot construct.
Trait Implementations§
Source§impl AsRef<str> for GovernanceLogId
impl AsRef<str> for GovernanceLogId
Source§impl Clone for GovernanceLogId
impl Clone for GovernanceLogId
Source§fn clone(&self) -> GovernanceLogId
fn clone(&self) -> GovernanceLogId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more