Skip to content

chore(release): v0.1.0 - #42

Merged
lg2m merged 2 commits into
feat/tool-layer-t7-execfrom
chore/release-0.1.0
Sep 14, 2026
Merged

lg2m merged 2 commits into
feat/tool-layer-t7-execfrom
chore/release-0.1.0

Conversation

@lg2m

@lg2m lg2m commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

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.

qq 0.1.0
protocol 20, capabilities 1, descriptor 6, store schema 28

MINOR per docs/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)

Tool layer — "safety" (T5–T7)

Headless contract

Runtime / perf

Protocol 20 (this PR)

ShellCommandPreview gains verdict and reasons; the struct is deny_unknown_fields, so the version moves. New golden event_tool_approval_requested_shell; v17–v19 retained decode-only; headless v20 streams; Harbor trace fixtures at 20. The TUI approval block shows asks because: remove file under the command.

Compatibility notes for the release notes

  • Behaviour under --approval full changed: Forbidden shell shapes (rm -rf /, sudo, curl | sh, force-push, …) are refused. Under auto, commands with $VAR/globs/writing redirects now ask.
  • Shell children no longer inherit the server environment. List needed variables in policy.shell_env and the call's env.
  • edit_file argument schema changed (edits[]). list_dir → tree (alias kept one release).
  • Store schema 28 is a forward-only migration (adds tool_spills).
  • Prompt version 11.

Verification

  • cargo test --workspace: 1396 passed / 0 failed; fmt, clippy clean; qq version prints the line above.

After merge

git switch main && git pull --ff-only
cargo xtask release --tag
git push origin v0.1.0

@lg2m
lg2m added this pull request to stack #43 September 14, 2026 21:48
… 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
lg2m force-pushed the chore/release-0.1.0 branch from d779071 to 2239d65 Compare September 14, 2026 21:51
@lg2m
lg2m merged commit e5892a8 into main Sep 14, 2026
8 checks passed
@lg2m
lg2m deleted the chore/release-0.1.0 branch September 14, 2026 21:59
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.
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