[feat] /goal persisted long-horizon workflows - #54
Merged
Conversation
Add /goal create-status-pause-resume-clear, session goal.json, UpdateGoal evidence completion, idle continuation within budget, composer chip, and openai-compatible env names for live Astra smoke. Co-authored-by: Mathis <echobt@users.noreply.github.com>
Co-authored-by: Mathis <echobt@users.noreply.github.com>
Co-authored-by: Mathis <echobt@users.noreply.github.com>
Neutralize CHANGELOG composer wording and comment leftovers. Keep lock-proof bans that forbid competitor names in chrome. Co-authored-by: Mathis <echobt@users.noreply.github.com>
Scrub remaining provider-brand prose in /goal docs and comments. Co-authored-by: Mathis <echobt@users.noreply.github.com>
Capture composer chip states and slash-palette /goal after /plan at 40x12 and 120x40 via the existing board and runtime pipelines. Co-authored-by: Mathis <echobt@users.noreply.github.com>
echobt
marked this pull request as ready for review
September 8, 2026 10:21
|
Too many files changed for review (102 files, 100 file limit). Bypass the limit by tagging |
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
Adds long-horizon persisted goals (
/goal) to Cortex CLI / Cortex Code, stored with the session so an objective survives turn end, compaction, and TUI resume./goal <objective>create/replace the active goal and kick off a plan→act→verify turn/goalstatus (objective, state, progress, budget)/goal pause/resume/clear(reserved tokens only when they are the entire argument)active|paused|complete|budget_limited|blockedactiveand within budget (default 8 turns; wrap-up near the limit)UpdateGoaltool (reason + file/command/test evidence). The model cannot pause. Failed updates are atomic.goal.jsonnext to sessionmeta.json/history.jsonl/plan) and composer chip in designer accent#1F4945Lock v2 boards (designer + runtime) now include
/goalPNG locks at 40×12 and 120×40:goal-chip-active/paused/done/budget/blocked— composer chip text-only (no radios)slash-palettewith/goalafter/planLive
/goalsmoke uses these env names only (never commit or log values):OPENAI_BASE_URLorCORTEX_LLM_BASE_URL/v1(docs/test defaulthttp://84.32.63.4:20128/v1)OPENAI_API_KEYorCORTEX_LLM_API_KEYCORTEX_LLM_MODELcx/gpt-6-astra(gpt-astra404s)If no key is present, unit tests still pass and the live smoke prints
SKIP:with that list. Agent mode still uses the Cortex API; this does not add a third product provider.Test plan
cargo fmt --all -- --checkcargo clippy -p cortex-tui --all-targets -- -D warnings(pre-existingexplicit_counter_loopin untouched files only)lock_v2+lock_v2_goal+lock_palette(goal chip copy,/goalafter/planat both sizes, unique frames, no retired palette)#1F4945present; 0 violet#A78BFA./scripts/clippy.sh,cargo test --workspace, TUI job, audit, coverage)Attestation (required)
I attest that:
.envfiles are included.Risk
Protocol adds
Op::GoalandEventMsg::GoalUpdated. Sessiongoal.jsonis local metadata only. Live smoke is skip-by-default without a key. Compatible/v1env names are aligned; Cortex Agent auth is unchanged. Quality line-count debt onlock_v2.rsis reduced by extracting scene ids.