GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — impl(fleet): stamp signature — sign/verify canonical provenance (stamp_sig, stamped_by, auth_subject), both editions · Issue #12586 · developing-today/code

impl(fleet): stamp signature — sign/verify canonical provenance (stamp_sig, stamped_by, auth_subject), both editions #12586

New issue
Copy link
New issue
Copy link
Done
Done
impl(fleet): stamp signature — sign/verify canonical provenance (stamp_sig, stamped_by, auth_subject), both editions#12586
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:done

Description

@dezren39
dezren39
opened on Nov 22, 2026
Issue body actions

Design: doc/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition §4.3 (component C of epic #9078, design issue #9081). Parent: #9081. Cross-links #9073 (native parity hook — this issue carries it so #9073's scope is not silently expanded).

Scope

Stamp signatures, both editions:

  • Canonical form of the provenance object (fleet-owned fields only) and a signature over it, written as stamp_sig alongside stamped_by and auth_subject in the block and the DB row.
  • Algorithm + key custody per the fleet CA line (doc/2026-11-13T01-34-11Z_design_fleet_ca_credentials_secrets) — decided at build start per the design's deferral §8.2.
  • Verification in the collector/query path: edition-blind (native and hosted stamps verify the same way); a hand-edited provenance fails verification and the divergence is reported per pm stack: multi-board hierarchy + full task genealogy #9060 §15.

Acceptance

  • A service-stamped item verifies; the same block with one provenance field edited fails verification and is reported as divergence.
  • A native-stamped item and a hosted-stamped item verify through the same code path.
  • Unsigned legacy blocks (pre-signature items) are reported as unsigned, not as forgeries.

Activity

  1. dezren39
    added
    kind/featureNew feature or capability request
    priority/normalOrdinary priority (the default)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 22, 2026
  2. developing-today commented on Nov 22, 2026

    @developing-today
    developing-todayBot
    on Nov 22, 2026 – with developing.today
    Contributor
    More actions

    CODE-4626

  3. dezren39
    added a parent issue on Nov 22, 2026
    • design(fleet): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools #9081
  4. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  5. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 23, 2026
  6. developing-today
    added
    status:in-review
    on Nov 23, 2026
  7. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: stamp signature implemented — PR #12854 open for review (unmerged)
    by: agent felix lane (kind muse, Muse sandbox seat)
    at: 2026-11-22

    PR: #12854 — src/stamp-sig.ts (canonical provenance sign/verify) + stamp key material in src/config.ts + 14 tests. Suite 70/70 (56 baseline from #12583/#12584 untouched), tsc clean, smoke all-pass. No new dependencies (WebCrypto only). #12585's endpoint and #12587's query/collector surfaces were not absorbed; both consume this module.

    Where the format is defined: no native implementation exists on main (#9073 is open; the Metadata create layer is unimplemented, design §1), so the format is defined by design §4.3/§5 as implemented here: the signed object is the block's provenance object minus stamp_sig; the canonical form is deterministic JSON (JCS-shaped over the provenance value domain — sorted keys, no whitespace, nulls preserved, safe-integer numbers only, anything else refuses); stamp_sig = v1.ed25519.<kid>.<base64url sig>.

    Algorithm — the §8.2 build-start decision: Ed25519 with a dedicated service key. The fleet-CA-certificate option is not implementable at this build start: the CA program (#9155) is design + synthetic proof only with production CA generation/signing approval-blocked, and its ML-DSA-44 baseline has no WebCrypto implementation — the hosted verifier could not verify it and verification would stop being edition-blind. Key custody: private key as configuration by name only (STAMP_SIGNING_KEY_PKCS8 / STAMP_SIGNING_KEY_ID); verifiers hold public keys by kid (STAMP_VERIFY_KEYS_JSON), several kids at once = the rotation window. Unconfigured signing fails closed (503 stamp_signing_not_configured); unconfigured verification reports unverifiable, never verified.

    Parity, proven: one verifyStamp code path for both editions, plus byte-exact golden vectors in test/stamp-sig.test.ts for a hosted-stamped and a native-stamped provenance (fixed test keys → exact canonical bytes + exact stamp_sig). These vectors are the conformance fixtures #9073's native signing hook must reproduce (design §6 shared-fixture discipline). Acceptance mapping: service-stamped verifies; any single-field edit (and field removal) → diverged/signature_mismatch; unsigned legacy → unsigned, not forgery; malformed/unknown-key/wrong-version stamps diverge with named reasons.

    Judgment calls: (1) the §5 additive fields (workspace_ref, auth_subject, stamped_by, stamp_sig) live inside the provenance object — §5's table is the stamp set against the native provenance fields and stamped_by is "provenance about provenance"; one canonical object keeps collector/DB extraction single-sourced. (2) Canonical membership is every provenance key present except stamp_sig, not a hardcoded field list, so future additive fleet-owned fields are signed automatically.

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Released by felix (outcome: done). Stamp signature implemented: PR #12854 (canonical provenance sign/verify, Ed25519 per the §8.2 build-start decision, golden vectors for both editions); suite 70/70, tsc clean. PR left unmerged for Felix's review.

  9. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 23, 2026
  10. dezren39
    added a commit that references this issue on Nov 23, 2026

    Merge pull request #12854 from developing-today/felix/12586-stamp-sig…

    e6f8e24
  11. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: PR #12854 MERGED — stamp signature landed (first edition)
    by: agent felix (kind muse, Muse sandbox seat), merging after review
    at: 2026-11-22

    PR #12854 merged. Felix read src/stamp-sig.ts directly at review: canonical form is deterministic JSON over the provenance object with stamp_sig removed (sorted keys, safe integers only, undefined/deep values refuse fail-closed, nulls preserved so absence ≠ null after signing); verify parses the v1.ed25519.. value strictly, unknown kid and bad signatures report diverged with named reasons, absent/null reports unsigned (legacy blocks are not forgeries), unconfigured verification reports unverifiable — never verified. Keys are configuration by name only; unconfigured signing fails closed (503). Re-ran the suite: 70/70 (56 baseline + 14 new, including byte-exact golden vectors for both editions' shapes — those vectors are the conformance fixtures #9073's native signing hook must reproduce).

    The §8.2 build-start decision is recorded on the PR: Ed25519 with a dedicated service key — the fleet-CA option is not implementable at this build start (#9155 is design + synthetic proof with production signing approval-blocked, and ML-DSA-44 has no WebCrypto implementation, so the hosted verifier could not verify CA stamps and verification would stop being edition-blind). No new dependencies.

    #12586's slice is complete; its consumers land separately (#12585's stamping endpoint signs via this module, #12587's surface verifies via it).

  12. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    agent-note:v1
    event: triage verdict — resolved in substance; closing with evidence
    by: lane ITEM-WORK-46 (queue task 22222)
    at: 2026-11-24

    Verdict: #12586 is resolved in substance. Its own scope — the canonical provenance form and signature scheme (stamp_sig, stamped_by, auth_subject), plus edition-blind verification — landed in PR #12854 (merged 2026-11-23T03:47:04Z) and is verified fresh today:

    • pkgs/fleet/hosted-worker/src/stamp-sig.ts is on main; verification is wired into the query path (src/query.ts runs verifyStamp over served provenance and surfaces divergence findings + stamp status; also referenced from routes/query.ts, direct-read.ts, ingestion.ts).
    • Live test run on current origin/main (027ba99d37a), laptop worktree: bun test test/stamp-sig.test.ts — 14 pass, 0 fail. The suite names the issue's three acceptance criteria directly: a service-stamped item verifies; one edited provenance field fails as divergence; native-stamped and hosted-stamped items verify through the same code path (byte-exact golden vectors for both editions' shapes); unsigned legacy blocks report as unsigned, not forgeries.
    • The §8.2 build-start decision is recorded on PR impl(fleet): stamp signature — sign/verify canonical provenance (stamp_sig, stamped_by, auth_subject), both editions (#12586) #12854: Ed25519 with a dedicated service key (fleet-CA option not implementable at build start; ML-DSA-44 has no WebCrypto implementation, so CA stamps would have broken edition-blind verification).

    Remainder, tracked separately and NOT part of this slice (per the PR #12854 record): the consumers — #12585 (create-path stamping endpoint) and #12587 (Metadata query surface) — both still open under their own scope. The native parity hook's parent #9073 is closed.

    Closing #12586 as completed on this evidence. Queue task 22222 completes with this verdict; no follow-on packet is routed from this triage because the remaining work already carries its own issues (#12585, #12587).

  13. developing-today-fleet
    closed this as completedon Nov 24, 2026
  14. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 24, 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

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.