Repository navigation
docs(core): clarify declared agent authority contract - #88
Merged
Merged
Conversation
The package-consumer fixture pins fastify@5.8.5 but left its transitive dependencies floating. light-my-request@6.8.0 (2026-10-10) moved to cookie@^2, which is ESM-only and requires Node >= 22, so the Fastify fixture fails with ERR_REQUIRE_ESM on the Node 20.11.1 compatibility job. Pin light-my-request@6.6.0, the last release on cookie@^1. The fixture then resolves cookie@1.1.1 (engines: node >= 18) instead of cookie@2.0.2. No runtime, type, or export change in @workit/core. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
8 tasks done
8 tasks done
AdmilsonCossa
added a commit
that referenced
this pull request
Nov 14, 2026
Bump the workspace and package version to 1.0.1 and record the changelog entry. Maintenance release: the runtime, public exports and TypeScript declarations are unchanged from 1.0.0. 1.0.1 publishes the declared agent tool authority documentation and the corrected CORR-006 title (#88), the Node 20.11 consumer fixture pin (#89), and the release-line evaluation of REL-012 and REL-014 with the 1.0.0 compatibility baseline (#90). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The 1.0 README lists "declared tool authority contracts" for
@workit/core/aiwithout stating when the policy is evaluated.runAgent()evaluatesallowedCapabilitiesanddeniedCapabilitiesonly when anagent.tool()call declarescapability; a tool that omits it is admitted even when an allowlist is present.The CORR-006 claim title said "denies undeclared capability", while its proof exercises a declared capability that is outside the allowlist. The title was stronger than the proof.
Change
Documentation and evidence wording only. No runtime, type, or export change.
packages/core/README.md: add a "Declared Agent Tool Authority" section that states the per-call opt-in contract, the admitted-when-omitted behavior, and what the contract is not.packages/core/evidence/claims.jsonandpackages/core/tests/evidence/correctness/agent-authority.mjs: retitle CORR-006 to "agent authority denies a declared capability outside the allowlist before tool execution". The expected invariant and the proof body are unchanged.Branch history
The Node 20.11.1 compatibility job first failed on this PR because of a floating transitive dependency in the Fastify consumer fixture, independent of this change. That fix landed on
mainthrough #89 (d7cf52e). This branch has been updated frommain, so its diff againstmainis the three documentation and evidence files only.Ownership boundary
runAgent()in@workit/core/airemains the only owner of tool capability evaluation. No new public surface.packages/core/srcis byte-identical tov1.0.0.Evidence
Run on this branch at
5a6acc3, Windows, Node 24.19.0:npm run test:coverage: 33 files, 425 tests passed; statements, branches, functions and lines at 100%.npm run verify: every gate fromtypecheckthroughcheck:exporter-stresspassed, includingtest:evidence(CORR-006) andcheck:evidence-ledger.check:package-consumer:node,check:compat-previous,check:claims,check:public-proof,check:worker-contract,check:release-policy,check:pack-reproducibilityandpack:drypassed when run individually.Limitations
npm run verifystopped locally atcheck:package-consumerbecause the workstation has no Bun executable. The Bun compatibility fixture was not exercised locally and relies on CI.Checklist
npm run test:coveragepasses with 100% statements, branches, functions, and lines.npm run verifypasses, or an environmental limitation is documented. (Bun fixture, see Limitations.)🤖 Generated with Claude Code