naive-framework 0.1.0 → 0.2.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/AGENTS.md +2 -1
- package/docs/decisions/decisions.json +27 -0
- package/docs/reference/ROUTES.md +36 -37
- package/governance/layer.json +2 -1
- package/governance/venture-template/roles/venture-roles.json +62 -0
- package/interface/acting.mjs +83 -0
- package/interface/adapters/claude-code.json +16 -0
- package/interface/adapters/codex.json +14 -0
- package/interface/adapters/cursor.json +16 -0
- package/interface/adapters.mjs +182 -0
- package/interface/api/server.mjs +4 -2
- package/interface/boundaries.mjs +218 -0
- package/interface/brand.mjs +214 -0
- package/interface/cli/freshness.mjs +59 -0
- package/interface/cli/guard.mjs +6 -0
- package/interface/cli/mentura.mjs +78 -8
- package/interface/cli/naive.mjs +33 -8
- package/interface/context.mjs +524 -0
- package/interface/demo/board.mjs +1 -1
- package/interface/dev/setup.mjs +84 -0
- package/interface/gate-hooks.mjs +36 -0
- package/interface/harness/evals.mjs +3 -3
- package/interface/harness/run.mjs +4 -4
- package/interface/instrumentation.mjs +86 -0
- package/interface/kit-boundary.mjs +73 -0
- package/interface/layer.json +8 -2
- package/interface/mcp/server.mjs +47 -7
- package/interface/package-routes.mjs +196 -0
- package/interface/provenance.mjs +24 -1
- package/interface/reads.mjs +173 -0
- package/interface/release-card.mjs +42 -0
- package/interface/router.mjs +101 -28
- package/interface/skills/naive-setup/SKILL.md +71 -0
- package/interface/skills/naive-setup/artifact.html +83 -0
- package/interface/vitals.mjs +115 -0
- package/interface/writes.mjs +190 -0
- package/knowledge/freshness.json +85 -0
- package/knowledge/layer.json +11 -3
- package/knowledge/templates/glossary.md +23 -0
- package/operations/layer.json +10 -3
- package/operations/templates/marketing-brand.md +46 -0
- package/operations/templates/public-assets.md +39 -0
- package/package.json +3 -1
- package/packages/catalog.json +8 -0
- package/packages/customers/package.json +21 -1
- package/packages/deals/package.json +27 -0
- package/packages/decisions/package.json +12 -1
- package/packages/finance/frames/fund-without-ceding-control.frame.json +177 -0
- package/packages/foundation/package.json +8 -1
- package/packages/fund/package.json +48 -0
- package/packages/marketing/package.json +10 -4
- package/packages/money/package.json +24 -3
- package/packages/validation/package.json +13 -0
- package/platform/README.md +6 -0
- package/platform/adapter.json +15 -0
- package/platform/integrations/remote-image.mjs +79 -0
- package/platform/integrations/rho.mjs +7 -6
- package/platform/kits/README.md +8 -1
- package/platform/kits/agent-upgrade/kit.json +15 -0
- package/platform/kits/agent-upgrade/run.mjs +82 -0
- package/platform/kits/agent-upgrade/stand-in-agent.mjs +32 -0
- package/platform/kits/validation-kickoff/kit.json +29 -0
- package/platform/webhooks/server.mjs +70 -0
- package/purpose/frameworks/idea-map/ideamap.mjs +4 -2
- package/schema/README.md +1 -0
- package/schema/access.mjs +57 -0
- package/schema/adapter.schema.json +33 -0
- package/schema/assets.mjs +212 -0
- package/schema/brand.mjs +373 -0
- package/schema/build-release.mjs +61 -0
- package/schema/caching.mjs +505 -0
- package/schema/check-assets.mjs +24 -0
- package/schema/check-brand.mjs +24 -0
- package/schema/check-config.mjs +110 -0
- package/schema/check-nextjs-status.mjs +3 -1
- package/schema/check-people.mjs +70 -0
- package/schema/check-sources.mjs +9 -1
- package/schema/data-model.json +334 -8
- package/schema/deal.schema.json +80 -0
- package/schema/decisions.mjs +7 -1
- package/schema/examples/frames/judge.mjs +10 -0
- package/schema/examples/venture-type/jev.mjs +12 -0
- package/schema/examples/workspace/ventures/acme-labs/AGENTS.md +17 -0
- package/schema/examples/workspace/ventures/acme-labs/accounts/.gitkeep +0 -0
- package/schema/examples/workspace/ventures/acme-labs/decisions/discovery-goal.decision.json +23 -0
- package/schema/examples/workspace/ventures/acme-labs/decisions/statement-icp.decision.json +22 -0
- package/schema/examples/workspace/ventures/acme-labs/decisions/statement-problem.decision.json +22 -0
- package/schema/examples/workspace/ventures/acme-labs/decisions/venture.team.decision.json +37 -0
- package/schema/examples/workspace/ventures/acme-labs/knowledge/README.md +3 -0
- package/schema/examples/workspace/ventures/acme-labs/knowledge/sources.json +46 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000001.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000002.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000003.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000004.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000005.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000006.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000007.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000008.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000009.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000010.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000011.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000012.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000013.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000014.json +12 -0
- package/schema/examples/workspace/ventures/acme-labs/money/_streams/transactions/stream.json +5 -0
- package/schema/examples/workspace/ventures/acme-labs/money/_summary.json +30 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/customer-service/README.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/customer-service/department.json +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/finance/README.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/finance/department.json +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/human-capital/README.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/human-capital/department.json +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/it/README.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/it/department.json +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/marketing-and-sales/README.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/marketing-and-sales/department.json +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/products/README.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/products/department.json +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/strategy/README.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/operations/departments/strategy/department.json +5 -0
- package/schema/examples/workspace/ventures/acme-labs/people/founders/maya-chen.json +15 -0
- package/schema/examples/workspace/ventures/acme-labs/people/people.json +22 -0
- package/schema/examples/workspace/ventures/acme-labs/pillars/brand.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/pillars/business.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/pillars/product.md +5 -0
- package/schema/examples/workspace/ventures/acme-labs/products/.gitkeep +0 -0
- package/schema/examples/workspace/ventures/acme-labs/products/decisions/product.core-product.decision.json +28 -0
- package/schema/examples/workspace/ventures/acme-labs/products/decisions/product.exists.decision.json +38 -0
- package/schema/examples/workspace/ventures/acme-labs/products/decisions/product.flagship.decision.json +27 -0
- package/schema/examples/workspace/ventures/acme-labs/profile.md +12 -0
- package/schema/examples/workspace/ventures/acme-labs/provenance.jsonl +12 -0
- package/schema/examples/workspace/ventures/acme-labs/raw/dump.md +6 -0
- package/schema/examples/workspace/ventures/acme-labs/venture.json +27 -0
- package/schema/examples/workspace/ventures/northstar/AGENTS.md +17 -0
- package/schema/examples/workspace/ventures/northstar/accounts/.gitkeep +0 -0
- package/schema/examples/workspace/ventures/northstar/deals/ductline.json +8 -0
- package/schema/examples/workspace/ventures/northstar/deals/kilnworks.json +14 -0
- package/schema/examples/workspace/ventures/northstar/decisions/venture.team.decision.json +31 -0
- package/schema/examples/workspace/ventures/northstar/evidence/README.md +3 -0
- package/schema/examples/workspace/ventures/northstar/fund/decisions/terms.decision.json +27 -0
- package/schema/examples/workspace/ventures/northstar/fund/decisions/terms.first-close.decision.json +27 -0
- package/schema/examples/workspace/ventures/northstar/fund/decisions/thesis.decision.json +26 -0
- package/schema/examples/workspace/ventures/northstar/fund/terms.json +22 -0
- package/schema/examples/workspace/ventures/northstar/fund/thesis.json +22 -0
- package/schema/examples/workspace/ventures/northstar/governance/README.md +3 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/external-relationships/charter.md +5 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/external-relationships/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/finance/charter.md +5 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/finance/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/human-capital/charter.md +5 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/human-capital/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/risk-and-compliance/charter.md +5 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/risk-and-compliance/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/strategy/charter.md +5 -0
- package/schema/examples/workspace/ventures/northstar/governance/departments/strategy/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/knowledge/README.md +3 -0
- package/schema/examples/workspace/ventures/northstar/operations/README.md +3 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/external-relationships/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/external-relationships/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/finance/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/finance/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/human-capital/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/human-capital/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/risk-and-compliance/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/risk-and-compliance/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/strategy/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/operations/departments/strategy/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/people/founders/ana-ruiz.json +13 -0
- package/schema/examples/workspace/ventures/northstar/people/founders/ben-okafor.json +7 -0
- package/schema/examples/workspace/ventures/northstar/people/people.json +27 -0
- package/schema/examples/workspace/ventures/northstar/pillars/brand.md +5 -0
- package/schema/examples/workspace/ventures/northstar/pillars/business.md +5 -0
- package/schema/examples/workspace/ventures/northstar/pillars/product.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/AGENTS.md +17 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/accounts/.gitkeep +0 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/decisions/venture.team.decision.json +31 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/knowledge/README.md +3 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/customer-service/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/customer-service/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/finance/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/finance/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/human-capital/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/human-capital/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/it/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/it/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/marketing-and-sales/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/marketing-and-sales/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/products/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/products/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/strategy/README.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/operations/departments/strategy/department.json +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/pillars/brand.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/pillars/business.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/pillars/product.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/products/.gitkeep +0 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/products/decisions/product.core-product.decision.json +28 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/products/decisions/product.exists.decision.json +32 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/products/decisions/product.flagship.decision.json +27 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/profile.md +5 -0
- package/schema/examples/workspace/ventures/northstar/portfolio/kilnworks/venture.json +27 -0
- package/schema/examples/workspace/ventures/northstar/products/.gitkeep +0 -0
- package/schema/examples/workspace/ventures/northstar/profile.md +5 -0
- package/schema/examples/workspace/ventures/northstar/provenance.jsonl +3 -0
- package/schema/examples/workspace/ventures/northstar/purpose/README.md +3 -0
- package/schema/examples/workspace/ventures/northstar/venture.json +49 -0
- package/schema/founder.schema.json +72 -0
- package/schema/frame.schema.json +240 -0
- package/schema/frames.mjs +228 -0
- package/schema/freshness-log.schema.json +40 -0
- package/schema/freshness-profiles.schema.json +44 -0
- package/schema/freshness.mjs +473 -0
- package/schema/fund-terms.schema.json +107 -0
- package/schema/fund-thesis.schema.json +87 -0
- package/schema/gate-drafts.mjs +130 -0
- package/schema/gate.mjs +105 -11
- package/schema/glossary.schema.json +25 -0
- package/schema/init-venture.mjs +38 -8
- package/schema/judgment.schema.json +38 -0
- package/schema/kit.schema.json +47 -0
- package/schema/kits.mjs +24 -0
- package/schema/knowledge-sources.schema.json +145 -15
- package/schema/layer.json +16 -3
- package/schema/marketing-brand.schema.json +116 -0
- package/schema/migrations/kit-to-package.mjs +94 -0
- package/schema/migrations/package-layout.mjs +86 -0
- package/schema/model-steps.mjs +717 -0
- package/schema/money-summary.schema.json +138 -0
- package/schema/naive-config.mjs +165 -0
- package/schema/naive-config.schema.json +268 -0
- package/schema/need-now.json +171 -0
- package/schema/need-now.mjs +3 -2
- package/schema/packages.mjs +10 -5
- package/schema/people.schema.json +86 -0
- package/schema/public-assets.schema.json +76 -0
- package/schema/release-read.mjs +111 -0
- package/schema/releases.mjs +497 -0
- package/schema/setup.mjs +164 -0
- package/schema/stale.mjs +111 -0
- package/schema/start-release.mjs +41 -0
- package/schema/structure.mjs +186 -0
- package/schema/systems-catalog.json +126 -0
- package/schema/systems-catalog.schema.json +78 -0
- package/schema/trigger.schema.json +44 -0
- package/schema/triggers.mjs +237 -0
- package/schema/upgrade-registry.schema.json +60 -0
- package/schema/upgrade-venture.mjs +96 -118
- package/schema/upgrades.json +69 -0
- package/schema/upgrades.mjs +385 -0
- package/schema/validate.py +19 -10
- package/schema/venture-role.schema.json +64 -0
- package/schema/venture-type.mjs +62 -0
- package/schema/venture-types.json +346 -0
- package/schema/venture-types.schema.json +129 -0
- package/schema/venture.schema.json +53 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "deal.schema.json",
|
|
4
|
+
"title": "Deal",
|
|
5
|
+
"description": "One company in the fund's pipeline (deals/<id>.json), from sourced to invested or passed. An investment it makes becomes a nested venture under portfolio/.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"company",
|
|
10
|
+
"round",
|
|
11
|
+
"status"
|
|
12
|
+
],
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^[a-z0-9-]+$"
|
|
18
|
+
},
|
|
19
|
+
"company": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"round": {
|
|
23
|
+
"enum": [
|
|
24
|
+
"pre-seed",
|
|
25
|
+
"seed",
|
|
26
|
+
"series-a",
|
|
27
|
+
"series-b",
|
|
28
|
+
"growth",
|
|
29
|
+
"late"
|
|
30
|
+
],
|
|
31
|
+
"description": "The financing round the company is raising"
|
|
32
|
+
},
|
|
33
|
+
"status": {
|
|
34
|
+
"enum": [
|
|
35
|
+
"sourced",
|
|
36
|
+
"screening",
|
|
37
|
+
"diligence",
|
|
38
|
+
"term-sheet",
|
|
39
|
+
"invested",
|
|
40
|
+
"passed"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"sector": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"source": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"check": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": [
|
|
52
|
+
"amount",
|
|
53
|
+
"currency"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"properties": {
|
|
57
|
+
"amount": {
|
|
58
|
+
"type": "number",
|
|
59
|
+
"minimum": 0
|
|
60
|
+
},
|
|
61
|
+
"currency": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"pattern": "^[A-Z]{3}$"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"thesis_fit": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "How the company fits fund/thesis.json, in a sentence"
|
|
70
|
+
},
|
|
71
|
+
"portfolio": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"pattern": "^portfolio/[a-z0-9-]+$",
|
|
74
|
+
"description": "The nested venture, once invested"
|
|
75
|
+
},
|
|
76
|
+
"note": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
package/schema/decisions.mjs
CHANGED
|
@@ -30,6 +30,8 @@ import { dirname, join, relative } from "node:path";
|
|
|
30
30
|
import { FRAME, foundation } from "./foundation.mjs";
|
|
31
31
|
import { agentFromEnv, record as prov } from "../interface/provenance.mjs";
|
|
32
32
|
import { glob as routeFileGlob, routes } from "../interface/router.mjs";
|
|
33
|
+
// Caching hook (F-12): the decision list is computed once per router action (schema/caching.mjs).
|
|
34
|
+
import { memo } from "./caching.mjs";
|
|
33
35
|
|
|
34
36
|
const repo = new URL("..", import.meta.url).pathname;
|
|
35
37
|
const load = (f) => JSON.parse(readFileSync(f, "utf8"));
|
|
@@ -53,7 +55,11 @@ function decisionFiles(dir, sub = "") {
|
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
/** Every decision of a venture, resolved: boundary, render state and what holds it. */
|
|
56
|
-
|
|
58
|
+
// Caching hook (F-12): without an explicit now, one action shares one decision list; now is the action's.
|
|
59
|
+
export function decisions(dir, now) {
|
|
60
|
+
return now === undefined ? memo("decisions", () => decisionsAt(dir), { dir }) : decisionsAt(dir, now);
|
|
61
|
+
}
|
|
62
|
+
function decisionsAt(dir, now = Date.parse(process.env.DECISIONS_NOW ?? "") || Date.now()) {
|
|
57
63
|
const venture = load(join(dir, "venture.json"));
|
|
58
64
|
const phase = PHASES.indexOf(venture.phase);
|
|
59
65
|
const productOnly = venture.kind === "product";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// A stand-in judge for the frames test (the Jev protocol): reads one request on stdin and answers every
|
|
3
|
+
// noul question from the facts it was given, without a model. A premise is unknown (0.5) when a fact it
|
|
4
|
+
// could rest on says "not on record", else no (0.1); the trade reads as a sequence.
|
|
5
|
+
let input = "";
|
|
6
|
+
for await (const c of process.stdin) input += c;
|
|
7
|
+
const req = JSON.parse(input);
|
|
8
|
+
const unknown = Object.values(req.state.venture ?? {}).some((v) => v === "not on record");
|
|
9
|
+
const answers = Object.fromEntries(Object.keys(req.questions).map((k) => [k, { noul: k.startsWith("dichotomy:") ? (k === "dichotomy:sequence" ? 0.9 : 0.1) : k === "premise:needs-outside-money" && unknown ? 0.5 : 0.1 }]));
|
|
10
|
+
console.log(JSON.stringify({ model: "stand-in", answers }));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// A stand-in for Jev in tests (MENTURA_TYPE_CMD="node schema/examples/venture-type/jev.mjs"): reads the
|
|
3
|
+
// typed request on stdin and answers each type:<id> question yes when the description uses one of that
|
|
4
|
+
// type's examples, so the classifier's ranking and its uncertain path can be tested offline.
|
|
5
|
+
import { readFileSync } from "node:fs";
|
|
6
|
+
let input = "";
|
|
7
|
+
for await (const c of process.stdin) input += c;
|
|
8
|
+
const req = JSON.parse(input);
|
|
9
|
+
const words = req.state.venture.description.toLowerCase();
|
|
10
|
+
const types = JSON.parse(readFileSync(new URL("../../venture-types.json", import.meta.url), "utf8")).types;
|
|
11
|
+
const answers = Object.fromEntries(types.map((t) => [`type:${t.id}`, { noul: t.examples.some((e) => words.includes(e.toLowerCase())) ? 0.92 : 0.04 }]));
|
|
12
|
+
console.log(JSON.stringify({ model: "stand-in", answers }));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# AGENTS.md: acme-labs
|
|
2
|
+
|
|
3
|
+
The map of this venture for agents. Read it, then a route's layout, before writing anything here.
|
|
4
|
+
|
|
5
|
+
## How to work here
|
|
6
|
+
|
|
7
|
+
- List the routes with `mentura routes`. Read a route's `layout` and `template` before you write to it.
|
|
8
|
+
- Write through the router (the CLI or the MCP server), not by editing files. Every write is checked against its schema and recorded in provenance.jsonl.
|
|
9
|
+
- A write that fails closed comes back as a draft in `_drafts/`. A person accepts it with `mentura accept`.
|
|
10
|
+
- Never read or send anything under `_private/` to a model.
|
|
11
|
+
- A deeper AGENTS.md (for example `marketing/AGENTS.md`) adds to this one for the routes under it; the nearer one wins.
|
|
12
|
+
|
|
13
|
+
## Instructions
|
|
14
|
+
|
|
15
|
+
phase: discovery
|
|
16
|
+
voice: plain words, in the founder's own terms
|
|
17
|
+
private: _private/
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "discovery-goal",
|
|
3
|
+
"question": "What must be true for the venture to leave discovery? Name the goal this phase works toward.",
|
|
4
|
+
"decides": {
|
|
5
|
+
"record": "telos",
|
|
6
|
+
"path": "foundation/telos.json"
|
|
7
|
+
},
|
|
8
|
+
"layer": "purpose",
|
|
9
|
+
"needed_in": "discovery",
|
|
10
|
+
"boundary": "fail-open",
|
|
11
|
+
"status": "decided",
|
|
12
|
+
"provenance": {
|
|
13
|
+
"drafted_by": {
|
|
14
|
+
"kind": "agent"
|
|
15
|
+
},
|
|
16
|
+
"approved_by": "Maya Chen",
|
|
17
|
+
"approved_at": "2026-10-29T06:29:13Z",
|
|
18
|
+
"phase": "discovery",
|
|
19
|
+
"wording": "own",
|
|
20
|
+
"via": "api"
|
|
21
|
+
},
|
|
22
|
+
"answer": "Ten cafe owners confirm the reordering problem in interviews, and three agree to pilot the app, by the end of December."
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "statement-icp",
|
|
3
|
+
"question": "Write the icp statement",
|
|
4
|
+
"statement": "icp",
|
|
5
|
+
"decides": {
|
|
6
|
+
"record": "icp"
|
|
7
|
+
},
|
|
8
|
+
"layer": "purpose",
|
|
9
|
+
"needed_in": "discovery",
|
|
10
|
+
"status": "decided",
|
|
11
|
+
"provenance": {
|
|
12
|
+
"drafted_by": {
|
|
13
|
+
"kind": "agent"
|
|
14
|
+
},
|
|
15
|
+
"approved_by": "Maya Chen",
|
|
16
|
+
"approved_at": "2026-10-29T06:29:12Z",
|
|
17
|
+
"phase": "discovery",
|
|
18
|
+
"wording": "own",
|
|
19
|
+
"via": "api"
|
|
20
|
+
},
|
|
21
|
+
"answer": "Owner-operators of one to three independent cafes in one city, who order from three or more suppliers."
|
|
22
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/decisions/statement-problem.decision.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "statement-problem",
|
|
3
|
+
"question": "Write the problem statement",
|
|
4
|
+
"statement": "problem",
|
|
5
|
+
"decides": {
|
|
6
|
+
"record": "validation-problem"
|
|
7
|
+
},
|
|
8
|
+
"layer": "purpose",
|
|
9
|
+
"needed_in": "discovery",
|
|
10
|
+
"status": "decided",
|
|
11
|
+
"provenance": {
|
|
12
|
+
"drafted_by": {
|
|
13
|
+
"kind": "agent"
|
|
14
|
+
},
|
|
15
|
+
"approved_by": "Maya Chen",
|
|
16
|
+
"approved_at": "2026-10-29T06:29:12Z",
|
|
17
|
+
"phase": "discovery",
|
|
18
|
+
"wording": "own",
|
|
19
|
+
"via": "api"
|
|
20
|
+
},
|
|
21
|
+
"answer": "Independent cafe owners lose three to five hours a week reordering supplies by hand, and still run out of best-sellers."
|
|
22
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "founding-team",
|
|
3
|
+
"question": "Who is founding this venture: you alone, you with cofounders, or you looking for cofounders?",
|
|
4
|
+
"decides": {
|
|
5
|
+
"record": "founder-agreement",
|
|
6
|
+
"path": "governance/founder-agreement.json"
|
|
7
|
+
},
|
|
8
|
+
"layer": "governance",
|
|
9
|
+
"boundary": "fail-open",
|
|
10
|
+
"needed_in": "discovery",
|
|
11
|
+
"status": "decided",
|
|
12
|
+
"options": [
|
|
13
|
+
"Solo: I am founding it alone",
|
|
14
|
+
"Cofounders: we are founding it together",
|
|
15
|
+
"Looking: I want cofounders"
|
|
16
|
+
],
|
|
17
|
+
"unlocks": [
|
|
18
|
+
{
|
|
19
|
+
"activity": "Draft the founder agreement with the founding-agreement kit",
|
|
20
|
+
"routes": [
|
|
21
|
+
"governance/founder-agreement"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"provenance": {
|
|
26
|
+
"drafted_by": {
|
|
27
|
+
"kind": "framework",
|
|
28
|
+
"id": "naive"
|
|
29
|
+
},
|
|
30
|
+
"approved_by": "Maya Chen",
|
|
31
|
+
"approved_at": "2026-10-29T06:29:12Z",
|
|
32
|
+
"phase": "discovery",
|
|
33
|
+
"wording": "own",
|
|
34
|
+
"via": "api"
|
|
35
|
+
},
|
|
36
|
+
"answer": "Solo: I am founding it alone"
|
|
37
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sources": [],
|
|
3
|
+
"records": {},
|
|
4
|
+
"truth": "local",
|
|
5
|
+
"functions": {
|
|
6
|
+
"products": {
|
|
7
|
+
"systems": [
|
|
8
|
+
{
|
|
9
|
+
"system": "local-repo",
|
|
10
|
+
"address": "../acme-app",
|
|
11
|
+
"status": "pointed"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"system": "github",
|
|
15
|
+
"address": "acme-labs/app",
|
|
16
|
+
"status": "pointed"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"system": "vercel",
|
|
20
|
+
"address": "acme-labs/web",
|
|
21
|
+
"status": "pointed"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"marketing-and-sales": {
|
|
26
|
+
"systems": [
|
|
27
|
+
{
|
|
28
|
+
"system": "vercel",
|
|
29
|
+
"address": "acme-labs/web",
|
|
30
|
+
"status": "pointed"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"finance": {
|
|
35
|
+
"systems": [
|
|
36
|
+
{
|
|
37
|
+
"system": "rho",
|
|
38
|
+
"status": "connected",
|
|
39
|
+
"synced": "2026-10-29T06:28:55Z",
|
|
40
|
+
"fixture": true,
|
|
41
|
+
"address": "saved sandbox answer"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000001.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000001",
|
|
3
|
+
"name": "Reserve Checking",
|
|
4
|
+
"type": "checking",
|
|
5
|
+
"last_4": "0106",
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 1046,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000001",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000002.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000002",
|
|
3
|
+
"name": "Cash (Checking)",
|
|
4
|
+
"type": "checking",
|
|
5
|
+
"last_4": "9508",
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 876138,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000002",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000003.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000003",
|
|
3
|
+
"name": "Cash (Checking)",
|
|
4
|
+
"type": "checking",
|
|
5
|
+
"last_4": "4609",
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 8711697,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000003",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000004.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000004",
|
|
3
|
+
"name": "Treasury Checking",
|
|
4
|
+
"type": "checking",
|
|
5
|
+
"last_4": "7301",
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 15460929,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000004",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000005.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000005",
|
|
3
|
+
"name": "Inventory Checking",
|
|
4
|
+
"type": "checking",
|
|
5
|
+
"last_4": "3608",
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 0,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000005",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000006.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000006",
|
|
3
|
+
"name": "Primary Checking",
|
|
4
|
+
"type": "checking",
|
|
5
|
+
"last_4": "5702",
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 811970,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000006",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000007.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000007",
|
|
3
|
+
"name": "Credit Account",
|
|
4
|
+
"type": "credit",
|
|
5
|
+
"last_4": null,
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 0,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000007",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000008.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000008",
|
|
3
|
+
"name": "Credit Account",
|
|
4
|
+
"type": "credit",
|
|
5
|
+
"last_4": null,
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 0,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000008",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000009.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000009",
|
|
3
|
+
"name": "Credit Account",
|
|
4
|
+
"type": "credit",
|
|
5
|
+
"last_4": null,
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 0,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000009",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000010.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000010",
|
|
3
|
+
"name": "Credit Account",
|
|
4
|
+
"type": "credit",
|
|
5
|
+
"last_4": null,
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 0,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000010",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000011.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000011",
|
|
3
|
+
"name": "Rewards",
|
|
4
|
+
"type": "rewards",
|
|
5
|
+
"last_4": null,
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 0,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000011",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000012.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000012",
|
|
3
|
+
"name": "Rewards",
|
|
4
|
+
"type": "rewards",
|
|
5
|
+
"last_4": null,
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 0,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000012",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000013.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000013",
|
|
3
|
+
"name": "Savings",
|
|
4
|
+
"type": "savings",
|
|
5
|
+
"last_4": "3214",
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 0,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000013",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
package/schema/examples/workspace/ventures/acme-labs/money/30000000-0000-4000-8000-000000000014.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "30000000-0000-4000-8000-000000000014",
|
|
3
|
+
"name": "Savings",
|
|
4
|
+
"type": "savings",
|
|
5
|
+
"last_4": "2513",
|
|
6
|
+
"balance": {
|
|
7
|
+
"amount": 0,
|
|
8
|
+
"currency": "USD"
|
|
9
|
+
},
|
|
10
|
+
"source": "rho-sandbox:account:30000000-0000-4000-8000-000000000014",
|
|
11
|
+
"synced_at": "2026-10-29T06:34:34.210Z"
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "rho-sandbox",
|
|
3
|
+
"business": "Acme Corporation",
|
|
4
|
+
"synced_at": "2026-10-29T06:34:34.210Z",
|
|
5
|
+
"as_of": "2026-06-27T19:13:15Z",
|
|
6
|
+
"window": {
|
|
7
|
+
"from": "2026-03-29T19:13:15.000Z",
|
|
8
|
+
"to": "2026-06-27T19:13:15Z"
|
|
9
|
+
},
|
|
10
|
+
"cash": {
|
|
11
|
+
"amount": 25861780,
|
|
12
|
+
"currency": "USD"
|
|
13
|
+
},
|
|
14
|
+
"monthly_inflow": {
|
|
15
|
+
"amount": 3423939,
|
|
16
|
+
"currency": "USD"
|
|
17
|
+
},
|
|
18
|
+
"monthly_outflow": {
|
|
19
|
+
"amount": 716423,
|
|
20
|
+
"currency": "USD"
|
|
21
|
+
},
|
|
22
|
+
"monthly_net": {
|
|
23
|
+
"amount": 2707516,
|
|
24
|
+
"currency": "USD"
|
|
25
|
+
},
|
|
26
|
+
"runway_months": null,
|
|
27
|
+
"accounts": 14,
|
|
28
|
+
"transactions": 72,
|
|
29
|
+
"note": "Net cash flow is not negative in the window, so runway is not limited by burn."
|
|
30
|
+
}
|