Repository navigation
Releases
v0.9.3
Consumer action: re-publish the pages
(php artisan vendor:publish --tag=council-pages --force), then
php artisan council:pages-check reports 9 of 9 current. Until then a host
keeps drawing the old Audit tab, which still works. No migration, and the audit
log's data does not change.
Changed
- The Audit tab on
Council/Showis readable. Each event is a row with its
time, a plain title ("Owner approved with passkey", "Vote: approve from
moic"), actor, a status badge and one summary line; the sequence number and
hash stay visible but quiet. Owner decisions and votes are marked apart from
system events, and a filter shows All, Decisions, Votes or System. Details are
collapsed by default and show readable facts (for a step-up: method, action,
verified at, verified by, user present, user verified). The full record is
behind a second Raw record disclosure, wrapped and scrollable, with a copy
button, so nothing the owner could inspect is gone. Passkey credential
material is no longer drawn in the default view. The words come from the new
parts/audit.ts, which covers every event type the ledger writes and gives an
unknown type a safe generic summary.
v0.9.2
Consumer action: re-publish the pages
(php artisan vendor:publish --tag=council-pages --force), then
php artisan council:pages-check reports 8 of 8 current. Until then a host
keeps drawing the old form on the council page, which still works: Council/Index
is still sent endpoints.invite. No migration.
Changed
- CI: re-pin org third-party allowlist to 2614224
- "Invite agent" moved to the Members page (
{prefix}/members), where the
owner looks for it. The form, its fields, the step-up (passkey) flow, the
validation, the success and refusal wording, thedata-*handles and the
owner-only gate are unchanged; it sits under#invite, and a visit to
{prefix}/members#inviteopens it. The council page (Council/Index) keeps
an owner-only Invite agent button that links there, and no second form.
The form's logic is nowparts/invite.ts(useInvite,inviteMessage), a
new shipped file.Council/Membersis sentendpoints.inviteand draws the
form only whencanSetPolicyis true; the API asks theownerhook again on
the POST either way. A host test that read the form's handles out of
Index.tsxmust readMembers.tsxinstead.
v0.9.1
Consumer action: run php artisan migrate (one additive migration). If
your clerk pipes raw Genie messages (--genie-json), map your members' Genie
agent ids in council.genie.agent_addresses (below), or their replies keep
being refused. A host that published the package's migrations
(--tag=council-migrations) must publish the new one too. The pages are
unchanged.
Fixed
-
council:ingest --genie-json(andcouncil:census-ingest) could never
match a sender. Genie stamps a raw message'sfromwith the sender's agent
id (agent_<hex>), not thename@workspaceaddress the petition or census
request was sent to, so every reply piped this way was stored as
unsolicited (sender_mismatch). Six genuine replies to CC-fancy-0043 were
refused like this. The sender is now resolved by the new
Support\GenieMessage: an address field on the message (fromAddress) when
it is a validname@workspace(Genie sends none today; a malformed one is
ignored), else the host's new mapcouncil.genie.agent_addresses
(agent id => address, validated at boot; a bad entry throws, naming it),
elsefromas it is. The sender check itself is unchanged: the resolved
sender must equal the petitioned address exactly, and a mapped id that maps
to another member is stillsender_mismatch. An agent id nobody mapped is now
refused asunsolicited (unmapped_agent), so the clerk can see what to fix.
The clerk procedure is indocs/petitions.md("The sender: Genie agent
ids"). The same map applies to--from=when it is given an agent id. -
A refused ingest no longer consumes its message id.
genie_message_id
was unique, so a refusal (a wrong sender, a malformed reply) blocked the same
genuine message from ever being re-ingested: the corrected attempt came back
asduplicate vote N. Replay protection now keys on accepted rows only: a new
unique, nullableaccepted_message_idis set on a counted or late vote (kept
when it is later superseded) and on an applied census reply, and the
migration backfills it for existing accepted rows. Refusals are still stored
with their raw text and audited, under a plain index ongenie_message_id.
The same message id from the same sender again is still aduplicate, so
replaying a refusal adds no rows. The database still refuses a second
accepted copy of one message.What you must do: run the migration. It rewrites no existing value and
deletes nothing. Itsdown()fails once a message id has both a refusal and
an accepted row, which is the case this fixes. -
Genie's timestamp field is
sentAt, notat, so every ingested reply's
received_atwas the time of ingest.sentAtis now read whenatis
absent.
v0.9.0
Consumer action: re-publish the pages
(php artisan vendor:publish --tag=council-pages --force) to get the Invite
agent form; council:pages-check reports the old copy as stale until you do.
No migration. If your step-up list names owner actions by hand (rather than
passing OwnerAction::ALL), add member-invite (OwnerAction::MEMBER_INVITE)
to it, or invitations run without a step-up. A host using OwnerAction::ALL,
or no step-up at all, has nothing to do for this.
Added
- The owner can invite an agent onto the council. Until now a member could
only arrive as a hand-written row inConsumerSeed, shipped in a release and
applied bycouncil:seed-consumersor a migration. New owner endpoint
POST {prefix}/api/v1/members{address, weight?, silence_policy?, project_name?, project_description?, project_url?}and owner method
Ledger::inviteMember(). The address must bename@workspace(the AgentInbox
shape; anything else is 422invalid_address). The member is added with
source = invited, no packages and no census, audited asconsumer.invited
(the address, weight, policy and the NAMES of the project fields set, never
their text), and a census request is queued for it at once
(census.requested). That request, sent by the clerk over AgentInbox like any
other census request, is the invitation. Its census answer sets the packages
that decide which Changes it is required to vote on; until then it is
petitioned on nothing. 201 with{invited: true, member, consumer}.- Idempotent: an address that is already a current member is a 200 with
invited: false. Nothing is written, nothing is queued, and no step-up is
asked for, because there is no action to bind a proof to. - A removed member is a 409
invalid_state: reinstating is not an
invitation, and this release does not add one. - No accept or decline protocol. What the pages show is the census
request's state (queued, sent) and, once it answers,source = census. - New owner action
OwnerAction::MEMBER_INVITE(member-invite), appended
toOwnerAction::ALL, so it goes through the step-up gate. A host whose
step-up list isOwnerAction::ALLgates it with no change; a host that
lists actions by hand must add it, or invitations run without a step-up. - New
Census::requestFor(Consumer): one request for one member, with the
same rules asrequest()(which now uses it). - The
Council/Indexpage gets an owner-only Invite agent form in its
Consumers card, and itsendpointsprop a newinviteURL. An invited
member that has not answered shows asinvited: no census yet.
- Idempotent: an address that is already a current member is a 200 with
Changed
- Docs:
AGENTS.mdis now the guide to using this package (install, its entries on the Fancy MCP catalog server, API essentials, traps). The contributor notes it held moved toCONTRIBUTING.md, andCLAUDE.mdis now a symlink to it. The README points to the MCP server and toAGENTS.md. No code changed; nothing to do.
Fixed
-
Canonical JSON no longer turns an object into a list.
Support\CanonicalJsonencoded astdClasswhose keys were0..n-1({"0":"a"}decoded withjson_decode($json)) as the list["a"]. It did the same to a PHP array whose keys were0..n-1out of order ([1 => 'b', 0 => 'a']), and it encoded everyArrayObjectas{}whatever it held. Two different JSON documents therefore signed and hashed to the same bytes, and the PHP form disagreed withcouncil/lib/record.mjs. The rule is now explicit and in the class docblock: astdClassorArrayObjectis always a JSON object; a PHP array is a list exactly whenarray_is_list(), otherwise an object with its keys sorted as strings. New shared vectors (tests/fixtures/canonical-vectors.json) run in both the Pest and the Node suites.What you must do: nothing. Every shape this package signs or hashes (
change-council/decision.v1, the audit chain, the owner-action digest) uses string keys for its objects andstdClassonly when empty, so none of their bytes change: existing decision records verify,council:verify-logpasses on an existing ledger, and step-up digests are the same. This was checked against a live ledger (627 audit events, every stored hash recomputed identically before and after). Only if your own code passesCanonicalJson::encode()a non-emptystdClasswith integer-like keys, anArrayObject, or a reordered integer-keyed array does its output change, and in each case the new output is the correct one. -
Canonical JSON refuses integers JavaScript cannot represent exactly.
Support\CanonicalJson(PHP) andcanonical()incouncil/lib/record.mjs(Node) now throw on any integer outside-(2^53-1)..(2^53-1), the same way both already refused floats. Past that range a JavaScript number is rounded, so a record PHP signed with such a value would fail to verify in Node (or verify against different digits). PHP throwsInvalidArgumentException;RecordSigner::verify()reports it asnot_canonical. New vectors intests/fixtures/canonical-vectors.json(2^53-1 accepted, 2^53 and -2^53 refused) run in both suites. Object keys are strings in JSON and are not range-checked.What you must do: nothing, unless you sign or hash a large integer yourself. Nothing this package writes comes near the limit (sequence numbers, counts, weights, round numbers), and no existing record holds one: a live ledger of 627 audit events has no integer above 627 in absolute value, and every stored hash recomputes identically. If your own code passes
CanonicalJson::encode()(orOwnerActionparams) an integer past 2^53-1, such as a 64-bit id or a nanosecond timestamp, it now throws: send it as a string.
v0.7.2
Consumer action: after upgrading, run
php artisan council:petitions --supersede-stale once to record petitions an
older release left queued as superseded. It is idempotent and deletes
nothing. No migration, no page re-publish.
Fixed
- The lab's "N petition(s) are queued and not yet sent" counted petitions
that can never be sent. The summary counted everydelivery = queuedrow
in the current round, whilecouncil:petitionslists only petitions that are
not withdrawn, in an open round, of a Change inround1_open/round2_open.
On a live council the page said 27 when the clerk had 0 to send. There is now
one definition,Petition::sendable(), used by both; what the command lists
is unchanged. - Petitions that can no longer be sent stop reading as
queued. When a
round closes (tally), the owner overrides (approve or reject, vote skipped),
the initiator withdraws the Change, or a member is removed, each of its
unsent, unanswered petitions gets the new delivery statesuperseded,
appended to the audit log aspetition.supersededwith abecause
(round_closed,change_decided,change_withdrawn,member_removed). A
petition that has a reply is left as it is: the reply proves it arrived.
council:petitions --supersede-stale(Ledger::supersedeStale()) does the
same for existing rows, withbecause: not_sendableand actorledger.
v0.7.1
Consumer action: none for Fancy's councils; the defaults are unchanged. A
council for any other estate should set council.census.first_party (and
council.census.publisher), or every census keeps none of its packages. No
migration, no page re-publish.
Fixed
- The census first-party rule is host configuration, not Fancy's names.
CensusParserhard-codedparticle-academy/*(Composer),
@particle-academy/*(npm) andfancy-*(PyPI), so another estate's council
dropped all of its own packages asnot_first_party: in Prism's council its
PyPI distributions (prism-ai-coreamong them) andprism-conformance. The
rule is nowcouncil.census.first_party, per ecosystem, a list ofpatterns
(an exact name or a literal prefix with one trailing*, never a regex) plus
optional exactnames. Unset, it is exactly the old rule. It is validated
once at boot; an invalid entry throws anInvalidArgumentExceptionnaming it
and is never ignored. Matching is a prefix or exact comparison, so nothing
from config runs as a regex against a reply. - The census request names the host's own packages. Its per-ecosystem lines,
its example name and the publisher it names (council.census.publisher,
defaultParticle Academy) come from the same config. With the defaults the
text is byte for byte the 0.7.0 text. - A name or version ending in a newline is refused. The name and version
shapes ended in$without theDmodifier, which also matches before a
final newline, so"particle-academy/prism\n"was accepted and stored with
the newline. They are nowbad_name/bad_version.
Changed
CensusParser::parse()and::reason()take an optionalFirstParty, and
CensusText::render()an optional third argument; omitted, they use the
defaults.CensusParser::PREFIXESis deprecated (it holds the defaults only).
v0.7.0
Consumer action: re-publish the pages:
php artisan vendor:publish --tag=council-pages --force, then
php artisan council:pages-check. No migration. Nothing else changes unless you
register the new hook.
Added
Council::resolveActorUsing(callable)(CC-fancy-0021). The callable gets
the authenticated user and returns the id an owner action is recorded as, in
the audit log and the decision (owner:<id>; an answer already starting with
owner:is kept as is). Without a hook nothing changes:owner:<email>, or
the user's key when it has no email. The answer is validated: a non-empty
string of at most 191 characters, valid UTF-8, with no control characters or
newlines. Anything else refuses the owner action withinvalid_actor(HTTP
500, with adetailnaming the hook) and records nothing. It never falls
back to the email, because the audit log is append-only.
Fixed
- The Change page no longer widens a phone screen. Its five tabs sat in a
list with no wrap and no scroll, so at a 390px viewport the document grew to
426px and the whole page scrolled sideways. The tab list now scrolls inside
its own box (overflow-x-auto), tabs neither shrink nor wrap, and arrow-key
navigation and each tab'sidare unchanged. Each tab also gains a
data-action="council-tab-<name>"handle. The same pass found two more on
that page: the silence-policy table (and the package and impact tables) had
no scroll box, so react-fancy's frame clipped the last column; and the audit
timeline's hashes and JSON widened the page to 825px once the Audit tab was
open. Every table now scrolls inside its frame and the timeline wraps long
tokens. The Index, Members and Member pages were measured at 390px and
already contain their tables. Re-publish the pages to get this;
council:pages-checkreports the old copy as stale. - The quick start's publish path was lower case. It suggested
js/pages/councilfor a lab that globs./pages/**; the pages render as
Council/Indexand so on, so on a case-sensitive filesystem (Linux, most CI
and production) a literal resolver found nothing. It now says
js/pages/Council, with a warning about case. If you followed the old line,
rename the folder toCounciland re-publish the pages.
v0.6.0
Consumer action: run php artisan migrate (one additive migration: two new
tables), then re-publish the pages:
php artisan vendor:publish --tag=council-pages --force. Nothing changes for a
member until it answers a census; until then its hand-written packages stand.
Added
- The census. A member's
packagescame only from the hand-written seed
(inferredordeclared), so they missed what members really install, and
nothing could writecensus_at. Now:council:census-requestsqueues oneCOUNCIL-CENSUS-REQUEST v1per active,
external member with no outstanding request (removed and internal members
get none), and lists the queue for the clerk, in the same pattern as
council:petitions(--json,--mark-sent=<id> --result=<raw JSON>, plus
--listto queue nothing). The request asks the member to read its
lockfiles and list everyparticle-academy/*(Composer),
@particle-academy/*(npm) andfancy-*(PyPI) package with its installed
version. Audited ascensus.requestedandcensus.<delivery>.council:census-ingestreads aCOUNCIL-CENSUS v1reply strictly: one
header line, ONE JSON object{nonce, apps, packages}, unknown keys refused,
a closed ecosystem enum, and size caps (64 KB, 500 packages, 50 apps).
The sender must match the request's address and nonce, as for votes. A row
that is not a first-party package (or has a non-plain name or version, or
repeats) is dropped with a recorded reason. The body is data; nothing in it
is executed.council:ingestroutes a census here, so it is never stored as
an invalid vote.- A valid census replaces the member's
packages(source: census, each
row{ecosystem, name, version}) and setscensus_at.watches, owner-set
fields and petitions already created are untouched. It is audited as
census.appliedwith a before/after diff; the audit carries no free text
from the reply, so neither does the feed. voters()uses the census from then on (a census row's petition reads
"your census lists ... (census YYYY-MM-DD)"), andcensus_stalereads its
age, as before.
- Members list and profile (pages and API): the packages' source as a badge,
the census date, and an outstanding census requested state (queued or
sent). Wire field, additive: a member'scensus_request
({id, delivery, queued_at, sent_at}or null). A census package row carries
versioninstead ofconstraint. - New wire formats, versioned on their own:
COUNCIL-CENSUS-REQUEST v1and
COUNCIL-CENSUS v1(docs/census.md). - Migration
2026_11_08_100000_create_council_census_tables:
council_census_requestsandcouncil_census_replies. No existing row is
changed.
Changed
- A petition's
whyis capped at 255 characters (its column's length), since a
census name and version are member-supplied. - The package's own
phpunit.xmlnow also forces in-memory SQLite through
envandserver. The test kernel already built that connection explicitly.
v0.5.1
Consumer action: run php artisan migrate (one additive migration), then
re-publish the pages: php artisan vendor:publish --tag=council-pages --force.
Nothing else changes until the owner removes a member.
Added
- Remove a member from the council (owner, 2026-11-08). Owner method
Ledger::removeMember(address, owner, reason?), reachable only through the
API behind theownerability (POST members/{address}/remove {reason?}),
never from a command, and a Remove from council control on the member
profile, staged behind a confirmation. The row is never deleted: it is marked
removed_at, so its voting record and audit history stay readable. A removed
member:- gets no petitions on any later round, and is no longer whitelisted;
- leaves the census check (a removed member with no census no longer holds a
Change incensus_stale); - leaves the members list; the API's
GET memberslists it under
former_members, and the members page under Former members; - is never re-added, or changed, by
council:seed-consumers.
- Its petitions in rounds that are still open are withdrawn: each gets
withdrawn_atand outcomewithdrawn, and is audited aspetition.withdrawn
(counted: false) beside oneconsumer.removedevent listing them. The tally
skips a withdrawn petition: it is never a silent required voter, never
extends or escalates a round, and its vote no longer counts toward a blocking
conflict. A reply to it afterwards is stored asinvalidwith problem
petition_withdrawn. The clerk'scouncil:petitionsqueue skips it. Petitions
in closed rounds are history and stay exactly as tallied. - PS Mapper (
b-mo-fluid@ps-mapper) is seeded as a declared member of
react-fancy,fancy-compliance-ui,particle-academy/fancy-complianceand
agent-integrations(owner, 2026-11-08; the only consumer of
fancy-compliance-ui). - Wire fields, all additive: a member's
removed_atandstats.withdrawn; a
record row'swithdrawn; a petition'swithdrawn_at; a consumer's
removed_at. - Migration
2026_11_08_000000_add_council_removed_and_withdrawn: nullable
council_consumers.removed_atandcouncil_petitions.withdrawn_at. No
existing row is changed.
Removed
tribeshare@tribetripis no longer in the consumer seed (removed from the
council by the owner, 2026-11-08). Re-seeding never deletes, so an existing
install keeps the row until the owner removes it in the lab.
Changed
- A change summary's petition counts (
total,answered,conflicts,
queued) leave out withdrawn petitions. - The pages changed (
Members.tsx,Member.tsx,Show.tsx,parts/api.ts):
re-publish them.
v0.5.0
Consumer action: run php artisan migrate (one additive migration), then
re-publish the pages: php artisan vendor:publish --tag=council-pages --force.
Nothing else. With the defaults (every weight 1, threshold 1) every outcome is
exactly what 0.4 would decide, so nothing changes until the owner changes a
weight or the threshold.
Added
- Council members. A members list (
{prefix}/members, page
Council/Members) and a profile per member ({prefix}/members/{address},
pageCouncil/Member), linked from a Council nav on every page. The list is a
sortable table: name and address, project and workspace, weight, silence
policy, declared package count, votes cast, approve/conflict/abstain counts,
missed petitions, last vote and census. The profile shows the member's
project, declared and watched packages, and its voting record: every petition
sent to it, newest first, with change, round, verdict (or silent/undelivered),
lateness, reason, impact, severity and sent/replied times. - Vote weights and a weighted blocking threshold (owner ruling,
2026-11-07). Each member has aweight(integer, 0 tocouncil.weights.max,
default 1). A round's blocking conflicts (blockerormajor, as before)
block only when the combined weight of the members raising them reaches the
council's blocking threshold (council.tally.blocking_threshold, default 1,
owner-settable in the lab). A weight-0 member is advisory: its conflict is
recorded and shown, and never blocks. Blocking conflicts below the threshold
do not block: the Change is approved with notes and flagged
blocking_below_threshold. Round 2 escalation and the owner override with
acknowledgements work as before, on the conflicts that do block. - The tally records the weights it used, the blocking weight, the threshold,
and the conflicts below the threshold or advisory; the change page shows it
("Blocking weight 2 of threshold 3"), and each petition shows the member's
weight. A decision record's round carries an optionalweighingobject. - Owner methods
Ledger::setWeight(),setProject()and
setBlockingThreshold(), each validated and audited (consumer.weight,
consumer.projectby field name only,council.blocking_threshold). Like
every owner method, they are reachable only through the API behind the
ownerability, never from a command. - Member project fields:
project_name,project_descriptionand
project_url(absolutehttp/httpsonly; anything else is refused, and
the pages refuse it again before drawing a link). - JSON API:
GET members,GET members/{address}, and the owner writes
PUT members/{address}/weight,PUT members/{address}/projectand
PUT settings/blocking-threshold. - Config:
council.tally.blocking_threshold,council.tally.max_threshold,
council.weights.max,council.members.project_name_maxand
council.members.project_description_max. - Migration
2026_11_07_000000_add_council_members_weights_and_profiles:
additive columns (council_consumers.weightdefault 1 and the three project
fields,council_changes.blocking_below_threshold) and acouncil_settings
table. No existing row is changed or removed.
Changed
- API JSON now escapes
<,>and&(JSON_HEX_TAG,JSON_HEX_AMP). The
decoded strings are identical; a client that compares raw bytes would see
<where it saw<. Ledger::openConflicts()reads a round closed by a 0.5 tally as recorded,
and weighs an open round against today's weights and threshold. A round closed
before 0.5 keeps its old meaning: closed rounds are never re-tallied.- The pages changed (new
Members.tsx,Member.tsxandparts/nav.ts; Index
and Show gained the nav and the weight display): re-publish them.