feat: add tracker anchor gate#41
Merged
Merged
Conversation
Port tx3-lift 7e8bc32 (anchor gate matching, scoring/ranking) plus the bundled upstream resilience and the utxorpc-spec 0.19.2 bump into the registry's Postgres tracker fork. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…x_burn.tii Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add score/match_rank columns to the matches table via migration and wire them through OwnedMatchRow + the INSERT statement (bound as i32 for Postgres INTEGER/int4 columns). process.rs stubs both fields at 0/1 pending Task 5 population. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Port the two upstream tx3-lift regression test suites as pure (no Postgres) characterization tests: gating_real_txs (2 CBOR-driven tests) and over_matching_regression (4 hand-built PayloadSummary tests), plus the 7 required fixtures (2 CBOR hex, 5 protocol TIIs). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…k discovery `pull_tii` used oci-client's high-level `pull`, which validates EVERY layer against an accepted-media-type allowlist and errors the whole pull on any unlisted layer. `trix publish` now attaches a `[protocol].logo` as an `image/png` layer (and already a README markdown layer), so any protocol with a logo made the tracker exit with `Incompatible layer media type: image/png` — and since pull_tii errors are propagated per-protocol, one such protocol broke the entire catalog fetch. Fetch the manifest and pull only the `application/tii+json` blob by digest instead. Other layers (logo, README, future types) are ignored, so a new layer type on the publisher side can never break discovery. Drops the now unused PROTOCOL/MARKDOWN media-type constants. Regression test mocks a manifest with a TII + image/png layer and asserts fetch_catalog succeeds without stubbing the logo blob (proving it is never fetched). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.