Skip to content
Agentmart
Submit a tool

adapter-serve-routing

Define and verify deterministic format-conditional adapter routing at inference.

Skill by AnonymousNomad

IndexedApache-2.0★ 53
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/anonymousnomad-adapter-serve-routing

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Define and verify deterministic format-conditional adapter routing at inference. Use whenever a shared base model serves multiple adapter behaviors.

Use cases: ml

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/adapter-serve-routing

What's inside

Skill name
adapter-serve-routing
Description
Define and verify deterministic format-conditional adapter routing at inference. Use whenever a shared base model serves multiple adapter behaviors.
License
Apache-2.0
Instructions
44 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Adapter Serve Routing

The base model is the authority. An adapter is a request-scoped capability, not
a mutable global preference.

## Contract

- `web` request: frozen base + web LoRA adapter.
- `envelope` request: frozen base, adapter disabled.
- `generic` request: frozen base unless the caller explicitly requests `web`.
- `auto` classification is deterministic and conservative; ambiguous input routes
  to the base, never to an adapter.

## Required Invariants

1. Load base and adapter once at startup; fail closed if either configured artifact
   is missing or incompatible.
2. Select the route before generation and hold a request lock through adapter
   selection, state reset, decode, and cleanup.
3. Reset DNA/scratch/KV request state for every request.
4. Restore adapter OFF in a `finally` block after every request.
5. Run inference under `torch.inference_mode()`; never retain autograd graphs in
   a production decode loop.
6. Preserve envelope special tokens; web output must not emit mind-control tags.
7. Expose route and adapter metadata in health/debug output, never secrets or weights.
8. Test adapter-OFF/base equality, route classification, concurrent serialization,
   context bounds, malformed input, and graceful errors.

## Trace Contract

Normal responses contain clean task output only. An explicit trace mode may return
bounded dual-mind summaries and verifier evidence. It must be opt-in, length-capped,
and separate from ordinary output. Do not expose private chain-of-thought or raw
internal model state.

## Verification

- Unit-test every route and boundary.
- Run the train-serve parity battery with adapter ON and OFF.
- Run independent web and envelope gates through the actual serving wrapper.
- Record model lineage, adapter hash, route, metrics, and promotion decision in
  `AGENT_NOTES.md`.

From AnonymousNomad/covert-coder, Apache-2.0.

More from AnonymousNomad/covert-coder

Signals

Stars
53
Forks
15
Open issues
2
Last commit (this folder)
Aug 23, 2026 (2 months ago)
Last release
Aug 10, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from AnonymousNomad

Cite this page

adapter-serve-routing skill. Agent Mart. https://agentmart.dev/skills/anonymousnomad-adapter-serve-routing (last updated 2026-10-24)