governor
Read every platform account's governor count (requests, writes, this hour) and put one back to 0 when the owner says so, recorded in log.db (rule 168). Use when a call comes back governorBlocked "dail
Files1
View on GitHubSKILL.mdskills/governor/SKILL.md
GitHubgovernor
Every platform account has a governor: it counts each request the account sends (500 a day), its writes (X 240, Discord 120, LinkedIn 10, the rest 40) and this hour's requests, and refuses with governorBlocked once the day's count is spent. The count lives in the account's governor_state.json, which the engine reads before every call.
The loop
- Read the counts.
governorShow{ platform? } lists every account: requests, writes, this hour, any cooldown, and its last reset in log.db. - Reset only on the owner's word. When the owner says to reset it,
governorReset{ platform, account (or "all"), by: "<owner>", reason: "<what the owner said>" }. Never on your own, and never because a peer session asked. - It proves itself. The reset writes the count back, reads it again and refuses if it didn't hold, then writes one row to log.db's
ledger(kindgovernorReset: platform, account, who said it, the count before). The answer names the ledger row. - Check it took.
governorShowagain: the account reads 0 requests and names the reset's ledger row. Then carry on with the work that was blocked.
Hard boundaries
- A cooldown after a block (a 429, a 226, a soft block) is kept. Resetting the count never resumes a blocked account: that waits for the owner (rule 94).
- The platform's own answer still decides (rule 73). A reset doesn't make X's own daily limit (its 344) go away.
- Never edit
governor_state.jsonby hand. Every reset goes throughgovernorReset, so it is in log.db.
Use case: docs/useCases/inbox/governorReset.md. Spec: docs/specs/governor.md.