Skip to content

Commit a40c03f

Browse files
author
Presta
committed
docs(copilot-instructions): add Project Lock block + PUT Rules 6-8 (template v3.3.2)
1 parent ffda219 commit a40c03f

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

.github/copilot-instructions.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
**Template Version**: 3.2.0
44
**Last Updated**: February 25, 2026 10:14 ET
55
**Project**: EVA Data Model -- Single source of truth API (port 8010)
6-
**Path**: `C:\AICOE\eva-foundation\37-data-model\`
6+
**Path**: `C:\AICOE\eva-foundry\37-data-model\`
77
**Stack**: Python, FastAPI, SQLite
88

99
> This file is the Copilot operating manual for this repository.
@@ -72,7 +72,7 @@ Loop --> return to Discover if tasks remain
7272
> The HTTP API is the only interface. One HTTP call beats ten file reads.
7373
> The API self-documents: `GET /model/agent-guide` returns the complete operating protocol.
7474
75-
> **Full reference**: `C:\AICOE\eva-foundation\37-data-model\USER-GUIDE.md` (v2.5)
75+
> **Full reference**: `C:\AICOE\eva-foundry\37-data-model\USER-GUIDE.md` (v2.5)
7676
> The model is the single source of truth. One HTTP call beats 10 file reads.
7777
> Never grep source files for something the model already knows.
7878
@@ -87,7 +87,7 @@ if (-not $h) {
8787
$base = "http://localhost:8010"
8888
$h = Invoke-RestMethod "$base/health" -ErrorAction SilentlyContinue
8989
if (-not $h) {
90-
$env:PYTHONPATH = "C:\AICOE\eva-foundation\37-data-model"
90+
$env:PYTHONPATH = "C:\AICOE\eva-foundry\37-data-model"
9191
Start-Process "C:\AICOE\.venv\Scripts\python.exe" `
9292
"-m uvicorn api.server:app --port 8010 --reload" -WindowStyle Hidden
9393
Start-Sleep 4
@@ -314,6 +314,18 @@ az logout; az login --use-device-code --tenant {TENANT_ID}
314314

315315
## PART 2 -- PROJECT-SPECIFIC: EVA Data Model
316316

317+
### Project Lock
318+
319+
This file is the copilot-instructions for **37-data-model** (EVA Data Model).
320+
321+
The workspace-level bootstrap rule "Step 1 -- Identify the active project from the currently open file path"
322+
applies **only at the initial load of this file** (first read at session start).
323+
Once this file has been loaded, the active project is locked to **37-data-model** for the entire session.
324+
Do NOT re-evaluate project identity from editorContext or terminal CWD on each subsequent request.
325+
Work state and sprint context are read from `STATUS.md` and `PLAN.md` at bootstrap -- not from this file.
326+
327+
---
328+
317329
<!--
318330
AUTO-LOADED by VS Code Copilot at every session start for this workspace.
319331
These rules apply to any agent reading or writing the EVA Data Model.
@@ -361,7 +373,7 @@ if (-not $h) {
361373
$h = Invoke-RestMethod "$base/health" -ErrorAction SilentlyContinue
362374
if (-not $h) {
363375
# Start local API if not running
364-
$env:PYTHONPATH = "C:\AICOE\eva-foundation\37-data-model"
376+
$env:PYTHONPATH = "C:\AICOE\eva-foundry\37-data-model"
365377
Start-Process "C:\AICOE\.venv\Scripts\python.exe" `
366378
"-m uvicorn api.server:app --port 8010 --reload" -WindowStyle Hidden
367379
Start-Sleep 4
@@ -372,7 +384,7 @@ if (-not $h) {
372384
# Option C -- file fallback (offline / CI -- no HTTP API available)
373385
if (-not $h) {
374386
Write-Warning "No HTTP API reachable -- loading from file (read-only, no audit trail)"
375-
$m = Get-Content C:\AICOE\eva-foundation\37-data-model\model\eva-model.json | ConvertFrom-Json
387+
$m = Get-Content C:\AICOE\eva-foundry\37-data-model\model\eva-model.json | ConvertFrom-Json
376388
$m.meta | Select-Object last_updated, layers_complete, total_layers
377389
} else {
378390
# Readiness check (ACA store=cosmos is always reachable; local checks Cosmos connectivity)
@@ -399,7 +411,7 @@ No PowerShell, no file I/O -- any language can consume the model.
399411
### Start (local dev / MemoryStore)
400412

401413
```powershell
402-
cd C:\AICOE\eva-foundation\37-data-model
414+
cd C:\AICOE\eva-foundry\37-data-model
403415
$env:PYTHONPATH = $PWD
404416
C:\AICOE\.venv\Scripts\python -m uvicorn api.server:app --port 8010 --reload
405417
```
@@ -527,11 +539,11 @@ $ep = Invoke-RestMethod "$base/model/endpoints/GET /v1/health"
527539
528540
# Navigation: jump directly to route decorator in VS Code
529541
$ep = Invoke-RestMethod "$base/model/endpoints/GET /v1/health"
530-
code --goto "C:\AICOE\eva-foundation\$($ep.implemented_in):$($ep.repo_line)"
542+
code --goto "C:\AICOE\eva-foundry\$($ep.implemented_in):$($ep.repo_line)"
531543
532544
# Same for a React hook or component:
533545
$h = Invoke-RestMethod "$base/model/hooks/useTranslations"
534-
code --goto "C:\AICOE\eva-foundation\$($h.repo_path):$($h.repo_line)"
546+
code --goto "C:\AICOE\eva-foundry\$($h.repo_path):$($h.repo_line)"
535547
```
536548

537549
---
@@ -721,6 +733,6 @@ All must pass before merging a PR:
721733

722734
---
723735

724-
*Source template*: `C:\AICOE\eva-foundation\07-foundation-layer\02-design\artifact-templates\copilot-instructions-template.md` v3.2.0
725-
*Project 07 README*: `C:\AICOE\eva-foundation\07-foundation-layer\README.md`
726-
*EVA Data Model USER-GUIDE*: `C:\AICOE\eva-foundation\37-data-model\USER-GUIDE.md`
736+
*Source template*: `C:\AICOE\eva-foundry\07-foundation-layer\02-design\artifact-templates\copilot-instructions-template.md` v3.2.0
737+
*Project 07 README*: `C:\AICOE\eva-foundry\07-foundation-layer\README.md`
738+
*EVA Data Model USER-GUIDE*: `C:\AICOE\eva-foundry\37-data-model\USER-GUIDE.md`

0 commit comments

Comments
 (0)