Add configurable taskFlow memory policies and session reset handling for verifier/developer#1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
taskFlow.memoryschema with optionskeepDeveloperMemory,keepVerifierMemoryOnDeveloperFailure, andverifierSelfFailureMemory(values:keep,reset,reset_on_malformed_output) inconfig.tsand load default values when missing.runTaskFlow) to detect whether a verifier transition was due to an unmatched/malformed output versus a verification failure, and pass areason(verification_failed|malformed_output|error) intoapplyVerifyFailure.resetStageMemoryinindex.tsto dispose existing runners, increment per-stagesessionResetCounts, and create new session files, and call it fromapplyVerifyFailureaccording to the configured memory policy.sessionResetCountstoTaskStateinstate.tsso resets are tracked per task stage./.pi/workflows/default.workflow.jsonandREADME.mdto include newtaskFlow.memorydefaults and documentation.tests/config.test.ts,tests/config-extended.test.ts, andtests/engine.test.tsto cover schema validation, defaults, custom memory policies, verifier retry behavior, and reason propagation.Testing
tests/config.test.ts,tests/config-extended.test.ts,tests/engine.test.ts) which exercise schema loading, memory defaults/validation, andrunTaskFlowbehaviors, and all tests passed.Codex Task