Skip to content

feat(inventory): add the protocol onboarding inventory and public-resolution journey - #6

Merged
scarmuega merged 6 commits into
mainfrom
work/work-edb15018974998d54c2ad2019f16c859a5891f49
Dec 1, 2026
Merged

scarmuega merged 6 commits into
mainfrom
work/work-edb15018974998d54c2ad2019f16c859a5891f49

Conversation

@scarmuega

@scarmuega scarmuega commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a public inventory of onboarded protocols and a public-resolution journey that produces its evidence.

  • inventory/: the initial four-row inventory (Minswap V2, Liqwid V2, WingRiders V2, Dano Finance), rendered as Markdown and machine-readable rows from dated, append-only evidence records. Every row starts outstanding with named missing items. The prior baseline is tracked separately and not counted.
  • inventory/lib/cardano_tx.py: a standard-library Conway transaction decoder used for independent effect comparison. Anything that is not one transaction raises ValueError.
  • inventory/lib/inventory.py: evidence records (validated before they are stored, ordered by UTC instant and collision index, keyed by the identity their producer states), the join into rows keyed by the full release identity, Markdown rendering, and the journey's request, decoded comparison and registry/link checks.
  • journeys/13-public-resolution: in a fresh consumer, pulls a released interface, verifies its manifest and TII digests, resolves its public example twice on the network's public TRP, checks reproducibility and compares the decoded transaction with the expected effects. Any skip or failure, a malformed reply included, records an outstanding result. Once a release's resolution has passed, a later refresh rechecks only the registry entry unless asked to resolve again.
  • inventory/REFRESH.md: the evidence model, how a publication pass and later docs, tools or client releases refresh one row, retries, concurrency and clean-merge handling, exclusions and the durable evidence location.
  • Workflows: inventory.yml (offline tests, a render check, and a correction PR when main's rendering no longer matches its evidence) and inventory-refresh.yml (per-protocol refresh: a read-only job refuses to start while an earlier refresh's evidence for that protocol is unmerged, then runs journey 13 and uploads its records; a separate job stores them and opens an evidence PR).

Testing

  • python3 -m unittest discover -s inventory/tests -t inventory/tests passes. It covers complete and incomplete rows, wrong-network resolve, wrong amount, recipient and datum, each comparison failure path, malformed endpoint replies, stale bundle version, missing language record, dead and malformed links, duplicate versions and corrected release records (evidence recorded before a correction still counts and the row keeps the first release date, a conflicting one does not), record shapes and ordering, registry failures shown with their own reason, link drift for each bundle link, unmerged evidence branches against a local remote (full and shallow clones, a branch behind main), the refresh workflow's guard order and that nothing, including a continuation line, bypasses it, the client checks' combined result as emitted, an incomplete row not hiding a complete one, retries, concurrent refreshes and a three-way merge of two evidence PRs.
  • inventory/tests/test_journey.py runs journey 13 through run.sh offline, with a fake trix and a loopback TRP serving a recorded public resolution, including non-reproducible CBOR and the default endpoint and key wiring through a test-only override.
  • inventory.py render --check is clean; the journey passes bash -n.
  • inventory/tests/fixtures/example/README.md shows one complete and one outstanding row.

Notes

  • Token-opened refresh PRs do not trigger inventory.yml; REFRESH.md documents the fallback when Actions may not open PRs.
  • Client rows are read in the shape the client checks' combine emits; a fixture captured from that output is under inventory/tests/fixtures/.

🤖 Generated with Claude Code

…olution journey

Add a public inventory of onboarded protocols under inventory/, generated
from dated, append-only evidence records, and journey 13, which pulls a
released interface into a fresh consumer, verifies its manifest and TII
digests, resolves its public example twice on the network's public TRP and
compares the independently decoded transaction with the expected effects.

- inventory/lib/cardano_tx.py: standard-library Conway transaction decoder
- inventory/lib/inventory.py: evidence records, the join into rows, the
  Markdown inventory and the journey's request, comparison and registry
  checks
- inventory/: the four-row initial inventory, the separately tracked
  baseline and the refresh procedure (REFRESH.md)
- .github/workflows/inventory.yml: offline tests and a render check
- .github/workflows/inventory-refresh.yml: per-protocol refresh that runs
  journey 13 and opens an evidence PR

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scarmuega

scarmuega commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

QA review record

Outcome: passed (fifth pass, applied under the maintainer's ruling). After five review rounds, the maintainer chose to pass with the two remaining findings recorded rather than run another rework round. Both are tracked as follow-up items. QA's pass is not acceptance: the PR stays a draft until the review handoff is published, and merging is the maintainer's call.

Head reported: a0a104b67f0fd3bdc2921b3e08e156bfd024a986. It merges main at f0b66e2 (#5, which pins Maven 3.9 for the 12-java-sdk jobs) into the reviewed head 21a0192. The only conflict was in README.md, resolved by keeping both additions. QA made no other change.

Checks on the merged result:

  • Locally: the inventory unit suite (journey tests required), render --check, and bash -n on the journey scripts all pass.
  • A client-checks result produced by main's client_check.py combine imports into the inventory, both when it passes and when one language fails.
  • CI at this head: Inventory / inventory (offline) passed, and 12-java-sdk passed on both channels. No check has failed. Some DX journey cells were still running when QA reported, and the review handoff waits until every check at this head is green.

Reviewers run in the fifth pass: a checker for the fourth pass's findings and one combined reviewer (correctness, state and resources, test adequacy), then one refuter. This dispatch added the merge check above.

Open findings passed under the ruling: one test assertion compares two equal values, so a corrected release's non-date fields are not pinned by a test, and a mistyped first release date has no documented correction path. Neither affects counts, completion or stored data.

QA counts: pass=later size=small lenses=2 confirmed=2 blocking=2 fixed-by-qa=0 backlog=4 plausible=0 refuted=0 unrefuted=2
QA lenses: checker=1/1/0 combined=2/2/0

scarmuega and others added 5 commits November 24, 2026 22:48
…efresh

Address review findings on the inventory and the public-resolution journey.

- Any endpoint reply, decoder failure or unexpected error now leaves an
  outstanding resolution or registry record; the decoder raises ValueError
  for anything that is not one transaction, and a summary JSON cannot hold
  no longer loses the record.
- Link checks treat any failure as a dead link, and record refuses links
  that are not public http(s) URLs, nested credentials, non-UTC dates and
  shapes the join cannot read. Malformed records already stored stay in the
  history and out of the join.
- Records order by UTC instant and numeric collision index, so the newer of
  two same-dated records wins.
- Bundle records keep the release identity their producer states, nested or
  top-level; client rows use the client checks' combined result shape.
- A version conflict only blocks that version; registry evidence must match
  the current docs and tools links.
- A refresh keeps a release's passing resolution and rechecks only the
  registry entry unless asked to resolve again.
- The refresh workflow runs the toolchain in a read-only job and writes only
  from a separate publish job; the README's count line names the complete
  protocols, and main gets a correction PR when its rendering is stale.
- Tests: comparison failure paths, reply shapes, record shapes and ordering,
  a fixture from the client checks' combine output, a three-way merge of two
  evidence PRs, and journey 13 run offline through run.sh with a fake trix
  and a loopback TRP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…res and hold refreshes on pending evidence

- record refuses null or non-list lists, a links_checked that is not an
  object and a language row whose language is not text; a stored file
  that is JSON but not an object, or a date that overflows, stays in the
  history as invalid instead of breaking renders.
- A registry check that failed before checking links (a pull or digest
  failure) shows its own reason instead of link drift.
- A release record that fills an identity field an earlier one left empty
  is a correction, not a version conflict.
- The refresh refuses to start while an inventory/<protocol>-<stamp>
  branch holds records of that protocol that main lacks (inventory.py
  pending), so a refresh cannot supersede a pass waiting in review.
- Tests: the shape refusals, nested producer identity, tools link drift,
  non-reproducible CBOR in the journey, and the journey's public endpoint
  and key wiring through a test-only loopback override.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ull clones full

- A release record that fills a field an earlier record of the same
  version left empty keeps the evidence recorded before it, unless that
  version's records conflict. The "another release" reason names the
  differing field, an unstated one included.
- pending fetches at depth 1 only in a shallow checkout, so a local full
  clone stays full, and compares files without rename detection, so a
  branch behind main is not read as merged.
- A test reads the refresh workflow: the unmerged-evidence guard runs
  before the spec and the journey, with no condition or error bypass,
  and no later step runs after a failure.
- REFRESH.md: the correction rule, and a refresh held by unmerged
  evidence fails and is dispatched again rather than waiting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… step's shape

A row now shows the release date of the version's first release record, so
a correction that fills an empty identity field no longer moves the
published date. The refresh-workflow test also requires the pending guard
step to hold only its name and a one-line run, so a continuation line
cannot make the guard non-fatal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the six-language client checks (#5), including the Maven 3.9
pin for the 12-java-sdk DX jobs. README.md kept both additions: the
client-checks paragraph in the CI section, then the inventory section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scarmuega

scarmuega commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge observed.

Plan: plans/agent-reach-protocol-onboardings-public-inventory.md
QA-approved head: a0a104b67f0fd3bdc2921b3e08e156bfd024a986

Trellis will verify the human merge evidence, adopt the domain pin, and retire the plan. No further merge action is needed.

@scarmuega
scarmuega marked this pull request as ready for review November 30, 2026 10:51
@scarmuega
scarmuega merged commit 154cb50 into main Dec 1, 2026
57 checks passed
@scarmuega
scarmuega deleted the work/work-edb15018974998d54c2ad2019f16c859a5891f49 branch December 1, 2026 11:26
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.

1 participant