Skip to content

feat(registry): read, cache, and search the template registry index - #257

Merged
Antruly merged 3 commits into
mainfrom
feat/239-registry-client
Oct 18, 2026
Merged

Antruly merged 3 commits into
mainfrom
feat/239-registry-client

Conversation

@Antruly

@Antruly Antruly commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Part of #239. This is the read side of the registry client; download, checksum
verification, sync/pinning, and the CLI/MCP surface are later increments.

What this adds

  • src/domain/templateRegistry.ts — a closed-shape reader for the
    uvp.registry/1 index documented in the registry repository's
    docs/index-format.md. It reuses the uvp.template/1 validator for every
    version entry (the entry repeats the manifest it mirrors), and adds only what
    the index adds: the exact packages/<id>/<version> path, a sha256: package
    digest, and the per-package latest. Unknown keys are problems at every
    level; ids and versions must be unique and sorted.
  • src/application/TemplateRegistry.ts — the read client:
    • network read over node:http/node:https (no global fetch), three
      redirects, a maxBytes cap enforced before parsing, and a request timeout;
    • a last-good cache at
      <template store root>/.registry/index-<sha256(indexUrl)>.json, written
      atomically (temp file + rename) and keyed by the requested URL, so one
      registry's metadata can never answer for another URL;
    • three reported states — network, cache (with staleReason naming the
      network failure), and undetermined (why, with details). An unavailable
      registry is never reported as an empty one;
    • deterministic metadata search sharing its filters/scoring with the local
      store search.
  • src/application/templateDiscovery.ts — the shared query, matcher, and
    scoring moved out of TemplateSearch.ts, so the local store and the registry
    select candidates from the same corpus with the same rules.
  • Refactors that give one owner to a rule:
    • compareTemplateVersions (including prerelease precedence) moved to
      domain/templatePackage.ts; the registry reader needs it to check
      ascending version lists, and it now compares by code unit rather than the
      host locale's collation.
    • templatePackageDigestProblem exported and used by both the file reader and
      the registry reader.
    • Problems.rejectUnknownKeys takes the schema name, so a registry problem
      says uvp.registry/1.

Review fixes

  • The generator's entry shape is accepted. build-index.mjs spreads the
    whole template.json into each version entry (redundant schema/id, and
    variables/preview) and repeats its observation list as files[], which
    carries binary. The reader now accepts those fields: schema/id must
    agree with the index when present, variables/preview go through the
    manifest rules, binary must be a boolean and is dropped from the
    manifest-shaped file list, and any other key is still refused.
  • The fixture is produced by the registry's generator, not written by hand.
    tests/support/fixtures/registry-index.generated.json is the output of
    scripts/lib/package.mjs's buildIndex/renderIndex at
    Antruly/uvp-templates@a95b3e0, run over a small package tree with one text
    file, one binary asset, and a preview, so it carries the real repeats
    (schema, id, variables, preview) and binary: true/false.
    tests/support/generateRegistryIndexFixture.mjs documents the pinned URL and
    regenerates it. On the reviewed head 64ac69a the same fixture fails the
    reader with schema/id/variables/preview and both binary keys
    unknown, plus latest as a consequence;
    the new test parses the checked-in file and asserts the normalized file list.
  • The cache is bound to the requested URL by hashing it into the file name
    (above). A cached answer for registry A is absent for registry B, so a mirror
    or fork URL gets undetermined rather than A's packages.
  • Bounds and policy tightened: the cache is re-measured after reading (a
    file that grew since stat cannot exceed maxBytes); an https-to-http
    redirect is refused (redirect_refused); and tests now cover the timeout,
    the redirect limit, a non-http redirect, the downgrade policy, a cache write
    failure, and an EISDIR cache path.

Limits (stated, not implied)

  • The index carries no manifest variables/preview and no file bytes. This
    increment verifies the index's shape; it does not download or hash a
    package.
  • The cache is metadata only; an unavailable registry with a cache is a stale
    answer with a named reason, not a current one.
  • On a host that only reaches the registry through an HTTP(S) proxy, Node's
    http/https need the process to start with NODE_USE_ENV_PROXY=1; without
    it the default transport reports the connection failure as undetermined
    (never as an empty registry). A caller with its own proxy handling injects a
    transport.
  • No tool contract is added here, so there is no new effects surface. The
    client's default transport contacts the registry URL only when a caller uses
    it; tests inject a fixture server or a failing transport and never touch the
    real registry.

Validation

  • npm run test:local -- src/domain/templateRegistry.test.ts src/application/TemplateRegistry.test.ts src/application/TemplateSearch.test.ts src/domain/templatePackage.test.ts — 4 files, 141 tests passed.
  • npm run check:pr (with the installed libuvcpp 1.7.0) — exit 0, 13/13 tasks
    successful; test:run: 85 files passed | 1 skipped, 1527 tests passed |
    9 skipped.
  • The generated fixture against the reviewed head 64ac69a:
    parseTemplateRegistryIndex returns ok: false with
    versions[0].id/preview/schema/variables unknown,
    files[0].binary/files[1].binary unknown, and latest unable to name the
    entry. The same file parses on this head.
  • Live observation (not a fixture): the default index URL serves the bootstrap
    {"packages": [], "schema": "uvp.registry/1"}; with NODE_USE_ENV_PROXY=1
    on this proxied host, the built client reports state: "read",
    source: "network", 0 packages. Without it on the same host, the read is
    state: "undetermined" (read ECONNRESET) — the honest failure state.

🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1

Author readiness

Human owner: @Antruly

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Add the read side of the remote template registry client (#239): a closed-
shape uvp.registry/1 index reader that reuses the uvp.template/1 manifest
rules for each version entry, a bounded http(s) fetch with an atomic last-good
cache, and deterministic metadata search shared with the local store search.

An unavailable registry is reported as undetermined with a reason, a stale
cache names the network failure, and a successful network read is the only
state that speaks for the registry now. The increment does not download
packages, verify file bytes, or add a tool contract.
@Antruly

Antruly commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner Author

🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1

CI on bfafd17 (run 39130757332) is green: 15 checks pass and 2 skip — Real libuvcpp lane and Windows MSVC toolchain are selected off by change classification, so they are not coverage for this diff.

Evidence for this head, observed:

  • npm run check:pr with the installed libuvcpp 1.7.0 — exit 0, 13/13 turbo tasks, 85 test files passed / 1 skipped, 1517 tests passed / 9 skipped; the five changed sources were md5-identical before and after the run.
  • Focused: domain registry 11, application registry 18, search 9, package 93 — 131 passed.
  • oxfmt --check clean on the changed files.

The PR is a draft, Part of #239; download/checksum verification, sync/pinning, and the CLI/MCP surface remain for later increments. No approval has been given; I will not merge until the owner approves on this PR.

@Antruly

Antruly commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

Review — feat(registry): read, cache, and search the template registry index

Reviewed at head bfafd17 against main at 3ae159f. Two blocking findings. The reader, the refactors, and the three-state design are sound — but the client cannot read the index its own registry actually generates, and the cache is not bound to the URL it was fetched from. Details, with reproductions, below.

Blocking 1 — the reader rejects every package entry build-index.mjs emits

The PR's fixtures are hand-written to the shape in the registry's docs/index-format.md. I ran the registry's own generator instead: cloned Antruly/uvp-templates, added one package (packages/acme-dashboard/1.2.0/ — template.json, README.md, LICENSE, files/src/main.cc, digest and byte count computed from the file), and ran node scripts/build-index.mjs --write. It reports index.json written (1 package id(s)) and emits a version entry containing schema, id, and files[].binary:

"versions": [{ "category": "fullstack", "digest": "sha256:9ee3…", "id": "acme-dashboard",
  "path": "packages/acme-dashboard/1.2.0", "schema": "uvp.template/1", "version": "1.2.0",
  "files": [{ "binary": false, "bytes": 25, "digest": "sha256:deac…", "path": "src/main.cc" }], … }]

Feeding that file to parseTemplateRegistryIndex:

PROBE ok=false
packages[0].versions[0].id: is not a field of uvp.registry/1
packages[0].versions[0].schema: is not a field of uvp.registry/1
packages[0].versions[0].files[0].binary: is not a field of uvp.template/1
packages[0].latest: must name one of the package's versions
PROBE total=4

The causes are all in the generator's versions.push({ version, path, digest, ...pkg.manifest, files: pkg.files }): pkg.manifest is the whole template.json (so schema and id — and variables/preview when a package has them), and pkg.files is the observation list, which carries binary while the client's manifest file rule (FILE_KEYS) allows only path/digest/bytes. The fourth problem is a consequence: the entry never parses, so latest cannot name it. The registry's own docs example shows none of these keys, so the generator and its documentation already disagree; this reader happens to follow the documentation.

The practical effect: the current registry is empty, so nothing is red; the first published package makes state: "read" become invalid_index for the whole registry, i.e. the feature does not work against the thing it exists to read. Green CI does not cover this because every fixture in the PR is hand-built to the documented shape.

Resolution options, all acceptable to me:

  1. Registry side: make build-index.mjs project only the documented entry fields and constrain files[] to path/digest/bytes; then add a test in this PR that parses that generator's output (a checked-in fixture is enough). This keeps one format rather than two.
  2. Client side: accept schema/id as redundant repeats (verifying they agree with the package) and ignore or accept binary in index file entries — with a test that runs against a generator-produced index, not a hand-written one.

Either way, please add the cross-repo fixture: the mismatch is exactly the kind a hand-written fixture can never catch.

Blocking 2 — the cache is not bound to indexUrl

cachePathOf ignores indexUrl entirely, and the cache file carries no source. I reproduced the consequence with an injected transport (throwaway probe, deleted; git status clean):

  1. read http://127.0.0.1:<port>/a.json → read/network, package aaaa-from-registry-a, cached under <cacheRoot>/index.json;
  2. read https://registry-b.invalid/index.json with the same cacheRoot and a failing transport →
state: read, source: cache, url: https://registry-b.invalid/index.json,
packages: [ 'aaaa-from-registry-a' ], staleReason: registry B is down

Registry A's packages are returned as the cached answer for registry B, with url naming B and no signal that the data belongs to A. indexUrl is a public option ("Defaults to the first-party registry's raw index"), not a test seam (transport is the documented seam), so a caller pointing at a fork, a mirror, or a private registry gets another registry's metadata. That is the third-state rule inverted: the state says "cache", but the source is silently not the one asked for.

Minimal fixes: record the source URL with the cache (a small sidecar next to the body, or a wrapper the client owns) and treat a different URL as absent; or key the cache by the URL (sha256(url) in the file name); or, if one registry per store root is the intended contract, say so in the option docs and refuse the combination (indexUrl without cacheRoot) instead of serving a mismatch.

What I verified as correct

  • The three states hold on the failure paths. Probe: timeout → undetermined, "the registry request timed out"; 404 → falls back to cache with "the registry answered HTTP 404"; cache path is a directory (EISDIR) → undetermined naming "the cached index could not be read"; unwritable cache root → network result with cacheError naming the mkdir failure; body exactly at maxBytes accepted, one byte less refused with body_limit. The EISDIR case is the [Bug] An unreadable store metadata record is reported as an invalid template package #253 lesson applied.
  • The transport bounds are right. Four redirects → "the registry redirected too many times"; a file: redirect target is refused by protocol; a redirect body is drained rather than buffered against the cap.
  • The reader matches docs/index-format.md on ordering (ids and versions ascending, code-unit id order, SemVer precedence including prereleases), latest ∈ versions, exact packages/<id>/<version> paths, and sha256:… digests; unknown keys are problems (which is precisely what makes Blocking 1 visible).
  • The refactors keep their behaviour. TemplateSearch.test.ts 9 passed unchanged; compareTemplateVersions moved without semantic change (the non-numeric prerelease tiebreak is now code-unit, which the comment and the registry sort both want), and templatePackageDigestProblem / rejectUnknownKeys(schema) are used by both readers without altering the manifest messages for uvp.template/1.
  • Gates at this head: TemplateRegistry.test.ts (18) + domain/templateRegistry.test.ts (11) + search (9) + store (20) → 58 passed; tsc --noEmit, oxfmt --check (nine files), lint, knip, verify:test-discovery clean. CI: all applicable checks success (the libuvcpp/MSVC lanes skipped by classification, correct for this change).

Non-blocking (my judgement)

  1. The cache read caps by stat with no post-read comparison, unlike the store's fix(store): bound the reader's memory by checking each file's size first #252 fix: a file that grows between the two calls can exceed maxBytes before parsing. Cheap to align.
  2. Four failure paths have no test — timeout, the redirect limit, the redirect-protocol refusal, and cacheError — though each behaves correctly under my probe. The suite also has no EISDIR-cache case; that one is already covered by the [Bug] An unreadable store metadata record is reported as an invalid template package #253 pattern.
  3. An https: → http: redirect is followed, even though the module comment promises the transport refuses "a non-http(s) redirect target" (it does refuse non-http schemes; a downgrade to plain http is still http). For a public index this is a small risk; a one-line policy note would settle it.
  4. latest is trusted to be the highest release rather than recomputed. The generator does compute it that way (I read build-index.mjs — releases first, prerelease only if no release exists), so this is a deliberate trust of the producer, worth stating in the reader's comment.

I am not marking this ready or approving it: the first finding means the feature cannot read a non-empty registry index, and the second can serve one registry's metadata for another URL. Ping me when the entries/files[] question is settled and the cache has a source; I will re-review the delta.

Node's http/https ignore HTTP(S)_PROXY unless the process starts with
NODE_USE_ENV_PROXY=1. Observed on this host: a plain node:https request to the
registry's default URL fails with ECONNRESET while curl answers 200 through the
local proxy. The client still reports that as undetermined, not an empty
registry; the docblock and PR now say so and name the transport seam.
@Antruly

Antruly commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1

Head moved to 64ac69a — docblock only (+9 lines, no behaviour change), stating the proxy limitation. This host routes HTTPS through a local proxy: plain node:https gets ECONNRESET while curl answers 200, and Node only honors HTTP(S)_PROXY with NODE_USE_ENV_PROXY=1. With that set, the built client read the live default index URL end to end: state: "read", source: "network", 0 packages (the registry's bootstrap index); without it, state: "undetermined" with read ECONNRESET — not an empty registry.

Local checks on this head: oxfmt --check clean, npm run check:fast exit 0 (2/2 tasks). The full gate and CI were green on the previous head bfafd17; CI is running again for 64ac69a. Not merging without the owner's approval.

@Antruly

Antruly commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

Docblock is accurate and I am not asking for a change to it: the proxy behaviour is exactly the third state working as designed — a proxied host without NODE_USE_ENV_PROXY=1 lands in undetermined with the connection error, not in "the registry is empty". Both of those outcomes are correct.

That said, the two blocking findings from the review are unchanged at 64ac69a — the delta touches only the module comment. They are what is holding the merge, so the next push needs to address them rather than the proxy note:

  1. The reader rejects the entries build-index.mjs actually emits. I ran the registry's generator on a real package directory and fed index.json to parseTemplateRegistryIndex: ok=false, with versions[0].id, versions[0].schema and files[0].binary reported as unknown fields (and latest failing only because the entry never parsed). The request is a cross-repo fixture — either make the generator emit the documented projection and check a checked-in generated index into this PR's tests, or make the reader accept the redundant schema/id and the observed binary flag, again with a generator-produced fixture rather than a hand-written one.
  2. The cache is not bound to indexUrl. Read registry A successfully, then read https://registry-b.invalid/index.json with the same cacheRoot and a failing transport: state: "read", source: "cache", url naming B, packages from A, and nothing in the result says the data belongs to another registry. Recording the source URL with the cache (or keying the file by it) and treating a mismatch as absent would close it.

If you believe either is out of scope for this PR, say which and why, and I will take that to the owner as a scope decision rather than keep both in the blocking set.

…to the URL

The registry's build-index.mjs spreads template.json into each version entry
(redundant schema/id and variables/preview) and repeats its observation list
as files[], which carries binary. The reader refused all of it, so the first
published package would have made the index invalid as a whole.

Accept those repeats under the manifest rules: schema/id must agree with the
index, variables/preview are validated as manifest fields, and binary is
checked as a boolean and dropped from the manifest-shaped file list. The new
test parses a checked-in index produced by the registry's own builder at a
pinned commit; tests/support/generateRegistryIndexFixture.mjs regenerates it.

Key the cache file by sha256(indexUrl), so one registry's cached metadata can
never answer a read for another URL. Re-measure the cached body after reading
it against maxBytes, and refuse an https-to-http redirect.

Cover the failure paths that had no test: timeout, redirect limit, non-http
redirect, cache write failure, and an EISDIR cache path.
@Antruly

Antruly commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1

Both blocking findings are fixed at 285140a; each non-blocking note is addressed or stated.

Blocking 1 — generator shape: your option 2, with a generator-produced fixture.

  • The reader accepts schema/id as redundant repeats (they must agree with the index when present), variables/preview through the manifest rules, and files[].binary as a boolean that is checked and then dropped from the manifest-shaped file list. Any other key is still refused.

  • tests/support/fixtures/registry-index.generated.json is produced by scripts/lib/package.mjs's buildIndex/renderIndex at Antruly/uvp-templates@a95b3e0, run over a package tree with one text file, one binary asset, and a preview. It carries schema, id, variables, preview, and files[].binary true/false.

  • tests/support/generateRegistryIndexFixture.mjs names the pinned URL and regenerates the file; running it here reproduced the checked-in bytes.

  • On the reviewed head 64ac69a the checked-in file fails the reader:

    packages[0].versions[0].id: is not a field of uvp.registry/1
    packages[0].versions[0].preview: is not a field of uvp.registry/1
    packages[0].versions[0].schema: is not a field of uvp.registry/1
    packages[0].versions[0].variables: is not a field of uvp.registry/1
    packages[0].versions[0].files[0].binary: is not a field of uvp.template/1
    packages[0].versions[0].files[1].binary: is not a field of uvp.template/1
    packages[0].latest: must name one of the package's versions
    

    On this head it parses, and the test asserts the normalized path/digest/bytes file list.

Blocking 2 — the cache is bound to indexUrl. The file is now <cacheRoot>/index-<sha256(indexUrl)>.json, so a read for another URL finds no cache and reports undetermined ("no cached index") rather than A's packages. New test: seed registry A, read registry B with a failing transport, expect undetermined.

Non-blocking

  1. The cached body is re-measured after readFile against maxBytes.
  2. Tests now cover the timeout, the redirect limit, a non-http redirect, a cache write failure (cacheError), and an EISDIR cache path.
  3. An https: → http: redirect is now refused as redirect_refused, tested through the exported policy helper.
  4. latest is documented in the reader as the producer's trusted answer rather than recomputed.

Validation, observed

  • npm run check:pr with the installed libuvcpp 1.7.0: exit 0, 13/13 tasks; test:run 85 files passed | 1 skipped, 1527 tests passed | 9 skipped. The changed sources were md5-checked before and after the run.
  • Focused registry/search/package tests: 4 files, 141 passed.

The PR is still a draft; I am not requesting approval, only the re-review of the delta.

@Antruly

Antruly commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1

CI on 285140a is green: run 39131773689 — 15 checks pass, 2 skipping. Real libuvcpp lane and Windows MSVC toolchain are skipped by change classification, so they are not coverage for this diff; the Windows source gates did run (1m3s). No owner approval — still a draft.

@Antruly

Antruly commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

Re-review — 285140a

Both blocking findings are resolved, and I verified each independently rather than from the new tests.

Blocking 1 — the reader accepts the generator's real output

I did not stop at the checked-in fixture. In a clone of Antruly/uvp-templates I built a package tree (one text file, one binary asset, variables, preview) and ran the registry's own CLI, node scripts/build-index.mjs --write. Its index.json is byte-identical to tests/support/fixtures/registry-index.generated.json, and running this PR's tests/support/generateRegistryIndexFixture.mjs against scripts/lib/package.mjs@a95b3e0 reproduces the checked-in bytes exactly (git status clean). So the fixture is the producer's output, not a hand-written shape.

Fed to parseTemplateRegistryIndex, that CLI output returns ok: true; the entry's redundant schema/id/variables/preview are validated and dropped, and files[] comes back as path/digest/bytes with both binary flags stripped. The pinned commit is also not stale: scripts/lib/package.mjs and scripts/build-index.mjs are byte-identical between a95b3e0 and the registry repository's current HEAD, so the fixture still represents what the generator emits today.

Blocking 2 — the cache is bound to the URL

Independent probe (throwaway, deleted; git status clean): read registry A through an injected transport with a shared cacheRoot; the cache file is index-<sha256(url)>.json; then read https://registry-b.invalid/index.json with a failing transport — state: "undetermined", "no cached index exists at …", no A packages. A's own offline read still returns source: "cache" with A's package. The mismatch is closed structurally, not by a check that could be skipped.

The rest of the delta

Re-measuring the cached body after readFile closes my non-blocking note 1. The https: → http: refusal is a sensible tightening (redirect_refused, served by the exported policy helper), and the new failure-path tests — timeout, redirect limit, non-http redirect, downgrade, cache write failure, EISDIR cache, A-for-B — all pass here.

Verification on this head

  • Focused registry/search/store/package suites: 161 passed.
  • tsc --noEmit, oxfmt --check (10 files), lint (exit 0), knip, verify:test-discovery: clean.
  • Full npm run check:pr with the installed libuvcpp 1.7.0: exit 0; vitest run: 75 files passed | 11 skipped, 1470 passed | 66 skipped (the skips are host-capability gates — Windows, native probe, published-package acceptance — unchanged by this diff).
  • CI at 285140a: CI required success; Real libuvcpp and MSVC lanes skipped by classification, correct for this change.

Non-blocking (my judgement)

  1. When the package's own id is missing, an entry that has id reports must be a string — the entry's id is a string; the actual problem is the package's missing id, which is already reported at packages[i].id. must agree with the package id (with no package id to agree with) would read truer, but the entry is refused either way.
  2. files[].binary is checked as a boolean and then dropped; an index claiming binary: true for a non-asset path is not cross-checked against the package validator's binary-outside-assets rule. That is consistent with trusting the producer (as with latest), and not worth a code change here — one clause in the docblock would make the trust explicit.

Neither is blocking. I will mark it ready and approve it for the owner.

@Antruly
Antruly marked this pull request as ready for review October 18, 2026 13:35
@Antruly

Antruly commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

Owner approval. Approved at 285140af3e75c128691c3ad9732955ffcdf68b0c.

Re-reviewed in this comment. Both blocking findings from the first review are closed, verified independently of the new tests: (1) the index scripts/build-index.mjs --write actually writes in Antruly/uvp-templates is byte-identical to the checked-in generated fixture and parses with this head's reader, with the redundant schema/id/variables/preview validated and files[].binary normalized away; the pinned generator module is also byte-identical at the registry's current HEAD, so the fixture has not drifted; (2) with a shared cache root, registry A's cache is not served for registry B — B reports undetermined with "no cached index", while A's own offline read still hits its cache. The two non-blocking notes recorded there (a misleading id message when the package id is missing, and binary: true not cross-checked against the assets rule) do not hold the change.

At this head: focused registry/search/store/package suites 161 passed; tsc --noEmit, oxfmt --check, lint (exit 0), knip and verify:test-discovery clean; full npm run check:pr exit 0. CI required is success — the Real libuvcpp and Windows MSVC toolchain lanes are skipped by change classification, correct for a TypeScript-only change. Readiness is declared (Owned by @Antruly; author readiness declared.).

Merging as a merge commit at the exact reviewed head.

Recorded by the owner's review assistant at the owner's explicit instruction.

@Antruly
Antruly merged commit a8791a4 into main Oct 18, 2026
19 of 22 checks passed
@Antruly

Antruly commented Oct 18, 2026

Copy link
Copy Markdown
Owner Author

🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1

Thanks for re-deriving both findings from the producer rather than from the new tests — the byte-identical CLI output is the evidence that was missing.

On the two non-blocking notes, no push follows this reply, so the head stays 285140a and any approval names the head it reviewed.

  1. Entry id message when the package id is invalid. Agreed that "must be a string" reads as if the entry's id were the problem. That message is only reachable when packages[i].id has already been reported as invalid, and the version entry is refused either way, so I left it. If you want the wording settled, must agree with the package id (or a variant) is a small follow-up on the next increment rather than a new head here.
  2. files[].binary trust. Deliberate and consistent with latest: the index is the producer's observation, and the binary-outside-assets/ rule belongs to the package validator when the package itself is read. I will add the explicit trust clause to the reader docblock with the download/checksum increment, where the reader starts consuming files[] rather than projecting it.

Validation on this head is unchanged: check:pr exit 0 (13/13), focused 141 passed, CI green at 285140a (15 pass, 2 classification-skips).

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