jackwener/maka-agent

refactor(headless): extract permission-intervention decision engine from task-agent-controller.ts

Geschlossen

#1.410 geöffnet am 23.07.2026

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (0 Forks)github user discovery
enhancementgood first issue

Repository-Metriken

Stars
 (1 Stern)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Part of #1084 (second-pass sink-file and boundary governance). Scope re-verified against current main (task-agent-controller.ts, 1744 lines).

Scope

Move handlePermissionIntervention (~L956, incl. the fail_closed/park branches, post-hoc grant matching, and inbox/approval event writes), PermissionInterventionInput (~L936), PermissionInterventionResult (~L952), and DEFAULT_INTERVENTION_POLICY (~L847) into permission-intervention.ts beside the existing permission-grants.ts. The controller keeps only the two call sites (~L402 main path, ~L514 repair path).

Invariants

Same as #1084: behavior-neutral; stable exports; no reverse imports; flat PR off main.

Verification

Typecheck/build + task-agent-controller tests.

Contributor Guide