Skip to content

feat(subagents): follow-up fixes #1180-#1185 — spawn defaults, bypass gate, deny_unknown_fields#1188

Merged
bug-ops merged 5 commits intomainfrom
feat/subagents/phase2-frontmatter
Mar 4, 2026
Merged

feat(subagents): follow-up fixes #1180-#1185 — spawn defaults, bypass gate, deny_unknown_fields#1188
bug-ops merged 5 commits intomainfrom
feat/subagents/phase2-frontmatter

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 4, 2026

Closes #1180, #1181, #1183, #1184, #1185. Partially closes #1186.
Addresses #1182.

Summary

Test plan

  • cargo +nightly fmt --check
  • cargo clippy --workspace -- -D warnings
  • cargo nextest run --workspace --lib --bins — 3459/3459 passed (+12 tests)

bug-ops added 5 commits March 4, 2026 14:31
…owed_tools, background auto-deny

- Add PermissionMode enum (default/accept_edits/dont_ask/bypass_permissions/plan)
  to SubAgentPermissions; BypassPermissions emits tracing::warn at parse time
- Add tools.except denylist in YAML frontmatter → SubAgentDef.disallowed_tools;
  deny wins over allow-list; consistent placement under tools: section (IMP-02)
- FilteredToolExecutor::with_disallowed() checks disallowed list before ToolPolicy
- PlanModeExecutor: exposes real tool catalog, blocks all execution (IMP-01)
- Background agents auto-deny secret requests inline without blocking on channel (CRIT-01)
- SubAgentConfig gets default_permission_mode and default_disallowed_tools globals
- Re-export PermissionMode and PlanModeExecutor from subagent public API
- Update config snapshot, fix test fixtures in agent/mod.rs
- +22 tests (zeph-core lib: 884 → 906), workspace: 3447 passed
… add serde asymmetry note

- SEC-P2-04: upgrade background secret auto-deny log from debug to warn
- IMP-CRIT-04: add doc comment explaining disallowed_tools serde asymmetry
  (deserialized from tools.except, serialized as flat disallowed_tools)
@github-actions github-actions bot added enhancement New feature or request size/L Large PR (201-500 lines) documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate and removed enhancement New feature or request labels Mar 4, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 4, 2026 14:33
@bug-ops bug-ops merged commit 86543ee into main Mar 4, 2026
25 checks passed
@bug-ops bug-ops deleted the feat/subagents/phase2-frontmatter branch March 4, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment