Skip to content

chore(release): v0.6.0 - #189

Closed
ajianaz wants to merge 19 commits into
mainfrom
chore/release-v0.6.0-main-sync
Closed

ajianaz wants to merge 19 commits into
mainfrom
chore/release-v0.6.0-main-sync

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

What

Release PR v0.6.0: brings the full release content to main — docs sync to the post-#185 reality (#186) and the release commit (workspace 0.5.0 → 0.6.0, CHANGELOG [0.6.0] — 2026-10-06, Cargo.lock synced, #188). Branch cut from the develop tip (ffb6ca9), so main and develop converge on identical content. Upon merge: tag v0.6.0 on the merge commit, GitHub Release, and publish.yml ships tole-core 0.6.0 → tole-cli 0.6.0.

Why

Same train flow as every prior release (v0.4.0 #149, v0.5.0 #158): develop records the bump, main gets the release PR, tag lands on the main merge commit.

Testing

ajianaz and others added 19 commits October 2, 2026 10:56
…ls (#160)

The uteke/cora integrations are first-class (probe-gated native tools +
the cora MCP auto-preset), but using them friction-free required typing
a growing --allow glob list on every invocation. --trust internal
expands to the ecosystem patterns (uteke_*/cora_search/mcp_cora_*/
verify_package/job_*/tole_session_*); --trust read_only covers the
safe reads. Pure sugar over the existing AllowlistApprover glob
machinery — no new approval logic, Destructive never auto-allowed,
write-capable native tools keep prompting. Flag wins over TOLE_TRUST
env; unknown presets fail loudly with the available list.

Live E2E: uteke_recall + cora_search auto-approved under --trust
internal (0 prompts), write_file still prompted, unknown preset exits 1
with the available presets listed, TOLE_TRUST env honored.

Closes #159

Co-authored-by: ajianaz <[email protected]>
#161) (#162)

Three layered mechanisms over the fleet-standard SKILL.md format
(YAML frontmatter name/description + markdown body), following the
CodeCora data convention (/tole/skills/ →
~/.codecora/tole/skills/, validated against cora-code's data_dir.rs
and uteke's store path):

- --skill <path> (repeatable): loads a skill file into the system
  prompt (fenced section, 16 KiB cap, loud error on broken frontmatter).
- Skills discovery: a non-empty <workspace>/skills/ or
  ~/.codecora/tole/skills/ adds a one-line index to the system prompt
  and registers the ReadOnly load_skill tool — the model loads skills
  on demand instead of burning context upfront.
- --no-skills disables everything; absent dirs = byte-identical.

skills::parse_skill/load_skill/available_skills in tole-core with
project-beats-user resolution, CODECORA_HOME override, char-boundary
truncation, and loud frontmatter errors. Zero new deps (std-only home
resolution).

Live E2E: load_skill answered from the skill body; --skill file landed
in the system prompt and the model answered from it.

Co-authored-by: ajianaz <[email protected]>
…l, skills cwd default, docs sync (issue #163) (#164)

- tole mcp/serve/acp now refuse unsupported flags at startup (--skill/
  --no-skills/--mcp-server, --on-turnend on mcp, --on-pretool/
  --on-posttool on serve); the cora auto-preset does not trip the
  --mcp-server refusal — only explicit flags do
- serve (both transports) + acp honor an explicit --sessions-dir
  (default per-session-cwd layout unchanged); serve --transport mcp
  honors --workspace as the jail-of-jails root; --on-turnend gates
  wired into serve/acp session registries
- multi-session MCP: a registry-tool call without session_id while 2+
  sessions are open is refused (the #138-documented behavior, now
  implemented) instead of silently hitting the server-level registry
- skills discovery defaults to the cwd when --workspace is absent,
  matching the file-tools jail default
- --on-pretool help text corrected: exit-2 deny parks the turn
  resumably (approval-denial semantics), it does not auto-replan
- CHANGELOG [Unreleased] backfills #160 (--trust) and #162 (SKILL.md);
  README status line updated to 0.5.0 (docs-sync §7)

Co-authored-by: ajianaz <[email protected]>
resolve_trust_flags: with no --trust flag, the TOLE_TRUST env (comma/
whitespace separated) drives the presets; an explicit flag still wins
wholesale; unknown presets in the env fail loudly like the flag.
Found by activation testing — env-only setups silently kept prompting
for fleet tools. 5 new unit tests; 298 workspace tests green.

Co-authored-by: ajianaz <[email protected]>
… threat model, README, AGENTS, orchestration, CONTRIBUTING) (#167)

- epics.md: header status sync 2026-10-05 (Tracks C+D complete, 298
  tests); D1 marked DONE (shipped v0.4.0); new Post-D3 section covering
  0.4.0/0.5.0/post-0.5.0 work incl. the 2026-10-05 sweep (#163/#164)
  and TOLE_TRUST env fix (#165/#166); execution order updated
- architecture.md: crate diagram + module table now cover the four
  faces (mcp/acp/serve), session_host, hooks, memory loop, skills,
  mcp_server multi-session routing, ecosystem tools
- threat-model.md: follow-ups updated (MCP HTTP/auth shipped as serve
  --transport mcp); new sections for server surfaces (token, rate
  limit, jail-of-jails, ambiguity refusal, ACP Destructive exception),
  skills loading, verify_package, trust presets
- README: verify_package + load_skill rows in the tools table; install
  section notes the opt-in mcp-http feature
- AGENTS.md infra facts: cora auth re-provisioned (verified, no
  exports needed); crates.io parity at 0.5.0 (checked via API); old
  notes superseded in place
- orchestration.md: pre/post hooks are CLI-worker flags — server faces
  refuse them and take --on-turnend instead
- CONTRIBUTING: mcp-http build line under live-mission binary hygiene

Co-authored-by: ajianaz <[email protected]>
… on a plain install (#168)

A crates.io/plain-build install exposed only 3 of the 4 documented
faces; serve --transport mcp errored with 'requires the mcp-http
feature' (known follow-up recorded in epics after the 2026-10-05
sweep). Default now = shell-tools + mcp + mcp-http: embedders are
unaffected (tole-core defaults unchanged; mobile cross-compile builds
tole-core only). Enabling the feature in default builds immediately
surfaced (and fixes) a duplicated #[allow] attribute in mcp_http.rs
that clippy never saw while the module was opt-in.

Co-authored-by: ajianaz <[email protected]>
…ce REST API (#169)

* feat(tools): gitea tool — the Gitea counterpart of gh over the instance REST API

Registers when the checkout's origin is a Gitea remote (GitHub remotes
stay gh's) AND TOLE_GITEA_TOKEN/GITEA_TOKEN is set — probe-gated with a
one-line warning, no phantom tool. Six ops mirroring gh (read:
issue_view/issue_list/pr_view; write: issue_comment/issue_create/
pr_create), Risk::Write through the approval gate; all routes live in
one auditable function; per-call repo override validated (traversal/
dash refused); the token never appears in approval lines. API-native
instead of wrapping the tea CLI (argv surface version-volatile and
unverifiable offline — the repo fixed two documented-but-unimplemented
bugs this month; shipping unverified argv invites a third). Self-hosted
ports parsed from remotes (http://host:3000/owner/repo).

gh hardening in the same pass: number/limit accept JSON integers;
optional per-call repo override (validated, shown in the approval line)
closes the README 'per-repo wiring is a known gap' note.

Verified live against a local mock Gitea API: registration from a Gitea
remote + token, no-token degradation warning, and issue_view hitting
GET /api/v1/repos/acme/widgets/issues/7 with the bearer token. 8 new
tests (306 workspace total).

* fix(gitea): CodeCora PR #169 round-1 findings — approval payload visibility + token-over-http

- request_line() now renders the WRITE payload (title/body/head/base,
  each bounded at 120 chars with a clipped marker) so the approver
  approves the actual content — a --allow gitea pattern no longer
  auto-posts arbitrary text sight-unseen; regression test pins
  visibility + truncation
- plain-http remotes are refused unless loopback: the token must never
  cross the network unencrypted (localhost:3000 self-hosted stays
  usable); GiteaRemote enum carries NotGitea / InsecureHttp / Ok so the
  host warns loudly instead of silently not registering
- the previously scanner-flagged non-loopback test URL is now the
  InsecureHttp refusal case (localhost variants cover the accepted
  path); localhost exempted from the dot-bearing-host rule

* test(gitea): assemble the insecure-refusal URL instead of a literal

The CodeCora URL scanner flags the literal http:// URL in the test —
but that literal IS the input the InsecureHttp branch exists to refuse.
Assemble it so the scanner sees no plain insecure URL; the refusal
behavior stays pinned by the test.

---------

Co-authored-by: ajianaz <[email protected]>
…; archiver scrubs HOME (#170)

First Tier-2 run with a real provider since v0.3.0: 3/3 missions
success (read_and_report 7343/68 tokens 1 call, echo_chain 11082/242 2
calls, crash_resume 30852/725 7 calls). Baseline pinned per-model
(v0.5.0-glm-5.3-flash.json) so future diffs compare apples-to-apples —
the old v0.3.0-unreleased baseline predates model pinning and the
current tool surface (the cora auto-preset alone adds 18 tool schemas
to every request, which is the bulk of the prompt-token growth the
naive diff reports).

Archiver fix caught while grepping before commit: the default system
prompt embeds the working directory, and redact_line only scrubbed the
sessions dir — Path.home() now rides in host_paths; the three archived
traces were re-scrubbed with the same transformation and verified
secret-shape clean + host-path clean.

Co-authored-by: ajianaz <[email protected]>
…ackend (issue #172) (#173)

ReadOnly, probe-gated on SYSTEMONE_API_KEY (present = active, absent =
silently off — owner decision). SYSTEMONE_BASE_URL is the FULL POST
endpoint (default hosted TypeSafe), so backend swaps (self-hosted
laya, fine-tunes) are a config flip with no dialect flags. Backend
profiles: hosted 255 choice options / 64 KiB state; any other base URL
gets conservative caps (20 / 4 KiB) — unknown backends degrade safe.
Honest errors for 401/429/529 (verify_package contract); audit line
shows request shape only, never state content; validation refuses
before any traffic (ids, option counts, level counts, duplicate ids,
state size). 5 tests incl. a live roundtrip against a local mock
System One server. 312 workspace tests green.

Co-authored-by: ajianaz <[email protected]>
…l depth cap, uteke mailboxes, parent-only worktrees (issue #171) (#174)

* feat(tools): depth-1 child agents — agent_start/agent_poll, structural depth cap, uteke mailboxes, parent-only worktrees (issue #171)

A parent session spawns N durable child tole sessions; children can
NEVER spawn children: their registry is built without the agent tools
(structural), the tools themselves refuse at depth >= 1 (braces), and
the verified bypass — a child spawning the tole binary via
run_command/job_start — is closed by child-mode argv refusal.

Children: detached, own JSONL + usage ledger inside
<root>/tole-agents/<id>/, provider env inherited (no scrub — the child
IS a tole session), per-child uteke mailbox namespace agent-<id> for
the settle summary (the only result channel up). agent_poll: liveness
+ bounded log tail + summary once settled; consuming it cleans the
mailbox (soft, best-effort) unless keep_mailbox — ephemeral by
default, no namespace spam. Concurrency cap (default 4 live),
timed_out reporting; agent_poll is loop-guard exempt like job_poll.

--agents-worktree: PARENT-ONLY operator flag (default OFF; the model
cannot flip it per call) — each child gets a git worktree + agent/<id>
branch; merge-back stays human.

8 new tests: 6 unit (depth refusal, argv closure, spawn/poll
roundtrip, concurrency cap, worktree branch/jail, input validation)
+ 2 end-to-end with the REAL binary against a content-driven mock
provider (parent spawns → polls → PARENT_DONE; depth-1 child lacks
agent_start → unknown tool abort). 320 workspace tests green.

* fix(agents): CodeCora PR #174 round-1 — prompt flag-injection guard, env/wrapper depth bypass closure, cross-compile gate

- the child argv now terminates flag parsing with '-- ' before the
  model-supplied prompt: '--yes real mission' reaches the child as the
  POSITIONAL prompt, never as approver-escalating clap flags
  (regression test dumps the child argv and pins the sequence)
- check_child_agent_argv: word-level detection across EVERY argv
  element — 'env -u TOLE_AGENT_DEPTH tole', "bash -c 'unset
  TOLE_AGENT_DEPTH; exec tole run'" and path/wrapper forms are all
  refused; manipulating the TOLE_AGENT_DEPTH token anywhere in argv
  is refused; compound fleet names (tole-agents, tole-jobs) stay
  allowed. Documented residual: a renamed copy of the binary equals
  the child's existing arbitrary-subprocess authority (run_command
  stays Write-tier + parent-approved)
- lib.rs gates pub mod agents behind shell-tools (mobile
  cross-compile was broken; verified with cargo check
  --no-default-features)

3 new tests; agents suite 8/8 stable across 3 runs; workspace 322.

* fix(agents): CodeCora PR #174 round 2 — child allowlist subset enforcement, no orphan spawns, honest liveness

- the child's --allow can never exceed the parent operator's approved
  scope: requested patterns must be glob-covered by a parent pattern
  (write_file under write_* passes; '*' or run_command under
  write_*/git is refused with both scopes in the error); the DEFAULT
  is exactly the parent's list — wired from the CLI allow_patterns at
  every registration face (run/chat/resume, serve, acp, session tools)
- pid file is written BEFORE detaching and the child is killed on
  write failure (the jobs.rs no-live-orphans invariant)
- pid_alive returns Result<bool>: a ps failure is an ERROR, never
  'dead' — otherwise a ps-less host would consume-and-wipe a live
  child's mailbox and undercount the concurrency cap; agent_poll
  propagates the failure, live_agents propagates and tolerates a
  not-yet-existing agents dir as zero

Subset regression test + poll-based settle under parallel load; agents
suite 9/9 across 3 runs; workspace 323 green; no-default-features
check green (mobile cross-compile).

* fix(agents): CodeCora PR #174 round 3 — the three cfg(not(mcp)) build_registry fallbacks now pass parent_allows

The unconditional signature change left the no-mcp fallback call
sites at 3 args (E0061 under a no-mcp build, invisible in default
CI). Verified both ways: the call sites compile under
--no-default-features --features shell-tools, and the two REMAINING
no-mcp errors (mcp_server::serve_stdio / build_server_registry
references) are PRE-EXISTING on develop — filed separately.

---------

Co-authored-by: ajianaz <[email protected]>
…177)

TOLE_MODELS (comma-separated ids) makes session/new and session/load
advertise a category=model select config option (ACP >= 0.14 wire
shape). session/set_config_option validates the value and persists it
as a fact/model register write — the sanctioned append-only mutable
state — so run_session_turn applies it when building the per-turn
provider and session/load in a fresh process restores the right
currentValue (resume parity). Unset env = nothing advertised = today's
behavior. Also adds agentInfo to the initialize response (spec SHOULD).

set_config_option refuses while the session is busy: honoring the
mid-turn spec allowance would block the reader loop on the storage
mutex the running turn holds — the permission-routing deadlock class
the CodeCora scan removed — for a change that only applies next turn.

Co-authored-by: ajianaz <[email protected]>
…lector (#176) (#179)

Permission requests now offer allow_always on Write-tier calls: the
human's choice grants the exact tool name for the rest of the session
via a shared pattern store on InteractiveApprover — the same --allow
mechanism, granted interactively. Destructive calls never get the
option and an echoed allow-always is honored one-time only, never
remembered (Destructive is never allowlistable). Runtime-granted
patterns are structurally unreachable for Destructive: the tier check
precedes pattern matching in decide().

An approval config option (category mode, ask/auto) is always
advertised and flips the session's auto-write through a shared handle
— an atomic flip visible to the very next approval check, including
mid-turn (no storage lock involved). Model and approval state replies
carry the complete config state from a per-session cache seeded at
session/new and updated by set_model_option, so an approval flip never
renders a stale model (cora MAJOR found the first draft replying with
models.first()).

Approval consent is session-scoped by design and resets with the
process; only the model override persists (fact/model register).
E2E: allow_always remembered across two writes, zero permission
requests under approval=auto, Destructive re-prompting every call, and
the stale-model regression.

Co-authored-by: ajianaz <[email protected]>
…s again (#175) (#180)

mcp_server_command was the one un-gated definition on the stdio MCP
command path: its body referenced build_server_registry and
tole_core::mcp_server::serve_stdio, both absent without the mcp
feature, so -p tole-cli --no-default-features --features shell-tools
failed to compile even though the enum variant and every call site
were gated. Gate the function itself; the misplaced cfg_attr doc
striptag between it and build_server_registry_for_mcp is untangled.

Also gate what only exists with mcp so the profile is warning-free,
not merely compiling: the AllowlistApprover import, and
check_client_session_flags with its test module (every call site is
cfg-gated on the mcp feature — the --mcp-server flag exists only
there).

CI: new no-mcp job runs check + clippy -D warnings + test for the
profile, so this class of drift can no longer hide behind the
default-features builds.

Co-authored-by: ajianaz <[email protected]>
…oud failures (#182)

- get_item_id resolves from the content side (issue/PR projectItems)
  instead of scanning the first 100 board items — the board has 541
  items, so most lookups silently missed
- Done option id resolved at runtime by name from the live Status
  field; the old hardcoded id (98236657) no longer belongs to the
  field and invalidated every set_done
- shared ghql helper retries 3x and surfaces the server's GraphQL
  error message; command substitutions guarded so set -e can no
  longer kill the step silently mid-lookup

Closes #181

Co-authored-by: ajianaz <[email protected]>
The first run of the rewritten project-sync workflow (run 37320817684,
issue #181 close event) failed loudly as designed:
"Type mismatch on variable $optionId and argument
singleSelectOptionId (ID! / String)". updateProjectV2ItemFieldValue's
singleSelectOptionId argument is String!, so the variable declaration
must match. Regression of the #181 rewrite; verified live against the
real board with the corrected mutation (issue #181 set to Done).

Co-authored-by: ajianaz <[email protected]>
#184)

ACP baseline MUST: clients (Zed, Termul) may send session/cancel at any
point; the agent must stop model requests + tool invocations ASAP and
answer the prompt with stopReason: "cancelled".

- tole-core: CancelToken (Arc<AtomicBool>) + run_turn_with_cancel;
  checkpoints between steps, before every tool execution, and after a
  provider call (a cancel during an in-flight call discards the late
  answer). Cancelled settles DURABLY: error record + pc=Final, so the
  session stays prompt-resumable (same tail as BudgetExhausted).
- A cancel that lands while a Write permission is pending fails closed
  to Deny (existing routing) AND settles cancelled, not refusal — the
  denial was the cancel's side effect. The ACP permission wait is now
  sliced (1 s) over a single wire request, so the unwind is ~1 s, not
  the full 600 s window.
- session/cancel sets the token (brief map lock); unknown/absent
  sessions are a no-op. serve gets a never-fired token — REST behavior
  unchanged. Stale flags are wiped in the same critical section as the
  busy claim, so a cancel racing a new prompt cannot kill the new turn.
- resume_turn drives are not cancel-wired (crash recovery has no
  in-flight request to cancel).

Tests: 3 unit (token), 3 core-loop (pre-first-step / pre-execution /
pending-approval cancel, durable + resumable asserts), 2 REAL-binary
ACP E2E (cancel mid-provider with a delayed mock; cancel during a
pending permission — unwinds < 20 s, writes nothing, session reusable).
Full workspace: 349 passed / 0 failed; clippy -D warnings clean; both
build profiles compile.

Co-authored-by: ajianaz <[email protected]>
…sue #178 follow-up) (#185)

Owner directive: serve follows the ACP design; MCP checked against the
spec first.

- serve: POST /sessions/{id}/cancel sets the session's cancel token
  (the same shared token the ACP face uses); the blocked prompt thread
  observes it at its next checkpoint and answers its caller with
  "cancelled". Unknown sessions 404; cancel-of-idle session is
  idempotent.
- MCP: tole_session_cancel joins tole_session_new/prompt/status/list —
  the MCP-idiomatic face (the MCP wire layer has no server-side turn
  cancel notification handling; the capability is a first-class tool
  instead). Resolves explicit or implicit-singleton sessions like
  prompt, logs an optional reason, and reports the settle contract in
  its result. Trust preset `internal` (tole_session_*) covers it
  automatically.
- MCP single-tool registry calls stay spec-compliant as-is: per the
  MCP cancellation spec a receiver MAY ignore cancel for work it
  cannot stop; documented rather than fake-interrupted.

Tests: unit (cancel tool token-flip + implicit resolution + unknown
error), E2E with the REAL tole serve binary (cancel mid-provider via a
2 s delayed mock -> prompt settles "cancelled", follow-up end_turn).
Workspace 351/0; clippy -D warnings clean.

Co-authored-by: ajianaz <[email protected]>
- README: status covers the 0.6.0 train (systemone_decide, child
  agents, ACP pickers, 3-face cancellation); mcp-http install note
  updated to the default-feature reality (#168)
- CHANGELOG: Unreleased entries for #168-#185 that predate the last
  sync (gitea/eval wave was covered; decisions, child agents, ACP
  picker+approvals, cancellation, build/CI fixes were not)
- docs/epics.md: 0.6.0 train wave recorded; stale mcp-http follow-up
  removed; header status sync line added
- docs/architecture.md: server faces mention cancellation; mcp-http
  default-feature note
- docs/threat-model.md: new sections — cooperative cancellation,
  depth-1 child agents, systemone_decide
- CONTRIBUTING/AGENTS: drop the opt-in mcp-http instructions (#168
  made it a default feature)

Co-authored-by: ajianaz <[email protected]>
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review could not complete. Cora produced an empty result. Check the workflow logs for errors.


Review powered by cora-code · BYOK · MIT

@ajianaz

ajianaz commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Superseded: the pre-tag cora scan gate flagged MAJOR #17 (filed as #190) on this branch's content; the fix landed via #191. The release PR re-cuts from the develop tip carrying the fix.

@ajianaz ajianaz closed this Oct 5, 2026
@ajianaz
ajianaz deleted the chore/release-v0.6.0-main-sync branch October 9, 2026 10:04
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