Skip to content

cli audit-redaction-seal: service() swallows every getService error, so a host signer that fails to resolve silently falls back to the local key (same family as #34280) #34519

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Filing gate ①: a same-family finding reported by area o2-I while landing #34280 (PR #34495). It is outside that claim's file surface. Dedupe: audit-redaction-seal service getService swallow, cli seal signer fallback local key. The seat runs these before triage.

维护者速读

Change

Apply #34280's rule to the CLI path. When the host registers a signer and resolving it throws, the CLI fails loudly with the resolution error. Fall back to the local key only when no host signer is registered at all. Mirror the wording and the error shape that PR #34495 lands, once that PR merges.

Done when

  • A test pins both cases:
    • A host signer that throws on resolve fails the CLI command.
    • With no host signer registered, the CLI still seals with the local key.
  • An ablation of the new branch turns the first case red.

Blocked-by: #34280

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p2 (confirmed) · pm:blocked · theme: security · 2026-11-17T00:29Z

    ⛔ Not a claim.

    The CLI audit-redaction-seal service() swallows every getService error, so a host signer that fails to resolve silently falls back to the local key. It is the same family as #34280: p2, parked on #34280.

  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4

    Claim: PM loop round 1 · area o2-I · 2026-11-17T00:43Z
    Session: session_01ADHkmRPxhTmqbUbMrqygh4 (the o2-I area session; it builds this card itself)
    Account: os-steve
    Branch: claude/project-thread-qajjjq (restarted from origin/main d4c0c12 after PR #34495 merged)
    Worktree: objectstack (the area thread's own checkout)
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: packages/cli/src/utils/audit-redaction-seal.ts (the signer / sink resolution), the four os migrate audit-* commands that call its seal() (audit-key-material.ts, audit-mail-bodies.ts, audit-metadata-bodies.ts, audit-side-copies.ts; the call becomes awaited), a new test beside the util, audit-redaction-seal.contract.test.ts (one pin), root .changeset/. No plugin-audit or spec change
    Container & model: S, mode:thread, model: default tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack: the CLI's redaction seal resolves the host signer and sink through a helper that turns every resolution error into "absent" | none (the sealer's own path was fixed by #34280 / PR #34495) | operators running os migrate audit-* on a host that registers audit.checkpointSigner (cloud#4128 stage 2), not yet in production
    Thread-read: 6933788002
    Premise: holds at origin/main d4c0c12: composeRedactionSeal().seal()'s service() (audit-redaction-seal.ts ~57) catches every kernel.getService throw and answers undefined, and amendment-writer.ts then signs with the local key.
    Serial constraints cleared: #34280 merged (PR #34495); no open PR lists audit-redaction-seal.ts or the four commands (open-PR scan at claim, 68 PRs).
    Pre-claim lane: domain:server (packages/cli/**), worked by the full-repo seat repo:objectstack#2; the seat filed this card for area o2-I.
    Pre-claim deps: Blocked-by: #34280 is closed (merged through PR #34495), so pm:blocked leaves in this stroke.
    Prior rulings read: check-prior-rulings.mjs --card 34519 → 222 title-term hits; ADR-0132 D6, ADR-0139 D3, ADR-0032 §1 / §3, ADR-0044 D2, ADR-0057 D7 (not on point); ADR-0154 D7 / D11; #34280's rule as PR #34495 landed it; thread: none.
    Lease: lease:o2-I.

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "card": 34519,
      "pr": 34569,
      "head": "9f6f950f35e63373def1d330eaa5acc0a166b681",
      "branch": "claude/project-thread-qajjjq",
      "status": "done",
      "premise_still_valid": true,
      "clause_2": "no",
      "metadata_protocol": "none",
      "gates": {
        "dispatch_gates_ran": "100 derived, 100 run, 0 NOT-MEASURED, all exit 0",
        "record": "/mnt/project-files/objectstack-seat2/34519-gates-ran.txt",
        "cli_tests": "src/commands/migrate + new test: 75 files, 606 passed / 8 skipped",
        "typecheck": "packages/cli pnpm typecheck exit 0 (incl. check:test-typecheck)",
        "ablation": "fix reverted, tests kept: 7 red (3 seal cases + 4 await pins), absent case green; /mnt/project-files/objectstack-seat2/34519-ablation.log"
      },
      "line_budget": {
        "additions": 174,
        "deletions": 16
      },
      "deviations": [
        "sink covered beside the signer (same helper, same rule as PR #34495)",
        "docs: one paragraph in content/docs/deployment/cli.mdx (Sealed audit rows)",
        "new test has a module-top import of @objectstack/service-settings, as check:test-source-alias asks"
      ],
      "out_of_scope_findings": [],
      "files_changed": [
        {
          "path": ".changeset/34519-cli-redaction-seal-host-seam.md",
          "additions": 12,
          "deletions": 0
        },
        {
          "path": "content/docs/deployment/cli.mdx",
          "additions": 7,
          "deletions": 0
        },
        {
          "path": "packages/cli/src/commands/migrate/audit-key-material.ts",
          "additions": 1,
          "deletions": 1
        },
        {
          "path": "packages/cli/src/commands/migrate/audit-mail-bodies.ts",
          "additions": 1,
          "deletions": 1
        },
        {
          "path": "packages/cli/src/commands/migrate/audit-metadata-bodies.ts",
          "additions": 1,
          "deletions": 1
        },
        {
          "path": "packages/cli/src/commands/migrate/audit-redaction-seal.contract.test.ts",
          "additions": 5,
          "deletions": 0
        },
        {
          "path": "packages/cli/src/commands/migrate/audit-side-copies.ts",
          "additions": 1,
          "deletions": 1
        },
        {
          "path": "packages/cli/src/utils/audit-redaction-seal.host-seam-34519.test.ts",
          "additions": 93,
          "deletions": 0
        },
        {
          "path": "packages/cli/src/utils/audit-redaction-seal.ts",
          "additions": 53,
          "deletions": 12
        }
      ],
      "api_writes": 5,
      "mcp_calls": 0
    }
  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

    bugdomain:serverpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions