Skip to content

fix(registry): the lint and the wall probe read the fenced registry through its door - #839

Open
bllshttng wants to merge 3 commits into
mainfrom
bugfix/x-182f-agents-registry-json-path
Open

bllshttng wants to merge 3 commits into
mainfrom
bugfix/x-182f-agents-registry-json-path

Conversation

@bllshttng

Copy link
Copy Markdown
Contributor

Summary

  • Once the graph table imports the agents registry, ~/.fno/agents/registry.json becomes a fence directory. The registry lint read that path as a file, fell back to an empty set, and reported a clean result it never measured. It now reads through registry_text and reports unmeasured with the reason when the read fails.
  • The door returns the registry document object, with the rows under agents. The lint now accepts that shape. My first version required a bare array and would have reported unmeasured on every run; the second commit fixes it.
  • The lead-checkin wall probe accepts the fence only beside the cloned graph.db that holds the rows. A bare directory is refused by name.
  • The state-root inventory now has a row for the fence and says never to delete it to clear a stray.

The node's premise was that the directory was a stray to remove. Measurement showed it is the designed post-import fence, so the work went to the readers and the inventory instead.

Changes

  • crates/fno-agent/src/backlog/lint_registry.rs: declared_row_names reads through the registry door and returns a Result; live_field_coverage reports unmeasured on a failed read.
  • scripts/diagnostics/lead-checkin-wall-probe.sh: the required-input check accepts the fence only with graph.db cloned beside it.
  • docs/state-root-inventory.md: a row for agents/registry.json (the fence).

Test Plan

  • CI builds and runs the suite. Local checks: rustfmt --check on lint_registry.rs passes, check-file-budget.sh passes, and fno doctor lint style passes on the changed markdown.
  • Exercise fno agent lint on a machine with the fenced registry and confirm it reports measured findings, not unmeasured.

Audited owners: crates/fno-agent/src/backlog/lint_registry_tests.rs (no cut: its one test covers declared_entry_fields source parsing, a distinct contract this change does not touch)

Fixes x-4941 (x-182f)

…hrough its door

The agents registry.json path is a fence directory once the graph table
imports it. declared_row_names read the path as a file and fell back to
an empty set, so the lint reported a clean result it never measured. It
now reads through registry_text and reports unmeasured with the reason
when the read fails. The wall probe accepts the fence only beside the
cloned graph.db. The state-root inventory names the fence.
The door returns the registry document object, with the rows under
agents. Requiring a bare array made every fence read fail, so the lint
reported unmeasured on every run. Accept both shapes.
The lint's registry read added a Result<_, String> to fno-agent, which the
value-reads ratchet caps at zero growth. Return io::Result and keep the
named reason in the error text.

This branch has not been deployed

No deployments
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