Skip to content

fix(agent): grant the agent role INSERT and UPDATE on board_accounts (#446) — v1.68.1 - #447

Merged
CryptoJones merged 2 commits into
mainfrom
fix/446-agent-board-accounts-grant
Oct 13, 2026
Merged

CryptoJones merged 2 commits into
mainfrom
fix/446-agent-board-accounts-grant

Conversation

@CryptoJones

Copy link
Copy Markdown
Owner

Closes #446

What

Migrations/Always/agent_role.sql now grants applytrack_agent INSERT and UPDATE on board_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, and 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, on every tick since 2026-10-10 16:25 CDT. The last agent_events row 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_one connects as the agent role and runs the three writes, then proves a delete is refused.

Release

chore: prepare v1.68.1 release bumps 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

CryptoJones and others added 2 commits October 13, 2026 03:09
…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
@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: fc92caba-88bf-4139-ba03-916cb33d51bd
📥 Commits

Reviewing files that changed from the base of the PR and between b508208 and 337059f.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (7)
  • .env.production.example
  • BACKLOG.md
  • api/ApplyTrack.Api.Tests/DbRoleTests.cs
  • api/ApplyTrack.Api/ApplyTrack.Api.csproj
  • api/ApplyTrack.Api/Migrations/Always/agent_role.sql
  • pyproject.toml
  • src/applytrack/__init__.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@CryptoJones
CryptoJones merged commit c37b3e7 into main Oct 13, 2026
6 checks passed
@CryptoJones
CryptoJones deleted the fix/446-agent-board-accounts-grant branch October 13, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent role cannot write board_accounts: every judging pass has died since 2026-10-10 (permission denied for table board_accounts)

1 participant