@adlc/quartermaster

中文文档
1.12.0发布于 2026/10/10MITES Module构建来源已验证近 30 天下载 7937

Operator-local channel registry + lifecycle-job routing (the ADLC quartermaster layer) — no LLM calls, no repo-side channel selection.

原始使用文档

@adlc/quartermaster

The ADLC supply layer: which model runs which lifecycle job, decided by the operator — never by the repo under review, and never by a model at run time.

Implements docs/specs/operating-stack.md §4–§5. No LLM calls. No defaults.

Two seams, nothing else:

1. The operator-local channel registry (§4b). quartermaster.json lives outside every candidate tree. A configured path that is relative or inside the repo under review disables loading with a loud notice rather than reading it, mirroring how adversarial-review treats ADVERSARIAL_REVIEW_CONFIG. Load-time validation enforces rules 1–7 — closed channel names, an adapter allowlist drawn from packages/fleet/lib/adapters/, no argv-shaped fields at any depth, distinct fallback transports, a closed transport taxonomy, concrete model IDs for reviewer seats, and a complete (adapter, model) → provider table. Every failure is fail closed; there are no default channels.

2. The lifecycle-job routing contract (§5). routeJob is a total function over a closed job enum that does not trust its caller: for build.* jobs the class is derived from ticket.category and assignment.float, and a caller-supplied label that disagrees with the derivation throws.

import { loadRegistry, routeJob, resolveRoute } from '@adlc/quartermaster';

const { registry, notices } = loadRegistry({ repoDir, adapters });
const route = routeJob({ job: 'build.critical-path', assignment, ticket });
const seat = resolveRoute(registry, route); // { adapter, model, transport, provider }

assignment is @adlc/model-router's assignTicket output, consumed exactly as emitted. Float comes from the assignment, never from the ticket: stored tickets have no float field, and defaulting an absent one would silently downgrade critical-path work to the cheap channel.

The adapter catalog is injected rather than imported. @adlc/fleet owns the adapter modules and consumes this package, so importing it here would make the publish graph circular — and injection keeps the alias contract adapter-owned instead of restating harness knowledge in the validator.

Schema reference

docs/integrations/quartermaster-registry.md — annotated example, field reference, and the full rule table. The repo carries no registry of its own; dispatch never reads one from the tree.

License

MIT

版本与发布记录

@adlc/quartermaster 共发布 6 个版本,首次发布于 2026/08/08;过去 12 个月发布了 6 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.12.0latest2026/10/1027 天前
1.11.12026/09/091 个月前
1.11.02026/08/252 个月前
1.10.02026/08/112 个月前
1.9.02026/08/092 个月前
1.8.02026/08/082 个月前

关于 @adlc/quartermaster 的常见问题

@adlc/quartermaster 是什么?

Operator-local channel registry + lifecycle-job routing (the ADLC quartermaster layer) — no LLM calls, no repo-side channel selection.

如何安装 @adlc/quartermaster?

在项目目录运行 npm install @adlc/quartermaster,或使用 pnpm add / yarn add / bun add。

@adlc/quartermaster 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/adlc__quartermaster 是否存在。

@adlc/quartermaster 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@adlc/quartermaster 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@adlc/quartermaster 可以商用吗?

@adlc/quartermaster 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@adlc/quartermaster 的下载量有多少?

根据 npm 官方下载统计,@adlc/quartermaster 在 2026/10/05 – 2026/11/03 这 30 天内被下载 7,937 次,日均约 265 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adlc/quartermaster 还在维护吗?

最新版本 1.12.0 发布于 2026/10/10(27 天前);至今共发布 6 个版本,其中过去 12 个月发布了 6 个;首次发布于 2026/08/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。