Skip to content

chore(release): v0.5.0 — merge develop into main - #158

Merged
ajianaz merged 8 commits into
mainfrom
chore/release-v0.5.0-main-sync
Oct 2, 2026
Merged

ajianaz merged 8 commits into
mainfrom
chore/release-v0.5.0-main-sync

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

What (description of the change)

v0.5.0 release sync: merge develop (workspace 0.5.0 — the 0.5-train: #151 decision journal, #152 orchestration docs, #153 verify_package, #154 turn-end stop hooks, #156 scan fixes) into main as a merge commit. The v0.5.0 tag will be cut on main after CI green + owner tag approval.

Why (the problem you are solving)

Release train: the 0.5-train features merged to develop after the v0.4.0 tag was cut; they ride this release (real features = minor bump).

Testing (how you verified this works)

  • Tree diff vs develop is EMPTY (no CHANGELOG drift this time).
  • CI runs the full required gate set on this merge head.

ajianaz and others added 8 commits October 1, 2026 14:15
Sessions that executed a Write/Destructive tool are stored to uteke
with --type decision and a wrote tag; plain context sessions keep the
old shape. The flag is a durable, session-scoped fact register set
wherever such a tool settles (fresh execution and crash-replay), so it
survives resume boundaries — the two cora findings on the first cut
(in-RAM flag dying at resume; replayed writes invisible) are fixed and
regression-tested. Summary content contract unchanged (prompt+answer
only), so the injection-into-memory surface stays closed.

Closes #143

Co-authored-by: ajianaz <[email protected]>
…ipeline, P3 review fan-in) (#152)

Field guide composing only shipped surfaces (serve multi-session MCP,
resume-with-prompt, job tools, per-session policy). Includes a
live-proven P2 demo: two chained sessions (plan-mode producer ->
executor), traces committed under evals/traces/orchestration-demo/.

Closes #146

Co-authored-by: ajianaz <[email protected]>
…s (anti-slopsquatting) (#153)

* feat(tools): verify_package — registry existence check before installs

ReadOnly tool that checks a package name against crates.io / npm
before the model runs any install command — the slopsquatting defense.
Not-found answers include registry candidates; a candidate within edit
distance 1 raises an explicit typo-squat warning (13% of hallucinated
names are one character from a real package); 429/5xx honestly report
rate_limited instead of a fake 'not found'. The default system prompt
tells the model to verify before installing. Zero new deps (ureq 3
already in the workspace); deterministic mock-server tests cover
exists / 404+typo-squat / 429 / scoped-npm paths; live E2E verified
against both real registries.

Closes #144

* fix(tools): exact=false semantics — candidates always fetched (cora CI)

The CodeCora check caught a real spec bug: exact=false never fetched
candidates when the name existed (silent no-op vs the advertised
behavior), while exact=true still returned candidates on a not-found.
Now: exact=false always searches; a not-found searches regardless of
exact; exact=true + exists skips the search. Regression test covers
the exact=false path (previously untested).

---------

Co-authored-by: ajianaz <[email protected]>
…e on the final message (#154)

* feat(harness): turn-end stop hooks (--on-turnend) — deterministic gate on the final message

Third hook trigger beside --on-pretool/--on-posttool (issue #110): the
gate fires when the provider produces the final message, BEFORE it
commits. Deny (exit 2) = gate-forces-continuation: the Final is not
committed, the reason enters the log as user-role feedback, and the
loop re-runs — the model must satisfy the gate (run tests, lint, format)
before it may finish. Bounded by a per-turn denial cap (3) that settles
durably as TurnOutcome::StopGateBlocked (post-#84 pc=Final:
prompt-resumable); hook failures stay non-blocking per the #110
contract; 30s per-hook timeout for real verification gates. Payload:
final-text preview (8 KiB cap) + per-turn tool/risk summary so scripts
can gate only writing turns.

Closes #145

* docs: stop-gate changelog entry + threat-model note

* fix(harness): turnend gates deny on ANY non-zero exit (live E2E correction)

The first live E2E disproved the exit-2-only contract borrowed from
tool hooks: cargo check exits 101 on a broken crate, which the old
semantics classified as a non-blocking hook failure — a premature
'fixed!' Final sailed through a failing gate. Gate semantics now:
exit 0 = pass, ANY non-zero exit = deny with stdout as the reason
(a verification gate's exit code IS its verdict); only true
infrastructure failures (spawn error, timeout) stay non-blocking.
ProcessHook::run_raw added; test updated to the corrected contract.

* docs: stop-gate deny semantics in CHANGELOG (matches the live-E2E-corrected contract)

* fix(harness): stop-gate payload is per-turn, not session history (cora CI)

tools_seen was built from ALL session entries, so in multi-turn chat
or resumed sessions earlier turns' tools re-appeared in every later
Final's gate payload — a history-keyed gate would re-fire forever.
Now scoped to entries after the last user message. Regression test:
two turns (turn 1 writes, turn 2 answers plain), gate dumps its
payload, turn 2's payload must not contain turn 1's tools (verified
against the real dumped payload).

* fix(harness): stop-gate feedback entry marked + payload filter fixed (cora CI round 2)

Two findings from the CI Cora Review, both real:
1. The deny feedback entry is itself user-role; on the second Final it
   became the turn window start, hiding the turn's earlier tool calls
   from the payload — a presence-keyed gate ('deny if write_file ran')
   was defeated by just re-finalizing. Fixed with an explicit
   stop_gate_feedback marker that the window scan skips.
2. The tool filter matched kind == 'tool_call', but intents are stored
   as generic entries whose payload carries 'tool' — tools_seen was
   always empty (found by the new test's payload dump, not by reading
   code). Fixed by filtering on the payload key.

Regression test: gate always-denies with a prior write_file — all four
payloads must keep listing write_file.

---------

Co-authored-by: ajianaz <[email protected]>
…y fail-closed, FR-A1 doc note (#156)

The full cora scan on develop (1e4dc9b) found four minors; all four
fixed:
- session/prompt with a text-less prompt array (empty or image-only)
  no longer launches a full agent turn on empty input — rejected with
  the same missing-prompt error.
- A permission reply carrying the matching id but neither result nor
  error now fails closed immediately (cancelled outcome) instead of
  hanging the waiting thread for the full 600s timeout.
- docs/prd.md FR-A1 corrected: AllowlistApprover lives in tole-core;
  only InteractiveApprover is a host-side impl injected via the trait.

Triage: #155.

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

github-actions Bot commented Oct 2, 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 merged commit 6b6483d into main Oct 2, 2026
17 checks passed
@ajianaz
ajianaz deleted the chore/release-v0.5.0-main-sync branch October 2, 2026 00:56
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