Skip to content

docs: cover defensive JSON parsing, empty-output retries, and resume caching - #138

Merged
QuintinShaw merged 2 commits into
mainfrom
docs/defensive-parsing-empty-output
Jul 30, 2026
Merged

docs: cover defensive JSON parsing, empty-output retries, and resume caching#138
QuintinShaw merged 2 commits into
mainfrom
docs/defensive-parsing-empty-output

Conversation

@QuintinShaw

Copy link
Copy Markdown
Owner

Summary

Test plan

  • npm test — 1151 passing, release gate 0 warnings
  • New example executed for real in tests/workflow-authoring-skill.test.ts (complete / unparseable / missing branches)

…caching

agent() always resolves to raw text unless `schema` is set, and a call
whose only attempts ended in a recoverable failure (e.g. AGENT_EMPTY_OUTPUT)
is never journaled. Document both facts in README and the workflow-authoring
skill, add a defensive-json-parsing example alongside structured-output.js,
and note agentRetries: 1-2 as fleet guidance for models with occasional
empty output.

Refs #134, #135
…g-empty-output

# Conflicts:
#	docs/workflow-context-surfaces.json
#	docs/workflow-guidance-baseline.json
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