Skip to content

chore(release): v0.3.0 — reliability & long-running work - #67

Merged
ajianaz merged 10 commits into
mainfrom
chore/release-v030
Sep 12, 2026
Merged

ajianaz merged 10 commits into
mainfrom
chore/release-v030

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

What (description of the change)

Release train for v0.3.0: workspace version bump 0.2.0 → 0.3.0, CHANGELOG 0.3.0 section (Added: --workspace flag, job_start/job_poll, resume-with-prompt, usage ledger, binary hygiene docs; Changed: 429 retry classification, no per-step transcript clone), publish workflow extended to ship tole-cli after tole-core (idempotent classification carried over; CLI pins tole-core by version so ordering is guaranteed), CLI manifest pins tole-core 0.3.0.

Why (the problem you're solving)

Batched feature work since 0.2.0 is real minor-version feature material per house versioning (minor = features). Issue #60 part 2: tole-cli was never on crates.io — the publish workflow now covers it so registry installs get the CLI.

Testing (how you verified this works)

  • YAML validated; cargo build/test full workspace green at 0.3.0; release binary reports 'tole 0.3.0'; cargo package --list dry-runs clean for both crates (CLI ships bin + tests + manifest only).
  • CodeCora review clean on the release diff.

After merge: tag v0.3.0 ON the main merge commit (per uteke GitFlow pattern), release publish fires the workflow (core publishes, then cli).

ajianaz and others added 9 commits August 28, 2026 10:23
The new develop/main rulesets (uteke parity: deletion + non-fast-forward
+ PR + required checks) list 'Build' as a required status check — but
ci.yml had no Build job, so PRs would block forever waiting for it.
Adds cargo build --workspace --release: catches optimizer-only errors
the dev-profile Check job misses.

Co-authored-by: ajianaz <[email protected]>
Same fix as uteke#1148 / vecq#14: dependabot PRs report their login as
'dependabot[bot]' in github.event.pull_request.user.login (REST form), so
the old 'app/dependabot' entry never matched and cla-check failed on
every dependabot PR. Use exact bot logins with legacy app/ forms kept as
fallback.

Co-authored-by: ajianaz <[email protected]>
…tes.io has no tole-cli) (#61)

Closes #60 (part 1 of 2; crates.io publish follows in the next release train)

Co-authored-by: ajianaz <[email protected]>
A provider global timeout at turn start killed entire missions before
any tool ran, while the same durable session completed end-to-end on a
manual resume. Drive() now retries a timeout-classified provider error
once per turn (not per step): the failed step commits nothing, so the
transcript is unchanged; the retry decision is appended as a durable
ERROR entry before the retry fires. Non-timeout errors and second
timeouts keep the existing abort path.

Closes #58

Co-authored-by: ajianaz <[email protected]>
…root (#63)

read_file/write_file/edit_file/delete_file were jailed to the process
cwd, forcing agents through run_command workarounds for any absolute-
path work outside it. A global --workspace <dir> flag now sets the file
tools' jail root (canonicalized; must exist and be a directory).
run_command/git stay bound to the process cwd — their semantics are
cwd-based by contract. Jail safety semantics are unchanged: the root
moves, the TOCTOU-safe jail walk does not.

Closes #57

Co-authored-by: ajianaz <[email protected]>
Formalize the nohup-background + poll pattern agents improvise for
CPU-bound jobs exceeding the 30s run_command ceiling (issue #59):

- job_start (Write): argv-split like run_command (no shell; bash -c is
  the explicit shell escape), detached into its own process group,
  stdin null, stdout+stderr -> tole-jobs/<id>/log inside the file-tools
  workspace. Returns job id + pid immediately.
- job_poll (ReadOnly): liveness via 'ps -p <pid> -o stat=' treating
  zombie state (Z*) as finished, plus a bounded 8KiB-window tail of the
  log (stat -> seek -> read; lossy UTF-8 at the boundary). The full log
  stays reachable via read_file through the same jail.

Depends on the --workspace jail (#57, merged): logs live under the
file_root so read_file can reach them without workarounds.

Closes #59, closes #56 (option b: native shell job control)

Co-authored-by: ajianaz <[email protected]>
…tructions (#65)

* feat: job_start/job_poll tools for long-running work

Formalize the nohup-background + poll pattern agents improvise for
CPU-bound jobs exceeding the 30s run_command ceiling (issue #59):

- job_start (Write): argv-split like run_command (no shell; bash -c is
  the explicit shell escape), detached into its own process group,
  stdin null, stdout+stderr -> tole-jobs/<id>/log inside the file-tools
  workspace. Returns job id + pid immediately.
- job_poll (ReadOnly): liveness via 'ps -p <pid> -o stat=' treating
  zombie state (Z*) as finished, plus a bounded 8KiB-window tail of the
  log (stat -> seek -> read; lossy UTF-8 at the boundary). The full log
  stays reachable via read_file through the same jail.

Depends on the --workspace jail (#57, merged): logs live under the
file_root so read_file can reach them without workarounds.

Closes #59, closes #56 (option b: native shell job control)

* feat: resume <id> "<prompt>" continues a settled session with new instructions

Issue #55 (revised scope): resume previously took no prompt at all, so
headless multi-mission flows needed a separate run session per mission
and lost conversational context. An optional PROMPT argument now
appends a new user message at a turn boundary via run_turn; without it,
resume keeps the approvals-only recovery behavior. Mid-flight sessions
keep refusing run_turn (durable state-machine precondition) - the
recovery protocol stays: bare resume first, then resume-with-prompt.
Note: the chat-REPL half of the original issue was refuted by live
repro on 2026-09-12 (piped chat exits cleanly at EOF).

Closes #55

---------

Co-authored-by: ajianaz <[email protected]>
…script clone (#66)

Cost & reliability hygiene, three tight changes:

- Usage ledger: OpenAiProvider captures the response's usage object and
  exposes it via the new Provider::last_usage (default None - mocks stay
  free). The turn loop writes one durable UsageRecord per provider step,
  anchored to the last committed entry (exactly the request's input
  scope), as a transition-free replay-safe Record::Usage line. tole
  status now shows real token totals instead of 0/0.
- Retry classification: 429/http-rate-limit responses join timeouts as
  transient (live E2E hit 429 five times in one session today); audit
  entry renamed to 'provider transient failure, retrying'.
- The per-step s.entries().to_vec() clone is gone: complete() borrows
  the storage slice directly.

Live-verified: fresh run reports 1545 in / 4 out tokens via status.

Co-authored-by: ajianaz <[email protected]>
Version bump 0.2.0 -> 0.3.0 (minor: real features per house versioning),
CHANGELOG entries for #57-#66, publish workflow extended to ship
tole-cli (version-pinned core dependency, published after core),
cli manifest pins tole-core 0.3.0.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

The main ruleset REQUIRES 'Cargo Audit' and 'Trivy FS Scan', but
security.yml only produced them for PRs targeting develop - release PRs
to main were permanently blocked (the documented impossible-required-
check trap: admin cannot bypass required checks). Align the trigger set
with ci.yml (develop, main).
@ajianaz
ajianaz merged commit c343dc3 into main Sep 12, 2026
14 checks passed
@ajianaz
ajianaz deleted the chore/release-v030 branch September 12, 2026 07:03
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