Skip to content

Expose Katana forward-estimate diagnostics - #459

Open
rossgalloway wants to merge 1 commit into
mainfrom
codex/katana-forward-diagnostics
Open

Expose Katana forward-estimate diagnostics#459
rossgalloway wants to merge 1 commit into
mainfrom
codex/katana-forward-diagnostics

Conversation

@rossgalloway

Copy link
Copy Markdown
Collaborator

Summary

Kong already stores three Katana forward-estimate diagnostics, but the fixed GraphQL component type did not expose them. This PR adds exactly estimatedDebtCoverage, morphoBaseAPY, and morphoRewardsAPR to GraphQL and documents their meanings.

Related to #432.

How to review

Review packages/web/app/api/gql/typeDefs/vault.ts first to confirm that only the three nullable Float fields were added. Then review docs/graphql.md and the extended Katana container test, which checks the same seeded values through GraphQL, the chain-scoped REST vault list, and the REST snapshot.

No ingestion, resolver, fallback, promotion, shared type, or database behavior changed.

Test plan

  • Manual: Build the production web app and verify GraphQL introspection exposes the three nullable Float fields.
  • Automated: bun run test:containers katana-estimated-apr.containers.spec.ts (5 tests passed).
  • Automated: bun run build in packages/web.
  • Automated: Run ingest, lib, terminal, and web package lint commands with zero errors.
  • Automated: git diff --check.

Risk / impact

Risk is low. The production change only adds three nullable GraphQL fields. REST list and snapshot output already preserve these component keys, and the integration test proves their numeric values remain unchanged. There is no database migration and no APR or APY fallback change. Reverting this commit removes the GraphQL fields and tests.

Add the three accepted forward-estimate component fields to the GraphQL schema and documentation.

Extend the Katana container test to verify GraphQL, REST list, and REST snapshot preserve the exact diagnostic values.
@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
kong Ready Ready Preview Aug 24, 2026 8:45pm

Request Review

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