Commit cb3ec3c
committed
feat(admin): the graph read-model, skill enumeration, and record joins (issue #54)
The data layer under the trigger/flow graph. Everything the graph will
draw becomes readable through read-model.mjs, the admin's one I/O
funnel; the view itself is a later slice.
Read-model additions, all never-throw, all degrading per folder to a
discriminated unreachable, all bounded by the frozen literal-pinned
GRAPH_LIMITS: readFolderSkills (object-store enumeration at HEAD via
the worker's own selectEntries/keepOnlyDeclaredSkills over one hardened
ls-tree, one bounded cat-file per top-level SKILL.md, frontmatter
through the gate's own aiTriggerAllows; display-advisory, never a gate
decision), readInjectedSkills (working-tree, advisory, the doctor
precedent), cronRunStats (raw repeat:<id>:<millis> jobId join with the
digits-tail disambiguator), joinRunsToTriggers (persisted triggerIndex
with the OQ-008 range guard: a stale index counts unattributed, never
lands on whatever entry now occupies the row), observedChainEdges
(parentJobId joins folded per flow pair, same-target only per OQ-009,
refusals surfaced), and collectGraphInputs (the one dedupe/caps funnel).
readTriggers display records now carry the RAW triggers-array index,
the identity matched.index counts, so a dropped row leaves a hole
rather than renumbering every attribution below it. resolvePaths
mirrors the chain caps with defaults imported from the worker.
New pure module graph-model.mjs (parseSkillMeta, findSiblingMentions;
purity source-regex-tested). findSiblingMentions boundary-matches
against the skill-name charset itself rather than \b, because \b
calls a hyphen a boundary and fix would fire inside prefix-fix.
Worker enablers: ./materialize exports-map subpath, aiTriggerAllows
exported, CHAIN_DEPTH_MAX_DEFAULT/CHAIN_MAX_PER_JOB_DEFAULT hoisted as
exported consts (loadConfig behaviour unchanged, pinned by test).
Specs: DES-ADMIN-VIA-PI-EXTENSION AMENDED, saying out loud what the
last three dashboard rows certified as unchanged, because this time it
did change: a new read-model surface and new fs/git access. Dashboard
fs ban UNCHANGED, checked. .log placement boundary UNCHANGED, checked.
DES-AI-TRIGGER-FLOW-GATE UNCHANGED, checked (HEAD-at-display-time is
advisory, an unreadable SKILL.md reads as not chainable).
Suite in the CI posture: 2100 pass, 0 skipped; admin bundle builds.
Signed-off-by: Rob Boerman <robboerman@live.nl>1 parent f61fd18 commit cb3ec3c
10 files changed
Lines changed: 831 additions & 16 deletions
File tree
- admin
- src
- test
- fixtures
- specs
- worker
- src
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments