Repository navigation
fix(agent): grant the agent role INSERT and UPDATE on board_accounts (#446) — v1.68.1 - #447
Merged
Merged
Conversation
…446) agent_role.sql gave applytrack_agent INSERT/UPDATE on its own tables but not on board_accounts, which the agent writes when it takes a Sign in now, keeps the session it renewed, or saves an account #277 just made. RenewSessionsAsync runs before the judging pass, so once greenhouse.io's session came due every pass on pluto died with "permission denied for table board_accounts" (every tick since 2026-10-10 16:25 CDT; the last agent_events row is from 2026-10-09). The grant is re-applied on every boot like the rest of the script. Still no DELETE: an account is removed only by the person, from Settings. DbRoleTests proves the three writes and that a delete is refused. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015Xrsyx9xJYfnT2BzLMNFsB
Bump all five version files to 1.68.1 and add #446 to BACKLOG.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015Xrsyx9xJYfnT2BzLMNFsB
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 16 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Closes #446
What
Migrations/Always/agent_role.sqlnow grantsapplytrack_agentINSERT and UPDATE onboard_accounts. The agent writes that table in three places: taking a Sign in now (TakeRenewalRequestAsync), keeping the session it renewed (StoreSessionAsync) and saving an account #277 just created (UpsertAsync). None had a grant, andRenewSessionsAsyncruns before the judging pass, so once greenhouse.io's session came due every pass on pluto died withpermission denied for table board_accounts, on every tick since 2026-10-10 16:25 CDT. The lastagent_eventsrow is from 2026-10-09.Still no DELETE: an account is removed only by the person, from Settings.
Tests
DbRoleTests.The_agent_role_writes_board_accounts_but_never_deletes_oneconnects as the agent role and runs the three writes, then proves a delete is refused.Release
chore: prepare v1.68.1 releasebumps all five version files. The api container re-applies the grant on boot, so the deploy is the fix.Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/
🤖 Generated with Claude Code
https://claude.ai/code/session_015Xrsyx9xJYfnT2BzLMNFsB