You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Checkpoints**: mandatory validation at each gate.
@@ -65,8 +66,21 @@ This file is a copy-safe starter template. After copying Nexus-APCP into a proje
65
66
- Preserve the public/private boundary from `AI_PROJECT_CONTEXT_PROTOCOL.md` and `DOMAIN_SPECIFIC_GITIGNORE_PROTOCOLS.md`.
66
67
- Keep generated prompt bundles such as `PROMPT_READY.txt` out of public commits.
67
68
- Prefer current project evidence over copied template state.
69
+
- Treat selected profile files as active context. Treat non-selected specialized protocols as references, not standing instructions, unless the user or task explicitly invokes them.
68
70
- If context is stale or contradictory, stop and reconcile before implementation.
69
71
72
+
## RULE_PRIORITY
73
+
74
+
When rules conflict, use this order:
75
+
76
+
1. Current user request and explicit approvals.
77
+
2. Security, privacy, secret-handling, and public/private boundary rules.
78
+
3. Project-specific filled context and current task state.
79
+
4. Selected APCP profile files and task-invoked specialized protocols.
80
+
5. General examples, templates, and optional reference protocols.
81
+
82
+
If two active rules still conflict, choose the narrower task-specific rule, explain the conflict briefly, and ask only when proceeding would create real risk.
Copy file name to clipboardExpand all lines: AI_PROJECT_CONTEXT_PROTOCOL.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,19 @@ This file is the **single source of truth** for AI coding assistants and agents
11
11
- Changes are synchronized automatically
12
12
- The AI takes on the role of project manager
13
13
14
+
### Active Context Profile
15
+
16
+
Nexus-APCP supports profile-based context loading through `apcp-profile.json`.
17
+
Use `core` unless the project clearly needs `web`, `backend-api`, `cli`, `game`, `ai-rag`, or `full`.
18
+
Specialized protocols outside the active profile are references, not standing instructions, unless the current user request or task explicitly invokes them.
19
+
20
+
Rule priority:
21
+
1. Current user request and explicit approvals.
22
+
2. Security, privacy, secret-handling, and public/private boundary rules.
23
+
3. Filled project context and current task state.
24
+
4. Selected APCP profile files and task-invoked specialized protocols.
25
+
5. General examples, templates, and optional reference protocols.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ Nexus-APCP follows SemVer for public protocol-kit releases. A version in `codeme
7
7
## [Unreleased]
8
8
9
9
- Centralize the canonical APCP core file list for gather, validation, and documentation consistency.
10
+
- Add profile-based install and context gathering with `apcp-profile.json`, `scripts/apcp-install.py`, and default narrow `core` context.
11
+
- Add unit tests for profile selection, gather error handling, config filtering, and installer dry-run behavior.
10
12
- Harden repository validation with syntax checks, YAML parsing, generated artifact cleanup, Markdown anchor checks, and simple leak-pattern scanning.
11
13
- Add safer local-exclude and checkpoint workflows for downstream public repository hygiene.
12
14
- Add optional CodeGraph-compatible local code knowledge graph guidance for semantic discovery, call tracing, impact analysis, and generated index hygiene.
Copy file name to clipboardExpand all lines: CONTEXT_OPTIMIZATION.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,13 @@ As a software project grows, the codebase and documentation eventually exceed th
5
5
6
6
## Modular Context Strategy
7
7
8
+
### Profile Filter
9
+
**Usage**: Before packaging context for a project.
10
+
-**Default**: `core`, loaded from `apcp-profile.json` when present.
11
+
-**Project profiles**: `web`, `backend-api`, `cli`, `game`, `ai-rag`, and `full`.
12
+
-**Rule**: Use the narrowest profile that matches the project. Add files through `include` only when the current task needs them, and remove unrelated files through `exclude`.
13
+
-**Token Impact**: prevents specialized protocols from entering the model context when they do not match the project.
14
+
8
15
### Level 1: Standard (Bootstrap Mode)
9
16
**Usage**: When starting a new session or a new project.
10
17
-**Files**: Full `AI_PROJECT_CONTEXT_PROTOCOL.md` + Full `TASK_PROGRESS.yaml`.
0 commit comments