Skip to content

feat(tools): declare subject and action on the agent tool catalogue - #259

Merged
rubenvdlinde merged 1 commit into
developmentfrom
feat/tool-taxonomy-subject-action
Aug 19, 2026
Merged

feat(tools): declare subject and action on the agent tool catalogue#259
rubenvdlinde merged 1 commit into
developmentfrom
feat/tool-taxonomy-subject-action

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

The other half of the ADR-095 grant work: ADR-095 fixed how grants are stored; this declares what they are stored about.

Measured live against /apps/hermiq/api/agents/tools87 of 177 tools across the fleet declared no subject or action, so the grant matrix fell back to guessing from the tool id.

🔴 An undeclared field here is invisible. ToolRegistryFacade::describeTools() deliberately returns null rather than inferring a subject — the right call, since a consumer cannot tell an inferred subject from a real one — so a descriptor missing these keys produces no error, no warning and no failing test. That is how 87 went unnoticed.

⚠️ The action vocabulary is deliberately not closed to CRUD, because the matrix grants on this value. Tools that promote a release, start a meeting, render a forecast, convert a file, send mail or delegate authority say so, rather than being filed under the nearest CRUD verb. Flattening those would be a security statement, not a naming one.

Verified live end-to-end: 87 → 0 undeclared of 177, across 16 distinct actions and 79 subjects.

Companion PRs: openregister#2574 (the 25 OR tools + the #[McpTool] attribute), hermiq#380.

Part of the fleet-wide taxonomy pass. Measured live against
`/apps/hermiq/api/agents/tools`: **87 of 177 tools across the fleet declared
no subject or action**, so the agent grant matrix fell back to guessing from
the tool id and rendered them as ungroupable one-off rows.

🔴 The reason this went unnoticed is that an undeclared field here is
INVISIBLE. `ToolRegistryFacade::describeTools()` deliberately returns null
rather than inferring a subject from the id — the right call, since a consumer
cannot tell an inferred subject from a real one — so a descriptor missing these
keys produces no error, no warning and no failing test.

⚠️ The action vocabulary is deliberately NOT closed to CRUD, because the matrix
GRANTS on this value. A tool that promotes a release, starts a meeting, renders
a forecast or converts a file says so, rather than being filed under the
nearest CRUD verb — flattening those would be a security statement, not a
naming one.

Verified live end-to-end: the endpoint now reports **0** undeclared of 177,
across 16 distinct actions and 79 subjects.
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/openbuild @ a283272

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-manifest
test-l10n
check-gitignore
check-nc-floor
format
composer ✅ 106/106
npm ✅ 626/626
app:check-code ⏭️
info.xml
REUSE
PHPUnit
Newman
Playwright
Hydra gates

Quality workflow — 2026-08-19 09:09 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde
rubenvdlinde merged commit 82fdf1b into development Aug 19, 2026
149 of 156 checks passed
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.

2 participants