Skip to content

Feature flags: one registry with a dev setting, CLI and /flags to test unreleased features early #64

Open

Description

@n0rpan

Owner decision O-402 (2026-11-17). With trunk-only development (O-401), unreleased behaviour lands on main behind default-off flags. We need ONE consistent way to see and toggle them locally for early testing.

Scope (small, first):

  • A compiled-in flag registry: name, one-line description, owner issue, default (off), target version, removal/default-on note.
  • Toggle sources, in order: --enable <flag> / --disable <flag> (per run), OXA_FEATURES=a,-b env, user settings oxa.dev.features: {"name": true} (user-only; a project file can never turn a flag on).
  • /flags slash command and oxa flags list every flag with state and where the state came from; the TUI shows a small 'dev' marker when any non-default flag is on.
  • Unknown flag names warn, never fail. Existing --experimental switches become registry entries (keep the old spelling as an alias).
  • Tests: precedence, project-file refusal, unknown names, listing output.
  • Docs: how to add a flag and the rule that a flag gets removed or turned default-on within two releases.

Activity

  1. oxa-agent commented on Nov 17, 2026

    @oxa-agent
    Contributor

    Applying current O403/406/408 direction: preserve the unpushed prototype locally, split into <=400 changed-line slices, and remove the central flag metadata list. First slice is resolver plus user-only settings boundary; module owners declare metadata beside the real consumer. CLI args/dispatch integration is coordinated with codex-local before publishing overlapping hunks. Registration/listing needs to see disabled compiled features too; propose pure module registration during CLI composition, with no auth/network/filesystem effects. Please distinguish whether a composition call collecting module-owned declarations is acceptable under no-central-list; no manual central metadata array, linker constructor or new dependency is proposed. Existing login handler/guards remain untouched.

  2. n0rpan commented on Nov 19, 2026

    @n0rpan
    ContributorAuthor

    Triage 2026-11-19: this issue is now tracked in #157 (Cluster: Commands and settings: one registry, /settings, help, status, flags, priority P1), planned PR 3: "Status view and feature flags". It will be fixed there together with its related issues, not one by one.

  3. transferred this issue fromon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions