archgraph-argo 0.1.0
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/LICENSE +201 -0
- package/README.md +115 -0
- package/argo/package.json +8 -0
- package/argo/rules/intent-architecture-global-rule.md +45 -0
- package/argo/schema/ImplementationToCodingHandoff.schema.json +252 -0
- package/argo/schema/ImplementationToIntentTraceProposal.schema.json +180 -0
- package/argo/schema/IntentToImplementationHandoff.schema.json +75 -0
- package/argo/schema/SystemArchitecture.schema.json +378 -0
- package/argo/schema/archimate3.2.pdf +0 -0
- package/argo/scripts/ARCHITECTURE.md +57 -0
- package/argo/scripts/archimate32-rules.js +12301 -0
- package/argo/scripts/argo-mcp-server.js +629 -0
- package/argo/scripts/argo-paths.js +77 -0
- package/argo/scripts/ensureArgoHarnessEnvironment.js +340 -0
- package/argo/scripts/generateArchitectureDiffPlantuml.js +466 -0
- package/argo/scripts/graph-rag/ARCHITECTURE.md +192 -0
- package/argo/scripts/graph-rag/canonicalProjectionAuthority.js +45 -0
- package/argo/scripts/graph-rag/defaultSemanticRetrieval.js +969 -0
- package/argo/scripts/graph-rag/embeddingQualificationGate.js +59 -0
- package/argo/scripts/graph-rag/externalProductionConfig.js +74 -0
- package/argo/scripts/graph-rag/liveEmbeddingIndexGate.js +129 -0
- package/argo/scripts/graph-rag/liveEmbeddingNeo4jBoundary.js +137 -0
- package/argo/scripts/graph-rag/liveEmbeddingProviderClient.js +49 -0
- package/argo/scripts/graph-rag/liveEmbeddingProviderConfig.js +481 -0
- package/argo/scripts/graph-rag/mutationEmbeddingVectorLifecycle.js +1261 -0
- package/argo/scripts/graph-rag/neo4jNativeRetrieval.js +37 -0
- package/argo/scripts/graph-rag/productionGraphRagRuntime.js +1624 -0
- package/argo/scripts/graph-rag/semantic-persistence/ARCHITECTURE.md +51 -0
- package/argo/scripts/graph-rag/semantic-persistence/productionSemanticBackfill.js +241 -0
- package/argo/scripts/graph-rag/semantic-persistence/productionSemanticCheckpointStore.js +99 -0
- package/argo/scripts/graph-rag/semantic-persistence/productionSemanticNeo4jAdapter.js +149 -0
- package/argo/scripts/graph-rag/semantic-persistence/productionSemanticProjectionStore.js +171 -0
- package/argo/scripts/graph-rag/semanticOperatorError.js +38 -0
- package/argo/scripts/graph-rag/semanticOperatorJourney.js +459 -0
- package/argo/scripts/graph-rag/semanticReadinessAttestationStore.js +398 -0
- package/argo/scripts/graph-rag/systemMetadataCommandAdapter.js +269 -0
- package/argo/scripts/graph-semantics.js +220 -0
- package/argo/scripts/neo4j-system-architecture-store.js +777 -0
- package/argo/scripts/repositoryArgoEnvironment.js +101 -0
- package/argo/scripts/runArchitectureTests.js +583 -0
- package/argo/scripts/semanticOperatorJourneyCli.js +91 -0
- package/argo/scripts/syncSystemArchitectureToNeo4j.js +67 -0
- package/argo/scripts/systemarchitecture-mcp-server.js +2965 -0
- package/argo/scripts/test-executors/_template.js +58 -0
- package/argo/scripts/test-executors/default.js +199 -0
- package/argo/scripts/validateStageHandoff.js +459 -0
- package/argo/scripts/validateSystemArchitecture.js +254 -0
- package/argo/scripts/validateTraceProposal.js +181 -0
- package/argo/scripts/validator-mcp-server.js +377 -0
- package/argo/skills/argo-init/SKILL.md +110 -0
- package/bin/argo-deploy.js +12 -0
- package/install-argo.ps1 +112 -0
- package/package.json +28 -0
- package/vendor/neo4j-driver-6.2.0.tgz +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# ArchGraph
|
|
2
|
+
|
|
3
|
+
An architecture-graph driven framework for Agentic Engineering.
|
|
4
|
+
|
|
5
|
+
## What is this?
|
|
6
|
+
|
|
7
|
+
`ArchGraph` treats an **intent architecture graph** as the single source of
|
|
8
|
+
truth for agentic engineering. Every piece of work starts from an element in the graph — a Work
|
|
9
|
+
Package, a Skill, a Rule, a Viewpoint, or an Application Component — and every repository change is
|
|
10
|
+
traced back to that element.
|
|
11
|
+
|
|
12
|
+
The canonical graph lives at [`design/KG/SystemArchitecture.json`](design/KG/SystemArchitecture.json).
|
|
13
|
+
|
|
14
|
+
## Architecture
|
|
15
|
+
|
|
16
|
+
The global architecture (Layered Viewpoint) shows how the human, the coding agent, ARGO MCP, the
|
|
17
|
+
intent architecture graph, ArchiMate 3.2, and Enterprise Architect relate in graph-driven agentic
|
|
18
|
+
engineering:
|
|
19
|
+
|
|
20
|
+

|
|
21
|
+
|
|
22
|
+
Editable source: [`docs/diagrams/global-architecture.excalidraw`](docs/diagrams/global-architecture.excalidraw)
|
|
23
|
+
|
|
24
|
+
## Core principles
|
|
25
|
+
|
|
26
|
+
1. **Arm before acting** — before any development, pull the Work Package's associated Skills and
|
|
27
|
+
Rules and materialize them under `~/.copilot/skills/<name>/SKILL.md` (user-level) or
|
|
28
|
+
`.github/skills/<name>/SKILL.md` (project) and `*.instructions.md`.
|
|
29
|
+
2. **Find the element first** — every repository change maps to an architecture element. If none
|
|
30
|
+
exists, create one inside a sensible View and Viewpoint.
|
|
31
|
+
3. **Acceptance tests first** — check the affected acceptance cases before changing anything.
|
|
32
|
+
Tests verify elements from the outside (GIVEN-WHEN-THEN), never their internals.
|
|
33
|
+
4. **Commit traceability** — after each change, commit and register the commit id plus file paths
|
|
34
|
+
back into the graph element.
|
|
35
|
+
|
|
36
|
+
These rules are encoded as user-level instructions `argo-copilot-instructions.instructions.md`
|
|
37
|
+
in the VS Code Copilot prompts folder (`%APPDATA%\Code\User\prompts`).
|
|
38
|
+
|
|
39
|
+
## Repository map
|
|
40
|
+
|
|
41
|
+
| Path | Purpose |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| `design/KG/SystemArchitecture.json` | Canonical intent architecture graph (single source of truth) |
|
|
44
|
+
| `%APPDATA%\Code\User\prompts\argo-copilot-instructions.instructions.md` | Global agent rules (user-level) |
|
|
45
|
+
| `~/.copilot/skills/argo-init/SKILL.md` | ARGO harness init skill (user-level) |
|
|
46
|
+
| `.github/kglibrary.instructions.md` | Global rule for `KGlibrary/*/info.md` frontmatter format |
|
|
47
|
+
| `.github/skills/<name>/SKILL.md` | Skills materialized from the graph (`argo-init`, `create-github-repository-page`, `diagram-draw`, `optimize-web-layout-style`) |
|
|
48
|
+
| `.argo/` | ARGO harness: MCP server, schema, validators, semantic (Graph RAG) lifecycle and Neo4j sync |
|
|
49
|
+
| `KGlibrary/` | Reference project knowledge library |
|
|
50
|
+
| `index.html` | GitHub Pages home site |
|
|
51
|
+
| `tests/` | Executable acceptance tests (Node.js built-in test runner) |
|
|
52
|
+
|
|
53
|
+
## How to use
|
|
54
|
+
|
|
55
|
+
`ArchGraph` is an agentic engineering framework driven by a knowledge graph —
|
|
56
|
+
the intent architecture graph — whose schema complies with **ArchiMate 3.2**.
|
|
57
|
+
|
|
58
|
+
To adopt it as the building framework for another project, copy the following into the target project:
|
|
59
|
+
|
|
60
|
+
1. **`.argo/`** — the ARGO harness: the MCP server, the ArchiMate 3.2 schema, validators, the
|
|
61
|
+
semantic (Graph RAG) lifecycle, and Neo4j sync.
|
|
62
|
+
2. **One agent-host configuration directory**, depending on which agent you use:
|
|
63
|
+
- `.github/` — GitHub Copilot / VS Code
|
|
64
|
+
- `.opencode/` — opencode
|
|
65
|
+
- `.cursor/` — Cursor
|
|
66
|
+
|
|
67
|
+
Each directory carries the global rules, the materialized skills, and the `argo` MCP wiring.
|
|
68
|
+
3. **The `.feap` Enterprise Architect model** — the ArchiMate 3.2 model used to author the
|
|
69
|
+
knowledge graph (the `feap` tool).
|
|
70
|
+
|
|
71
|
+
Then point your agent at the harness (`node .argo/scripts/argo-mcp-server.js`) and bootstrap the
|
|
72
|
+
environment:
|
|
73
|
+
|
|
74
|
+
```powershell
|
|
75
|
+
node .argo/scripts/ensureArgoHarnessEnvironment.js
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## ARGO MCP harness
|
|
79
|
+
|
|
80
|
+
Read and write the intent architecture through the **ARGO MCP server** — configured in
|
|
81
|
+
[`.github/mcp.json`](.github/mcp.json) and served by `node .argo/scripts/argo-mcp-server.js`.
|
|
82
|
+
Never edit `design/KG/SystemArchitecture.json` directly.
|
|
83
|
+
|
|
84
|
+
Bootstrap or health-check the harness with:
|
|
85
|
+
|
|
86
|
+
```powershell
|
|
87
|
+
node .argo/scripts/ensureArgoHarnessEnvironment.js
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The harness validates the graph against `.argo/schema/SystemArchitecture.schema.json`, supports a
|
|
91
|
+
semantic (Graph RAG) query lifecycle, and can sync the graph into Neo4j (`neo4j-driver`).
|
|
92
|
+
|
|
93
|
+
## KGlibrary reference library
|
|
94
|
+
|
|
95
|
+
Each project under `KGlibrary/<project>/` provides an `info.md` with YAML frontmatter keys
|
|
96
|
+
(`name`, `description`, `repo`, `branch`, `commit_id`) so the home site and agents can uniformly
|
|
97
|
+
consume reference project information. See
|
|
98
|
+
[`.github/kglibrary.instructions.md`](.github/kglibrary.instructions.md).
|
|
99
|
+
|
|
100
|
+
## Tests
|
|
101
|
+
|
|
102
|
+
Run the acceptance suite with:
|
|
103
|
+
|
|
104
|
+
```powershell
|
|
105
|
+
node --test "tests/*.test.js"
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Requirements
|
|
109
|
+
|
|
110
|
+
- Node.js (built-in `node:test` runner)
|
|
111
|
+
- Optional: a reachable Neo4j database for the semantic lifecycle / sync tooling
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
[Apache License 2.0](LICENSE)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "ArchGraph / ARGO 全局工作流规则:动手前先在意图图谱定位架构元素、验收用例先行(可执行 GIVEN-WHEN-THEN)、通过全局 ARGO MCP 读写意图图谱、提交后登记 commit id + 文件路径。Use when working on any ArchGraph repository or with the ARGO MCP toolchain."
|
|
3
|
+
name: "ArchGraph ARGO Workflow Rules"
|
|
4
|
+
applyTo: "**"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<Principle>
|
|
8
|
+
当你领取到某个Workpackage后,进行任何开发活动前,必须先完成自我武装,从该Workpackage关联的元素中,找到完成任务需要使用的SKILL、需要遵守的全局规则。
|
|
9
|
+
1. 对于需要的SKILL,请在.github/skills下创建一个或多个[SKILL名称]/SKILL.md;
|
|
10
|
+
2. 对于要遵守的全局规则,需要在.github下面增加一个或多个 *.instructions.md文件。
|
|
11
|
+
</Principle>
|
|
12
|
+
|
|
13
|
+
<Principle>
|
|
14
|
+
1. 在动手修改仓库任何内容前,你必须先在架构图谱中找到对应的架构元素。
|
|
15
|
+
2. 如果没有找到对应的架构元素,你必须先选择一个View,并在其中创建一个新的合理的架构元素。
|
|
16
|
+
3. 如果没有找到对应的View,你必须先思考应该选择哪个Viewpoint最合理,并基于这个最合理的Viewpoint创建一个新的View。
|
|
17
|
+
4. 如果你在动手修改前有任何逻辑不完整的地方,首先从意图架构图谱中寻找答案,无法找到时必须询问人类伙伴,不能直接在仓库中进行修改。
|
|
18
|
+
5. 仓库内容修改完成后,必须将改动的内容git commit提交留证,并将提交"commit id + 相关的文件路径"登记到图谱中对应的架构元素中,有必要时刷新已有描述或属性(必要时才新增属性,以最大程度保持内容紧凑)。
|
|
19
|
+
</Principle>
|
|
20
|
+
|
|
21
|
+
<Principle>
|
|
22
|
+
1. 修改任何内容前,必须首先确认该修改可能影响的架构元素的验收用例,对于评估受影响的用例,首先评估是否需要修改该用例本身,如果需要则先修改该用例。
|
|
23
|
+
2. 对于所有评估受影响的用例(包括修改后的用例),必须在修改完成后进行这些用例的回归测试,确保这些用例全部通过。
|
|
24
|
+
3. 如果发现本次修改和知识图谱中任何验收用例都无关,则说明知识图谱中验收用例缺失,需要首先补充后再实施修改。
|
|
25
|
+
4. 知识架构图谱中的每个验收用例必须是对该用例所挂载的元素,从外部的角度进行验证的,不能是对该元素内部实现的验证。
|
|
26
|
+
5. 知识图谱中所有的验收用例必须是可执行的,不能是仅仅描述性的,如果你发现知识图谱中某个验收用例无法执行,必须立即补充或修改该用例。
|
|
27
|
+
6. 知识图谱中所有的验收用例必须采用GIVEN-WHEN-THEN的格式进行描述和实现,以便于人类阅读同时可以自动化执行。
|
|
28
|
+
</Principle>
|
|
29
|
+
|
|
30
|
+
<instruction>
|
|
31
|
+
你必须通过ARGO MCP server提供的工具来进行意图架构的读写操作,禁止直接修改意图架构的源文件:
|
|
32
|
+
1. getIntentElementContext: 用于获取意图架构元素的上下文信息,包括元素的属性、关联关系等。
|
|
33
|
+
2. previewSystemArchitectureMutation: 用于预览意图架构的变更,确保变更不会破坏现有的架构结构。
|
|
34
|
+
3. applySystemArchitectureMutation: 用于应用意图架构的变更,将预览的变更正式写入意图架构中。
|
|
35
|
+
4. addArchitectureElement: 用于在意图架构中添加新的架构元素。
|
|
36
|
+
5. updateArchitectureElement: 用于更新意图架构中已有的架构元素的属性或关联关系。
|
|
37
|
+
6. removeArchitectureElement: 用于从意图架构中移除已有的架构元素。
|
|
38
|
+
7. addArchitectureRelationship: 用于在意图架构中添加新的架构元素之间的关联关系。
|
|
39
|
+
8. updateArchitectureRelationship: 用于更新意图架构中已有的架构元素之间的关联关系。
|
|
40
|
+
9. removeArchitectureRelationship: 用于从意图架构中移除已有的架构元素之间的关联关系。
|
|
41
|
+
10. addArchitectureView: 用于在意图架构中添加新的架构视图。
|
|
42
|
+
11. updateArchitectureView: 用于更新意图架构中已有的架构视图的属性或关联关系。
|
|
43
|
+
12. removeArchitectureView: 用于从意图架构中移除已有的架构视图。
|
|
44
|
+
13. validateSystemArchitecture: 用于验证意图架构的完整性和一致性,确保架构元素和关联关系符合预期。
|
|
45
|
+
</instruction>
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "./.argo/schema/ImplementationToCodingHandoff.schema.json",
|
|
4
|
+
"title": "Implementation To Coding Handoff Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"stage",
|
|
9
|
+
"generatedAt",
|
|
10
|
+
"sourceIntentGraphPath",
|
|
11
|
+
"implementationContracts",
|
|
12
|
+
"explicitEntrypoints",
|
|
13
|
+
"criticalNonExplicitTests",
|
|
14
|
+
"expectedFailureRecordsPath",
|
|
15
|
+
"codingTargets",
|
|
16
|
+
"taskExecutionPlan",
|
|
17
|
+
"frozenFiles"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"stage": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "implementation-to-coding"
|
|
23
|
+
},
|
|
24
|
+
"generatedAt": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"sourceIntentGraphPath": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"summary": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"implementationContracts": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"minItems": 1,
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"explicitEntrypoints": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"minItems": 1,
|
|
43
|
+
"items": {
|
|
44
|
+
"$ref": "#/$defs/explicitEntrypoint"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"criticalNonExplicitTests": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"$ref": "#/$defs/nonExplicitTest"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"supportingNonExplicitTests": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/$defs/nonExplicitTest"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"expectedFailureRecordsPath": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"codingTargets": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"minItems": 1,
|
|
65
|
+
"items": {
|
|
66
|
+
"$ref": "#/$defs/codingTarget"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"taskExecutionPlan": {
|
|
70
|
+
"$ref": "#/$defs/taskExecutionPlan"
|
|
71
|
+
},
|
|
72
|
+
"frozenFiles": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"minItems": 1,
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"openGaps": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"$defs": {
|
|
87
|
+
"explicitEntrypoint": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"required": [
|
|
91
|
+
"testcaseName",
|
|
92
|
+
"entryPath",
|
|
93
|
+
"controlPoint",
|
|
94
|
+
"observationPoint",
|
|
95
|
+
"initialExecutionStatus",
|
|
96
|
+
"initialExecutionCommand"
|
|
97
|
+
],
|
|
98
|
+
"properties": {
|
|
99
|
+
"testcaseName": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"entryPath": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"controlPoint": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"observationPoint": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"initialExecutionStatus": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enum": [
|
|
114
|
+
"passed",
|
|
115
|
+
"failed"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"initialExecutionCommand": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"failureReason": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"nonExplicitTest": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"additionalProperties": false,
|
|
129
|
+
"required": [
|
|
130
|
+
"path",
|
|
131
|
+
"controlPoint",
|
|
132
|
+
"observationPoint"
|
|
133
|
+
],
|
|
134
|
+
"properties": {
|
|
135
|
+
"name": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
"path": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"kind": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"controlPoint": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"observationPoint": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"expectedStatus": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"enum": [
|
|
153
|
+
"passed",
|
|
154
|
+
"failed"
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"codingTarget": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"additionalProperties": false,
|
|
162
|
+
"required": [
|
|
163
|
+
"failureSignal",
|
|
164
|
+
"nextAction"
|
|
165
|
+
],
|
|
166
|
+
"properties": {
|
|
167
|
+
"testcaseName": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"path": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"failureSignal": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"nextAction": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"taskExecutionPlan": {
|
|
182
|
+
"type": "object",
|
|
183
|
+
"additionalProperties": false,
|
|
184
|
+
"required": [
|
|
185
|
+
"executionStrategy",
|
|
186
|
+
"tasks"
|
|
187
|
+
],
|
|
188
|
+
"properties": {
|
|
189
|
+
"executionStrategy": {
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
"tasks": {
|
|
193
|
+
"type": "array",
|
|
194
|
+
"minItems": 1,
|
|
195
|
+
"items": {
|
|
196
|
+
"$ref": "#/$defs/codingTask"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"codingTask": {
|
|
202
|
+
"type": "object",
|
|
203
|
+
"additionalProperties": false,
|
|
204
|
+
"required": [
|
|
205
|
+
"taskId",
|
|
206
|
+
"title",
|
|
207
|
+
"objective",
|
|
208
|
+
"steps",
|
|
209
|
+
"completionSignal"
|
|
210
|
+
],
|
|
211
|
+
"properties": {
|
|
212
|
+
"taskId": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"title": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
},
|
|
218
|
+
"objective": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"dependsOn": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"items": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"relatedTestcases": {
|
|
228
|
+
"type": "array",
|
|
229
|
+
"items": {
|
|
230
|
+
"type": "string"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"targetPaths": {
|
|
234
|
+
"type": "array",
|
|
235
|
+
"items": {
|
|
236
|
+
"type": "string"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"steps": {
|
|
240
|
+
"type": "array",
|
|
241
|
+
"minItems": 1,
|
|
242
|
+
"items": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"completionSignal": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|