deuk-agent-flow 4.2.7 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.ko.md +259 -0
- package/CHANGELOG.md +769 -124
- package/LICENSE +0 -0
- package/README.ko.md +97 -17
- package/README.md +108 -25
- package/bin/deuk-agent-flow.js +11 -13
- package/bin/deuk-agent-rule.js +1 -1
- package/bundled/README.md +3 -0
- package/bundled/deuk-agent-flow.vsix +0 -0
- package/core-rules/AGENTS.md +30 -120
- package/docs/architecture.ko.md +155 -2
- package/docs/architecture.md +155 -2
- package/docs/assets/agentflow-panel-skills.png +0 -0
- package/docs/assets/agentflow-panel.png +0 -0
- package/docs/how-it-works.ko.md +109 -52
- package/docs/how-it-works.md +128 -71
- package/docs/principles.ko.md +68 -68
- package/docs/principles.md +68 -68
- package/docs/usage-guide.ko.md +251 -212
- package/package.json +42 -45
- package/scripts/bundle-vscode-vsix.ts +67 -0
- package/scripts/{cli-args.mjs → cli-args.ts} +49 -12
- package/scripts/cli-init-commands.ts +99 -0
- package/scripts/cli-init-logic.ts +46 -0
- package/scripts/{cli-prompts.mjs → cli-prompts.ts} +19 -34
- package/scripts/{cli-rule-compiler.mjs → cli-rule-compiler.ts} +128 -112
- package/scripts/cli-skill-commands.ts +707 -0
- package/scripts/{cli-telemetry-commands.mjs → cli-telemetry-commands.ts} +25 -22
- package/scripts/cli-ticket-command-shared.ts +4 -0
- package/scripts/cli-ticket-commands.ts +3723 -0
- package/scripts/cli-ticket-index.ts +283 -0
- package/scripts/{cli-ticket-migration.mjs → cli-ticket-migration.ts} +44 -68
- package/scripts/cli-ticket-parser.ts +100 -0
- package/scripts/{cli-usage-commands.mjs → cli-usage-commands.ts} +325 -326
- package/scripts/cli-utils.ts +1560 -0
- package/scripts/cli.ts +695 -0
- package/scripts/{lint-md.mjs → lint-md.ts} +32 -42
- package/scripts/lint-rules.ts +203 -0
- package/scripts/{merge-logic.mjs → merge-logic.ts} +44 -44
- package/scripts/{plan-parser.mjs → plan-parser.ts} +53 -53
- package/templates/MODULE_RULE_TEMPLATE.md +11 -11
- package/templates/PROJECT_RULE.md +46 -47
- package/templates/TICKET_TEMPLATE.ko.md +48 -44
- package/templates/TICKET_TEMPLATE.md +48 -44
- package/templates/project-memory.md +19 -0
- package/templates/project-pilot/CONFORMANCE_GATE_TEMPLATE.md +25 -25
- package/templates/project-pilot/DRIFT_CHECKLIST.md +27 -27
- package/templates/project-pilot/FLOW_CONTRACT_TEMPLATE.md +26 -26
- package/templates/project-pilot/IMPLEMENTATION_MATRIX_TEMPLATE.md +30 -30
- package/templates/project-pilot/INTEGRATION_CONTRACT_TEMPLATE.md +26 -26
- package/templates/project-pilot/OWNER_MAP_TEMPLATE.md +15 -15
- package/templates/project-pilot/PROJECT_PILOT_RULE_TEMPLATE.md +34 -34
- package/templates/project-pilot/REFACTOR_CONTRACT_TEMPLATE.md +32 -32
- package/templates/project-pilot/REMEDIATION_PLAN_TEMPLATE.md +33 -33
- package/templates/rules.d/deukcontext-mcp.md +31 -31
- package/templates/rules.d/platform-coexistence.md +29 -29
- package/templates/skills/context-recall/SKILL.md +3 -1
- package/templates/skills/doc-sync/SKILL.md +111 -0
- package/templates/skills/generated-file-guard/SKILL.md +3 -1
- package/templates/skills/persona-maid/SKILL.md +65 -0
- package/templates/skills/project-pilot/SKILL.md +14 -63
- package/templates/skills/safe-refactor/SKILL.md +3 -1
- package/templates/skills/ticket-status-surface/SKILL.md +17 -0
- package/NOTICE.md +0 -19
- package/core-rules/GEMINI.md +0 -7
- package/docs/npm-publish-guide.ko.md +0 -70
- package/scripts/cli-init-commands.mjs +0 -1759
- package/scripts/cli-init-logic.mjs +0 -64
- package/scripts/cli-skill-commands.mjs +0 -212
- package/scripts/cli-ticket-command-shared.mjs +0 -60
- package/scripts/cli-ticket-commands.mjs +0 -2474
- package/scripts/cli-ticket-index.mjs +0 -322
- package/scripts/cli-ticket-parser.mjs +0 -210
- package/scripts/cli-utils.mjs +0 -602
- package/scripts/cli.mjs +0 -256
- package/scripts/lint-rules.mjs +0 -197
- package/scripts/publish-dual-npm.mjs +0 -141
- package/scripts/smoke-npm-docker.mjs +0 -102
- package/scripts/smoke-npm-local.mjs +0 -110
- package/scripts/update-download-badge.mjs +0 -103
|
@@ -1,44 +1,48 @@
|
|
|
1
|
-
---
|
|
2
|
-
<%- frontmatter %>
|
|
3
|
-
---
|
|
4
|
-
# <%= meta.title %>
|
|
5
|
-
|
|
6
|
-
## Agent Permission Contract (APC)
|
|
7
|
-
|
|
8
|
-
### [BOUNDARY]
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
### [CONTRACT]
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
### [PATCH PLAN]
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
## Compact Plan
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
---
|
|
2
|
+
<%- frontmatter %>
|
|
3
|
+
---
|
|
4
|
+
# <%= meta.title %>
|
|
5
|
+
|
|
6
|
+
## Agent Permission Contract (APC)
|
|
7
|
+
|
|
8
|
+
### [BOUNDARY]
|
|
9
|
+
- 수정 가능:
|
|
10
|
+
- 보호 범위:
|
|
11
|
+
- 적용 규칙:
|
|
12
|
+
|
|
13
|
+
### [CONTRACT]
|
|
14
|
+
- 입력/근거:
|
|
15
|
+
- 기대 결과:
|
|
16
|
+
- 허용 부작용:
|
|
17
|
+
- 제외:
|
|
18
|
+
|
|
19
|
+
### [PATCH PLAN]
|
|
20
|
+
- 구현 경로:
|
|
21
|
+
|
|
22
|
+
## Compact Plan
|
|
23
|
+
|
|
24
|
+
- Problem:
|
|
25
|
+
- Approach:
|
|
26
|
+
- Verification:
|
|
27
|
+
|
|
28
|
+
## Problem Analysis
|
|
29
|
+
|
|
30
|
+
-
|
|
31
|
+
|
|
32
|
+
## Source Observations
|
|
33
|
+
|
|
34
|
+
-
|
|
35
|
+
|
|
36
|
+
## Cause Hypotheses
|
|
37
|
+
|
|
38
|
+
-
|
|
39
|
+
|
|
40
|
+
## Improvement Direction
|
|
41
|
+
|
|
42
|
+
-
|
|
43
|
+
|
|
44
|
+
## Audit Evidence
|
|
45
|
+
|
|
46
|
+
- Core rules:
|
|
47
|
+
- Project rules:
|
|
48
|
+
- Commands/evidence:
|
|
@@ -1,44 +1,48 @@
|
|
|
1
|
-
---
|
|
2
|
-
<%- frontmatter %>
|
|
3
|
-
---
|
|
4
|
-
# <%= meta.title %>
|
|
5
|
-
|
|
6
|
-
## Agent Permission Contract (APC)
|
|
7
|
-
|
|
8
|
-
### [BOUNDARY]
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
### [CONTRACT]
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
### [PATCH PLAN]
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
## Compact Plan
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
---
|
|
2
|
+
<%- frontmatter %>
|
|
3
|
+
---
|
|
4
|
+
# <%= meta.title %>
|
|
5
|
+
|
|
6
|
+
## Agent Permission Contract (APC)
|
|
7
|
+
|
|
8
|
+
### [BOUNDARY]
|
|
9
|
+
- Editable:
|
|
10
|
+
- Protected:
|
|
11
|
+
- Governing rules:
|
|
12
|
+
|
|
13
|
+
### [CONTRACT]
|
|
14
|
+
- Inputs/evidence:
|
|
15
|
+
- Expected output:
|
|
16
|
+
- Allowed side effects:
|
|
17
|
+
- Excluded:
|
|
18
|
+
|
|
19
|
+
### [PATCH PLAN]
|
|
20
|
+
- Implementation path:
|
|
21
|
+
|
|
22
|
+
## Compact Plan
|
|
23
|
+
|
|
24
|
+
- Problem:
|
|
25
|
+
- Approach:
|
|
26
|
+
- Verification:
|
|
27
|
+
|
|
28
|
+
## Problem Analysis
|
|
29
|
+
|
|
30
|
+
-
|
|
31
|
+
|
|
32
|
+
## Source Observations
|
|
33
|
+
|
|
34
|
+
-
|
|
35
|
+
|
|
36
|
+
## Cause Hypotheses
|
|
37
|
+
|
|
38
|
+
-
|
|
39
|
+
|
|
40
|
+
## Improvement Direction
|
|
41
|
+
|
|
42
|
+
-
|
|
43
|
+
|
|
44
|
+
## Audit Evidence
|
|
45
|
+
|
|
46
|
+
- Core rules:
|
|
47
|
+
- Project rules:
|
|
48
|
+
- Commands/evidence:
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Project Memory
|
|
2
|
+
|
|
3
|
+
> 이 파일은 에이전트가 매 세션마다 컨텍스트를 재수집하지 않도록 프로젝트 맥락을 기록합니다.
|
|
4
|
+
> `deuk-agent-flow rules` 출력에 자동 포함됩니다.
|
|
5
|
+
> 큰 결정이 있을 때 이 파일(project-memory.md)만 직접 편집해 갱신하세요. 티켓 자체(.md·프론트매터·docmeta·INDEX.json)는 절대 손으로 고치지 말고 deuk-agent-flow CLI로만 변경하세요 — 승인 게이트 우회 금지.
|
|
6
|
+
|
|
7
|
+
## Current Architecture State
|
|
8
|
+
<!-- 지금 코드베이스가 어떤 모양인지 — 주요 모듈, 레이어, 인터페이스 요약 -->
|
|
9
|
+
|
|
10
|
+
## Active Refactoring Direction
|
|
11
|
+
<!-- 진행 중인 큰 방향 — 예: "syntax.ts → YAML 전환 중", "agentd TS 단일화" -->
|
|
12
|
+
|
|
13
|
+
## Key Decisions Log
|
|
14
|
+
| 날짜 | 결정 | 이유 |
|
|
15
|
+
|------|------|------|
|
|
16
|
+
| <!-- YYYY-MM-DD --> | <!-- 결정 내용 --> | <!-- 이유 --> |
|
|
17
|
+
|
|
18
|
+
## Milestones
|
|
19
|
+
- [ ] <!-- 진행 중인 것 -->
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# Conformance Gate Template
|
|
2
|
-
|
|
3
|
-
## Pre-Implementation
|
|
4
|
-
|
|
5
|
-
- Implementation matrix exists:
|
|
6
|
-
- Refactor contract exists:
|
|
7
|
-
- Owner map exists:
|
|
8
|
-
- Drift checklist completed:
|
|
9
|
-
|
|
10
|
-
## Verification Commands
|
|
11
|
-
|
|
12
|
-
| Stage | Command | Expected Result | Actual Result |
|
|
13
|
-
| --- | --- | --- | --- |
|
|
14
|
-
| structure | | | |
|
|
15
|
-
| metadata/manifest bypass | | | |
|
|
16
|
-
| build/test | | | |
|
|
17
|
-
| runtime/report | | | |
|
|
18
|
-
|
|
19
|
-
## Exit Criteria
|
|
20
|
-
|
|
21
|
-
- Contract and implementation agree.
|
|
22
|
-
- Unsupported paths are explicit.
|
|
23
|
-
- Generated/runtime/report outputs match the intended owner path.
|
|
24
|
-
- Metadata/manifest/schema bypass findings are absent or recorded as blocking remediation.
|
|
25
|
-
- Residual risks are recorded.
|
|
1
|
+
# Conformance Gate Template
|
|
2
|
+
|
|
3
|
+
## Pre-Implementation
|
|
4
|
+
|
|
5
|
+
- Implementation matrix exists:
|
|
6
|
+
- Refactor contract exists:
|
|
7
|
+
- Owner map exists:
|
|
8
|
+
- Drift checklist completed:
|
|
9
|
+
|
|
10
|
+
## Verification Commands
|
|
11
|
+
|
|
12
|
+
| Stage | Command | Expected Result | Actual Result |
|
|
13
|
+
| --- | --- | --- | --- |
|
|
14
|
+
| structure | | | |
|
|
15
|
+
| metadata/manifest bypass | | | |
|
|
16
|
+
| build/test | | | |
|
|
17
|
+
| runtime/report | | | |
|
|
18
|
+
|
|
19
|
+
## Exit Criteria
|
|
20
|
+
|
|
21
|
+
- Contract and implementation agree.
|
|
22
|
+
- Unsupported paths are explicit.
|
|
23
|
+
- Generated/runtime/report outputs match the intended owner path.
|
|
24
|
+
- Metadata/manifest/schema bypass findings are absent or recorded as blocking remediation.
|
|
25
|
+
- Residual risks are recorded.
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
# Drift Checklist
|
|
2
|
-
|
|
3
|
-
Mark each line before implementation.
|
|
4
|
-
|
|
5
|
-
- [ ] No silent fallback remains in the touched path.
|
|
6
|
-
- [ ] No alias-only path is being treated as a real contract.
|
|
7
|
-
- [ ] No no-op or placeholder path is being counted as support.
|
|
8
|
-
- [ ] No generated artifact is being edited directly.
|
|
9
|
-
- [ ] No single-language patch is being presented as a shared fix.
|
|
10
|
-
- [ ] No provider/generator/template/report path hardcodes metadata-owned
|
|
11
|
-
protocol method spellings.
|
|
12
|
-
- [ ] No generated record format surface is hardcoded outside protocol contract
|
|
13
|
-
or generated-artifact manifest ownership.
|
|
14
|
-
- [ ] No schema JSON is embedded directly where schema metadata or manifest
|
|
15
|
-
ownership is required.
|
|
16
|
-
- [ ] No DpField-style helper is selected directly where shared runtime contract
|
|
17
|
-
ownership is required.
|
|
18
|
-
- [ ] No unsupported-by-contract path is being mislabeled as broken.
|
|
19
|
-
- [ ] No broken-entrypoint is being hidden as unsupported.
|
|
20
|
-
- [ ] Error behavior is explicit and testable.
|
|
21
|
-
- [ ] Verification covers the actual owner path.
|
|
22
|
-
|
|
23
|
-
## Known Exceptions
|
|
24
|
-
|
|
25
|
-
| Exception | Reason | Guard |
|
|
26
|
-
| --- | --- | --- |
|
|
27
|
-
| | | |
|
|
1
|
+
# Drift Checklist
|
|
2
|
+
|
|
3
|
+
Mark each line before implementation.
|
|
4
|
+
|
|
5
|
+
- [ ] No silent fallback remains in the touched path.
|
|
6
|
+
- [ ] No alias-only path is being treated as a real contract.
|
|
7
|
+
- [ ] No no-op or placeholder path is being counted as support.
|
|
8
|
+
- [ ] No generated artifact is being edited directly.
|
|
9
|
+
- [ ] No single-language patch is being presented as a shared fix.
|
|
10
|
+
- [ ] No provider/generator/template/report path hardcodes metadata-owned
|
|
11
|
+
protocol method spellings.
|
|
12
|
+
- [ ] No generated record format surface is hardcoded outside protocol contract
|
|
13
|
+
or generated-artifact manifest ownership.
|
|
14
|
+
- [ ] No schema JSON is embedded directly where schema metadata or manifest
|
|
15
|
+
ownership is required.
|
|
16
|
+
- [ ] No DpField-style helper is selected directly where shared runtime contract
|
|
17
|
+
ownership is required.
|
|
18
|
+
- [ ] No unsupported-by-contract path is being mislabeled as broken.
|
|
19
|
+
- [ ] No broken-entrypoint is being hidden as unsupported.
|
|
20
|
+
- [ ] Error behavior is explicit and testable.
|
|
21
|
+
- [ ] Verification covers the actual owner path.
|
|
22
|
+
|
|
23
|
+
## Known Exceptions
|
|
24
|
+
|
|
25
|
+
| Exception | Reason | Guard |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| | | |
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# Flow Contract Template
|
|
2
|
-
|
|
3
|
-
## Flow Identity
|
|
4
|
-
|
|
5
|
-
- Workflow or call path:
|
|
6
|
-
- Trigger:
|
|
7
|
-
- Expected owner:
|
|
8
|
-
|
|
9
|
-
## Steps
|
|
10
|
-
|
|
11
|
-
| Step | Surface | Contract | Evidence |
|
|
12
|
-
| --- | --- | --- | --- |
|
|
13
|
-
| | | | |
|
|
14
|
-
|
|
15
|
-
## Flow Rules
|
|
16
|
-
|
|
17
|
-
- Required order:
|
|
18
|
-
- Required handoff:
|
|
19
|
-
- Forbidden shortcut:
|
|
20
|
-
- Verification point:
|
|
21
|
-
|
|
22
|
-
## Exceptions
|
|
23
|
-
|
|
24
|
-
| Exception | Scope | Required guard |
|
|
25
|
-
| --- | --- | --- |
|
|
26
|
-
| | | |
|
|
1
|
+
# Flow Contract Template
|
|
2
|
+
|
|
3
|
+
## Flow Identity
|
|
4
|
+
|
|
5
|
+
- Workflow or call path:
|
|
6
|
+
- Trigger:
|
|
7
|
+
- Expected owner:
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
| Step | Surface | Contract | Evidence |
|
|
12
|
+
| --- | --- | --- | --- |
|
|
13
|
+
| | | | |
|
|
14
|
+
|
|
15
|
+
## Flow Rules
|
|
16
|
+
|
|
17
|
+
- Required order:
|
|
18
|
+
- Required handoff:
|
|
19
|
+
- Forbidden shortcut:
|
|
20
|
+
- Verification point:
|
|
21
|
+
|
|
22
|
+
## Exceptions
|
|
23
|
+
|
|
24
|
+
| Exception | Scope | Required guard |
|
|
25
|
+
| --- | --- | --- |
|
|
26
|
+
| | | |
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# Implementation Matrix Template
|
|
2
|
-
|
|
3
|
-
## Target
|
|
4
|
-
|
|
5
|
-
- Feature or contract family:
|
|
6
|
-
- Matrix axis A:
|
|
7
|
-
- Matrix axis B:
|
|
8
|
-
|
|
9
|
-
## Status Codes
|
|
10
|
-
|
|
11
|
-
| Code | Meaning |
|
|
12
|
-
| --- | --- |
|
|
13
|
-
| `C` | complete |
|
|
14
|
-
| `P` | partial |
|
|
15
|
-
| `S` | stub |
|
|
16
|
-
| `B` | broken-entrypoint |
|
|
17
|
-
| `U` | unsupported-by-contract |
|
|
18
|
-
| `D` | documented exception |
|
|
19
|
-
|
|
20
|
-
## Matrix
|
|
21
|
-
|
|
22
|
-
| Axis A | Axis B | Status | Evidence | Owner | Action |
|
|
23
|
-
| --- | --- | --- | --- | --- | --- |
|
|
24
|
-
| | | | | | |
|
|
25
|
-
|
|
26
|
-
## Notes
|
|
27
|
-
|
|
28
|
-
- Hidden shortcut candidates:
|
|
29
|
-
- Split candidates:
|
|
30
|
-
- Explicit unsupported paths:
|
|
1
|
+
# Implementation Matrix Template
|
|
2
|
+
|
|
3
|
+
## Target
|
|
4
|
+
|
|
5
|
+
- Feature or contract family:
|
|
6
|
+
- Matrix axis A:
|
|
7
|
+
- Matrix axis B:
|
|
8
|
+
|
|
9
|
+
## Status Codes
|
|
10
|
+
|
|
11
|
+
| Code | Meaning |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| `C` | complete |
|
|
14
|
+
| `P` | partial |
|
|
15
|
+
| `S` | stub |
|
|
16
|
+
| `B` | broken-entrypoint |
|
|
17
|
+
| `U` | unsupported-by-contract |
|
|
18
|
+
| `D` | documented exception |
|
|
19
|
+
|
|
20
|
+
## Matrix
|
|
21
|
+
|
|
22
|
+
| Axis A | Axis B | Status | Evidence | Owner | Action |
|
|
23
|
+
| --- | --- | --- | --- | --- | --- |
|
|
24
|
+
| | | | | | |
|
|
25
|
+
|
|
26
|
+
## Notes
|
|
27
|
+
|
|
28
|
+
- Hidden shortcut candidates:
|
|
29
|
+
- Split candidates:
|
|
30
|
+
- Explicit unsupported paths:
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# Integration Contract Template
|
|
2
|
-
|
|
3
|
-
## Integration Identity
|
|
4
|
-
|
|
5
|
-
- Connected surfaces:
|
|
6
|
-
- Shared contract:
|
|
7
|
-
- Expected direction:
|
|
8
|
-
|
|
9
|
-
## Surface Rules
|
|
10
|
-
|
|
11
|
-
| Surface | Responsibility | Input | Output | Owner |
|
|
12
|
-
| --- | --- | --- | --- | --- |
|
|
13
|
-
| | | | | |
|
|
14
|
-
|
|
15
|
-
## Drift Risks
|
|
16
|
-
|
|
17
|
-
- Alias risk:
|
|
18
|
-
- Fallback risk:
|
|
19
|
-
- Generated/source mismatch risk:
|
|
20
|
-
- Report/test mismatch risk:
|
|
21
|
-
|
|
22
|
-
## Verification
|
|
23
|
-
|
|
24
|
-
- Minimum command:
|
|
25
|
-
- Expected proof:
|
|
26
|
-
- Residual risk:
|
|
1
|
+
# Integration Contract Template
|
|
2
|
+
|
|
3
|
+
## Integration Identity
|
|
4
|
+
|
|
5
|
+
- Connected surfaces:
|
|
6
|
+
- Shared contract:
|
|
7
|
+
- Expected direction:
|
|
8
|
+
|
|
9
|
+
## Surface Rules
|
|
10
|
+
|
|
11
|
+
| Surface | Responsibility | Input | Output | Owner |
|
|
12
|
+
| --- | --- | --- | --- | --- |
|
|
13
|
+
| | | | | |
|
|
14
|
+
|
|
15
|
+
## Drift Risks
|
|
16
|
+
|
|
17
|
+
- Alias risk:
|
|
18
|
+
- Fallback risk:
|
|
19
|
+
- Generated/source mismatch risk:
|
|
20
|
+
- Report/test mismatch risk:
|
|
21
|
+
|
|
22
|
+
## Verification
|
|
23
|
+
|
|
24
|
+
- Minimum command:
|
|
25
|
+
- Expected proof:
|
|
26
|
+
- Residual risk:
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Owner Map Template
|
|
2
|
-
|
|
3
|
-
| Symptom Surface | Source of Truth | Editable Here | Regeneration or Sync Command | Notes |
|
|
4
|
-
| --- | --- | --- | --- | --- |
|
|
5
|
-
| generated file | | yes/no | | |
|
|
6
|
-
| runtime implementation | | yes/no | | |
|
|
7
|
-
| report output | | yes/no | | |
|
|
8
|
-
| template | | yes/no | | |
|
|
9
|
-
| contract data | | yes/no | | |
|
|
10
|
-
|
|
11
|
-
## Owner Decision
|
|
12
|
-
|
|
13
|
-
- Primary owner:
|
|
14
|
-
- Secondary owner:
|
|
15
|
-
- Do-not-edit surfaces:
|
|
1
|
+
# Owner Map Template
|
|
2
|
+
|
|
3
|
+
| Symptom Surface | Source of Truth | Editable Here | Regeneration or Sync Command | Notes |
|
|
4
|
+
| --- | --- | --- | --- | --- |
|
|
5
|
+
| generated file | | yes/no | | |
|
|
6
|
+
| runtime implementation | | yes/no | | |
|
|
7
|
+
| report output | | yes/no | | |
|
|
8
|
+
| template | | yes/no | | |
|
|
9
|
+
| contract data | | yes/no | | |
|
|
10
|
+
|
|
11
|
+
## Owner Decision
|
|
12
|
+
|
|
13
|
+
- Primary owner:
|
|
14
|
+
- Secondary owner:
|
|
15
|
+
- Do-not-edit surfaces:
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
# ProjectPilot Rule Template
|
|
2
|
-
|
|
3
|
-
## Scope
|
|
4
|
-
|
|
5
|
-
- Product:
|
|
6
|
-
- Shared refactor contract:
|
|
7
|
-
- Generated/source/runtime boundaries:
|
|
8
|
-
|
|
9
|
-
## Mandatory Gates
|
|
10
|
-
|
|
11
|
-
1. Build an implementation matrix before cross-surface edits.
|
|
12
|
-
2. Classify `B`, `S`, `P`, `U`, and documented exceptions separately.
|
|
13
|
-
3. Identify the source owner before touching any generated or report artifact.
|
|
14
|
-
4. Define the conformance gate before implementation.
|
|
15
|
-
|
|
16
|
-
## Prohibited Shortcuts
|
|
17
|
-
|
|
18
|
-
- Silent fallback
|
|
19
|
-
- Alias-only compatibility patch
|
|
20
|
-
- No-op implementation presented as support
|
|
21
|
-
- Generated artifact direct edit
|
|
22
|
-
- Single-language patch presented as shared fix
|
|
23
|
-
|
|
24
|
-
## Required Evidence
|
|
25
|
-
|
|
26
|
-
- File and line references:
|
|
27
|
-
- Verification commands:
|
|
28
|
-
- Contract references:
|
|
29
|
-
|
|
30
|
-
## Project Exceptions
|
|
31
|
-
|
|
32
|
-
| Exception | Why allowed | Guard |
|
|
33
|
-
| --- | --- | --- |
|
|
34
|
-
| | | |
|
|
1
|
+
# ProjectPilot Rule Template
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
- Product:
|
|
6
|
+
- Shared refactor contract:
|
|
7
|
+
- Generated/source/runtime boundaries:
|
|
8
|
+
|
|
9
|
+
## Mandatory Gates
|
|
10
|
+
|
|
11
|
+
1. Build an implementation matrix before cross-surface edits.
|
|
12
|
+
2. Classify `B`, `S`, `P`, `U`, and documented exceptions separately.
|
|
13
|
+
3. Identify the source owner before touching any generated or report artifact.
|
|
14
|
+
4. Define the conformance gate before implementation.
|
|
15
|
+
|
|
16
|
+
## Prohibited Shortcuts
|
|
17
|
+
|
|
18
|
+
- Silent fallback
|
|
19
|
+
- Alias-only compatibility patch
|
|
20
|
+
- No-op implementation presented as support
|
|
21
|
+
- Generated artifact direct edit
|
|
22
|
+
- Single-language patch presented as shared fix
|
|
23
|
+
|
|
24
|
+
## Required Evidence
|
|
25
|
+
|
|
26
|
+
- File and line references:
|
|
27
|
+
- Verification commands:
|
|
28
|
+
- Contract references:
|
|
29
|
+
|
|
30
|
+
## Project Exceptions
|
|
31
|
+
|
|
32
|
+
| Exception | Why allowed | Guard |
|
|
33
|
+
| --- | --- | --- |
|
|
34
|
+
| | | |
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
# Refactor Contract Template
|
|
2
|
-
|
|
3
|
-
## Contract Identity
|
|
4
|
-
|
|
5
|
-
- Feature or protocol:
|
|
6
|
-
- Canonical entrypoint:
|
|
7
|
-
- Supported callers:
|
|
8
|
-
|
|
9
|
-
## Input Shape
|
|
10
|
-
|
|
11
|
-
- Required inputs:
|
|
12
|
-
- Optional inputs:
|
|
13
|
-
- Invalid inputs:
|
|
14
|
-
|
|
15
|
-
## Result Shape
|
|
16
|
-
|
|
17
|
-
- Success result:
|
|
18
|
-
- Error result:
|
|
19
|
-
- Unsupported result:
|
|
20
|
-
|
|
21
|
-
## Shared Guarantees
|
|
22
|
-
|
|
23
|
-
- Naming rule:
|
|
24
|
-
- Ownership rule:
|
|
25
|
-
- Fail-fast rule:
|
|
26
|
-
- Generated/runtime alignment rule:
|
|
27
|
-
|
|
28
|
-
## Exceptions
|
|
29
|
-
|
|
30
|
-
| Exception | Scope | Required evidence |
|
|
31
|
-
| --- | --- | --- |
|
|
32
|
-
| | | |
|
|
1
|
+
# Refactor Contract Template
|
|
2
|
+
|
|
3
|
+
## Contract Identity
|
|
4
|
+
|
|
5
|
+
- Feature or protocol:
|
|
6
|
+
- Canonical entrypoint:
|
|
7
|
+
- Supported callers:
|
|
8
|
+
|
|
9
|
+
## Input Shape
|
|
10
|
+
|
|
11
|
+
- Required inputs:
|
|
12
|
+
- Optional inputs:
|
|
13
|
+
- Invalid inputs:
|
|
14
|
+
|
|
15
|
+
## Result Shape
|
|
16
|
+
|
|
17
|
+
- Success result:
|
|
18
|
+
- Error result:
|
|
19
|
+
- Unsupported result:
|
|
20
|
+
|
|
21
|
+
## Shared Guarantees
|
|
22
|
+
|
|
23
|
+
- Naming rule:
|
|
24
|
+
- Ownership rule:
|
|
25
|
+
- Fail-fast rule:
|
|
26
|
+
- Generated/runtime alignment rule:
|
|
27
|
+
|
|
28
|
+
## Exceptions
|
|
29
|
+
|
|
30
|
+
| Exception | Scope | Required evidence |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| | | |
|