qualia-framework 6.1.0 → 6.2.7
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/README.md +35 -26
- package/agents/roadmapper.md +1 -1
- package/bin/cli.js +339 -200
- package/bin/erp-retry.js +11 -3
- package/bin/install.js +383 -55
- package/bin/knowledge-flush.js +25 -13
- package/bin/knowledge.js +11 -1
- package/bin/project-snapshot.js +293 -0
- package/bin/qualia-ui.js +13 -2
- package/bin/report-payload.js +137 -0
- package/bin/state.js +8 -1
- package/bin/statusline.js +14 -2
- package/docs/changelog-v6.html +864 -0
- package/docs/ecosystem-operating-model.md +121 -0
- package/docs/erp-contract.md +74 -21
- package/docs/onboarding.html +1 -1
- package/docs/release.md +44 -0
- package/docs/reviews/v6.2.1-revival-audit.md +53 -0
- package/docs/reviews/v6.2.2-memory-erp-audit.md +41 -0
- package/docs/reviews/v6.2.3-erp-id-guard.md +15 -0
- package/guide.md +16 -4
- package/hooks/auto-update.js +14 -7
- package/hooks/branch-guard.js +10 -2
- package/hooks/env-empty-guard.js +10 -1
- package/hooks/git-guardrails.js +10 -1
- package/hooks/migration-guard.js +4 -1
- package/hooks/pre-deploy-gate.js +11 -1
- package/hooks/pre-push.js +42 -162
- package/hooks/session-start.js +22 -14
- package/hooks/stop-session-log.js +11 -3
- package/hooks/supabase-destructive-guard.js +11 -1
- package/hooks/vercel-account-guard.js +12 -3
- package/package.json +3 -2
- package/skills/qualia-map/SKILL.md +1 -1
- package/skills/qualia-milestone/SKILL.md +1 -1
- package/skills/qualia-optimize/SKILL.md +1 -1
- package/skills/qualia-polish/SKILL.md +2 -2
- package/skills/qualia-report/SKILL.md +6 -43
- package/skills/qualia-road/SKILL.md +1 -1
- package/skills/qualia-verify/SKILL.md +1 -1
- package/templates/help.html +1 -1
- package/templates/knowledge/agents.md +3 -3
- package/templates/knowledge/index.md +1 -1
- package/templates/tracking.json +3 -0
- package/templates/work-packet.md +46 -0
- package/tests/bin.test.sh +411 -13
- package/tests/hooks.test.sh +1 -8
- package/tests/install-smoke.test.sh +137 -0
- package/tests/published-install-smoke.test.sh +126 -0
- package/tests/refs.test.sh +42 -0
- package/tests/run-all.sh +1 -0
- package/tests/runner.js +19 -33
- package/tests/state.test.sh +4 -1
- package/hooks/pre-compact.js +0 -127
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Qualia Framework v6.
|
|
1
|
+
# Qualia Framework v6.2.7
|
|
2
2
|
|
|
3
|
-
A harness engineering framework for
|
|
3
|
+
A harness engineering framework for Claude Code and OpenAI Codex. It installs into `~/.claude/` and/or `~/.codex/` and wraps your AI-assisted development workflow with structured planning, execution, verification, and deployment gates.
|
|
4
4
|
|
|
5
5
|
It is not an application framework like Rails or Next.js. It doesn't generate code, run servers, or process data. It's an opinionated workflow layer that tells Claude how to plan, build, and verify your projects end-to-end, from "tell me what you want to make" to "here's the handoff doc for your client."
|
|
6
6
|
|
|
7
|
-
**v6.
|
|
7
|
+
**v6.2.7** — Codex runtime compatibility. The installer now writes Codex-native hooks, TOML agents, bin scripts, rules, skills, templates, knowledge, guide, and role config under `~/.codex/`, not just `AGENTS.md`.
|
|
8
8
|
|
|
9
9
|
**The v5 line (preserved):**
|
|
10
10
|
- **v5.0**, alignment discipline. CONTEXT.md domain glossary, decisions/ ADRs, `/qualia-zoom`, `/qualia-issues`, `/qualia-triage`, slim CLAUDE.md per Matt Pocock's instruction-budget rule, insights-driven hooks.
|
|
@@ -19,6 +19,15 @@ It is not an application framework like Rails or Next.js. It doesn't generate co
|
|
|
19
19
|
- **v5.9.1**, kickoff UX fix. `/qualia-new` now opens with the Demo/Full/Quick gate as Step 1 (`AskUserQuestion`), then exactly one free-text pitch question, then mandatory hand-off to `/qualia-discuss` — no ad-hoc clarification questioning between them. The shape gate drives the whole downstream interview, so it must come first.
|
|
20
20
|
- **v5.9.2**, hook ordering + ERP payload fixes. `pre-push.js` self-gates against `branch-guard.js` so a blocked-push no longer leaves an orphan bot commit in local history. `qualia-report` ERP payload omits empty ISO datetime fields (`session_started_at`, `last_pushed_at`) instead of sending `''`, which the ERP validator rejected as 422.
|
|
21
21
|
- **v6.0.0**, audit + cleanup pass. See CHANGELOG for the full list. Highlights: uninstall/migrate manifests fixed, silent hook `catch{}` blocks now traced, phantom `rules/frontend.md` references replaced, `/qualia-learn` and `/qualia-map` declare their actually-used tools, `/qualia-plan` revision-cycle contradiction reconciled (max 2), `agents/planner.md` and `agents/qa-browser.md` MCP tools declared in frontmatter, `rules/trust-boundary.md` extracted, hardcoded `/tmp` paths replaced with `mktemp`, fail-collect test runner, pre-v4 CHANGELOG archived.
|
|
22
|
+
- **v6.1.0**, `/qualia-vibe` adds a fast layout-preserving design pivot path and strengthens design-surface guards.
|
|
23
|
+
- **v6.2.0**, removes hook-created bot commits. The ERP/report contract is `/qualia-report` POSTs, not passive git scraping of `tracking.json`.
|
|
24
|
+
- **v6.2.1**, active-surface drift guard. README, guide, onboarding, ERP contract, road, milestone, polish, verify, and roadmapper wording now align with v6.2 behavior; refs tests fail on the stale claims.
|
|
25
|
+
- **v6.2.2**, Framework/Memory/ERP clarity. ERP can hand a work packet into Framework sessions, reports can carry ERP-native IDs, and public npm install proof is a first-class release smoke.
|
|
26
|
+
- **v6.2.3**, ERP ID guard. ERP-native IDs are UUID-only in report payloads; slugs remain in `project_id`/`team_id`.
|
|
27
|
+
- **v6.2.4**, report payload contract. The ERP payload builder is now a shipped, tested script instead of shell-embedded inline code.
|
|
28
|
+
- **v6.2.5**, project snapshot export. Framework can write `.planning/snapshots/project-snapshot-*.json` for explicit ERP/admin import.
|
|
29
|
+
- **v6.2.6**, project snapshot upload. Framework can POST that project snapshot directly to ERP's project snapshot intake.
|
|
30
|
+
- **v6.2.7**, Codex runtime compatibility. Codex installs now get native `hooks.json`, `agents/*.toml`, runtime scripts, rules, skills, templates, knowledge, guide, and config under `~/.codex/`.
|
|
22
31
|
|
|
23
32
|
The Full Journey architecture carries forward: `/qualia-new` maps the entire project arc from kickoff to client handoff upfront, and the Road chains end-to-end in `--auto` mode with only two human gates per project.
|
|
24
33
|
|
|
@@ -40,7 +49,7 @@ Enter your team code when prompted. Get your code from Fawzi.
|
|
|
40
49
|
```bash
|
|
41
50
|
npx qualia-framework@latest version # Check installed version + updates
|
|
42
51
|
npx qualia-framework@latest update # Update to latest (remembers your code)
|
|
43
|
-
npx qualia-framework@latest uninstall # Clean removal from
|
|
52
|
+
npx qualia-framework@latest uninstall # Clean removal from installed Claude/Codex homes
|
|
44
53
|
npx qualia-framework@latest team list # Show team members
|
|
45
54
|
npx qualia-framework@latest team add # Add a team member
|
|
46
55
|
npx qualia-framework@latest traces # View recent hook telemetry
|
|
@@ -48,7 +57,7 @@ npx qualia-framework@latest traces # View recent hook telemetry
|
|
|
48
57
|
|
|
49
58
|
## Usage
|
|
50
59
|
|
|
51
|
-
Open Claude Code in any project directory.
|
|
60
|
+
Open Claude Code or Codex in any project directory.
|
|
52
61
|
|
|
53
62
|
> **New to Qualia?** Open [`docs/onboarding.html`](docs/onboarding.html) in a browser for a one-page roadmap of the golden path. Best file to send a new hire.
|
|
54
63
|
|
|
@@ -115,7 +124,7 @@ Two human gates per project. One halt case (gap-cycle limit exceeded on a failin
|
|
|
115
124
|
### Knowledge & meta
|
|
116
125
|
|
|
117
126
|
```
|
|
118
|
-
/qualia-learn # Save a pattern, fix, or client pref to
|
|
127
|
+
/qualia-learn # Save a pattern, fix, or client pref to the active install home's knowledge/
|
|
119
128
|
/qualia-flush # Promote daily-log raw entries into curated knowledge concepts
|
|
120
129
|
/qualia-postmortem # Self-heal — when verification fails, propose rule/skill deltas
|
|
121
130
|
/qualia-skill-new # Author a new Qualia skill or agent
|
|
@@ -150,22 +159,24 @@ Project
|
|
|
150
159
|
|
|
151
160
|
**Why it matters:** non-technical team members can follow the ladder from any entry point. `/qualia` and `/qualia-milestone` render JOURNEY.md as a visual ladder with current position highlighted. In the ERP, the primary operational dates are project deadline, milestone deadline, and employee shift submission date; framework tasks stay internal to agent execution.
|
|
152
161
|
|
|
153
|
-
## What's Inside (v6.
|
|
162
|
+
## What's Inside (v6.2.7)
|
|
154
163
|
|
|
155
164
|
- **33 skills**, full Road (new / plan / build / verify / milestone / polish / ship / handoff / report), depth (discuss, research, map), navigation (qualia router, idk, pause, resume, road, help), quality (debug, review, optimize with `--deepen` parallel-interface design, feature, test, zoom, issues, triage), design (`qualia-polish --loop`, `qualia-vibe` for fast aesthetic pivots), deterministic enforcement (`qualia-hook-gen`), and meta (learn, skill-new, flush, postmortem)
|
|
156
165
|
- **9 agents** (each runs in fresh context): planner, builder, verifier, qa-browser, researcher, research-synthesizer, roadmapper, plan-checker, visual-evaluator
|
|
157
|
-
- **
|
|
166
|
+
- **11 hooks** (pure Node.js, cross-platform): session-start, auto-update, git-guardrails, branch-guard, pre-push tracking stamp, migration-guard, pre-deploy-gate, stop-session-log, vercel-account-guard, env-empty-guard, supabase-destructive-guard
|
|
158
167
|
- **7 always-loaded rules + 1 lazy-loaded** (`rules/`): grounding, security, infrastructure, deployment, speed (CLI-first / MCP tier-list), architecture (deep modules / scout-for-shallow-code), trust-boundary (shared injection-defence — extracted from agents in v6.0). Lazy-loaded by design-adjacent skills: one-opinion (EventMaster discipline — propose ONE direction, never a menu; new in v6.1)
|
|
159
168
|
- **6 lazy-loaded design files** (`qualia-design/`): design-laws, design-brand, design-product, design-rubric, design-reference, frontend — `Read` on demand by design-aware skills/agents only, ~22 KB recovered from the always-loaded budget
|
|
160
|
-
- **
|
|
169
|
+
- **25 template files**: project.md, journey.md, plan.md (story-file format), state.md, DESIGN.md, CONTEXT.md (domain glossary), work-packet.md (ERP-approved session context), decisions/ADR-template.md, tracking.json (with `milestone_name` + `milestones[]`), requirements.md (multi-milestone), roadmap.md (current milestone only), phase-context.md, 4 project-type templates (website, ai-agent, voice-agent, mobile-app), 5 research-project templates (STACK, FEATURES, ARCHITECTURE, PITFALLS, SUMMARY), knowledge templates, help.html
|
|
161
170
|
- **1 reference** — questioning.md methodology for deep project initialization
|
|
171
|
+
- **Codex-native install surface** — `~/.codex/AGENTS.md`, `hooks.json`, `hooks/`, `agents/*.toml`, `bin/`, `rules/`, `skills/`, `qualia-design/`, `qualia-templates/`, `knowledge/`, and `qualia-guide.md`.
|
|
162
172
|
|
|
163
173
|
## Supported Platforms
|
|
164
174
|
|
|
165
|
-
Works on **Windows 10/11, macOS, and Linux**. Requires Node.js 18+ and Claude Code.
|
|
175
|
+
Works on **Windows 10/11, macOS, and Linux**. Requires Node.js 18+ and Claude Code or OpenAI Codex.
|
|
166
176
|
|
|
167
177
|
- Every hook and the status line are pure Node.js — no external bash, jq, or GNU coreutils required.
|
|
168
|
-
- Skills are
|
|
178
|
+
- Skills are installed as Markdown instructions with Node.js helpers; Claude and Codex each receive paths native to their own home directory.
|
|
179
|
+
- Codex installs use Codex-native hook status messages and agent TOML files; Codex does not expose a Claude-style global `statusLine` setting, so `statusline.js` is installed as a shared renderer/helper instead of a fake config key.
|
|
169
180
|
- Tested on Fedora, EndeavourOS, macOS, and Windows 10/11.
|
|
170
181
|
|
|
171
182
|
## Why It Works
|
|
@@ -192,7 +203,7 @@ Splitting planner, builder, and verifier into separate agents with separate cont
|
|
|
192
203
|
|
|
193
204
|
### Production-Grade Hooks
|
|
194
205
|
|
|
195
|
-
All
|
|
206
|
+
All 11 hooks are real ops engineering, not theoretical:
|
|
196
207
|
|
|
197
208
|
- **Pre-deploy gate** — TypeScript, lint, tests, build, and `service_role` leak scan before `vercel --prod`
|
|
198
209
|
- **Session start** — Shows project state, next command, update notices, and health warnings at session start
|
|
@@ -200,8 +211,7 @@ All 12 hooks are real ops engineering, not theoretical:
|
|
|
200
211
|
- **Git guardrails** — Blocks destructive git operations like force-push to main/master, `git clean -fd`, and `rm -rf .git`
|
|
201
212
|
- **Branch guard** — Role-aware: owner can push to main, employees can't (parses refspec so `feature/x:main` bypass is blocked)
|
|
202
213
|
- **Migration guard** — Catches `DROP TABLE` without `IF EXISTS`, `DELETE`/`UPDATE` without `WHERE`, `CREATE TABLE` without RLS, `GRANT ... TO PUBLIC`, `ALTER TABLE ... DROP COLUMN`
|
|
203
|
-
- **Pre-push** — Stamps tracking.json
|
|
204
|
-
- **Pre-compact** — Saves state before context compression
|
|
214
|
+
- **Pre-push** — Stamps `tracking.json` locally for statusline, stop-session-log, and `/qualia-report`; does not create commits
|
|
205
215
|
- **Stop-session log** — Writes lightweight daily session checkpoints into the knowledge layer
|
|
206
216
|
- **Vercel account guard** — Verifies the correct Vercel account is active before deploy
|
|
207
217
|
- **Env-empty guard** — Catches empty or placeholder environment variables before they reach production
|
|
@@ -209,7 +219,7 @@ All 12 hooks are real ops engineering, not theoretical:
|
|
|
209
219
|
|
|
210
220
|
### Enforced State Machine
|
|
211
221
|
|
|
212
|
-
Every workflow step calls `state.js` — a Node.js state machine that validates preconditions (including plan content), updates both STATE.md and tracking.json atomically, and tracks gap-closure cycles. Milestone readiness guards ensure `close-milestone` refuses to close a milestone with unverified phases or < 2 phases (unless `--force`), and appends a summary to `tracking.json.milestones[]`
|
|
222
|
+
Every workflow step calls `state.js` — a Node.js state machine that validates preconditions (including plan content), updates both STATE.md and tracking.json atomically, and tracks gap-closure cycles. Milestone readiness guards ensure `close-milestone` refuses to close a milestone with unverified phases or < 2 phases (unless `--force`), and appends a summary to `tracking.json.milestones[]` for local status, reports, and future explicit integrations.
|
|
213
223
|
|
|
214
224
|
### Wave-Based Parallelization
|
|
215
225
|
|
|
@@ -225,19 +235,18 @@ Plans are grouped into waves for parallel execution. No fancy DAG solver — the
|
|
|
225
235
|
npx qualia-framework@latest install
|
|
226
236
|
|
|
|
227
237
|
v
|
|
228
|
-
~/.claude/
|
|
229
|
-
├── skills/
|
|
230
|
-
├── agents/ 9 agent definitions (
|
|
231
|
-
├── hooks/
|
|
232
|
-
├── bin/ state.js + qualia-ui.js + statusline.js + knowledge.js + knowledge-flush.js + slop-detect.mjs + plan-contract.js + agent-runs.js
|
|
238
|
+
~/.claude/ and/or ~/.codex/
|
|
239
|
+
├── skills/ 33 slash commands (each may ship SKILL.md + REFERENCE.md + scripts/ + fixtures/)
|
|
240
|
+
├── agents/ 9 agent definitions (Claude .md, Codex .toml)
|
|
241
|
+
├── hooks/ 11 Node.js hooks — cross-platform (no bash dependency)
|
|
242
|
+
├── bin/ state.js + qualia-ui.js + statusline.js + knowledge.js + knowledge-flush.js + slop-detect.mjs + plan-contract.js + agent-runs.js + ERP/report helpers
|
|
233
243
|
├── knowledge/ learned-patterns.md, common-fixes.md, client-prefs.md, daily-log/
|
|
234
|
-
├── rules/
|
|
235
|
-
├── qualia-design/ lazy-loaded design substrate
|
|
236
|
-
├── qualia-templates/ project
|
|
244
|
+
├── rules/ grounding, security, infrastructure, deployment, speed, architecture, trust-boundary, one-opinion
|
|
245
|
+
├── qualia-design/ lazy-loaded design substrate — read on demand
|
|
246
|
+
├── qualia-templates/ project, journey, plan, state, DESIGN, CONTEXT, work-packet, decisions, tracking, requirements, roadmap, research, help
|
|
237
247
|
├── qualia-references/ questioning.md (deep project initialization methodology)
|
|
238
|
-
├── CLAUDE.md
|
|
239
|
-
|
|
240
|
-
└── (settings.json wired for hooks, statusline, spinner verbs, etc.)
|
|
248
|
+
├── CLAUDE.md or AGENTS.md
|
|
249
|
+
└── settings.json or hooks.json wired for native hooks/status messages
|
|
241
250
|
```
|
|
242
251
|
|
|
243
252
|
## For Qualia Solutions Team
|
package/agents/roadmapper.md
CHANGED
|
@@ -150,7 +150,7 @@ node ~/.claude/bin/state.js init \
|
|
|
150
150
|
--total_phases {count of Milestone 1 phases}
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
`--milestone_name` is the human name of Milestone 1 (e.g. "Foundation"). tracking.json records it so the status bar and
|
|
153
|
+
`--milestone_name` is the human name of Milestone 1 (e.g. "Foundation"). tracking.json records it so the status bar and report payload have human-readable milestone context.
|
|
154
154
|
|
|
155
155
|
### 8. Return a Summary
|
|
156
156
|
|