Skip to content

infiquetra/fleet-core

v0.33.2MIT

Authored Fleet Core library: staffing (work shape, role, and lens to model and effort), the tier palette and resolver, shared retry and backoff, the run-start intent envelope, the TypeSafe judgment client, and the delegation audit. Consumers receive the modules they declare as build-time bundles.

Fleet Core

The shared library Infiquetra plugins use for staffing, tier vocabulary, rate-limit retry, the run-start intent envelope, TypeSafe judgments, and the delegation audit. It is authored in this repository. The import that moved authorship here took the full module set from infiquetra-claude-plugins at commit acc99fe7, which is upstream Fleet Core 0.32.0. There is no provenance manifest and no upstream pin after that commit.

DEFERRED.md names the one module this package deliberately does not carry, and the one data file kept only because a consumer still declares it.

What is in the package

PathWhat it is
plugin.jsonAgent Plugins manifest. Version 0.32.0.
CHANGELOG.mdVersion history
DEFERRED.mdWhat is deliberately absent, and the residual data file
scripts/jev.pyCommand-line tool for the judgment verbs
references/staffing.mdHow the staffing registry is shaped
references/typesafe.mdData rules the TypeSafe client enforces
references/langfuse.mdData rule, keys and visibility rule the Langfuse client enforces
scripts/fleet_commons/The library modules and their data files

Library modules

ModuleWhat it does
staffing.pyResolves a work shape, role, or review lens to a model and an effort. Reads staffing.json.
tier_palette.pyThe closed model and effort vocabulary, derived at import from staffing.json.
tier_resolver.pyMaps a work shape to a model and an effort, including the one-rung cheaper fallback.
render_tier_table.pyRenders the tier table from staffing.json.
effort_rider.pyHow a resolved effort is honored on each spawn path.
intent_envelope.pyThe one run-start posture schema: run mode, ceremony gates, spend envelope.
retry_backoff.pyShared 429 retry, backoff, and circuit breaker.
audit_store.pyMachine-local delegation audit store.
bridge_receipt.pyProof-of-execution receipt shared by engine bridges.
output_attestation.pyHash-bound proof for bridge-produced output.
merge_guard.pyRefuses a merge that would revert a newer comparison branch.
plugin_resolution.pyFinds a sibling plugin root. It is not the retired discovery shim.
typesafe_client.pyClient for the TypeSafe System One endpoint. Standard library transport, with an optional vendor SDK.
langfuse_client.pyClient for saga's Langfuse project. Standard library only; redacts every payload, refuses private code over plain HTTP, and cannot delete.
jev_verbs.pyNamed judgment verbs: questions, criteria, confidence floor.
jev_log.pyVerdict log and answer cache.
jev_eval.pyScores recorded answers against labels, by confidence band.
jev_widen.pyWiden-only union: a pattern floor a model may raise and may not lower.

The data file beside the modules is staffing.json (palette, work shapes, vendors, ratings, roles). The ordinal cost table was removed on 2026-10-04 because nothing read it. models.json, an earlier data file the palette stopped reading, was removed 2026-09-22 once no bundle declared it any more; see DEFERRED.md.

Requirements

The catalog requires python>=3.12. That is a minimum, not a pin: any later interpreter is in contract. The modules are standard library only and carry from __future__ import annotations. They need no third-party package at run time. The TypeSafe SDK transport imports typesafe-sdk only when a caller selects that transport and does not inject a client.

How a consumer gets a module

Not by installing this package. A consuming plugin lists the modules it needs in fleet-bundle.json. The build step copies each one into that plugin as a generated, read-only, digest-stamped file. The installable artifact is already complete when a user receives it. Agent Plugins has no dependency field, so there is nothing to declare at install time. Saga declares jev_sweep, and the bundler writes scripts/_bundled/jev_sweep.py.

A module that needs another module loads it from the same directory. That is what lets one file work in scripts/fleet_commons/ and in any generated _bundled/ copy. The Claude Code discovery shim is not part of this package. DEFERRED.md says why.

Two digest domains keep a bundle honest, and they fail for different reasons. A source-payload digest covers the module's bytes and answers whether a bundle has gone stale. A generated-output digest covers the generated file with its own stamp block excluded and answers whether a bundle was edited by hand. A digest is never computed over bytes that contain it.

An authored package has no provenance manifest. The bundle stamp records this package's plugin.json version and source-commit: authored. The source digest, not that marker, is what proves the bytes match.

python3 scripts/bundle_fleet_module.py
python3 scripts/bundle_fleet_module.py --check

Further reading