singularity-forge/packages/coding-agent/src
Copilot cf9203aee0
Some checks are pending
CI / detect-changes (push) Waiting to run
CI / docs-check (push) Blocked by required conditions
CI / lint (push) Blocked by required conditions
CI / build (push) Blocked by required conditions
CI / integration-tests (push) Blocked by required conditions
CI / windows-portability (push) Blocked by required conditions
CI / rtk-portability (linux, blacksmith-4vcpu-ubuntu-2404) (push) Blocked by required conditions
CI / rtk-portability (macos, macos-15) (push) Blocked by required conditions
CI / rtk-portability (windows, blacksmith-4vcpu-windows-2025) (push) Blocked by required conditions
feat(swarm): forward parent permission profile to in-process worker sessions
In-process swarm workers get a fresh headless AgentSession whose permission
extension defaults to read-only minimal. This blocks normal autonomous edits
(e.g., write_file, edit) even when the parent session runs at normal or
trusted level.

- run-unit.js: add legacyPermissionLevelForProfile mapping and include
  executorPermissionLevel in the dispatch envelope.
- swarm-dispatch.js: forward executorPermissionLevel from envelope to
  runAgentTurn as permissionLevel.
- agent-runner.js: accept permissionLevel option and pass it to
  runSubagent config.
- subagent-runner.ts: add permissionLevel to SubagentConfig; when set,
  temporarily set SF_PERMISSION_LEVEL env and run extension lifecycle so
  the permission extension reads the level before tool hooks execute.
- Tests for envelope field, dispatch forwarding, and run-unit integration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-15 06:38:42 +02:00
..
cli sf snapshot: uncommitted changes after 197m inactivity 2026-05-10 15:59:33 +02:00
core feat(swarm): forward parent permission profile to in-process worker sessions 2026-05-15 06:38:42 +02:00
modes feat(swarm): event streaming + outcome derivation for runUnitViaSwarm 2026-05-15 04:54:58 +02:00
resources/extensions/memory fix(lint): fix all pre-existing lint failures 2026-05-11 04:02:31 +02:00
tests feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
types feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
utils fix(lint): fix all pre-existing lint failures 2026-05-11 04:02:31 +02:00
cli.ts refactor: strip internal pi branding (Phase 2A) 2026-05-10 11:50:55 +02:00
config.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
index.ts feat(subagent): event streaming for in-process runSubagent 2026-05-15 04:04:52 +02:00
main.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
migrations.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00