jaykay9999 commited on
Commit
e75bfea
·
verified ·
1 Parent(s): 455de84

Add declared action and MCP tool tables

Browse files
README.md CHANGED
@@ -42,6 +42,14 @@ configs:
42
  data_files:
43
  - split: train
44
  path: tables/workflow_capabilities.parquet
 
 
 
 
 
 
 
 
45
  ---
46
 
47
  # GHAWTrace
@@ -59,10 +67,12 @@ GHAWTrace links public GitHub repositories, verified gh-aw workflow YAML files,
59
  | `log_files` | 3,897,601 | Individual file names and sizes inside the retained ZIPs |
60
  | `workflow_snapshots` | 25,014 | IDs and hashes for the stored discovery-time YAML snapshots |
61
  | `workflow_capabilities` | 464,446 | Literal action, container, MCP, and secret-reference manifest entries |
 
 
62
 
63
  The log ZIPs total **56.1 GB** before TAR packaging. They are stored under `logs/<repo_id>.tar`, one TAR per repository. Empty ZIPs, API retry records, and collection-process files are not part of this release.
64
 
65
- The five additive tables are documented in the [enrichment guide](enrichment/README.md). They are derived from the existing collection. The attempt table records empty-archive status but does not include the empty ZIPs themselves. Its `unavailable` state does not establish why an archive was not downloaded. Configuration and capability values describe the stored YAML snapshot, which may differ from the version used by a historical run. A declared capability is not evidence of its use during a run.
66
 
67
  ## Relationships and counts
68
 
 
42
  data_files:
43
  - split: train
44
  path: tables/workflow_capabilities.parquet
45
+ - config_name: workflow_actions
46
+ data_files:
47
+ - split: train
48
+ path: tables/workflow_actions.parquet
49
+ - config_name: workflow_mcp_tools
50
+ data_files:
51
+ - split: train
52
+ path: tables/workflow_mcp_tools.parquet
53
  ---
54
 
55
  # GHAWTrace
 
67
  | `log_files` | 3,897,601 | Individual file names and sizes inside the retained ZIPs |
68
  | `workflow_snapshots` | 25,014 | IDs and hashes for the stored discovery-time YAML snapshots |
69
  | `workflow_capabilities` | 464,446 | Literal action, container, MCP, and secret-reference manifest entries |
70
+ | `workflow_actions` | 129,969 | Declared action repository, SHA, and version from YAML manifests |
71
+ | `workflow_mcp_tools` | 101,158 | Declared MCP server and tool names from YAML manifests |
72
 
73
  The log ZIPs total **56.1 GB** before TAR packaging. They are stored under `logs/<repo_id>.tar`, one TAR per repository. Empty ZIPs, API retry records, and collection-process files are not part of this release.
74
 
75
+ The seven additive tables are documented in the [enrichment guide](enrichment/README.md). They are derived from the existing collection. The attempt table records empty-archive status but does not include the empty ZIPs themselves. Its `unavailable` state does not establish why an archive was not downloaded. Configuration and capability values describe the stored YAML snapshot, which may differ from the version used by a historical run. The action and MCP tables are focused projections of `workflow_capabilities`, not additional observations. A declared capability is not evidence of its use during a run.
76
 
77
  ## Relationships and counts
78
 
enrichment/README.md CHANGED
@@ -1,6 +1,6 @@
1
  # GHAWTrace enrichment
2
 
3
- These five tables add indexes derived from the existing collection. They do
4
  not change the archived log ZIPs. The `repositories` table also gains
5
  `is_fork` and `parent_repo_id`, copied from its retained GitHub API object.
6
  The parent ID may refer to a repository outside this dataset.
@@ -12,12 +12,16 @@ The parent ID may refer to a repository outside this dataset.
12
  | `log_files` | One file entry inside a retained log ZIP | ZIP central directory, checked against the `logs` table and archive SHA-256 |
13
  | `workflow_snapshots` | One stored discovery-time YAML snapshot per verified workflow | Existing `workflows.source_yaml` and `workflows.source_sha` |
14
  | `workflow_capabilities` | One literal entry in a YAML `gh-aw-manifest` header | Action, container, MCP server/tool, or secret-reference array item |
 
 
15
 
16
  ## Joins
17
 
18
  - `workflow_configurations` joins `workflows` on `(repo_id, path)`.
19
  - `workflow_snapshots` joins `workflows` on `(repo_id, path)`. Its `snapshot_id`
20
  joins to `workflow_configurations` and `workflow_capabilities`.
 
 
21
  - `run_attempts` joins `runs` on `(repo_id, run_id)`.
22
  - `log_files` joins `logs` on `(repo_id, run_id, attempt)`. Join `logs` to
23
  `runs` on `(repo_id, run_id)` to obtain run and workflow metadata.
@@ -60,6 +64,15 @@ The manifest parser version is `workflow-header-v1`. Its input was
60
  `db5ee3d1a00fed19d7b633cb2e497fcfde5f172a2940e522ac6a59095e4b2076`.
61
  These provenance details are documentation rather than a one-row dataset table.
62
 
 
 
 
 
 
 
 
 
 
63
  `run_attempts` contains **observed collector attempts**, not a generated list
64
  of all possible reruns. `archive_state` is `with_files`, `empty_archive`, or
65
  `unavailable`. `unavailable` means that the collector did not obtain an
 
1
  # GHAWTrace enrichment
2
 
3
+ These seven tables add indexes derived from the existing collection. They do
4
  not change the archived log ZIPs. The `repositories` table also gains
5
  `is_fork` and `parent_repo_id`, copied from its retained GitHub API object.
6
  The parent ID may refer to a repository outside this dataset.
 
12
  | `log_files` | One file entry inside a retained log ZIP | ZIP central directory, checked against the `logs` table and archive SHA-256 |
13
  | `workflow_snapshots` | One stored discovery-time YAML snapshot per verified workflow | Existing `workflows.source_yaml` and `workflows.source_sha` |
14
  | `workflow_capabilities` | One literal entry in a YAML `gh-aw-manifest` header | Action, container, MCP server/tool, or secret-reference array item |
15
+ | `workflow_actions` | One declared action reference | The `actions` array of an explicit `gh-aw-manifest` |
16
+ | `workflow_mcp_tools` | One declared MCP tool name under a server | The `mcp_servers[*].tools` arrays of an explicit `gh-aw-manifest` |
17
 
18
  ## Joins
19
 
20
  - `workflow_configurations` joins `workflows` on `(repo_id, path)`.
21
  - `workflow_snapshots` joins `workflows` on `(repo_id, path)`. Its `snapshot_id`
22
  joins to `workflow_configurations` and `workflow_capabilities`.
23
+ - `workflow_actions` and `workflow_mcp_tools` join `workflow_capabilities`
24
+ on `capability_id`, or directly to `workflow_snapshots` on `snapshot_id`.
25
  - `run_attempts` joins `runs` on `(repo_id, run_id)`.
26
  - `log_files` joins `logs` on `(repo_id, run_id, attempt)`. Join `logs` to
27
  `runs` on `(repo_id, run_id)` to obtain run and workflow metadata.
 
64
  `db5ee3d1a00fed19d7b633cb2e497fcfde5f172a2940e522ac6a59095e4b2076`.
65
  These provenance details are documentation rather than a one-row dataset table.
66
 
67
+ `workflow_actions` exposes the literal `repo`, `sha`, and `version` strings
68
+ from each manifest action entry. `workflow_mcp_tools` exposes each literal
69
+ tool name together with its server name and both array indexes. Their
70
+ `manifest_pointer` values locate the original entries in the YAML header.
71
+ All 8,759 declared MCP server entries in this collection list at least one
72
+ tool, so each is represented by at least one tool row. These two tables are
73
+ query-friendly projections of `workflow_capabilities`; do not add their counts
74
+ to that table's counts. They do not indicate runtime use.
75
+
76
  `run_attempts` contains **observed collector attempts**, not a generated list
77
  of all possible reruns. `archive_state` is `with_files`, `empty_archive`, or
78
  `unavailable`. `unavailable` means that the collector did not obtain an
examples/enrichment_queries.sql CHANGED
@@ -8,11 +8,16 @@ GROUP BY 1 ORDER BY workflows DESC;
8
 
9
  -- Explicitly declared MCP tools in the stored discovery-time manifests.
10
  -- A declared tool may never have been used in any run.
11
- SELECT name AS tool_name, COUNT(DISTINCT snapshot_id) AS workflow_snapshots
12
- FROM read_parquet('tables/workflow_capabilities.parquet')
13
- WHERE family = 'mcp_tool'
14
  GROUP BY 1 ORDER BY workflow_snapshots DESC;
15
 
 
 
 
 
 
 
16
  -- Forks and their recorded parent repository IDs.
17
  SELECT repo_id, full_name, parent_repo_id
18
  FROM read_parquet('tables/repositories.parquet')
 
8
 
9
  -- Explicitly declared MCP tools in the stored discovery-time manifests.
10
  -- A declared tool may never have been used in any run.
11
+ SELECT tool_name, COUNT(DISTINCT snapshot_id) AS workflow_snapshots
12
+ FROM read_parquet('tables/workflow_mcp_tools.parquet')
 
13
  GROUP BY 1 ORDER BY workflow_snapshots DESC;
14
 
15
+ -- Declared action references and their recorded revisions.
16
+ SELECT action_repo, action_sha, action_version,
17
+ COUNT(DISTINCT snapshot_id) AS workflow_snapshots
18
+ FROM read_parquet('tables/workflow_actions.parquet')
19
+ GROUP BY 1,2,3 ORDER BY workflow_snapshots DESC;
20
+
21
  -- Forks and their recorded parent repository IDs.
22
  SELECT repo_id, full_name, parent_repo_id
23
  FROM read_parquet('tables/repositories.parquet')
tables/workflow_actions.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20dacb0a77ef91d71f2547ad9be00d93c796ed710a0208c5faff4eedcd2e540a
3
+ size 5469988
tables/workflow_mcp_tools.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf7f970370334c74c3d8961c70f91ff4b662671490a58e5e067a50fde81b0b07
3
+ size 3771761