Skip to content

Stabilize workflow prompt caching#168

Merged
SihaoLiu merged 1 commit into
PolyArch:h2-devfrom
biquanha:fix/workflow-prompt-cache
May 19, 2026
Merged

Stabilize workflow prompt caching#168
SihaoLiu merged 1 commit into
PolyArch:h2-devfrom
biquanha:fix/workflow-prompt-cache

Conversation

@biquanha
Copy link
Copy Markdown

Move stable workflow agent instructions and task text ahead of volatile workflow context so Claude Code sees a reusable prompt prefix across workflow turns.

Serialize workflow artifacts and inputs with deterministic key ordering to avoid incidental prompt churn from object insertion order.

Add a CI cache stability check that fixes the Claude Code version envelope and verifies 100 dynamic workflow turns keep more than 90 percent of prompt bytes reusable without calling external model services.

Validation: npm run test:cache; npm test; npm run typecheck; npm run build.

@biquanha biquanha force-pushed the fix/workflow-prompt-cache branch from d9021e1 to 1d3ba53 Compare May 18, 2026 09:51
Move stable workflow agent instructions and task text ahead of volatile workflow context so Claude Code sees a reusable prompt prefix across workflow turns.

Serialize workflow artifacts and inputs with deterministic key ordering to avoid incidental prompt churn from object insertion order.

Add a CI cache stability check that fixes the Claude Code version envelope and verifies 100 dynamic workflow turns keep more than 90 percent of prompt bytes reusable without calling external model services.

Validation: npm run test:cache; npm test; npm run typecheck; npm run build.
@biquanha biquanha force-pushed the fix/workflow-prompt-cache branch from 1d3ba53 to 67bc76f Compare May 18, 2026 09:56
@SihaoLiu SihaoLiu merged commit b1a4e8e into PolyArch:h2-dev May 19, 2026
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.

2 participants