Skip to content

[FPv2: Foundation] Add deterministic component graph - #2724

Merged
philipfweiss merged 6 commits into
mainfrom
fingerprint-components
Nov 25, 2026
Merged

philipfweiss merged 6 commits into
mainfrom
fingerprint-components

Conversation

@philipfweiss

@philipfweiss philipfweiss commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Foundation PR for fingerprints v2:

Editing a transform's debug column can currently change the fingerprint of a metric that only sums revenue.

This PR introduces the ability to fingerprint individual outputs and the rows a node produces separately, so later PRs can connect metrics to the inputs that affect their results.

This provides the hashing and comparison machinery. Later PRs will determine those connections from SQL. =

@netlify

netlify Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit ced5526
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6b05fd3085d3de1aa3dc933b

@philipfweiss philipfweiss changed the title [1/3] Add semantic fingerprint v2 component graph core [1/4] Add semantic fingerprint v2 component graph core Nov 13, 2026
@philipfweiss philipfweiss changed the title [1/4] Add semantic fingerprint v2 component graph core [1/10] Add semantic fingerprint v2 component graph core Nov 19, 2026
@philipfweiss philipfweiss changed the title [1/10] Add semantic fingerprint v2 component graph core [FPv2: Foundation] Add deterministic component graph Nov 23, 2026
@philipfweiss
philipfweiss marked this pull request as ready for review November 23, 2026 20:09
@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

Adds an inactive version 2 core for hashing individual outputs and row stages. Version 1 remains the default.

  • Version 2 fingerprints can hash named components and their dependencies.
  • Pull requests to any branch now trigger both checks.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  Definitions[Component definitions] --> Groups[Group cycles]
  Groups --> Ready[Wait for required inputs]
  Ready --> Available{All inputs available?}
  Available -- No --> Unknown[Return unknown]
  Available -- Yes --> Hash[Hash recipe and labelled inputs]
  Hash --> Results[Component results]
  Unknown --> Results
Loading

Reviews (2) · Last reviewed commit: "Format fingerprint component tests for C..." · Reviewed by Greptile


on:
pull_request:
branches: [ main ]

@philipfweiss philipfweiss Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows CI to run on stacked PRs (of which fingerprints will have a few)

Comment on lines +161 to +173
"key": [key.node, key.kind, key.field],
"payload": payload,
"dependencies": [
{
"binding": label,
"provider": [provider.node, provider.kind, provider.field],
"fingerprint": fingerprint.model_dump(mode="json"),
}
for label, provider, fingerprint in sorted(
dependencies,
key=lambda edge: (edge[0], edge[1]),
)
],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think this needs to become

"key": [key.kind, key.field],
        "payload": payload,
        "dependencies": sorted(
            (
                {
                    "binding": label,
                    "provider": [provider.kind, provider.field],
                    "fingerprint": fingerprint.model_dump(mode="json"),
                }
                for label, provider, fingerprint in dependencies
            ),
            key=canonical_json,
        ),

@philipfweiss
philipfweiss force-pushed the fingerprint-components branch from ebf1e07 to ced5526 Compare November 24, 2026 21:10
@philipfweiss
philipfweiss merged commit b700eb2 into main Nov 25, 2026
27 checks passed
@philipfweiss
philipfweiss deleted the fingerprint-components branch November 25, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants