Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

feat: ForgeFlow Execution Policy V1 (P0-P3) - #118

Merged
BakerSean168 merged 2 commits into
mainfrom
feat/execution-policy-v1-p0-p3-20261013
Oct 13, 2026
Merged

BakerSean168 merged 2 commits into
mainfrom
feat/execution-policy-v1-p0-p3-20261013

Conversation

@BakerSean168

Copy link
Copy Markdown
Owner

P0: Config and cost-safe model inventory

  • Define 10 explicit Agent/Model execution profiles with disabled DSH and verified GLM/ZCode ACP roles.
  • Bind Pi virtual selections to an allowlist of actual physical model ids; reject costly drift of worker:low to GPT-6.1 Sol.
  • Include instructions to update the operator worker.defaultRoute to fast on GCP after merging and verifying the release.

P1: Agent Selection Policy V1

  • Deterministic task kind/complexity/access, Agent, model/provider, executable/health and permission matching.
  • Add forgeflow_execution Pi policy tool (inventory, select, plan, snapshot, recover) and forgeflow-execution CLI. No new Agent runtime/provider gateway.

P2: Batch and worktree governance

  • Validated topological waves, bounded fanout and explicit pi-subagents dispatch records, without a second task scheduler.
  • Native Pi writers use plugin-managed worktrees. External ACP writers require separate clean registered Git worktrees and explicit per-child cwd; reject duplicate/preclaimed destinations. Active-run ownership must still be checked in pi-subagents before launch.

P3: Controlled recovery

  • Capture HEAD/tracked/untracked file-content fingerprint, classify failure cause, and prevent cross-Agent takeover unless the original Run is terminal/stopped, checkpoint/diff has not changed, no other active writer is recorded, operator consent exists, and target execution profile is eligible.
  • No secret logging, hidden retries, loss of partial diffs or automatic cross-Agent failover.

Verification

  • npm run check: 89/89 passing; npm packaging includes new CLI, config and docs.
  • GCP model-free real registry probe with new model-policy route: low worker resolves to litellm/deepseek-v4.1-flash, high to openai-codex/gpt-6.1-sol.
  • Pi RPC startup previously tested with the new tool; direct policy-tool integration tests cover tool calls.
  • No change to BodySense project, T3 Provider or secrets. DSH remains disabled pending account model repair.

Rollout

Update GCP manual and subagents Pi profiles to the merge commit and atomically apply the validated worker.defaultRoute=fast operator-policy adjustment after CI.

@BakerSean168
BakerSean168 merged commit bdff761 into main Oct 13, 2026
1 check passed
@BakerSean168
BakerSean168 deleted the feat/execution-policy-v1-p0-p3-20261013 branch October 13, 2026 14:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant