Task: T11293 add --parent none escape hatch for depth-2 focused-session auto-parent trap - #1135
Open
kryptobaseddev wants to merge 1 commit into
Open
Task: T11293 add --parent none escape hatch for depth-2 focused-session auto-parent trap#1135kryptobaseddev wants to merge 1 commit into
kryptobaseddev wants to merge 1 commit into
Conversation
…on auto-parent trap - Add --parent none sentinel to suppress session-based parent inference. Both --parent and --parent-id aliases accept "none"; neither dispatches the literal string as a parent ID. - Forward sentinel to inferTaskAddParams so Core skips the focus-task heuristic when the user explicitly opts out. - Fix depth-cap error message: never promise standalone task creation under strict-spine (T11811); point to a concrete higher-level container instead. - 12 unit tests (all pass): 7 existing + 5 new covering --parent none, --parent-id none alias, sentinel forwarding, and inference suppression. --field /data/created/0 + --quiet already verified correct by existing output-contracts tests and the mutate-minimal-envelope middleware. Closes #1127
kryptobaseddev
force-pushed
the
task/T11293
branch
from
August 2, 2026 05:49
c731009 to
4f5543e
Compare
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.
Summary
Fixes #1127: the depth-2 focused-session failure where
cleo addauto-parents a new task to the current focus task (at max depth), causingE_CLEO_DEPTH_EXCEEDEDwith misleading remediation guidance.Changes
--parent nonesentinel (CLI + Core)Both
--parentand--parent-idaccept"none"to suppress focus-task inference. The sentinel is forwarded toinferTaskAddParamsbut never dispatched as a literal parent ID.Depth-cap error message fix
Removes misleading "omit --parent to create a standalone task" guidance. Under strict-spine containment (T11811) only sagas may be root-level, and the parent may have been auto-inferred from the session focus. Points to a concrete higher-level container or
--parent noneinstead.--field /data/created/0 + --quiet
Verified already working correctly via existing output-contracts tests and the mutate-minimal-envelope middleware. No changes needed.
Files changed (4)
packages/cleo/src/cli/commands/add.tspackages/cleo/src/cli/commands/__tests__/add-parent-inference.test.tspackages/core/src/tasks/add.tspackages/core/src/tasks/infer-add-params.tsTest Evidence (12/12 pass)
Closes #1127