Skip to content

feat(preflight): predictive advisory warning from the decision log (BEFLOW-18) - #8

Merged
corrm merged 1 commit into
mainfrom
feat/predictive-preflight
Jun 21, 2026
Merged

feat(preflight): predictive advisory warning from the decision log (BEFLOW-18)#8
corrm merged 1 commit into
mainfrom
feat/predictive-preflight

Conversation

@corrm

@corrm corrm commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Wire readDecisionEvents (its intended consumer) into the pre-worktree preflight. On a fresh autonomous implement dispatch, after the live policy gate decides to proceed, consult recent same-project history and log a heads-up when the declared scope overlaps paths a prior run sent to block/require_approval.

Purely advisory — findHistoricalOverlaps is pure/bounded (exact match, most-recent 1000), the live gate stays authoritative, and a missing/torn log degrades to a no-op. Project scoping lives in run.ts to avoid an import cycle.

No config/schema change. Gate green.

…EFLOW-18)

Wire the durable decision-log reader (readDecisionEvents) into the pre-worktree
preflight as its intended consumer. On a fresh autonomous implement dispatch,
after the authoritative live policy gate decides to proceed, consult recent
same-project history: when the issue's declared scope overlaps paths a prior run
sent to block/require_approval, log a heads-up and proceed.

Purely advisory and bounded — findHistoricalOverlaps is a pure function over the
reader's output (exact path match, most-recent MAX_HISTORY_EVENTS only), the live
gate stays authoritative, and a missing/torn log degrades to a no-op. Project
scoping lives in run.ts to avoid a run.ts→preflight.ts import cycle. No config or
schema change.
@corrm
corrm merged commit 978c725 into main Jun 21, 2026
1 check passed
@corrm
corrm deleted the feat/predictive-preflight branch June 21, 2026 03:26
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