diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 24866fd..5fa0084 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -12,7 +12,7 @@ "displayName": "Agent Stack", "source": "./plugins/agent-stack", "description": "Four skills: agent-orchestrator — tool-calling loops, pipelines with checkpoints, provider routing with fallback, memory architecture, plus the wallet side of reselling LLM access; agent-evals — run/trace/thread evals, LLM judges, and fixtures grown from production; agent-interop — MCP servers and clients, A2A agent cards, the MCP Registry, and gateways; agent-harness — system prompts, tool shaping, workflow-vs-agent, and auditing an agent system.", - "version": "0.33.2", + "version": "0.33.3", "author": { "name": "ssheleg", "url": "https://x.com/sshlg93" diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b56fa4..b8a86c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## v0.33.3: the ledger guard, and what the Fabric contract accepts + +- **`test/audit_regressions/ledger-names-shipped-version.py`**: the first release candidate in + `docs/evidence/verification.md` must equal `package.json`'s version. v0.33.0 shipped without + its row and the hub's member-ledger ratchet refused the pin, which cost v0.33.1; the refusal + now happens in this gate, before the tag. +- **agent-interop `mcp-two-doors.md`**: fabric-agent-contract `v0.1.0+2026-11-19` (DEC-0182) + checks a capability missing from a compact `tools/list` against the same-named `search` + operation, so FAC-SEM-017 no longer forces old names back into the list; folding + `fabric.job.*` into `execute` is the contract's row CT-345; the service kit's + `serve_compact(domain)` (fabric-agent-adapter 0.98.0). Spec pin and read date updated. + ## v0.33.2: old tool names stay callable; the `Mcp-Name` trap - **agent-interop `mcp-two-doors.md`**, "Moving an existing server": an old tool name leaves diff --git a/SKILL-CARD.md b/SKILL-CARD.md index 4328474..58b7e73 100644 --- a/SKILL-CARD.md +++ b/SKILL-CARD.md @@ -5,7 +5,7 @@ | Field | Value | |---|---| | Pack | `agent-stack` | -| Version | `0.33.2` | +| Version | `0.33.3` | | Skills | `agent-orchestrator`, `agent-evals`, `agent-interop`, `agent-harness` | | License | MIT | | Source | https://github.com/ssheleg/agent-stack | diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md index 8cf690b..ee994f4 100644 --- a/docs/HANDOFF.md +++ b/docs/HANDOFF.md @@ -1,3 +1,9 @@ +## v0.33.3: ledger guard, contract DEC-0182 (2026-11-19) + +- **Done.** The ledger-version guard (grade-1 fix for the v0.33.1 detour, retro in the + sshlg-skills hub); `mcp-two-doors.md` cites the Fabric contract tag `v0.1.0+2026-11-19`. +- **Next task.** After release: the sshlg-skills pin to 0.33.3. + ## v0.33.2: old tool names stay callable (2026-11-18) - **Done.** `mcp-two-doors.md` step 3 and the checklist follow the agents database's R28 diff --git a/docs/evidence/verification.md b/docs/evidence/verification.md index 83e03b0..6427fc9 100644 --- a/docs/evidence/verification.md +++ b/docs/evidence/verification.md @@ -10,6 +10,14 @@ This file exists because its absence read as zero exposure. `sshlg-skills` board --- +## Release candidate: v0.33.3 (2026-11-19) + +The member gate refuses a tree whose ledger does not name the version it ships +(`test/audit_regressions/ledger-names-shipped-version.py`, seen failing on this tree before +this row was written); `mcp-two-doors.md` records what the Fabric contract accepts from +`v0.1.0+2026-11-19` (DEC-0182). Evidence: the repository gate exits 0 on the candidate tree; +the PR CI run and the tag release run are named in docs/HANDOFF.md. + ## Release candidate: v0.33.2 (2026-11-18) The two-door doctrine follows the agents database's decision on R28 (shipped names are only diff --git a/package.json b/package.json index f464cdb..5dae452 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ssheleg/agent-stack", - "version": "0.33.2", + "version": "0.33.3", "scripts": { "test": "python3 test/validate.py && python3 test/family_gate.py && python3 test/family_gate.py --self-test && python3 test/plant_guard_test.py && python3 test/member_owner_gates_test.py && python3 test/reap_own_test.py && node test/installer_test.js && npm run test:audit", "test:audit": "for t in test/audit_regressions/*.py; do python3 \"$t\" || exit 1; done" diff --git a/plugins/agent-stack/.claude-plugin/plugin.json b/plugins/agent-stack/.claude-plugin/plugin.json index 294df97..3f51837 100644 --- a/plugins/agent-stack/.claude-plugin/plugin.json +++ b/plugins/agent-stack/.claude-plugin/plugin.json @@ -3,7 +3,7 @@ "name": "agent-stack", "displayName": "Agent Stack", "description": "Four skills: agent-orchestrator — tool-calling loops, pipelines with checkpoints, provider routing with fallback, memory architecture, plus the wallet side of reselling LLM access; agent-evals — run/trace/thread evals, LLM judges, and fixtures grown from production; agent-interop — MCP servers and clients, A2A agent cards, the MCP Registry, and gateways; agent-harness — system prompts, tool shaping, workflow-vs-agent, and auditing an agent system.", - "version": "0.33.2", + "version": "0.33.3", "author": { "name": "ssheleg", "url": "https://x.com/sshlg93" diff --git a/plugins/agent-stack/skills/agent-interop/references/mcp-two-doors.md b/plugins/agent-stack/skills/agent-interop/references/mcp-two-doors.md index 69c5526..8d47768 100644 --- a/plugins/agent-stack/skills/agent-interop/references/mcp-two-doors.md +++ b/plugins/agent-stack/skills/agent-interop/references/mcp-two-doors.md @@ -4,7 +4,7 @@ agent's server, a product's agent surface, a data room, a gateway's own tools); or a server's `tools/list` shows more than two tools. -**Spec pinned:** MCP revision `2026-07-28` (`tools/list`, `tools/call`, `outputSchema`, `isError`); the operator's rule of 2026-11-18 (fabric-agents-database session b590fc74: «два входа только поиски и экзекьюция ... best practice всегда для проектирования mcp ... особенно на датарумы») · read 2026-11-18 +**Spec pinned:** MCP revision `2026-07-28` (`tools/list`, `tools/call`, `outputSchema`, `isError`); fabric-agent-contract `v0.1.0+2026-11-19` (DEC-0182); the operator's rule of 2026-11-18 (fabric-agents-database session b590fc74: «два входа только поиски и экзекьюция ... best practice всегда для проектирования mcp ... особенно на датарумы») · read 2026-11-19 ## Contents @@ -119,6 +119,14 @@ Tools that a protocol outside the server requires by name (for example the Fabri `fabric.job.get` and `fabric.job.cancel` under `fabric-interop/0.1`) count against the three, with that contract recorded as the reason, until the contract lets them fold into `execute`. +**What the Fabric contract accepts (tag `v0.1.0+2026-11-19`, DEC-0182).** A declared +capability that is absent from a compact `tools/list` is checked against the operation of the +same name in the `search` catalogue (name, `inputSchema`, `outputSchema` when present), so the +conformance rule FAC-SEM-017 no longer forces old names back into the list; a service is read as +compact when it lists `search` and `execute`. Folding `fabric.job.get` and `fabric.job.cancel` +into `execute` is the contract's open row CT-345. The Fabric service kit serves this shape with +`McpToolServer.serve_compact(domain)` (fabric-agent-adapter 0.98.0), opt-in until its services move. + ## Moving an existing server to two doors 1. **Inventory.** Every tool becomes an operation with the same name, schema and gate; the diff --git a/test/audit_regressions/ledger-names-shipped-version.py b/test/audit_regressions/ledger-names-shipped-version.py new file mode 100644 index 0000000..cbd322e --- /dev/null +++ b/test/audit_regressions/ledger-names-shipped-version.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python3 +"""The verification ledger names the version this tree ships. + +docs/evidence/verification.md's first `## Release candidate: vX.Y.Z` heading must equal +package.json's version. The sshlg-skills hub refuses to pin a member whose ledger describes an +older version than it ships (its member-ledger ratchet); v0.33.0 shipped without its row on +2026-11-18 and needed v0.33.1, a release for one line. This check moves that refusal into the +member's own gate, before the tag. Stdlib only. +""" +import json +import os +import re +import sys + +ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + + +def first_candidate(text): + m = re.search(r"^## Release candidate: v(\d+\.\d+\.\d+)\b", text, re.M) + return m.group(1) if m else None + + +def check(root): + with open(os.path.join(root, "package.json"), encoding="utf-8") as fh: + version = json.load(fh)["version"] + with open(os.path.join(root, "docs", "evidence", "verification.md"), encoding="utf-8") as fh: + head = first_candidate(fh.read()) + if head != version: + return f"verification.md heads with v{head}, package.json ships {version}: add the v{version} candidate row" + return None + + +def self_test(): + assert first_candidate("x\n## Release candidate: v1.2.3 (2026-01-01)\n## Release candidate: v1.2.2\n") == "1.2.3" + assert first_candidate("## Release candidate: v1.2.2\n") != "1.2.3", "a stale head must not pass" + assert first_candidate("no rows") is None + + +self_test() +err = check(ROOT) +if err: + print(f"FAIL ledger names the shipped version: {err}") + sys.exit(1) +print(" ok ledger names the shipped version")