@balpal4495/quorum 1.0.0 → 3.0.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/.github/copilot-instructions.md +29 -6
- package/README.md +304 -193
- package/SETUP.md +60 -96
- package/bin/commands/compass.js +422 -0
- package/bin/commands/init.js +65 -60
- package/bin/commands/migrate-v2.js +136 -0
- package/bin/commands/sentinel.js +1 -1
- package/bin/commands/sync.js +97 -0
- package/bin/quorum.js +35 -0
- package/bin/templates/CLAUDE.md +101 -0
- package/modules/README.md +57 -10
- package/modules/compass/behavior.ts +161 -0
- package/modules/compass/create.ts +365 -0
- package/modules/compass/evidence/collect.ts +109 -0
- package/modules/compass/index.ts +7 -0
- package/modules/compass/prompts/index.ts +230 -0
- package/modules/compass/prompts/system.ts +24 -0
- package/modules/compass/propose.ts +152 -0
- package/modules/compass/schemas.ts +121 -0
- package/modules/compass/score.ts +77 -0
- package/modules/compass/sources/index.ts +413 -0
- package/modules/compass/types.ts +431 -0
- package/modules/setup.ts +33 -0
- package/package.json +21 -11
- package/bin/init.js +0 -378
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Architecture
|
|
4
4
|
|
|
5
|
-
This project uses
|
|
6
|
-
They form the knowledge and
|
|
5
|
+
This project uses six portable reasoning modules: **Advisor**, **Oracle**, **Jury**, **Council**, **Sentinel**, and **Compass**.
|
|
6
|
+
They form the knowledge, validation, and product-direction layer for all agentic work in this codebase.
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
|
|
9
|
+
Advisor → plain-language Chronicle queries
|
|
10
|
+
Oracle → Jury → Council → human gate → Executor
|
|
11
|
+
Sentinel → coverage + drift
|
|
12
|
+
Compass → product-direction synthesis (behaviours, pathways, bets, scoring)
|
|
10
13
|
```
|
|
11
14
|
|
|
12
15
|
Source: `modules/` — see [modules/README.md](modules/README.md) for full API reference.
|
|
@@ -35,20 +38,23 @@ There are no auto-commits. Do not attempt to bypass this gate.
|
|
|
35
38
|
|
|
36
39
|
| Module | What it does | LLM? |
|
|
37
40
|
|---|---|---|
|
|
41
|
+
| `ask()` | Plain-language question answered from Chronicle — validates internally, retries up to 2× | Yes |
|
|
38
42
|
| `oracle.query()` | Retrieves relevant Chronicle entries by semantic + BM25 search | No |
|
|
39
43
|
| `oracle.propose()` | Stages a new entry for human review | No |
|
|
40
44
|
| `oracle.commit()` | Indexes an approved entry — human-triggered only | No |
|
|
41
45
|
| `jury.evaluate()` | Scores a design against evidence across 4 dimensions | Yes |
|
|
42
46
|
| `council.deliberate()` | Adversarial validation via advisor/reviewer fan-out | Yes |
|
|
47
|
+
| `sentinel` | Coverage reporting, drift detection, and PR coverage maps | Optional |
|
|
48
|
+
| `compass` | Product-direction synthesis — behaviours, opportunities, pathways, bets, idea scoring | Optional |
|
|
43
49
|
|
|
44
50
|
---
|
|
45
51
|
|
|
46
52
|
## Setup
|
|
47
53
|
|
|
48
54
|
```typescript
|
|
49
|
-
import { setup } from "
|
|
55
|
+
import { setup } from "@balpal4495/quorum"
|
|
50
56
|
|
|
51
|
-
const { oracle, evaluate, deliberate } = await setup({ llm: yourProvider })
|
|
57
|
+
const { oracle, evaluate, deliberate, ask, compass } = await setup({ llm: yourProvider })
|
|
52
58
|
```
|
|
53
59
|
|
|
54
60
|
`setup()` creates Chronicle directories, warms the embedder, and wires all dependencies.
|
|
@@ -87,8 +93,25 @@ After `council.deliberate()`:
|
|
|
87
93
|
|
|
88
94
|
---
|
|
89
95
|
|
|
96
|
+
## CLI quick reference
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
quorum advisor brief # full Chronicle summary, no LLM
|
|
100
|
+
quorum advisor query "topic" # keyword search, no LLM
|
|
101
|
+
quorum advisor "plain-language question" # synthesised answer via LLM
|
|
102
|
+
quorum check --outcome "..." --design "..." # instant risk triage
|
|
103
|
+
quorum commit --list # review pending proposals
|
|
104
|
+
quorum commit <id> # approve a Chronicle entry
|
|
105
|
+
quorum compass map # map current product behaviours (no LLM)
|
|
106
|
+
quorum compass brief # product-direction summary (LLM)
|
|
107
|
+
quorum compass pathways --goal "..." # generate product pathways (LLM)
|
|
108
|
+
quorum compass score "idea" # score a product idea (LLM)
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
90
113
|
## Build and test
|
|
91
114
|
|
|
92
115
|
```bash
|
|
93
|
-
npx vitest run modules/
|
|
116
|
+
npx vitest run modules/ evals/
|
|
94
117
|
```
|