@atlasent/safeguard-manifest

中文文档
1.0.1发布于 2026/09/25MITTypeScriptCommonJS零依赖近 30 天下载 1.6万

Versioned, deterministic projection of the authoritative AtlaSent safeguard package into the design/EXPECTED facts (owner, authority, expected evidence sources, expected gates) for the console SafeguardMap. Carries no runtime observed state. Zero-build, z

原始使用文档
文档目录6 节
  1. What this is (and is NOT)
  2. The three states it enables
  3. Regeneration & determinism
  4. Provenance
  5. Distribution & pinning
  6. Usage

@atlasent/safeguard-manifest

Versioned, deterministic projection of the authoritative safeguard package (contract/safeguard-pack/) into the design / EXPECTED facts a consumer needs to render the console SafeguardMap — per protected action: owner, authority, expected evidence sources, and expected gates.

What this is (and is NOT)

  • IS: expected/design truth. What each safeguard is designed to require.
  • IS NOT: runtime observed state. It carries no enforcement mode in effect, verification status, coverage, or observed gaps. Those stay live in the runtime and are joined by the consumer.

The manifest exists so the console never hand-maintains a semantic copy that can drift from the Canon / package. This is the single authoritative feed.

The three states it enables

The consumer joins this manifest with live runtime facts to produce a reconciliation view over three distinct states:

StateSource
Expectedthis manifest (versioned safeguard package)
Configuredruntime — current configuration (enforcement mode, bound bundle)
Provenruntime — execution + verification evidence (verification_events, coverage)

A safeguard is not "covered" merely because it is in the package (Expected) or configured in runtime (Configured) — coverage requires observed runtime + acceptance evidence (Proven). Where Expected and Configured/Proven disagree, the consumer displays the discrepancy as a gap; it must not reconcile or reinterpret it.

Regeneration & determinism

The JSON is generated by scripts/generate-safeguard-manifest.py (in the repo root) from the authoritative YAML. It is deterministic — same inputs produce byte-identical output, so CI fails on any unexpected regeneration diff:

python3 scripts/generate-safeguard-manifest.py           # regenerate
python3 scripts/generate-safeguard-manifest.py --check    # CI: fail if stale

Do not hand-edit safeguard-manifest.json. Change the authoritative contract/safeguard-pack/* YAML and regenerate.

Provenance

  • provenance.source_files[] records the SHA-256 of each authoritative input — identifying the exact inputs deterministically (no volatile git SHA / timestamp in the artifact, so --check stays stable).
  • Release/commit provenance is bound at publish time via npm --provenance (Sigstore keyless, same trust model as the other AtlaSent published packages).

Distribution & pinning

Published through the existing packages release path (v1_1-release.yml packs + cosign-signs every non-private packages/* on a version tag). Consumers pin an explicit manifest_version / package version — never silently consume "latest" — and validate the manifest against safeguard-manifest.schema.json (schema_version + provenance) before use.

Usage

import {
  safeguardManifest,
  getSafeguardAction,
  SAFEGUARD_MANIFEST_VERSION,
} from "@atlasent/safeguard-manifest";

const deploy = getSafeguardAction("production.deploy");
deploy?.owner_role;                 // expected owner (design)
deploy?.expected_evidence_sources;  // expected evidence sources (design)

版本与发布记录

@atlasent/safeguard-manifest 共发布 2 个版本,首次发布于 2026/07/13;过去 12 个月发布了 2 个版本。

版本发布日期距今
1.0.1latest2026/09/251 个月前
1.0.02026/07/133 个月前

关于 @atlasent/safeguard-manifest 的常见问题

@atlasent/safeguard-manifest 是什么?

Versioned, deterministic projection of the authoritative AtlaSent safeguard package into the design/EXPECTED facts (owner, authority, expected evidence sources, expected gates) for the console SafeguardMap. Carries no runtime observed state. Zero-build, z

如何安装 @atlasent/safeguard-manifest?

在项目目录运行 npm install @atlasent/safeguard-manifest,或使用 pnpm add / yarn add / bun add。

@atlasent/safeguard-manifest 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@atlasent/safeguard-manifest 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@atlasent/safeguard-manifest 可以商用吗?

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

@atlasent/safeguard-manifest 的下载量有多少?

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

@atlasent/safeguard-manifest 还在维护吗?

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