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
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:workflow · Task · p3 · pm:queue · size S, touched 2026-12-04T01:24Z. Rationale: the filer's area and grade stand. Export DERIVED_PROVENANCE_KEYS so the flow run checksum imports the write door's key list instead of keeping a second copy. It is a de-duplication follow-up from the L1 ACCEPT on PR #39431, and it blocks nothing. Issue type set to Task.
    Grade: area:workflow · Task · p3 · maintainers of package-bound flow checksums · read (L1-b verdict 7396551302).

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions