Fission-AI/OpenSpec · error · RootSelectionError

areas_option_removed

areas_option_removed

Error message

--areas is no longer supported. Workspace affected areas are not part of the normal OpenSpec root path.

What it means

Removal guard in assertRemovedOptionsAbsent: --areas was passed, but workspace affected areas no longer influence the OpenSpec root path. Sentinel RootSelectionError telling the caller the option has no effect and should be dropped.

Solutions

  1. Drop --areas from the command
  2. Track affected areas by other means (e.g. in the change content itself)
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/commands/workflow/new-change.ts:65 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25). Data as JSON: /api/errors/849012fdd6a0f01a. Report an issue: GitHub.

Appendix: source

Thrown at src/commands/workflow/new-change.ts:65

  };
  root: RootOutput;
}

// -----------------------------------------------------------------------------
// Command Implementation
// -----------------------------------------------------------------------------

function assertRemovedOptionsAbsent(options: NewChangeOptions): void {
  if (options.initiative !== undefined) {
    throw new RootSelectionError(
      '--initiative is no longer supported. Normal changes no longer attach to initiatives; --store <id> selects the OpenSpec root.',
      'initiative_option_removed',
      { target: 'change.options' }
    );
  }

  if (options.areas !== undefined) {
    throw new RootSelectionError(
      '--areas is no longer supported. Workspace affected areas are not part of the normal OpenSpec root path.',
      'areas_option_removed',
      { target: 'change.options' }
    );
  }
}

function printCreatedChangeHuman(
  payload: NewChangeOutput,
  root: ResolvedOpenSpecRoot
): void {
  // A relative path is only honest when the root is where the user
  // stands; a distant ancestor root gets the absolute path.
  const location =
    !isStoreSelectedRoot(root) && root.path === process.cwd()
      ? formatChangeLocation(toPlanningHome(root), payload.change.id)
      : payload.change.path;
  console.log(`Created change '${payload.change.id}' at ${location}/`);

View on GitHub (pinned to 6926ccb18a)