mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-05 02:09:29 +01:00
* feat(cat): the Cat proposes; Solon disposes — propose_governance_change OC3 of the Solon v1 plan: the Cat can now file a change to its own platform spending leash as a Solon governance proposal — and that is ALL it can do. The action is high-risk + always-confirmed (a human okays the filing before anything leaves the system), and the change only ever activates if the Bitcoin-signed Solon vote approves it and decision-verify re-verifies every signature locally (#657). - cat-actions: propose_governance_change (organization, high risk, requiresConfirmation) — flows through cat_pending_actions and cat_permissions like the other 49 actions - handlers/governance.ts: validate ceilings (per-action <= daily) → record a local draft version (decision-verify attaches the approved decision to it by content hash) → sign the proposer attestation with CAT_SOLON_PRIVKEY (the Cat's own key; user keys never exist here) → POST to Solon with the agent API key → store solon_proposal_id; Solon refusal marks the draft rejected so nothing lingers half-open. Env-gated, inert unconfigured. - bitcoin-message.ts grows the signing side (one key only) + solonProposalMessage(), byte-identical to Solon's proposalMessage() (golden-pinned) Prompt budget: description/params cut to fit the hard 54.6k static budget; the Groq-remaining ratchet raised 3,400 -> 3,650 with the argued reason in place (new enabled capability), per the mechanism's own convention. Test infra: jsdom suites get Node's TextEncoder/TextDecoder polyfill — server-side crypto modules are now importable from any suite. Tests (6 new): golden proposal-message strings, sign→verify roundtrip on the fixed key, unconfigured refusal (zero DB touches), ceiling validation, happy path (draft recorded, signature in the POST body verifies, proposal id stored), Solon-refusal marks draft rejected. verify green: 2153 tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * feat(governance): cast-vote script — the Cat's operator-run voting edge Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>