vindaris 0.0.0-stage → 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 +21 -0
- package/README.md +52 -2
- package/bin/vindaris.js +137 -0
- package/examples/sample-graph.json +67 -0
- package/package.json +13 -4
- package/schema/alerts.schema.json +99 -0
- package/schema/edges.schema.json +67 -0
- package/schema/nodes.schema.json +139 -0
- package/schema/signals.schema.json +68 -0
- package/src/briefing.js +60 -0
- package/src/check.js +183 -0
- package/src/demo.js +62 -0
- package/src/export.js +44 -0
- package/src/guide.md +113 -0
- package/src/model.js +190 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vindaris
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
-
#
|
|
1
|
+
# vindaris
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A strategy check that runs inside your AI assistant. Ask Claude:
|
|
4
|
+
|
|
5
|
+
> Install vindaris in your sandbox and show me where our strategy will fail.
|
|
6
|
+
|
|
7
|
+
Your assistant finds your goals in the tools and files it can already read (Notion, Confluence, Drive, SharePoint, `.md` files, its memory of your company), reads the tasks and issues in Jira, Linear, Asana, GitHub or monday.com, and links each piece of work to the goal it serves. `vindaris` then checks the result and returns a briefing:
|
|
8
|
+
|
|
9
|
+
- goals with no work, or whose work has gone quiet
|
|
10
|
+
- current work that traces to no goal, and where it sits
|
|
11
|
+
- goals with no number, KPIs nobody updates, KPIs behind pace
|
|
12
|
+
- one person owning too many goals, and goals nobody owns
|
|
13
|
+
|
|
14
|
+
No account and no API key. The data stays in `vindaris-graph.json` in your assistant's workspace.
|
|
15
|
+
|
|
16
|
+
## Commands
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
npx vindaris guide How to run the check (for the agent; read first)
|
|
20
|
+
npx vindaris scan [dir] List local files that may hold goals or work
|
|
21
|
+
npx vindaris add <file|-> Add goals, KPIs, projects, tasks and links from JSON
|
|
22
|
+
npx vindaris status What the graph holds so far
|
|
23
|
+
npx vindaris check [--json] Run the check and print the briefing
|
|
24
|
+
npx vindaris export Link that opens the plan in Vindaris
|
|
25
|
+
npx vindaris demo Run the check on a fictional company
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## The rules
|
|
29
|
+
|
|
30
|
+
The check uses fixed, published values, so you can see why each finding fired (`src/check.js`, `RULES`):
|
|
31
|
+
|
|
32
|
+
| Rule | Fires when |
|
|
33
|
+
|---|---|
|
|
34
|
+
| Goal without work | No task or project traces to the goal, or none of its tasks changed in 30 days |
|
|
35
|
+
| Work without goal | Current tasks (open, or done in the last 90 days) trace to no goal; high above 30% |
|
|
36
|
+
| KPI untracked or behind pace | A goal has no KPI, a KPI has no current value, or the share of time used exceeds progress by 20 points |
|
|
37
|
+
| Owner overload | One person owns 3 or more goals, or more than half of them |
|
|
38
|
+
|
|
39
|
+
Links the agent guessed with a confidence below 0.6 do not count until a person confirms them.
|
|
40
|
+
|
|
41
|
+
The [Vindaris app](https://vindaris.com) runs a fuller engine on the same model: it grades every signal from your tools, Slack, Teams and meeting transcripts, and flags risk to the people who own it every day.
|
|
42
|
+
|
|
43
|
+
## Data model
|
|
44
|
+
|
|
45
|
+
The graph follows the public [Vindaris Work Graph schema](https://github.com/Vindaris/work-graph-schema) (copied into `schema/`, CC BY 4.0). `vindaris add` also takes a shorthand with `goals`, `kpis`, `projects`, `tasks` and `links` collections; see `vindaris guide`.
|
|
46
|
+
|
|
47
|
+
## Keep it live
|
|
48
|
+
|
|
49
|
+
`vindaris export` prints a link to the Vindaris strategy map with the goals, KPIs and projects (titles only). Nothing leaves the workspace unless you open it.
|
|
50
|
+
|
|
51
|
+
## Development
|
|
52
|
+
|
|
53
|
+
`npm test` runs the tests. `schema/` and `examples/sample-graph.json` are copies from [work-graph-schema](https://github.com/Vindaris/work-graph-schema): change them there, then run `node scripts/sync-schema.mjs`. CI fails when the copies differ.
|
package/bin/vindaris.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// vindaris: a strategy check that an AI agent runs in its own workspace.
|
|
3
|
+
import { readFileSync, writeFileSync, existsSync, readdirSync, statSync } from 'node:fs';
|
|
4
|
+
import { join, dirname, relative, resolve } from 'node:path';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
6
|
+
import { emptyGraph, normalizeInput, mergeBatch } from '../src/model.js';
|
|
7
|
+
import { check } from '../src/check.js';
|
|
8
|
+
import { renderBriefing } from '../src/briefing.js';
|
|
9
|
+
import { exportLink } from '../src/export.js';
|
|
10
|
+
import { demoInput } from '../src/demo.js';
|
|
11
|
+
|
|
12
|
+
const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..');
|
|
13
|
+
const VERSION = JSON.parse(readFileSync(join(ROOT, 'package.json'), 'utf8')).version;
|
|
14
|
+
const GRAPH = resolve(process.env.VINDARIS_GRAPH || 'vindaris-graph.json');
|
|
15
|
+
|
|
16
|
+
const [cmd = 'guide', ...args] = process.argv.slice(2);
|
|
17
|
+
const flag = (name) => args.includes(`--${name}`);
|
|
18
|
+
const opt = (name) => { const i = args.indexOf(`--${name}`); return i >= 0 ? args[i + 1] : undefined; };
|
|
19
|
+
|
|
20
|
+
function load() {
|
|
21
|
+
if (!existsSync(GRAPH)) return emptyGraph();
|
|
22
|
+
return JSON.parse(readFileSync(GRAPH, 'utf8'));
|
|
23
|
+
}
|
|
24
|
+
const save = (g) => writeFileSync(GRAPH, JSON.stringify(g, null, 2) + '\n');
|
|
25
|
+
|
|
26
|
+
function readInput(file) {
|
|
27
|
+
const text = file === '-' || !file ? readFileSync(0, 'utf8') : readFileSync(file, 'utf8');
|
|
28
|
+
try { return JSON.parse(text); } catch (e) { fail(`${file || 'stdin'} is not valid JSON: ${e.message}`); }
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function fail(msg) { console.error(`vindaris: ${msg}`); process.exit(1); }
|
|
32
|
+
|
|
33
|
+
function add(graph, input, label) {
|
|
34
|
+
const { batch, problems } = normalizeInput(input);
|
|
35
|
+
const res = mergeBatch(graph, batch);
|
|
36
|
+
const all = [...problems, ...res.problems];
|
|
37
|
+
console.log(`Added ${label}: ${res.added} new item${res.added === 1 ? '' : 's'}, ${res.updated} updated, ${res.linksAdded} new link${res.linksAdded === 1 ? '' : 's'}.`);
|
|
38
|
+
if (all.length) { console.log(`Skipped ${all.length}:`); for (const p of all) console.log(`- ${p}`); }
|
|
39
|
+
return all.length;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function scan(dir, depth = 0, out = []) {
|
|
43
|
+
if (depth > 3 || out.length >= 200) return out;
|
|
44
|
+
let entries = [];
|
|
45
|
+
try { entries = readdirSync(dir); } catch { return out; }
|
|
46
|
+
for (const name of entries) {
|
|
47
|
+
if (name.startsWith('.') || name === 'node_modules') continue;
|
|
48
|
+
const p = join(dir, name);
|
|
49
|
+
let st; try { st = statSync(p); } catch { continue; }
|
|
50
|
+
if (st.isDirectory()) scan(p, depth + 1, out);
|
|
51
|
+
else if (/\.(md|markdown|txt|csv|tsv|xlsx|json)$/i.test(name) && name !== 'vindaris-graph.json' && name !== 'package.json' && name !== 'package-lock.json') out.push({ path: p, size: st.size });
|
|
52
|
+
}
|
|
53
|
+
return out;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const HELP = `vindaris ${VERSION}: strategy check for AI agents
|
|
57
|
+
|
|
58
|
+
vindaris guide How to run the check (read this first). Default command.
|
|
59
|
+
vindaris scan [dir] List local files that may hold goals or work.
|
|
60
|
+
vindaris add <file|-> Add goals, KPIs, projects, tasks and links from JSON.
|
|
61
|
+
vindaris status What the graph holds so far.
|
|
62
|
+
vindaris check [--json] Run the check and print the briefing.
|
|
63
|
+
vindaris export Link that opens the plan in Vindaris.
|
|
64
|
+
vindaris demo Run the check on a fictional company.
|
|
65
|
+
vindaris schema Where the Work Graph schema files are.
|
|
66
|
+
vindaris reset Start over with an empty graph.
|
|
67
|
+
|
|
68
|
+
Data stays in ${relative(process.cwd(), GRAPH) || GRAPH}. More: https://vindaris.com/ai-agents`;
|
|
69
|
+
|
|
70
|
+
switch (cmd) {
|
|
71
|
+
case 'guide':
|
|
72
|
+
case 'init': {
|
|
73
|
+
console.log(readFileSync(join(ROOT, 'src', 'guide.md'), 'utf8'));
|
|
74
|
+
if (!existsSync(GRAPH)) { save(emptyGraph()); console.log(`(Created an empty ${relative(process.cwd(), GRAPH)}.)`); }
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
case 'scan': {
|
|
78
|
+
const dir = resolve(args[0] || '.');
|
|
79
|
+
const extra = ['/mnt/user-data/uploads', '/mnt/data', '/mnt/project'].filter((p) => p !== dir && existsSync(p));
|
|
80
|
+
const files = [dir, ...extra].flatMap((d) => scan(d));
|
|
81
|
+
if (!files.length) { console.log('No .md, .txt, .csv, .xlsx or .json files found here or in the usual upload folders.'); break; }
|
|
82
|
+
const hint = /okr|goal|objective|strateg|plan|priorit|roadmap|kpi|target|q[1-4]|20\d\d/i;
|
|
83
|
+
files.sort((a, b) => Number(hint.test(b.path)) - Number(hint.test(a.path)));
|
|
84
|
+
console.log(`Found ${files.length} file${files.length === 1 ? '' : 's'} (likely goal documents first):`);
|
|
85
|
+
for (const f of files.slice(0, 60)) console.log(`${hint.test(f.path) ? '* ' : ' '}${f.path} (${Math.ceil(f.size / 1024)} KB)`);
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
case 'add': {
|
|
89
|
+
if (!args.length) fail('add needs a JSON file, or - to read from stdin.');
|
|
90
|
+
const g = load();
|
|
91
|
+
let skipped = 0;
|
|
92
|
+
for (const file of args.filter((a) => !a.startsWith('--'))) skipped += add(g, readInput(file), file === '-' ? 'stdin' : file);
|
|
93
|
+
save(g);
|
|
94
|
+
if (skipped) console.log('Fix the skipped items and add them again; adding the same id again updates it.');
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
case 'status': {
|
|
98
|
+
const g = load();
|
|
99
|
+
const count = (t) => g.nodes.filter((n) => n.type === t).length;
|
|
100
|
+
console.log(`${relative(process.cwd(), GRAPH)}: ${count('STRATEGY')} strategy, ${count('GOAL')} goals, ${count('KPI')} KPIs, ${count('PROJECT')} projects, ${count('TASK')} tasks, ${count('PERSON')} people, ${g.edges.length} links.`);
|
|
101
|
+
if (g.meta.sources.length) console.log(`Sources: ${g.meta.sources.map((s) => (typeof s === 'string' ? s : s.name)).join(', ')}.`);
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
case 'check': {
|
|
105
|
+
const r = check(load(), { asOf: opt('as-of') });
|
|
106
|
+
console.log(flag('json') ? JSON.stringify(r, null, 2) : renderBriefing(r));
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
case 'demo': {
|
|
110
|
+
const g = emptyGraph();
|
|
111
|
+
const { batch } = normalizeInput(demoInput());
|
|
112
|
+
mergeBatch(g, batch);
|
|
113
|
+
const r = check(g);
|
|
114
|
+
console.log(flag('json') ? JSON.stringify(r, null, 2) : renderBriefing(r));
|
|
115
|
+
if (!flag('json')) console.log('\nThis is a fictional company. Run `vindaris guide` to check your own plan.');
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
case 'export': {
|
|
119
|
+
const g = load();
|
|
120
|
+
const { url, chips } = exportLink(g);
|
|
121
|
+
if (!chips.length) fail('Nothing to export yet: add goals first.');
|
|
122
|
+
console.log(`Open this link to see the plan on the Vindaris strategy map (${chips.length} items: goals, KPIs and projects; titles only):\n\n${url}\n\nNo account is needed to look. Signing up connects your tools so Vindaris checks the plan every day.`);
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
case 'schema': {
|
|
126
|
+
console.log(`Work Graph schema (JSON Schema): ${join(ROOT, 'schema')}\nSample graph: ${join(ROOT, 'examples', 'sample-graph.json')}\nDocs: https://github.com/Vindaris/work-graph-schema`);
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
case 'reset': {
|
|
130
|
+
save(emptyGraph());
|
|
131
|
+
console.log(`Emptied ${relative(process.cwd(), GRAPH)}.`);
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
case 'help': case '--help': case '-h': console.log(HELP); break;
|
|
135
|
+
case 'version': case '--version': case '-v': console.log(VERSION); break;
|
|
136
|
+
default: console.log(HELP); process.exit(1);
|
|
137
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "A small fictional company. All names, ids, weights and confidence values are invented for illustration.",
|
|
3
|
+
"nodes": [
|
|
4
|
+
{ "id": "str_1", "type": "STRATEGY", "title": "Become the default supplier for mid-size clinics in DACH", "ownerId": "per_ana", "observedState": "AT_RISK", "text": "Win mid-size clinics in Germany, Austria and Switzerland with faster onboarding." },
|
|
5
|
+
{ "id": "goal_1", "type": "GOAL", "title": "Cut clinic onboarding time", "ownerId": "per_ben", "observedState": "AT_RISK", "progress": 35, "dueDate": "2026-12-31T00:00:00Z" },
|
|
6
|
+
{ "id": "kpi_1", "type": "KPI", "title": "Median onboarding time (days)", "ownerId": "per_ben", "observedState": "BEHIND", "startValue": 42, "currentValue": 36, "targetValue": 14, "startDate": "2026-07-01T00:00:00Z", "dueDate": "2026-12-31T00:00:00Z" },
|
|
7
|
+
{ "id": "prj_1", "type": "PROJECT", "title": "Self-service data import", "ownerId": "per_cara", "observedState": "BLOCKED", "endDate": "2026-11-30T00:00:00Z" },
|
|
8
|
+
{ "id": "prj_2", "type": "PROJECT", "title": "Single sign-on for clinic groups", "ownerId": "per_dev", "observedState": "ON_TRACK" },
|
|
9
|
+
{ "id": "tsk_1", "type": "TASK", "title": "Map legacy patient fields", "status": "In Progress", "assigneeId": "per_eli", "observedState": "BLOCKED", "sourceUrl": "https://example.atlassian.net/browse/PLAT-212", "container": { "key": "JIRA:PLAT", "name": "Platform" } },
|
|
10
|
+
{ "id": "tsk_2", "type": "TASK", "title": "Import validation report", "status": "To Do", "assigneeId": "per_eli", "observedState": "NO_DATA", "container": { "key": "JIRA:PLAT", "name": "Platform" } },
|
|
11
|
+
{ "id": "per_ana", "type": "PERSON", "name": "Ana" },
|
|
12
|
+
{ "id": "per_ben", "type": "PERSON", "name": "Ben" },
|
|
13
|
+
{ "id": "per_cara", "type": "PERSON", "name": "Cara" },
|
|
14
|
+
{ "id": "per_dev", "type": "PERSON", "name": "Dev" },
|
|
15
|
+
{ "id": "per_eli", "type": "PERSON", "name": "Eli" },
|
|
16
|
+
{ "id": "team_plat", "type": "TEAM", "name": "Platform" },
|
|
17
|
+
{ "id": "mtg_1", "type": "MEETING", "title": "Platform weekly", "occurredAt": "2026-11-10T09:00:00Z", "ownerId": "per_cara" }
|
|
18
|
+
],
|
|
19
|
+
"edges": [
|
|
20
|
+
{ "type": "CONTRIBUTES_TO", "source": { "type": "GOAL", "id": "goal_1" }, "target": { "type": "STRATEGY", "id": "str_1" }, "origin": "HUMAN" },
|
|
21
|
+
{ "type": "CONTRIBUTES_TO", "source": { "type": "KPI", "id": "kpi_1" }, "target": { "type": "GOAL", "id": "goal_1" }, "origin": "HUMAN" },
|
|
22
|
+
{ "type": "CONTRIBUTES_TO", "source": { "type": "PROJECT", "id": "prj_1" }, "target": { "type": "KPI", "id": "kpi_1" }, "weight": 1, "origin": "HUMAN" },
|
|
23
|
+
{ "type": "CONTRIBUTES_TO", "source": { "type": "TASK", "id": "tsk_1" }, "target": { "type": "PROJECT", "id": "prj_1" }, "origin": "AUTO", "confidence": 0.9 },
|
|
24
|
+
{ "type": "CONTRIBUTES_TO", "source": { "type": "TASK", "id": "tsk_2" }, "target": { "type": "PROJECT", "id": "prj_1" }, "origin": "AUTO", "confidence": 0.7 },
|
|
25
|
+
{ "type": "BLOCKED_BY", "source": { "type": "PROJECT", "id": "prj_1" }, "target": { "type": "PROJECT", "id": "prj_2" } },
|
|
26
|
+
{ "type": "MEMBER_OF", "source": { "type": "PERSON", "id": "per_eli" }, "target": { "type": "TEAM", "id": "team_plat" } },
|
|
27
|
+
{ "type": "LEADS", "source": { "type": "PERSON", "id": "per_cara" }, "target": { "type": "TEAM", "id": "team_plat" } },
|
|
28
|
+
{ "type": "REPORTS_TO", "source": { "type": "PERSON", "id": "per_eli" }, "target": { "type": "PERSON", "id": "per_cara" } }
|
|
29
|
+
],
|
|
30
|
+
"signals": [
|
|
31
|
+
{ "id": "sig_1", "kind": "TASK_STATUS_CHANGED", "source": "JIRA", "occurredAt": "2026-10-27T14:12:00Z", "actorId": "per_eli", "hardness": "HARD", "confidence": 1, "links": [{ "type": "TASK", "id": "tsk_1" }] },
|
|
32
|
+
{ "id": "sig_2", "kind": "STATEMENT_BLOCKED", "source": "SLACK", "occurredAt": "2026-11-03T08:40:00Z", "actorId": "per_eli", "hardness": "SOFT", "confidence": 0.6, "links": [{ "type": "TASK", "id": "tsk_1" }, { "type": "PROJECT", "id": "prj_1" }] },
|
|
33
|
+
{ "id": "sig_3", "kind": "UNPLANNED_PRIORITY_RAISED", "source": "MEETING_TRANSCRIPT", "occurredAt": "2026-11-10T09:00:00Z", "actorId": "per_cara", "hardness": "SOFT", "confidence": 0.8, "links": [{ "type": "MEETING", "id": "mtg_1" }] }
|
|
34
|
+
],
|
|
35
|
+
"alerts": [
|
|
36
|
+
{
|
|
37
|
+
"id": "alr_1",
|
|
38
|
+
"type": "WORK_BLOCKED",
|
|
39
|
+
"subject": { "type": "TASK", "id": "tsk_1" },
|
|
40
|
+
"status": "OPEN",
|
|
41
|
+
"title": "Map legacy patient fields",
|
|
42
|
+
"summary": "Blocked since 2026-11-03",
|
|
43
|
+
"reasons": [{ "label": "Blocked mentioned in a Slack thread", "signalIds": ["sig_2"] }],
|
|
44
|
+
"path": [
|
|
45
|
+
{ "type": "PROJECT", "id": "prj_1", "title": "Self-service data import" },
|
|
46
|
+
{ "type": "KPI", "id": "kpi_1", "title": "Median onboarding time (days)" },
|
|
47
|
+
{ "type": "GOAL", "id": "goal_1", "title": "Cut clinic onboarding time" },
|
|
48
|
+
{ "type": "STRATEGY", "id": "str_1", "title": "Become the default supplier for mid-size clinics in DACH" }
|
|
49
|
+
],
|
|
50
|
+
"recipients": [{ "personId": "per_eli", "role": "ASSIGNEE" }, { "personId": "per_cara", "role": "PARENT_OWNER" }],
|
|
51
|
+
"openedAt": "2026-11-03T09:00:00Z",
|
|
52
|
+
"lastSignalAt": "2026-11-03T08:40:00Z"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "alr_2",
|
|
56
|
+
"type": "UNPLANNED_PRIORITY",
|
|
57
|
+
"subject": { "type": "MEETING", "id": "mtg_1" },
|
|
58
|
+
"status": "OPEN",
|
|
59
|
+
"title": "Rebuild the reporting module for the Zurich pilot",
|
|
60
|
+
"summary": "Unplanned priority, from a meeting on 2026-11-10",
|
|
61
|
+
"reasons": [{ "label": "Named as a priority in a meeting, and nothing in the plan matches it", "signalIds": ["sig_3"] }],
|
|
62
|
+
"recipients": [{ "personId": "per_cara", "role": "MEETING_OWNER" }],
|
|
63
|
+
"openedAt": "2026-11-10T10:00:00Z",
|
|
64
|
+
"lastSignalAt": "2026-11-10T09:00:00Z"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vindaris",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
}
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Strategy check for AI agents. Your agent links the work in your tools to your goals, and vindaris flags execution risk. Runs locally, no account.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": { "vindaris": "bin/vindaris.js" },
|
|
7
|
+
"files": ["bin", "src", "schema", "examples", "README.md", "LICENSE"],
|
|
8
|
+
"engines": { "node": ">=18" },
|
|
9
|
+
"scripts": { "test": "node --test" },
|
|
10
|
+
"keywords": ["strategy", "okr", "goals", "kpi", "execution", "work-graph", "ai-agent", "claude", "mcp", "jira"],
|
|
11
|
+
"homepage": "https://vindaris.com/ai-agents",
|
|
12
|
+
"repository": { "type": "git", "url": "git+https://github.com/Vindaris/vindaris-cli.git" },
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "Vindaris"
|
|
15
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/Vindaris/work-graph-schema/main/schema/alerts.schema.json",
|
|
4
|
+
"title": "Vindaris Work Graph: alerts",
|
|
5
|
+
"description": "An alert tells named people that an object in the graph needs attention, and it carries the reasons with the signals behind them.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["id", "type", "subject", "status", "title", "openedAt", "recipients"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": { "type": "string" },
|
|
10
|
+
"type": { "$ref": "#/$defs/AlertType" },
|
|
11
|
+
"subject": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"description": "The object the alert is about.",
|
|
14
|
+
"required": ["type", "id"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"type": { "$ref": "nodes.schema.json#/$defs/ObjectType" },
|
|
17
|
+
"id": { "type": "string" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"status": { "$ref": "#/$defs/AlertStatus" },
|
|
21
|
+
"title": { "type": "string" },
|
|
22
|
+
"summary": { "type": "string", "examples": ["12 points behind pace", "Blocked since 2026-11-03"] },
|
|
23
|
+
"reasons": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"description": "Why the alert is open, in plain language, each with the signals that support it.",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["label"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"label": { "type": "string", "examples": ["Named as a priority in a meeting, and nothing in the plan matches it"] },
|
|
31
|
+
"signalIds": { "type": "array", "items": { "type": "string" } }
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"path": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"description": "The chain from the subject up to the strategy it serves.",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"type": { "$ref": "nodes.schema.json#/$defs/ObjectType" },
|
|
42
|
+
"id": { "type": "string" },
|
|
43
|
+
"title": { "type": "string" }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"recipients": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": ["personId", "role"],
|
|
52
|
+
"properties": {
|
|
53
|
+
"personId": { "type": "string" },
|
|
54
|
+
"role": { "$ref": "#/$defs/RecipientRole" }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"openedAt": { "type": "string", "format": "date-time" },
|
|
59
|
+
"lastSignalAt": { "type": ["string", "null"], "format": "date-time" },
|
|
60
|
+
"closedAt": { "type": ["string", "null"], "format": "date-time" }
|
|
61
|
+
},
|
|
62
|
+
"$defs": {
|
|
63
|
+
"AlertStatus": {
|
|
64
|
+
"oneOf": [
|
|
65
|
+
{ "const": "OPEN", "description": "The condition holds." },
|
|
66
|
+
{ "const": "RESOLVED", "description": "The condition no longer holds." },
|
|
67
|
+
{ "const": "NO_LONGER_APPLIES", "description": "The subject left the plan or was completed." },
|
|
68
|
+
{ "const": "DISMISSED", "description": "A person dismissed the alert. A new signal reopens it." },
|
|
69
|
+
{ "const": "SETTINGS_CHANGED", "description": "The organization changed a setting and the alert closed as a result." }
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"RecipientRole": {
|
|
73
|
+
"oneOf": [
|
|
74
|
+
{ "const": "OWNER", "description": "Owner of the subject." },
|
|
75
|
+
{ "const": "ASSIGNEE", "description": "Person the task is assigned to." },
|
|
76
|
+
{ "const": "PARENT_OWNER", "description": "Owner of the project or goal above the subject." },
|
|
77
|
+
{ "const": "PERSON", "description": "The person the alert is about." },
|
|
78
|
+
{ "const": "MANAGER", "description": "Manager of the person the alert is about." },
|
|
79
|
+
{ "const": "MEETING_OWNER", "description": "Owner of the meeting the alert came from." }
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"AlertType": {
|
|
83
|
+
"oneOf": [
|
|
84
|
+
{ "const": "KPI_BEHIND_PACE", "description": "A KPI is below the pace it needs to reach its target by its due date." },
|
|
85
|
+
{ "const": "ITEM_AT_RISK", "description": "A goal, project or strategy is behind or at risk, by its own pace or by the work connected to it." },
|
|
86
|
+
{ "const": "WORK_BLOCKED", "description": "A task or project is blocked, by its status or by a statement in a meeting or thread." },
|
|
87
|
+
{ "const": "FORGOTTEN_WORK", "description": "An open task has had no activity for a while." },
|
|
88
|
+
{ "const": "SLOWING_DOWN", "description": "A project or goal had clearly fewer completions and updates lately than before." },
|
|
89
|
+
{ "const": "FOCUS_DRIFT", "description": "A person's recent work activity moved away from their assigned work or from what the rest of their team is working on. Goes to the person and their manager." },
|
|
90
|
+
{ "const": "UNPLANNED_PRIORITY", "description": "Work outside the plan draws activity from several people, or a meeting names a priority that matches nothing in the plan." },
|
|
91
|
+
{ "const": "SPINE_GAP", "description": "An item is missing a link up to an outcome or down to tasks." },
|
|
92
|
+
{ "const": "DATE_PUSHED", "description": "The due date of a goal, KPI or project was moved later several times." },
|
|
93
|
+
{ "const": "TARGET_LOWERED", "description": "The target of a KPI was made easier to reach while the KPI was behind the pace its earlier target needed." },
|
|
94
|
+
{ "const": "OWNER_CHURN", "description": "A goal, KPI or project changed owner several times." },
|
|
95
|
+
{ "const": "WEIGHT_CUT", "description": "The weight of a link was reduced while the linked item was behind, at risk or blocked." }
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/Vindaris/work-graph-schema/main/schema/edges.schema.json",
|
|
4
|
+
"title": "Vindaris Work Graph: link types",
|
|
5
|
+
"description": "The links (edges) of the Vindaris Work Graph. Every link has a direction: it starts at the source object and points at the target object.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["type", "source", "target"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": { "$ref": "#/$defs/LinkType" },
|
|
10
|
+
"source": { "$ref": "#/$defs/ObjectRef" },
|
|
11
|
+
"target": { "$ref": "#/$defs/ObjectRef" },
|
|
12
|
+
"weight": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"default": 1,
|
|
15
|
+
"description": "Share of the source in the target's progress roll-up. Applies to CONTRIBUTES_TO and ALIGNED_TO."
|
|
16
|
+
},
|
|
17
|
+
"origin": {
|
|
18
|
+
"enum": ["HUMAN", "AUTO"],
|
|
19
|
+
"description": "HUMAN: a person drew the link, and automation never changes it. AUTO: the Work Graph added the link from work activity, and a person can undo it."
|
|
20
|
+
},
|
|
21
|
+
"confidence": {
|
|
22
|
+
"type": ["number", "null"],
|
|
23
|
+
"minimum": 0,
|
|
24
|
+
"maximum": 1,
|
|
25
|
+
"description": "For AUTO links: how sure Vindaris was when it added the link. Null for HUMAN links."
|
|
26
|
+
},
|
|
27
|
+
"createdAt": { "type": "string", "format": "date-time" }
|
|
28
|
+
},
|
|
29
|
+
"$defs": {
|
|
30
|
+
"ObjectRef": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": ["type", "id"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"type": { "$ref": "nodes.schema.json#/$defs/ObjectType" },
|
|
35
|
+
"id": { "type": "string" }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"LinkType": {
|
|
39
|
+
"oneOf": [
|
|
40
|
+
{
|
|
41
|
+
"const": "CONTRIBUTES_TO",
|
|
42
|
+
"description": "The source moves the target forward and counts in its progress. Runs upward through the plan: Task to Project, Project to Goal or KPI, KPI to Goal, Goal to Goal, Goal to Strategy."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"const": "ALIGNED_TO",
|
|
46
|
+
"description": "The source supports the target without being its child in the plan, for example a Task aligned to a KPI."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"const": "BLOCKED_BY",
|
|
50
|
+
"description": "Project to Project. The source cannot finish until the target does."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"const": "MEMBER_OF",
|
|
54
|
+
"description": "Person to Team."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"const": "LEADS",
|
|
58
|
+
"description": "Person to Team."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"const": "REPORTS_TO",
|
|
62
|
+
"description": "Person to Person. The source reports to the target."
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/Vindaris/work-graph-schema/main/schema/nodes.schema.json",
|
|
4
|
+
"title": "Vindaris Work Graph: object types",
|
|
5
|
+
"description": "The objects (nodes) of the Vindaris Work Graph. Plan items (Strategy, Goal, KPI, Project, Task) carry an observed state that Vindaris derives from work activity. Person, Team and Meeting give that activity its context.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{ "$ref": "#/$defs/Strategy" },
|
|
8
|
+
{ "$ref": "#/$defs/Goal" },
|
|
9
|
+
{ "$ref": "#/$defs/Kpi" },
|
|
10
|
+
{ "$ref": "#/$defs/Project" },
|
|
11
|
+
{ "$ref": "#/$defs/Task" },
|
|
12
|
+
{ "$ref": "#/$defs/Person" },
|
|
13
|
+
{ "$ref": "#/$defs/Team" },
|
|
14
|
+
{ "$ref": "#/$defs/Meeting" }
|
|
15
|
+
],
|
|
16
|
+
"$defs": {
|
|
17
|
+
"ObjectType": {
|
|
18
|
+
"description": "Every object type an alert or a signal can point at.",
|
|
19
|
+
"enum": ["STRATEGY", "GOAL", "KPI", "PROJECT", "TASK", "PERSON", "TEAM", "MEETING"]
|
|
20
|
+
},
|
|
21
|
+
"ObservedState": {
|
|
22
|
+
"description": "The state Vindaris derives for a plan item from work activity. It is separate from humanStatus, the status a person sets by hand.",
|
|
23
|
+
"enum": ["ON_TRACK", "AT_RISK", "BEHIND", "BLOCKED", "NO_DATA"]
|
|
24
|
+
},
|
|
25
|
+
"PlanItemBase": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"required": ["id", "type", "title"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"id": { "type": "string" },
|
|
30
|
+
"title": { "type": "string" },
|
|
31
|
+
"ownerId": { "type": ["string", "null"], "description": "id of the Person who owns the item." },
|
|
32
|
+
"observedState": { "$ref": "#/$defs/ObservedState" },
|
|
33
|
+
"humanStatus": { "type": ["string", "null"], "description": "Status a person set by hand, if any." },
|
|
34
|
+
"humanStatusAt": { "type": ["string", "null"], "format": "date-time" },
|
|
35
|
+
"ignored": { "type": "boolean", "description": "True when the organization excluded the item from analysis. It still counts in its parent." },
|
|
36
|
+
"createdAt": { "type": "string", "format": "date-time" }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"Strategy": {
|
|
40
|
+
"allOf": [{ "$ref": "#/$defs/PlanItemBase" }],
|
|
41
|
+
"description": "The top of the plan: vision, mission, narrative and pillars.",
|
|
42
|
+
"properties": {
|
|
43
|
+
"type": { "const": "STRATEGY" },
|
|
44
|
+
"text": { "type": "string", "description": "The strategy's wording. Vindaris matches work activity against it." }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"Goal": {
|
|
48
|
+
"allOf": [{ "$ref": "#/$defs/PlanItemBase" }],
|
|
49
|
+
"description": "An outcome the organization wants to reach.",
|
|
50
|
+
"properties": {
|
|
51
|
+
"type": { "const": "GOAL" },
|
|
52
|
+
"progress": { "type": ["number", "null"], "minimum": 0, "maximum": 100, "description": "Progress in percent, rolled up from the KPIs and projects connected to the goal." },
|
|
53
|
+
"startDate": { "type": ["string", "null"], "format": "date-time" },
|
|
54
|
+
"dueDate": { "type": ["string", "null"], "format": "date-time" }
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"Kpi": {
|
|
58
|
+
"allOf": [{ "$ref": "#/$defs/PlanItemBase" }],
|
|
59
|
+
"description": "A measured value with a start, a target and a due date. Vindaris compares its current value with the pace the target needs.",
|
|
60
|
+
"properties": {
|
|
61
|
+
"type": { "const": "KPI" },
|
|
62
|
+
"startValue": { "type": "number" },
|
|
63
|
+
"currentValue": { "type": "number" },
|
|
64
|
+
"targetValue": { "type": "number" },
|
|
65
|
+
"startDate": { "type": ["string", "null"], "format": "date-time" },
|
|
66
|
+
"dueDate": { "type": ["string", "null"], "format": "date-time" }
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"Project": {
|
|
70
|
+
"allOf": [{ "$ref": "#/$defs/PlanItemBase" }],
|
|
71
|
+
"description": "A body of work that moves a goal or a KPI.",
|
|
72
|
+
"properties": {
|
|
73
|
+
"type": { "const": "PROJECT" },
|
|
74
|
+
"startDate": { "type": ["string", "null"], "format": "date-time" },
|
|
75
|
+
"endDate": { "type": ["string", "null"], "format": "date-time" }
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"Task": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"description": "A unit of work. Most tasks come from a connected tool such as Jira or Asana and keep a link back to it.",
|
|
81
|
+
"required": ["id", "type", "title", "status"],
|
|
82
|
+
"properties": {
|
|
83
|
+
"id": { "type": "string" },
|
|
84
|
+
"type": { "const": "TASK" },
|
|
85
|
+
"title": { "type": "string" },
|
|
86
|
+
"status": { "type": "string" },
|
|
87
|
+
"priority": { "type": "string" },
|
|
88
|
+
"lifecycle": { "enum": ["DRAFT", "ACTIVE", "CANCELLED"] },
|
|
89
|
+
"assigneeId": { "type": ["string", "null"], "description": "id of the Person the task is assigned to." },
|
|
90
|
+
"observedState": { "$ref": "#/$defs/ObservedState" },
|
|
91
|
+
"startDate": { "type": ["string", "null"], "format": "date-time" },
|
|
92
|
+
"dueDate": { "type": ["string", "null"], "format": "date-time" },
|
|
93
|
+
"completedAt": { "type": ["string", "null"], "format": "date-time" },
|
|
94
|
+
"sourceUrl": { "type": ["string", "null"], "format": "uri", "description": "Link to the task in the tool it came from." },
|
|
95
|
+
"container": {
|
|
96
|
+
"type": ["object", "null"],
|
|
97
|
+
"description": "The board, list or project in the source tool that holds the task.",
|
|
98
|
+
"properties": {
|
|
99
|
+
"key": { "type": "string", "examples": ["JIRA:PLAT"] },
|
|
100
|
+
"name": { "type": "string", "examples": ["Platform"] }
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"ignored": { "type": "boolean" },
|
|
104
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
105
|
+
"updatedAt": { "type": "string", "format": "date-time" }
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"Person": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"required": ["id", "type", "name"],
|
|
111
|
+
"properties": {
|
|
112
|
+
"id": { "type": "string" },
|
|
113
|
+
"type": { "const": "PERSON" },
|
|
114
|
+
"name": { "type": "string" }
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"Team": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"required": ["id", "type", "name"],
|
|
120
|
+
"properties": {
|
|
121
|
+
"id": { "type": "string" },
|
|
122
|
+
"type": { "const": "TEAM" },
|
|
123
|
+
"name": { "type": "string" }
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"Meeting": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"description": "A meeting with a transcript. Statements in the transcript become signals.",
|
|
129
|
+
"required": ["id", "type"],
|
|
130
|
+
"properties": {
|
|
131
|
+
"id": { "type": "string" },
|
|
132
|
+
"type": { "const": "MEETING" },
|
|
133
|
+
"title": { "type": "string" },
|
|
134
|
+
"occurredAt": { "type": "string", "format": "date-time" },
|
|
135
|
+
"ownerId": { "type": ["string", "null"], "description": "id of the Person who owns the meeting." }
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|