Skip to content

feat(vault): report wiring and feed health - #260

Open
hpmaxi wants to merge 3 commits into
feat/oracle-swapfrom
feat/vault-health
Open

hpmaxi wants to merge 3 commits into
feat/oracle-swapfrom
feat/vault-health

Conversation

@hpmaxi

@hpmaxi hpmaxi commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR adds health(). It warns when freshness_duration is shorter than the notice, so an epoch does not reopen cancellation on its own, and it reports the feed's state and every wiring check finish_setup makes except the share supply. The harness deploy prints it and fails on a wiring gap.

Changes

  • health() reports setup, the token and oracle bindings, the sole manager role, the allowlist and the compliance binding
  • It also reports whether the feed can price now and whether a report outlives the notice
  • The harness deploy prints it and stops when a wiring flag is false

Deviations

  • The oracle's emergency stop is the NAV pause in this base (pause_nav), not the plan's "ripcord" naming; the test and the kit-spec line ("the NAV is not paused") use that name instead.

Acceptance criteria

  • One flag per wiring check, the same checks finish_setup uses
  • feed_valid false with no report or a raised NAV pause
  • freshness_covers_notice false when the notice is longer than a report lives
  • The harness deploy prints health() and fails when a wiring flag is false

Test plan

Automated tests

  1. cargo test -p async-vault health: 5 passed (plus 1 pre-existing unrelated test matched by the name filter).
  2. cargo test --locked (whole workspace): 369 passed in async-vault; all other crates unchanged and green.

Manual verification

  1. HARNESS_NETWORK=local npm run deploy -w scripts/harness against a local stellar/quickstart network: the output has a health line with every wiring flag true, setup_open false, feed_valid false (expected pre-attestation), freshness_covers_notice true.

Breaking changes

None.

Checklist

  • Self-reviewed my own diff
  • Tests added or updated
  • Docs updated (if applicable)
  • No unrelated changes bundled in

Screenshots

None.

@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
strata-vault-kit-app Ready Ready Preview Oct 19, 2026 5:32pm UTC

Request Review

@hpmaxi
hpmaxi marked this pull request as ready for review October 17, 2026 16:19

This branch was successfully deployed

1 active deployment
Preview — 9022ed5d Deployed Oct 19, 2026 by vercel[bot]
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