Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/guides/observability/querying-the-supply-chain-graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,35 @@ run every command verbatim.

---

## Where the data lives

The `supply-chain-graph/` folder on `main` ships the **schema**, the
**`examples/` fixtures** used in this guide, and any hand-authored records. The
**real, workflow-generated events are not on `main`** — each producer stages one or
more immutable event files per run and the `record-graph-events` collector commits
them (append-only) to a dedicated **`supply-chain-graph-data`** branch.

To query your pipeline's actual events, fetch that branch and index it:

```bash
git fetch origin supply-chain-graph-data
git worktree add --detach /tmp/scg-data origin/supply-chain-graph-data
cssc-graph index /tmp/scg-data/supply-chain-graph -d /tmp/scg.db --rebuild
```

The branch ships its own `schema/`; from
[#203](https://github.com/toddysm/cssc-framework/issues/203) onward the collector
keeps it in step with the code, so the command above needs no `--schema-dir`. (If
you hit an `unknown kind` error against an older branch snapshot, pass
`--schema-dir` pointing at a current `supply-chain-graph/schema`.) In the cluster,
`graph-service` gets the same data through its optional git-sync init container,
which syncs `supply-chain-graph-data` into `DATA_ROOT`.

The `examples/` walkthrough below uses the in-repo fixtures instead, so every
command runs verbatim on a fresh clone.

---

## Experience 1 — the `cssc-graph` CLI

### Install
Expand Down
Loading