When an employee changes departments, why check the agent's old access separately?

When an employee changes departments, why check the agent’s old access separately?

Why wouldn’t an employee’s move from procurement to finance automatically change everything their agent can do? The personnel record is one part of the change. The agent has its own identity, may have an open workspace, and may be holding credentials issued before the transfer. A new box on the organisation chart does not prove that a running process has stopped or that its access has been reviewed. Treating the transfer as a change to a name and department field misses the operational question: what can the agent still reach right now?

Picture a general handover. Someone who used an agent to compare supplier quotes takes a role in finance and begins preparing invoice reconciliations. They should not gain finance access merely by telling a model they have moved. Nor should procurement documents become part of the new role by accident. This is a scenario for testing boundaries, not a customer case. It exposes three questions worth answering separately. Which agent can the person start? Which department’s rules are associated with that agent? What happens to a session and its existing credentials while the transfer is under way?

A person’s login is not the agent’s identity

Accepted ADR-0007 in agentic-organization assigns a separate principal to a workstation agent. The person signs in to the platform, then selects an eligible persona. The GET /workstation/personas endpoint lists active agents that user is allowed to operate. POST /workstation/persona-token issues an access and refresh pair for the selected agent. In backend/api/workstation.py, selection is checked against relationships such as the agent’s responsible human; a request for a persona outside the caller’s allowed list is rejected. The resulting access token identifies the agent to the gateway and audit ingestion, rather than simply reusing the person’s browser identity.

That distinction has a mundane organisational payoff. If two agents shared a company-wide credential, separating their actions and revoking only one would be difficult. A permanent key per agent offers clearer attribution but leaves a leaked key useful for too long. ADR-0007 weighs that option against short-lived tokens and the heavier operational burden of mutual TLS. It chooses short-lived access with refresh and server-side revocation as its starting point. None of this says the agent’s work is automatically correct. It makes the actor and the credential that should be disabled easier to identify. Our earlier piece on agent identity covers that foundation; a department transfer asks whether the foundation survives a real handover.

Does editing the department close a running session?

The answer cannot be inferred from the personnel form alone. In backend/services/workspace_agent.py, creating a person’s workspace agent places it in the owner’s department. On a later call, ensure_workspace_agent also synchronises an existing agent’s department if it differs from the owner’s. That is useful, but it is not the same as saying every edit to a human’s personnel record immediately calls that function and terminates every existing session. The update path in backend/api/personnel.py and the workspace path that ensures the agent are distinct. A handover procedure needs to check the actual agent record and any live workspace, not assume the UI field changed all downstream state.

A persona token carries the agent’s identity and its audience; it is not itself a transfer workflow. On protected requests, backend/api/deps.py verifies the token, consults revocation state, checks the agent and company records, and on gateway and execution surfaces requires an active agent. These checks matter at a real API boundary. They do not, by themselves, establish that moving the human to another department instantly cancels every token issued earlier. The boundaries are specific. A review should say which boundary was tested rather than claiming that one personnel update synchronously resets everything.

ADR-0007 includes an explicit response to a credential that should no longer be trusted. POST /workstation/persona-token/revoke sets a marker that invalidates tokens issued earlier for that persona. backend/services/persona_revocation.py treats an unavailable revocation check as a rejection for protected requests. That is useful for a lost device or a suspicious session. It is not an irreversible deletion of the agent: a fresh, authorised sign-in can mint a new token after the marker. Revocation also does not rewrite document access rules. The person’s new responsibility and the agent’s allowed resources must be checked before normal work resumes.

One transfer, several departmental questions

Procurement needs to know whether old quotations remain available when no longer needed. Finance needs a clear point at which invoice access becomes appropriate, and whose work the resulting gateway calls belong to. In production, a shift handover can pose the same question for maintenance records and unfinished work. HR owns the change in responsibility, but it cannot verify a token has actually stopped being accepted merely by updating a title. IT has to test the old session, inspect the agent’s department assignment, and verify the new session uses the intended persona. The same technical control matters differently to each department because their records and decisions differ.

A useful handover starts with one person and one agent. Compare the agent’s responsible human, status and department against the new assignment. Find out when the workspace path actually re-synchronises the agent’s department instead of assuming it happened when the personnel form was saved. Revoke the old persona tokens where appropriate and, in a safe test, check that a protected request using the old credential is refused. Then inspect the persona list and the scope of a new login. Finally check the underlying document and tool permissions independently. An identity check is necessary, but it does not replace a review of what the identity is authorised to read or change.

Timing matters too. ADR-0007 documents a default workstation access lifetime of roughly one hour and a refresh lifetime of roughly twelve hours; both are configurable. Refresh inside a long-running workstation sandbox remains an open issue, and automatic revocation on stale heartbeat is opt-in rather than enabled by default. Meanwhile backend/api/workspaces.py can issue a separate workspace runtime token with a longer configurable default. It would be inaccurate to claim that every agent process automatically loses access after the workstation default expires. During a transfer, ask which runtime and credential are actually in use, then test that particular path.

A department move is a small but revealing test of whether an agent is really being managed as a member of the organisation rather than as a line in a prompt. ADR-0007 in agentic-organization defines persona identity and revocation, while ADR-0019 explains the person-linked workspace agent. For any team making a similar handover, checking “the person’s record changed” and “the agent’s current access changed” as separate statements is useful even before choosing a platform.

Verification note: The design and implementation distinctions here were checked against ADR-0007, ADR-0019, backend/api/workstation.py, backend/api/deps.py, backend/api/personnel.py, backend/api/workspaces.py, backend/services/workspace_agent.py and backend/services/persona_revocation.py in agentic-organization, together with the workstation identity guide and its open issues.