Repository navigation
feat(inventory): add the protocol onboarding inventory and public-resolution journey - #6
Conversation
…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>
QA review recordOutcome: 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: Checks on the merged result:
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 |
…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>
|
Merge observed. Plan: Trellis will verify the human merge evidence, adopt the domain pin, and retire the plan. No further merge action is needed. |
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 raisesValueError.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.inventory.yml(offline tests, a render check, and a correction PR whenmain's rendering no longer matches its evidence) andinventory-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/testspasses. 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 behindmain), 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.pyruns journey 13 throughrun.shoffline, with a faketrixand 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 --checkis clean; the journey passesbash -n.inventory/tests/fixtures/example/README.mdshows one complete and one outstanding row.Notes
inventory.yml; REFRESH.md documents the fallback when Actions may not open PRs.combineemits; a fixture captured from that output is underinventory/tests/fixtures/.🤖 Generated with Claude Code