Repository navigation
fix(adf): generate Copilot instructions at the supported repository path - #419
Merged
Merged
Conversation
…-path # Conflicts: # packages/cli/src/commands/score.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and behavior
Fresh
adf init --emit-pointersandbootstrapwrote a root-level Copilot file that GitHub does not use. Generate.github/copilot-instructions.md, creating its parent when needed, with file-relative links to the selected AI directory. GitHub documents this repository-wide path in its official instructions guide.Closes #403.
The legacy root filename, exported
POINTER_COPILOT_MD, vendor modes and explicit root migration/tidy/restore APIs remain supported. No file is automatically moved or deleted. Canonical pointers are rendered at call time rather than capturing an import-time working directory; only native path separators are normalized.Canonical and legacy files participate in vendor status, inference, discovery, migration, tidy/restore, doctor, score and staged pre-commit handling. Copilot stays pointer-only: a fresh scaffold has five vendors and
compile --target allstill checks the same four compilable targets. Compiler target/JSON contracts are not broadened. Existing generated hooks can be refreshed withcharter hook install --pre-commit.Preservation and review corrections
--yesand--force. Explicitadf migrate --sourceremains available with a byte-preserving adjacent backup.Prerequisite and scope
This branch includes reviewed PR #416 through
400bc07e72a1181884190236bfc650a23285a836(generated-context snapshot/case handling). The issue-only comparison is against that commit; this PR targets main so CI runs. Its source changes cover Copilot path consumers and preservation only, with no instruction-file edits, package-version changes or changelog changes.Validation
Windows Node24.19.0 / pnpm9.15.9 in an isolated worktree:
git diff --checkpassed. ADF command LOC 1037/1041 and migrate LOC 792/792, no budget increases..cache/issue-403-all-review-fixes-full-tests-final.log.(paths are relative to this file). Paths, ownership marker and logic are unchanged. Rebuilt and typechecked the final text, then ran 195/195 Copilot/vendor/doctor/score regressions successfully. Per coordinator direction, no second complete suite was run solely for that wording change. Final focus log:.cache/copilot-final-wording-focus.log.An earlier pre-review run had 1952 passes and the four baseline failures. A subsequent incomplete run was stopped only in this worktree before applying the final review variants; it is not final validation evidence. Main's dependency audit is handled separately by #413's approved-preparation major Zod migration and compatible repairs; this PR does not suppress any gate. No merge, tag/main push, publication, deployment, production writes, repository setting change or remote branch deletion performed.