@rasensio/aidlc-content 1.81.0 → 1.82.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/docs/knowledge-graph.md +11 -0
- package/package.json +1 -1
package/docs/knowledge-graph.md
CHANGED
|
@@ -33,6 +33,17 @@ aidlc knowledge context --scope phase --phase design
|
|
|
33
33
|
`discover` scans a codebase and seeds the graph — that is how a brownfield project starts. After that,
|
|
34
34
|
record findings as you make them rather than at the end.
|
|
35
35
|
|
|
36
|
+
**Re-running `discover` only fills gaps.** It replaces a description only when it is empty or still
|
|
37
|
+
one that discovery itself wrote, and never changes an entity's name, source, author, confidence or
|
|
38
|
+
tags. A module it finds is written into the existing entry with the same name or source path, not
|
|
39
|
+
added under a second id; when two entries match, it writes nothing for that module and prints a
|
|
40
|
+
warning naming them. A fact that did not change is not rewritten, so a re-run on an unchanged repo
|
|
41
|
+
leaves an empty diff. The reason is this repo's own graph: a second run replaced a seven-line
|
|
42
|
+
hand-written description with "Module at packages/cli/src/core/ (has index)", added 14 thin copies of
|
|
43
|
+
modules already written up under other ids, and touched about 100 files. Discovery and
|
|
44
|
+
`knowledge add` now take separate paths for this reason — a person adding a description means to
|
|
45
|
+
replace the old one, and discovery never does.
|
|
46
|
+
|
|
36
47
|
To add several entities at once, pipe YAML documents (separated by `---`) to
|
|
37
48
|
`aidlc knowledge add --stdin`. A `tags:` string there means what `--tags` means: comma-separated.
|
|
38
49
|
**Every document is checked before any is written**, and a run that fails writes nothing. That rule
|