Repository navigation
chore(release): v0.1.0 - #42
Merged
Merged
Conversation
… approval previews
ShellCommandPreview gained optional verdict (allow|prompt|forbidden) and
reasons (rule ids) in T6. The struct is deny_unknown_fields, so a
version-19 client rejects a preview that carries them: the version moves.
Golden fixtures under tests/fixtures/v20 (v17–v19 retained decode-only),
with a new event_tool_approval_requested_shell golden pinning the fields;
headless v20 streams; Harbor trace fixtures at 20. The TUI approval block
renders the reasons ("asks because: remove file") under the command.
lg2m
force-pushed
the
chore/release-0.1.0
branch
from
September 14, 2026 21:51
d779071 to
2239d65
Compare
lg2m
added a commit
that referenced
this pull request
Sep 16, 2026
#46 was cut before v0.1.0 (#42) and merged after it without a rebase, so its Cargo.toml carried 0.0.0 back onto main: `qq --version` reported 0.0.0 and the next `cargo xtask release` would have compared against the wrong base. A test now fails whenever the manifest version is below the newest v* tag, so a stale branch cannot do this silently again.
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.
chore(release): v0.1.0 — the tool-layer "token" and "safety" releases
Stacked on: #41 (T7) ← #40 (T6). Merge those first; this PR's own diff is the last two commits: the protocol-20 bump and the version bump.
MINORperdocs/runbooks/release.md: two contract bumps (protocol 19 → 20, store schema 27 → 28) and user-visible features.What's in it since v0.0.2
Tool layer — "token" (T1–T4)
searchv2 (content/names/definition/references, ignore-aware, exact resume cursor) andtreereplacinglist_dir(hidden alias kept) (T2, feat(tools): search v2 and tree over an ignore-aware contained walk (T2) #32).read_filev2:h:hash header, line gutter,ranges,if_changed_since,mode=outline|info(T3, feat(tools): read_file v2 with a hash header, ranges, outline, and info (T3) #35).t:<tool>:<call8>:<digest8>pointer, paged back withread_tool_result(T4, feat(tools): spill store and read_tool_result for cut tool outputs (T4) #36; schema 28; ADR-0019).Tool layer — "safety" (T5–T7)
edit_filev2: batches across files, a five-tier matching cascade,if_hash,dry_run, honestpartial_apply;write_filecreate_only/if_hash/hint=use_edit_file(T5, feat(tools): edit_file v2 batches with a matching cascade; write_file flags (T5) #37).Forbiddentier refused under every mode,fullincluded;autoexecutes exactly the Allow tier; rules are self-tested data (T6, feat(approval): CST shell classifier with a Forbidden tier; shell v2 environment (T6) #40; ADR-0020).policy.shell_env;policy.builtin_preferenceoff|hint|strict (T6).exec: one program, exact argv, no shell (T7, feat(tools): exec runs one program with an exact argv and no shell (T7) #41).Headless contract
Runtime / perf
Protocol 20 (this PR)
ShellCommandPreviewgainsverdictandreasons; the struct isdeny_unknown_fields, so the version moves. New goldenevent_tool_approval_requested_shell; v17–v19 retained decode-only; headless v20 streams; Harbor trace fixtures at 20. The TUI approval block showsasks because: remove fileunder the command.Compatibility notes for the release notes
--approval fullchanged: Forbidden shell shapes (rm -rf /,sudo,curl | sh, force-push, …) are refused. Underauto, commands with$VAR/globs/writing redirects now ask.policy.shell_envand the call'senv.edit_fileargument schema changed (edits[]).list_dir→tree(alias kept one release).tool_spills).Verification
cargo test --workspace: 1396 passed / 0 failed; fmt, clippy clean;qq versionprints the line above.After merge
git switch main && git pull --ff-only cargo xtask release --tag git push origin v0.1.0