Skip to content

Releases

v0.9.3

Choose a tag to compare

@github-actions github-actions released this 23 Nov 06:07

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/Show is 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

Choose a tag to compare

@github-actions github-actions released this 23 Nov 03:24

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, the data-* handles and the
    owner-only gate are unchanged; it sits under #invite, and a visit to
    {prefix}/members#invite opens 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 now parts/invite.ts (useInvite, inviteMessage), a
    new shipped file. Council/Members is sent endpoints.invite and draws the
    form only when canSetPolicy is true; the API asks the owner hook again on
    the POST either way. A host test that read the form's handles out of
    Index.tsx must read Members.tsx instead.

v0.9.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 02:29

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 (and council:census-ingest) could never
    match a sender.
    Genie stamps a raw message's from with the sender's agent
    id (agent_<hex>), not the name@workspace address 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 valid name@workspace (Genie sends none today; a malformed one is
    ignored), else the host's new map council.genie.agent_addresses
    (agent id => address, validated at boot; a bad entry throws, naming it),
    else from as 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 still sender_mismatch. An agent id nobody mapped is now
    refused as unsolicited (unmapped_agent), so the clerk can see what to fix.
    The clerk procedure is in docs/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
    as duplicate vote N. Replay protection now keys on accepted rows only: a new
    unique, nullable accepted_message_id is 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 on genie_message_id.
    The same message id from the same sender again is still a duplicate, 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. Its down() 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, not at, so every ingested reply's
    received_at was the time of ingest. sentAt is now read when at is
    absent.

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 01:49

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 in ConsumerSeed, shipped in a release and
    applied by council:seed-consumers or 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 be name@workspace (the AgentInbox
    shape; anything else is 422 invalid_address). The member is added with
    source = invited, no packages and no census, audited as consumer.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
      to OwnerAction::ALL, so it goes through the step-up gate. A host whose
      step-up list is OwnerAction::ALL gates 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 as request() (which now uses it).
    • The Council/Index page gets an owner-only Invite agent form in its
      Consumers card, and its endpoints prop a new invite URL. An invited
      member that has not answered shows as invited: no census yet.

Changed

  • Docs: AGENTS.md is 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 to CONTRIBUTING.md, and CLAUDE.md is now a symlink to it. The README points to the MCP server and to AGENTS.md. No code changed; nothing to do.

Fixed

  • Canonical JSON no longer turns an object into a list. Support\CanonicalJson encoded a stdClass whose keys were 0..n-1 ({"0":"a"} decoded with json_decode($json)) as the list ["a"]. It did the same to a PHP array whose keys were 0..n-1 out of order ([1 => 'b', 0 => 'a']), and it encoded every ArrayObject as {} whatever it held. Two different JSON documents therefore signed and hashed to the same bytes, and the PHP form disagreed with council/lib/record.mjs. The rule is now explicit and in the class docblock: a stdClass or ArrayObject is always a JSON object; a PHP array is a list exactly when array_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 and stdClass only when empty, so none of their bytes change: existing decision records verify, council:verify-log passes 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 passes CanonicalJson::encode() a non-empty stdClass with integer-like keys, an ArrayObject, 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) and canonical() in council/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 throws InvalidArgumentException; RecordSigner::verify() reports it as not_canonical. New vectors in tests/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() (or OwnerAction params) 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

Choose a tag to compare

@github-actions github-actions released this 12 Nov 05:40

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 every delivery = queued row
    in the current round, while council:petitions lists only petitions that are
    not withdrawn, in an open round, of a Change in round1_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 state superseded,
    appended to the audit log as petition.superseded with a because
    (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, with because: not_sendable and actor ledger.

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 23:53

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.
    CensusParser hard-coded particle-academy/* (Composer),
    @particle-academy/* (npm) and fancy-* (PyPI), so another estate's council
    dropped all of its own packages as not_first_party: in Prism's council its
    PyPI distributions (prism-ai-core among them) and prism-conformance. The
    rule is now council.census.first_party, per ecosystem, a list of patterns
    (an exact name or a literal prefix with one trailing *, never a regex) plus
    optional exact names. Unset, it is exactly the old rule. It is validated
    once at boot; an invalid entry throws an InvalidArgumentException naming 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,
    default Particle 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 the D modifier, which also matches before a
    final newline, so "particle-academy/prism\n" was accepted and stored with
    the newline. They are now bad_name / bad_version.

Changed

  • CensusParser::parse() and ::reason() take an optional FirstParty, and
    CensusText::render() an optional third argument; omitted, they use the
    defaults. CensusParser::PREFIXES is deprecated (it holds the defaults only).

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 23:17

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 with invalid_actor (HTTP
    500, with a detail naming 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's id are 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-check reports the old copy as stale.
  • The quick start's publish path was lower case. It suggested
    js/pages/council for a lab that globs ./pages/**; the pages render as
    Council/Index and 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 to Council and re-publish the pages.

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 03:17

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 packages came only from the hand-written seed
    (inferred or declared), so they missed what members really install, and
    nothing could write census_at. Now:
    • council:census-requests queues one COUNCIL-CENSUS-REQUEST v1 per 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
      --list to queue nothing). The request asks the member to read its
      lockfiles and list every particle-academy/* (Composer),
      @particle-academy/* (npm) and fancy-* (PyPI) package with its installed
      version. Audited as census.requested and census.<delivery>.
    • council:census-ingest reads a COUNCIL-CENSUS v1 reply 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:ingest routes 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 sets census_at. watches, owner-set
      fields and petitions already created are untouched. It is audited as
      census.applied with 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)"), and census_stale reads 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's census_request
    ({id, delivery, queued_at, sent_at} or null). A census package row carries
    version instead of constraint.
  • New wire formats, versioned on their own: COUNCIL-CENSUS-REQUEST v1 and
    COUNCIL-CENSUS v1 (docs/census.md).
  • Migration 2026_11_08_100000_create_council_census_tables:
    council_census_requests and council_census_replies. No existing row is
    changed.

Changed

  • A petition's why is capped at 255 characters (its column's length), since a
    census name and version are member-supplied.
  • The package's own phpunit.xml now also forces in-memory SQLite through
    env and server. The test kernel already built that connection explicitly.

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 08 Nov 16:43

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 the owner ability (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 in census_stale);
    • leaves the members list; the API's GET members lists 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_at and outcome withdrawn, and is audited as petition.withdrawn
    (counted: false) beside one consumer.removed event 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 as invalid with problem
    petition_withdrawn. The clerk's council:petitions queue 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-compliance and
    agent-integrations (owner, 2026-11-08; the only consumer of
    fancy-compliance-ui).
  • Wire fields, all additive: a member's removed_at and stats.withdrawn; a
    record row's withdrawn; a petition's withdrawn_at; a consumer's
    removed_at.
  • Migration 2026_11_08_000000_add_council_removed_and_withdrawn: nullable
    council_consumers.removed_at and council_petitions.withdrawn_at. No
    existing row is changed.

Removed

  • tribeshare@tribetrip is 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

Choose a tag to compare

@github-actions github-actions released this 07 Nov 22:45

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},
    page Council/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 a weight (integer, 0 to council.weights.max,
    default 1). A round's blocking conflicts (blocker or major, 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 optional weighing object.
  • Owner methods Ledger::setWeight(), setProject() and
    setBlockingThreshold(), each validated and audited (consumer.weight,
    consumer.project by field name only, council.blocking_threshold). Like
    every owner method, they are reachable only through the API behind the
    owner ability, never from a command.
  • Member project fields: project_name, project_description and
    project_url (absolute http/https only; 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}/project and
    PUT settings/blocking-threshold.
  • Config: council.tally.blocking_threshold, council.tally.max_threshold,
    council.weights.max, council.members.project_name_max and
    council.members.project_description_max.
  • Migration 2026_11_07_000000_add_council_members_weights_and_profiles:
    additive columns (council_consumers.weight default 1 and the three project
    fields, council_changes.blocking_below_threshold) and a council_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.tsx and parts/nav.ts; Index
    and Show gained the nav and the weight display): re-publish them.