Repository navigation
chore(release): v0.5.0 — merge develop into main - #158
Merged
Merged
Conversation
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]>
Co-authored-by: ajianaz <[email protected]>
🔍 Cora AI Code ReviewReview powered by cora-code · BYOK · MIT |
This was referenced Oct 5, 2026
Closed
Merged
Merged
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.
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)