Skip to content

fix(shiso): preserve multi-recipe evidence and reserve final synthesis - #77

Merged
kryptek2000 merged 1 commit into
mainfrom
fix/shiso-culinary-completion
Nov 28, 2026
Merged

kryptek2000 merged 1 commit into
mainfrom
fix/shiso-culinary-completion

Conversation

@kryptek2000

Copy link
Copy Markdown
Owner

Summary

Repairs SHISO's ability to finish a bounded multi-recipe culinary assignment using verified Recipe Vault evidence. This is the exact nine-file, independently audited repair; no additional development or scope expansion is included.

The owner's demonstrated failure was six discovery/read tool operations followed by:

This conversation turn reached its reasoning budget. Please rephrase or start a new message.

No meal plan was delivered.

What changed

1. Final model-call reservation without increasing budgets

  • The client still enforces 6 model calls and 8 tool calls.
  • One model call is now reserved for the final answer: at most five evidence/tool steps, then finalize on the sixth request with model_invocations_used=5.
  • The server still rejects any request beyond the hard ceiling.
  • A finalize request at the boundary is allowed and receives a reply.
  • If the model still requests a tool on the reserved final call, the server refuses it and the client returns the verified partial deliverable.

2. Bounded evidence retention for multiple recipes

New src/application/shisoTaskEvidence.ts retains, within 5,000 characters:

  • recipe title and provenance;
  • servings;
  • prep/cook/total timing;
  • authored ingredients and quantities;
  • ordered instructions, including merged get_current_recipe pages;
  • explicit ingredient/instruction totals and truncation markers.

Evidence is sent on every later model step, validated again at the server boundary, and labeled as untrusted source data. No missing amount, time, ingredient or instruction is invented.

3. Task-completion discipline and verified partial fallback

  • The prompt now requires one search per requested role, reading candidates with get_vault_recipe, then STOP DISCOVERING.
  • SHISO must not search again for a recipe already retrieved.
  • Once evidence is sufficient, it must synthesize the pairing, cooking sequence and combined ingredient list instead of requesting another tool.
  • Verified facts are separated from culinary suggestions.
  • If the budget ends first, the user receives the verified recipe facts, a specific continuation path and the actual remaining needs instead of a bare "please rephrase" message.

4. Real-App disposable Vault acceptance

A real App test connects a disposable on-disk Vault containing:

  • Honey Glazed Salmon (complete ingredients, quantities, servings, timings, instructions);
  • Cucumber Salad with Sesame and Rice Vinegar (complete ingredients, quantities, servings, timings, instructions).

The test sends the multi-recipe discovery/read/pairing/sequence/combined-list request and verifies:

  • both recipes are found and read;
  • the final request carries both recipes' ingredients, quantities, servings, timing and instructions;
  • the final response is displayed with pairing, cooking sequence, combined ingredient list, suggestions and unavailable information;
  • six model calls, five tool calls;
  • no Apply, no Save;
  • both recipe files remain byte-for-byte unchanged;
  • no codexNutrition is written.

5. Authorization, security and Vault boundaries

  • Closed SHISO capability vocabulary preserved.
  • No Apply or Save occurs in the acceptance path.
  • No mutation replay or stale review behavior is loosened.
  • Vault is read-only; recipe text is untrusted evidence, never instructions or authorization.
  • Budgets, authentication, rate limits, error boundaries and Phase 4/5 authorities are unchanged.

Verification

Check Result
Bounded recipe evidence tests 3/3 PASS
Multi-recipe client completion tests 2/2 PASS
Real-App on-disk tests 11/11 PASS
Server prompt/validation/security file 38/38 PASS
SHISO unit/security/UI group (41 files) 470/470 PASS
SHISO integration files, independently 37/37 PASS
TypeScript tsc --noEmit PASS
Production build PASS
git diff --check PASS

The deterministic end-to-end test proves transport, evidence and budget behavior. It uses a scripted final response and does not demonstrate live-model culinary reasoning quality.

Scope

Nine files: five production files (one new evidence module), four test files. No recipe-specific shortcuts, hardcoded food names, budget inflation, new nutrition engine, UI redesign, paid-provider calls, personal Vault access, commit, merge, installation or deployment beyond this PR.

Not merged.

@kryptek2000
kryptek2000 merged commit f2049ed into main Nov 28, 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