agentleFS
dawiddiwaddawiddiwad/checkmate/.agents/skills/update-model-policy/SKILL.md

update-model-policy

Skill4 starsChanged 2 months agoMITView on GitHub

Update Checkmate model selection, provider request behavior, egress controls, and token accounting while preserving manifest ownership.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read .agents/wiki/architecture.md for runtime ownership.

    line 10
  2. Distinctive:

    Verify changed provider capabilities against current official documentation when necessary.

    line 26
  3. Very specific:

    Update the relevant policy/egress and usage suites under src/test/config/, src/test/runtime/, and src/test/openai-client-retry.test.ts.

    line 30
  4. Very specific:

    Keep affected configuration docs and examples aligned with schemas.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ownership

The selected manifest policy owns provider, model, endpoint, API-key binding, generation settings, and egress controls. There is no implicit model default or runtime pricing table. Requests can select an approved policy and tighten scenario timeout or token budget; they cannot override model settings.

Read .agents/wiki/architecture.md for runtime ownership. Inspect only the relevant boundaries:

  • src/contracts/schemas/checkmate-config.v1.json, src/contracts/schemas/run-request.v1.json, and src/contracts/types.ts for wire contracts.
  • src/config/model-egress.ts, src/config/policy.ts, and src/api/prepare-run.ts for static validation and effective policy.
  • src/ai/client.ts, src/ai/rate-limit-policy.ts, and src/ai/turn-processor.ts for provider adaptation and bounded request retries.
  • src/runtime/usage-tracker.ts for token accounting; src/runtime/config.ts is internal, not another operator configuration source.
  • docs/CONFIGURATION.md and .env.example for setup guidance; test/acceptance/ollama-cli.mjs owns test-only environment loading.

Preserve These Boundaries

  • Validate settings without importing executable drivers or retaining secret values. Runtime secrets use invocation-local readers.
  • Apply model-egress text redaction, opaque-content permission, and byte limits before provider adaptation. Evidence redaction is a separate policy; diagnostic sanitization is mandatory under either setting.
  • Count the response that crosses the token ceiling. Wholly missing usage is fatal only with an active ceiling; malformed or partial usage is always fatal. Do not introduce costs or USD budgets.
  • Provider-request retries remain bounded; they do not authorize whole-scenario retries or target rollback.
  • Normal CLI/API calls do not implicitly load .env or provider settings from environment variables. The selected live test harness explicitly loads its environment and writes a temporary manifest.

Verify changed provider capabilities against current official documentation when necessary. Do not change operator model choices, example models, or credentials merely because a newer model exists.

Verification

Update the relevant policy/egress and usage suites under src/test/config/, src/test/runtime/, and src/test/openai-client-retry.test.ts. Fake-provider tests should inspect the actual outgoing request, not only resolved configuration.

Keep affected configuration docs and examples aligned with schemas. Preserve unrelated user edits. Run npm run phase:verify; use npm run phase:verify -- --live when live acceptance is required and configured. Missing live inputs fail rather than skip, and secret values must not appear in output.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.