From cec927df81875d62f2d370ed62ae71b21f98b424 Mon Sep 17 00:00:00 2001 From: Michael Dieringer <65093775+MichaelDieringer@users.noreply.github.com> Date: Tue, 23 Jun 2026 22:19:02 +0200 Subject: [PATCH] Foreslaa regel: Agent must resolve developer identity from BC --- ...must-resolve-developer-identity-from-bc.md | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 custom/knowledge/mcp/agent-must-resolve-developer-identity-from-bc.md diff --git a/custom/knowledge/mcp/agent-must-resolve-developer-identity-from-bc.md b/custom/knowledge/mcp/agent-must-resolve-developer-identity-from-bc.md new file mode 100644 index 0000000..1476dc0 --- /dev/null +++ b/custom/knowledge/mcp/agent-must-resolve-developer-identity-from-bc.md @@ -0,0 +1,48 @@ +--- +rule-id: CURABIS-MCP-007 +title: Agent must resolve developer identity from BC +category: mcp +severity: warning +applies-to: [agent-files, bc-mcp] +bc-version: [all] +--- + +# Agent must resolve developer identity from BC + +## Rule + +Agent files must not contain static employee-to-code mappings. +Developer identity must always be resolved at runtime from the BC users tool (PAG6102903). + +## Rationale + +Employee data is owned by the company, not by any individual project. A static mapping +in a project-level agent file duplicates company data and will silently drift on every +personnel change -- a new hire is missing, a former employee remains listed. + +The BC users page (PAG6102903) is the single source of truth for employeeCode + name ++ userId mapping. Resolving identity at runtime ensures attribution is always correct +without any maintenance overhead on the project side. + +## What this prevents + +- Incorrect task attribution after an employee leaves or changes role +- N agent files requiring manual update for a single personnel change +- Silent drift where an agent signs comments with the wrong name + +## Correct pattern + +In bc-mcp agent: always resolve at runtime. +git config user.email -> look up via users tool (PAG6102903) -> employeeCode + name + +## Incorrect pattern + +Static employee tables in agent files are forbidden: + + | MID | Michael Dieringer | Developer | + | LIT | Linh | Consultant | + +## Exceptions + +None. If the users tool is temporarily unavailable, say so and stop -- do not fall back +to a hardcoded table. \ No newline at end of file