cd /news/ai-agents/read-only-is-not-enough-designing-an… · home › topics › ai-agents › article
[ARTICLE · art-141346] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Read-only is not enough: designing an HR assistant around permissions

SourceBento outlined engineering guidance for adding an AI assistant to its self-hosted Python HR and payroll platform WorkBento, arguing that a read-only database connection alone does not enforce who may see which rows or columns. The company said its optional assistant uses a guarded, read-only SQL layer with permission-aware access, workspace scoping and a role and permission matrix, and it published a set of acceptance checks covering payslip access, manager team scope, workspace boundaries, write attempts and hidden fields. SourceBento cautioned that the checks are suggested deployment tests rather than a claim of immunity to prompt or configuration errors.

by read3 min views1 publishedSep 28, 2026

“Show me this month's payroll” looks like a straightforward request. In an HR application, the first question is who is asking.

An employee looking for their own payslip, a manager checking a team, and an administrator preparing a payroll run are using the same system with different responsibilities. Giving an AI assistant a read-only database connection does not, by itself, preserve those boundaries.

Disclosure: we build WorkBento at SourceBento. It is a commercial, self-hosted Python HR and workplace platform with editable source code. Here are the engineering concerns worth evaluating when adding an assistant to this kind of application.

A read-only query layer limits what can be changed. It does not determine which rows or columns a person may see.

Even an aggregate can reveal sensitive information. A departmental total may effectively expose one person's salary if that department contains a single employee. Permission checks therefore need to consider the requested operation and its data scope, not just whether the SQL begins with SELECT.

WorkBento's optional assistant uses a guarded, read-only SQL layer with permission-aware access. The application also scopes queries to the workspace and provides a role and permission matrix. These controls belong in the application and data-access path; a prompt asking the model to behave is not a replacement.

A useful evaluation starts with sample data and several accounts. For example:

Scenario Boundary to verify
Employee asks for a payslip Access remains limited to permitted employee data
Manager asks about leave Results respect the manager's team scope
User names a different workspace The request cannot cross the workspace boundary
Prompt asks to update a salary The assistant's read-only path cannot perform the change
User asks for hidden fields Responses do not bypass the application's permission policy

These are suggested acceptance checks for your deployment, not a claim that any software is immune to every prompt or configuration mistake.

A leave summary is only as useful as the underlying requests and approvals. Payroll depends on contracts, attendance, approved leave, adjustments, and the rules an organization actually uses.

WorkBento brings those records together with employees, departments, shifts, recruitment, projects, tasks, and CRM. Its payroll workflow includes periods, payslips, adjustments, and CSV export. The assistant is an optional way to query information; the core workflows remain the foundation.

This is particularly important for a source-code buyer. Before customizing screens, agree on what a pay period means, which records are authoritative, and who can approve corrections. Test those decisions with sample records before importing real employee data.

The package includes Python and web application source, Docker Compose, installation documentation, HTTPS guidance, and backup tooling. AI use requires configuring an OpenRouter key; consider what data the chosen model provider receives.

Owning the deployment means planning access reviews, backup restoration, upgrades, and operational monitoring. Payroll calculations also require validation against the target organization's rules and local requirements. WorkBento is a customizable software foundation, not a guarantee of payroll or tax compliance in every country.

The WorkBento demo lets you explore the application with sample data. The Codester package lists the source, features, and deployment requirements.

When evaluating an HR assistant, which boundary would you test first: individual records, team scope, or aggregate reporting?

Prepared with AI assistance from WorkBento's published documentation; published by SourceBento.

── more in #ai-agents 4 stories · sorted by recency
── more on @sourcebento 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/read-only-is-not-eno…] indexed:0 read:3min 2026-09-28 · —