Skip to content

[P1][Tier 1] Refactor context layer: lean entry point + path-scoped instruction routers (progressive disclosure) #3275

Description

@phenning

Tier 1 — Foundation readiness · Priority: P1

Gap

.github/copilot-instructions.md is a single ~21 KB / 414-line always-loaded document with domain detail inlined (branching, dependency audits, OTEL naming, logging checklists, etc.). There are no .github/instructions/** path-scoped routers (applyTo globs) and no .github/memory/** index. Area conventions are discoverable via the 26 skills, but standing cross-cutting rules that an edit must obey are not area-triggered, and there is no explicit agent-vs-user doc-audience policy.

Investment

  • Split the monolith into a lean always-loaded entry point that links out to on-demand detail.
  • Add .github/instructions/** with applyTo globs for high-change/high-risk areas (native AOT addons, MessagePack contracts, lscache, extension vs server TS/C#, tests).
  • Add a doc-audience/placement policy separating agent-loaded surfaces from user-facing README/docs; ensure every agent context doc is reachable from an entry point, instruction, memory root, or skill (none orphaned).

Acceptance criteria

  • Entry point trimmed to orientation + links (no large inlined domain detail).
  • Path-scoped applyTo instructions exist for the top change-prone areas and inline only prevention-critical notes.
  • Every agent context document is reachable from an agent-loaded surface.

Part of epic #3273

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions