From 96f3fc078972887fa5bbb1da5a7419f033bd4033 Mon Sep 17 00:00:00 2001 From: lukemaj Date: Sun, 15 Nov 2026 17:28:47 +0100 Subject: [PATCH] fix: paid delegation briefs name spend scope and cap (#269) --- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- .grok-plugin/plugin.json | 2 +- .muse-plugin/plugin.json | 2 +- CHANGELOG.md | 6 ++++++ VERSION | 2 +- global/AGENTS.md | 8 ++++---- skills/operations/references/orchestration.md | 4 +++- tests/test_operations_contract.py | 15 +++++++++++++++ tools/versionctl/pyproject.toml | 2 +- 10 files changed, 34 insertions(+), 11 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 72628a3..23730b3 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentsmd", - "version": "17.4.8", + "version": "17.4.9", "description": "Portable agent rules, Project Direction, Delivery System profiles, owned workflow Skills, and deterministic version control.", "author": { "name": "lukaszmaj" diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index edfd009..0e691f2 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentsmd", - "version": "17.4.8", + "version": "17.4.9", "description": "Portable agent rules, Project Direction, Delivery System profiles, owned workflow Skills, and deterministic version control.", "author": { "name": "lukaszmaj", diff --git a/.grok-plugin/plugin.json b/.grok-plugin/plugin.json index ad956aa..e30cef7 100644 --- a/.grok-plugin/plugin.json +++ b/.grok-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentsmd", - "version": "17.4.8", + "version": "17.4.9", "description": "Portable agent rules, Project Direction, Delivery System profiles, owned workflow Skills, and deterministic version control.", "author": { "name": "lukaszmaj" diff --git a/.muse-plugin/plugin.json b/.muse-plugin/plugin.json index 4073261..59c8ce3 100644 --- a/.muse-plugin/plugin.json +++ b/.muse-plugin/plugin.json @@ -2,7 +2,7 @@ "schemaVersion": 1, "name": "agentsmd", "displayName": "AgentsMD", - "version": "17.4.8", + "version": "17.4.9", "description": "Portable agent rules, Project Direction, Delivery System profiles, owned workflow Skills, and deterministic version control.", "compat": { "source": "native", diff --git a/CHANGELOG.md b/CHANGELOG.md index 21b4177..9bf6691 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All completed repository versions are recorded here. Release entries follow SemVer and identify one user-consumable repository state. +## [17.4.9] - 2026-11-15 + +### Changed + +- Paid delegation briefs name scope, sample count and spend cap (#269) + ## [17.4.8] - 2026-11-13 ### Changed diff --git a/VERSION b/VERSION index f0e1edd..bf2c4a3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.4.8 +17.4.9 diff --git a/global/AGENTS.md b/global/AGENTS.md index 315e71c..5328529 100644 --- a/global/AGENTS.md +++ b/global/AGENTS.md @@ -317,10 +317,10 @@ Authority through routine in-scope steps without asking again. - Apply Authority and continuation before requesting another approval. - Release, publication, distribution, deployment, installation, production - impact, credentials, access, customer data, billing, credit spending, money - movement, destructive deletion outside the repository, and irreversible - migration need explicit Delivery Authority for that exact operation and - target. + impact, credentials, access, customer data, billing, credit spending + (including paid eval and benchmark runs), money movement, destructive + deletion outside the repository, and irreversible migration need explicit + Delivery Authority for that exact operation and target. - Keep secrets, private data, and unrelated personal information out of commits, Issues, PRs, logs, and screenshots. diff --git a/skills/operations/references/orchestration.md b/skills/operations/references/orchestration.md index 87bf2aa..59d4dbd 100644 --- a/skills/operations/references/orchestration.md +++ b/skills/operations/references/orchestration.md @@ -66,7 +66,9 @@ when sufficient. Include the unit's outcome, allowed and forbidden writes, shared-resource limits, acceptance, proof seam, known gotchas, report shape, and bounded escalation -condition. The report shape for a negative result (not possible, cannot remove, +condition. When the unit makes paid model or API calls, the brief also names +the exact calls or cases, the sample count, and a spend cap; a worker that +would exceed the cap stops and reports. The report shape for a negative result (not possible, cannot remove, blocked, no recipe, or failed) lists what was tried and which primary sources were checked: the tool's own docs and bundled README, its `--help`, its environment variables, and its config keys. Do not dispatch unresolved diff --git a/tests/test_operations_contract.py b/tests/test_operations_contract.py index cbc8077..c4fc292 100644 --- a/tests/test_operations_contract.py +++ b/tests/test_operations_contract.py @@ -308,6 +308,21 @@ def test_new_component_waits_for_a_reviewed_spec(self): spec = (SKILL.parent / "procedures/to-spec/index.md").read_text(encoding="utf-8") self.assertIn("## Design review", spec) + def test_paid_briefs_name_scope_sample_count_and_spend_cap(self): + # Issue #269: a worker ran an unrequested full eval suite and drained + # paid credits, because the brief named no spend scope and the Human + # Gate did not say evals count as credit spending. + orchestration = words(SKILL.parent / "references/orchestration.md") + for clause in ( + "When the unit makes paid model or API calls", + "the brief also names the exact calls or cases, the sample count, and a spend cap", + "a worker that would exceed the cap stops and reports", + ): + with self.subTest(clause=clause): + self.assertIn(clause, orchestration) + gates = words(ROOT / "global/AGENTS.md").split("## Human gates", 1)[1].split(" ## ", 1)[0] + self.assertIn("credit spending (including paid eval and benchmark runs)", gates) + def test_review_verdict_is_a_commit_status_on_the_exact_head(self): verification = words(SKILL.parent / "references/verification.md") for clause in ( diff --git a/tools/versionctl/pyproject.toml b/tools/versionctl/pyproject.toml index 2979877..38e90c8 100644 --- a/tools/versionctl/pyproject.toml +++ b/tools/versionctl/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "toolboxmd-versionctl" -version = "17.4.8" +version = "17.4.9" description = "Deterministic repository version mechanics for coding agents" readme = "README.md" requires-python = ">=3.11"