Skip to content

Preflight follow-ups: task-only Binds, nested .ai/, MSYS paths, new files from subdirectories #460

Backlog

Description

@stackbilt-admin

Minor findings from the adversarial reviews of #452 and #455. None blocked a merge; each makes the preflight answer (#447) less exact in an edge case. Can be worked individually.

1. Task-triggered modules show under Binds (#455)

With a task or --keywords alongside --files, a module triggered only by the task is listed under Binds with no file attribution, and JSON reports binds: true for a file nothing actually binds.

  • Expected: Binds and binds count only modules routed from the file's own signals. Task-only modules are listed separately (for example Also loaded for task:), and JSON keeps them out of binds.
  • Acceptance: --files .github/workflows/ci.yml --keywords adf reports binds: false and still loads adf-dev.adf for the task.

2. Monorepo where .ai/ sits below the git root (#455)

Rules and path tokens relativize against the git toplevel, while manifest METRICS sources are written relative to .ai/'s parent. When those differ (for example .ai/ under apps/web/), headroom can miss the file or match the wrong one.

  • Expected: METRICS sources resolve relative to the directory that holds .ai/, then compare in one canonical form.
  • Acceptance: a fixture with .ai/ one level below the git root reports the same ceilings as the flat layout.

3. Git Bash / MSYS paths on Windows (#452)

/c/Users/.../charter/packages/adf/src/manifest.ts is treated as outside the repo, so it gets extension signals only and no path tokens.

  • Expected: on win32, /<drive>/... is read as <drive>:\... before relativizing.
  • Acceptance: the MSYS spelling routes the same modules as the native and repo-relative spellings.

4. Not-yet-existing file, repo-relative, from a subdirectory (#452)

From packages/cli, --files packages/adf/src/new-file.ts (doesn't exist yet) is read cwd-relative, because the repo-relative fallback requires the file to exist.

  • Expected: if the cwd-relative path doesn't exist and its first segment exists at the repo root but not under the cwd, read it as repo-relative.
  • Acceptance: that case gives the same keywords as running from the root.

Part of #437 · Refs #447

Activity

  1. added
    enhancement
    priority:p2
    epic:preflight
    on Nov 28, 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

    enhancementepic:preflightpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions