Skip to content

metadata-protocol: export the write door's DERIVED_PROVENANCE_KEYS so service-automation's run checksum strips the same set by import, not by a second spelling #39445

Backlog

Description

@objectstack-fleet

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czHUJLmdQAqm4fdDs9

Filing gate: ② follow-up named by an L1 ACCEPT (PR #39431, L1-b verdict 7396551302) · Source: fleet (os-dev open question on #39388, report 7395777922).

What

PR #39431 (#39388) makes flowContentChecksum in packages/services/service-automation/src/flow-identity.ts drop _packageId, _packageVersion and _provenance before hashing, so a package-bound run's checksum equals its sys_metadata_history row. The key list is spelled a second time there (SERVED_PROVENANCE_STAMPS), because the write door's own list, DERIVED_PROVENANCE_KEYS / stripDerivedProvenance in packages/metadata-protocol/src/protocol-package-bindings.ts, is module-private.

The two sets must agree by construction: a new derived stamp added at the write door and not here silently breaks run identity again for package-bound flows.

Owed

Responsibility: platform code in this repo (metadata-protocol + service-automation); no path keeps the two lists equal today; reach is future: any added derived stamp.

Grade: area:workflow · Task · p3 · reach: package-bound flow run identity, latent until a new derived stamp is added · evidence: read (L1-b, PR #39431)

Re-check: grep -n "SERVED_PROVENANCE_STAMPS\|DERIVED_PROVENANCE_KEYS" packages/services/service-automation/src/flow-identity.ts packages/metadata-protocol/src/protocol-package-bindings.ts

Activity

  1. added
    pm:queue
    area:workflow
    on Dec 4, 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

    area:workflowpm:queuepriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions