Skip to content

feat(framework): fire the preset bug-fix loop via a build event kind (#265)#266

Merged
suleimansh merged 1 commit into
mainfrom
feat/bugfix-event-path
Jul 5, 2026
Merged

feat(framework): fire the preset bug-fix loop via a build event kind (#265)#266
suleimansh merged 1 commit into
mainfrom
feat/bugfix-event-path

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Closes #265.

Every domain preset ships a bug-fix loop, but the review phase always dispatched a major-change event, so those loops were dead. Now a run picks the build event kind and a preset can declare its own default.

  • framework --kind <name> (and runFramework({ buildEvent })) sets the kind. --kind bug-fix fires the preset's bug-fix loop; default stays major-change (unchanged behavior).
  • preset.md metadata.event sets a preset's default, surfaced as DomainPreset.defaultEvent.
  • Precedence: run choice > preset default > major-change. A kind the preset has no loop for falls back to the built-in checklist, so a run is never left unreviewed.
  • --kind without a preset is a no-op with a note (mirrors the mode flags).

Verified with --fake --preset software-development: --kind bug-fix narrates "drives the bug-fix review", default narrates "drives the major-change review".

Naming call for you (like LoopEngine/DomainPreset before): I used three names for the same thing in their own contexts: CLI --kind, run option buildEvent, preset field/manifest defaultEvent/metadata.event. Happy to unify if you'd rather.

Part of #204.

…265)

Every domain preset shipped a bug-fix loop but domainLoopChecklist always
dispatched major-change, so those loops never ran. A run now picks the build
event kind (runFramework buildEvent / framework --kind), and a preset can
declare its own default via preset.md metadata.event (DomainPreset.defaultEvent).
Precedence: run choice > preset default > major-change; an unmatched kind still
falls back to the built-in checklist.
@suleimansh suleimansh self-assigned this Jul 5, 2026
@suleimansh suleimansh added enhancement New feature or request priority: medium Worth doing, not urgent labels Jul 5, 2026
@suleimansh suleimansh merged commit 4a6311e into main Jul 5, 2026
2 checks passed
@suleimansh suleimansh deleted the feat/bugfix-event-path branch July 5, 2026 17:25
suleimansh added a commit that referenced this pull request Jul 5, 2026
Finishes the per-repo config surface: the-framework.yml can now set the
build event kind (event: bug-fix) alongside preset and modes. Precedence is
--kind flag > the-framework.yml event > preset defaultEvent > major-change,
so file-set events flow through the same runFramework({buildEvent}) path #266
added.

Threads event through parseFrameworkConfig, mergeRunConfig, and the config
narration; the no-op note now fires when any build event is set without a
preset. Help text updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: medium Worth doing, not urgent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug-fix runs never fire the preset's bug-fix loop

1 participant