feat: /governance — cryptographic accountability for agent sessions#802
Open
aeoess wants to merge 1 commit intogarrytan:mainfrom
Open
feat: /governance — cryptographic accountability for agent sessions#802aeoess wants to merge 1 commit intogarrytan:mainfrom
aeoess wants to merge 1 commit intogarrytan:mainfrom
Conversation
…ions Ed25519-signed receipts for every destructive action. Scope enforcement via .gstack-scope.json. Hash-chained audit ledger for tamper detection. - Session identity: Ed25519 keypair generated at first use - Signed receipts: deploy, push, delete, db mutations get cryptographic proof - Scope enforcement: declare allowed/blocked actions in .gstack-scope.json - Hash chain: each receipt includes previous receipt hash (tamper-evident) - Composes with /careful, /ship, /review, /guard - Zero dependencies — works standalone with openssl - Optional: compatible with Agent Passport System for external verification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A
/governanceskill that gives gstack sessions cryptographic accountability.The problem: gstack agents can deploy code, push to repos, mutate databases, and run destructive commands.
/carefulwarns before destructive ops. But there's no proof of what happened, when, or with what authorization. If something breaks in prod, you're reconstructing from memory and git logs.The solution:
/governancegenerates an Ed25519 session identity and signs a receipt for every destructive action. Receipts form a hash chain — delete or modify any receipt and the chain breaks. Scope enforcement blocks actions outside the declared authority.Features
.gstack-scope.jsondeclares what this agent is allowed to do/governance + /ship,/governance + /careful,/governance + /guardScope file format
{ "allowed": ["read", "write", "test", "review"], "blocked": ["deploy", "db_migrate", "force_push"], "principal": "garry" }Why this matters
When you have 3+ gstack sessions running simultaneously (as the README describes), and one of them ships a broken deploy, you need to answer: which session, which command, when, and was it authorized?
/governanceanswers all four with cryptographic proof.Optional: external verification
For teams that want external accountability, receipts are compatible with the Agent Passport System — but this is entirely optional.
/governanceworks standalone with zero npm dependencies.