Skip to content

feat(framework): read the-framework.yml for per-repo preset + modes (#258)#259

Merged
suleimansh merged 1 commit into
mainfrom
feat/framework-yml-config
Jul 5, 2026
Merged

feat(framework): read the-framework.yml for per-repo preset + modes (#258)#259
suleimansh merged 1 commit into
mainfrom
feat/framework-yml-config

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Closes #258. Part of #204 (Open Loop), phase 2. Follows #256 (CLI --preset / mode flags).

A project can carry its own Open Loop config so you do not retype flags. On a run the CLI reads the-framework.yml from the workspace:

preset: software-development
autopilot: true
  • preset picks the domain preset by name (same resolution as --preset).
  • autopilot / technical activate the mode variants.

Precedence: flags override the file. --preset wins the preset; the mode flags OR with the file booleans (a flag can only enable a mode). Missing file = no-op; malformed = warning, never a failed run. Adds yaml as a dep (already used in ai-skills).

Verified e2e with --fake --cwd <dir with the-framework.yml>:

◆ the-framework.yml: preset=software-development, autopilot
  Domain preset: Software Development (modes: autopilot); 2-loop review policy available
# --preset bogus overrides the file preset -> unknown --preset: bogus. Available: software-development
# malformed file -> ignoring the-framework.yml: "preset" must be a string  (run continues)

New exports: loadFrameworkConfig / parseFrameworkConfig / mergeRunConfig / FRAMEWORK_CONFIG_FILES / FrameworkFileConfig. Typecheck + 107 framework tests green. Changeset minor.

Next (separate): the AI meta-select (infer preset+modes from the prompt+cwd) + the dashboard mode checkboxes.

@suleimansh suleimansh added enhancement New feature or request priority: medium Worth doing, not urgent labels Jul 5, 2026
@suleimansh suleimansh self-assigned this Jul 5, 2026
@suleimansh suleimansh merged commit c24ae22 into main Jul 5, 2026
2 checks passed
@suleimansh suleimansh deleted the feat/framework-yml-config branch July 5, 2026 15:33
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.

framework: read the-framework.yml for per-repo preset + modes defaults

1 participant