Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
ci / node suites (push) Has been cancelled
Agent-session isolation: rit push (RITHUB_AGENT_SESSION_ID set) now auto-targets agent/<sessionId> instead of the local branch, so parallel agent sessions sharing one token can never collide on the same ref. Push approval: a force-push, branch delete, or push to a protected branch made with an agent-session token is held instead of landing -- new apps/rithub-approvals service (pm2, 127.0.0.1:3361, Caddy /approvals*) stages it on an unprotected refs/pending/<id> ref, then a named human with push/admin on the repo lands it with their OWN token (rit push approve <id>, web UI at /approvals) or discards it (rit push deny <id>). No stored admin credential: every git/API call uses the caller's own token. rit branch delete gets the same hold when a session id is set. @recoder.xyz/rithub bumped 0.3.1 -> 0.3.2, published to npm, new `push approve|deny|status|list` subcommands plus `--to`/`--force`/ `--reason` on `push`. Live-verified end to end on rithub.dev (mail.tm test account, deleted after): two parallel agent sessions pushed to distinct agent/<id> branches with zero collision; a held push to master was approved via both `rit push approve` and the /approvals web UI and landed exactly the staged commit; a held push was denied and never touched master; a held branch delete was approved (branch gone) and a second one denied (branch stayed). Test repo, Gitea user, and mail.tm inbox all deleted and confirmed 404/204 after.
15 lines
545 B
JSON
15 lines
545 B
JSON
{
|
|
"name": "rithub-approvals",
|
|
"version": "0.1.0",
|
|
"description": "Rithub agent push approval (RIT-ACT): an agent-session force-push, branch delete, or push to a protected branch is held until a named human with push/admin on the repo approves it (with their own token) or denies it. No approval can ever do more than the approving human's own Rithub permissions already allow.",
|
|
"type": "module",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"start": "node bin/start.mjs"
|
|
},
|
|
"license": "UNLICENSED"
|
|
}
|