Skip to content

fix(shiso): complete agent nutrition execution and Apply workflow - #73

Merged
kryptek2000 merged 4 commits into
mainfrom
fix/shiso-agent-execution-repair
Nov 27, 2026
Merged

kryptek2000 merged 4 commits into
mainfrom
fix/shiso-agent-execution-repair

Conversation

@kryptek2000

@kryptek2000 kryptek2000 commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

This PR integrates the accepted SHISO Agent Execution Repair.

  • Adds authenticated autonomous USDA selection through the existing Phase 4 review authority.
  • Preserves production recipe quantity/unit context, including 1/4 cup honey (or brown sugar).
  • Eliminates the selection → Apply stale-state race using a synchronous authoritative review handoff and Apply-time eligibility checks; no timing delays.
  • Adds safe Apply-owner fallback for global Chat when Advanced Nutrition has not been opened.
  • Prevents repeated equivalent tool work and recovers useful progress within the bounded conversation budget.
  • Keeps Analyze with SHISO and Recalculate without AI on their documented authoritative paths.
  • Preserves Vault scope, nutrition provenance, standing authorization, explicit do-not-save safeguards, stale-state protection, and canonical Apply/Save owners.

Accepted evidence

  • Honey FDC 169640, authenticated 1 cup = 339 g, resolved 84.75 g.
  • Immediate selection → Apply → Save → reload persisted status: complete with Honey provenance and no brown-sugar contribution.
  • Real-App global Chat Analyze → Apply → Save works without opening Advanced Nutrition first.
  • USDA-only Analyze fallback remains honest and performs no unauthorized save.
  • Recalculate without AI performs deterministic review work without provider calls or unintended persistence.
  • Focused local regression group: 7 files, 95 tests passed.
  • TypeScript, production build, and git diff --check pass.
  • Independent connected-workflow closure: PASS.

CI follow-ups

Three directly related CI-only test-contract updates were required after the first PR run:

  • Updated two stale closed-vocabulary assertions from 19 to 20 and asserted select_usda_nutrition_source.
  • Updated the matching-isolation assertion to allow only the two canonical-parser imports used by the SHISO read-only projections; no second matcher or catalog surface was introduced.
  • Updated the replay-save UI assertion to expect the accepted guard response after one successful save, rather than a provider reply that is no longer requested.

Scope

The accepted implementation is 21 modified tracked files plus 3 new focused tests. The CI follow-ups modify 5 existing test files only. Temporary audit files, logs, screenshots, generated artifacts, personal Vault data, credentials, and dependency links are excluded.

Known limitations: no live paid-provider verification and no owner acceptance against the personal Recipe Vault were performed. The full repository suite is not claimed here.

@kryptek2000
kryptek2000 merged commit 60313ca into main Nov 27, 2026
14 checks passed
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