Skip to content

audit seal: a host checkpoint signer that fails to resolve stops the sealer instead of signing with the local key #34280

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv

Filing gate: ① found by the seat's review of the cloud#4128 audit-seal cards (#34165 / #34166), read at origin/main. Hardening; nothing is broken for a host that registers no signer. ⛔ Not a claim.

维护者速读

  • 是什么: 宿主注册了外部签名服务(如 KMS)但它启动失败时,审计封存会悄悄改用本机密钥签名,没有任何提示。
  • 影响: 客户以为检查点由 KMS 签名,实际是本机密钥;之后用 KMS 公钥验证会失败,或者信任级别被悄悄降低。
  • 建议: p2,小改:只有"未注册"才回退本机,"注册了但取不到"就停止封存并报错。

What happens

packages/plugins/plugin-audit/src/audit-plugin.ts startSealer resolves the checkpoint signer through a helper that catches every error from ctx.getService(AUDIT_CHECKPOINT_SIGNER_SERVICE) and answers undefined, and the signer falls back to the local signer on undefined. A host signer that is registered but whose resolution throws (a factory that fails, a missing credential, a KMS client that cannot start) therefore signs with the local key, and nothing is logged.

The same helper resolves audit.checkpointSink and cluster. A sink that fails to resolve then drops the off-host export silently. A cluster service that fails to resolve then lets the sealer run without the cluster lock.

Rule

Only an absent service falls back. A service that is registered but fails to resolve stops the sealer: no checkpoint is signed and the error is logged once, at error, naming the service. The same holds for the sink and the cluster service. The local signer stays the answer when no host signer is registered.

Done when

  • Pins on a real kernel:
    • an absent signer seals with the local key, unchanged;
    • a registered signer whose resolution throws seals nothing and logs the error;
    • a registered signer that resolves is used;
    • the sink and cluster cases follow the same rule.
  • Each pin is ablated.
  • Declaration: whether a host that today silently seals with the local key now stops counts as a narrowing is for the dev to measure and declare.

Prior rulings read: ADR-0154 D6 (local signer) and D11 (the host seams); the seat's note on the S1 thread. No line says a failed host seam should fall back.
Dedupe words: checkpointSigner resolve fallback local; audit sealer getService catch.

Activity

  1. added
    enhancement
    priority:p2
    pm:queue
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · os-project-manager · session_01FEkQ5p5codnUGsdGxBfaL9

    Ruling: claimable after batch 1 merges · batch 2 · maintainer 「分两批点名放行,不改级别」 (the option he chose on the decision card) · recorded 2026-11-16T14:24Z

    Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T14:19:33Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, card cmsg_01TenzsRopZj4jMbvjX8uz1X3VzHFerEezFprpapKovrc1, choice record cmsg_01TenzsRopZj4jMbvjX8uz1X671t1eYHsegqWBBX4bNCyE.

    Thread-read: none (the card has no comment). Labels at the read: enhancement, priority:p2, pm:queue, domain:server, lease:A2; unassigned.

    The question he was asked

    He named 21 open p2 cards and asked whether they should be the next tasks. His intake rule of 2026-11-16 for the repo:objectstack#1 seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」, so the seat cannot claim a p2 card. The thread sorted the 21 into a first batch of 6, a second batch of 8, and 7 that are not new tasks. Which of them become the seat's next work, and how?

    The four options on the card, as he read them:

    • 「分两批点名放行,不改级别」: 「第一批 6 张小而有实测的现在可认领,第二批 8 张等第一批合并后放开。级别保持 p2,p1 仍然优先。其余 7 张不作为新任务。」 (recommended)
    • 「两批都升 p1」: 「和前两次一样改标签,14 张都变成 p1。做法简单,但 p1 会从“数据错、安全、核心任务走不通”变成“你想先做的”,今天已升了 8 张。」
    • 「只放第一批 6 张」: 「只放开 6 张小卡,级别不改。要改协议或引擎的那 8 张,等手上的 p1 清完再问你。」
    • 「先不加」: 「本席手上已有 12 张 p1 在做、2 张待领。这 21 张都留在 p2,等你下次再排。」

    The batches, as listed in the file and the message he was given:

    The ruling

    This card is in batch 2 and may be claimed by the repo:objectstack#1 seat once batch 1 has merged, at its p2 grade. The grade does not change. p1 work still comes first.

    This adds one sentence to his intake rule for this seat: after the p1 cards, the seat may claim the p2 cards he named here, batch 1 first and batch 2 after batch 1 has merged. It names these 14 cards and no other p2.

    Why this card, as told to him: One of three audit-signer cards: a registered host signer that fails to resolve must stop the sealer and not fall back to the local key. He was told the three follow #34164 as one set.

    State


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4

    Claim: PM loop round 1 · area o2-I · 2026-11-16T22:16Z
    Session: session_01ADHkmRPxhTmqbUbMrqygh4 (the o2-I area session; it builds this card itself)
    Account: os-steve
    Branch: claude/project-thread-qajjjq
    Worktree: objectstack (the area thread's own checkout)
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: packages/plugins/plugin-audit/src/audit-plugin.ts (startSealer's service resolution), packages/plugins/plugin-audit/src/audit-seal/sealer.ts (the per-pass resolution of signer, sink and cluster), a new live-kernel test beside the sealer tests, root .changeset/. No spec, verifier, signer, audit-writers.ts or CLI change
    Container & model: S, mode:thread, model: default tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack: plugin-audit's sealer resolves the host seams through a helper that turns every resolution error into "absent" | none (no path reports a registered seam that fails) | hosts that register audit.checkpointSigner / audit.checkpointSink / cluster (cloud#4128 stage 2), not yet in production
    Thread-read: 6919171591
    Premise: holds at origin/main e8cba8f: startSealer's optional() (audit-plugin.ts ~851) catches every ctx.getService throw and answers undefined, and the signer getter falls back to the local signer on undefined; the sealer's acquireLock and the sink delivery also absorb a throwing getter.
    Serial constraints cleared: none — no open PR touches audit-plugin.ts or audit-seal/sealer.ts (open-PR scan at claim); the security seat's in-flight plugin-audit work touches audit-writers.ts only (asked by file name). #34165 / #34166 (same area, verifier / spec contract / ADR) do not share these files.
    Pre-claim lane: domain:server (packages/plugins/plugin-audit/**), worked by the full-repo seat repo:objectstack#2; the previous lease:A2 holder (server#5) has no Claim or assignee on this card.
    Pre-claim deps: no Blocked-by:; batch-2 gate of 6919171591 lifted by the maintainer's word in this project, 2026-11-16T22:11Z: 「我的分批裁决 没有限制认领」.
    Prior rulings read: check-prior-rulings.mjs --card 34280 → 148 title-term hits; ADR-0154 D6 / D11 (no line says a failed host seam falls back); ADR-0027 Decision §12 (not on point); thread: 1 ruling (6919171591, batch release only).
    Ruling-ref: 6919171591
    Fold-or-serial: serial, not folded with #34165 / #34166 (gate ① fails: a different defect and fix shape).
    Lease: lease:o2-I (replaces the stale lease:A2).

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4
    os-dev-report

    {
      "card": 34280,
      "pr": 34495,
      "head": "34600be3f54e9a41bffd21abc8b52ff3be4bb86c",
      "branch": "claude/project-thread-qajjjq",
      "status": "done",
      "premise_still_valid": true,
      "clause_2": "no",
      "metadata_protocol": "none",
      "gates": {
        "dispatch_gates_ran": "73 derived, 73 run, 0 NOT-MEASURED",
        "record": "/mnt/project-files/objectstack-seat2/34280-gates-ran.txt",
        "plugin_audit_tests": "100 files / 1659 tests passed",
        "typecheck": "pnpm --filter @objectstack/plugin-audit typecheck exit 0 (incl. check:test-typecheck)",
        "ablation": "fix reverted, new test kept: 4 of 5 cases red, the absent-seam case green; /mnt/project-files/objectstack-seat2/34280-ablation.log"
      },
      "line_budget": {
        "additions": 326,
        "deletions": 30
      },
      "deviations": [
        "'logged once' is the sealer's existing report(): once per REPORT_REPEAT_MS while the fault lasts; a second pass in the window adds no line (pinned)"
      ],
      "out_of_scope_findings": [
        {
          "class": "b",
          "reach": "a CLI redaction run on a host whose audit.checkpointSigner registration fails",
          "evidence": "packages/cli/src/utils/audit-redaction-seal.ts service() catches every getService throw, so amendment-writer.ts falls back to the local signer; same family as this card, outside its claimed file surface"
        }
      ],
      "files_changed": [
        {
          "path": ".changeset/34280-audit-seal-host-seam-resolve.md",
          "additions": 14,
          "deletions": 0
        },
        {
          "path": "packages/plugins/plugin-audit/src/audit-plugin.ts",
          "additions": 44,
          "deletions": 13
        },
        {
          "path": "packages/plugins/plugin-audit/src/audit-seal/audit-seal-host-seam-resolve-34280.integration.test.ts",
          "additions": 204,
          "deletions": 0
        },
        {
          "path": "packages/plugins/plugin-audit/src/audit-seal/sealer.ts",
          "additions": 64,
          "deletions": 17
        }
      ],
      "api_writes": 4,
      "mcp_calls": 1
    }
  6. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:serverenhancementpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions