codex-genesis-harness 0.1.6 → 0.1.8
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/.codebase/COMPRESSED_CONTEXT.md +80 -0
- package/.codebase/CURRENT_STATE.md +35 -8
- package/.codebase/DEPENDENCY_GRAPH.md +14 -1
- package/.codebase/IMPLEMENTATION_HANDOFF.md +34 -336
- package/.codebase/KNOWN_PROBLEMS.md +54 -3
- package/.codebase/MODULE_INDEX.md +8 -0
- package/.codebase/PIPELINE_FLOW.md +7 -5
- package/.codebase/RECOVERY_POINTS.md +15 -431
- package/.codebase/TECH_DEBT.md +6 -0
- package/.codebase/TEST_MATRIX.md +4 -3
- package/.codebase/VISUAL_GRAPH.md +127 -0
- package/.codebase/beads.json +16 -0
- package/.codebase/context-policy.json +68 -0
- package/.codebase/memories/lessons_learned.md +21 -0
- package/.codebase/memories/preferences.md +17 -0
- package/.codebase/state.json +45 -24
- package/.codex/skills/genesis-ai-provider/SKILL.md +1 -1
- package/.codex/skills/genesis-api-contract/SKILL.md +1 -1
- package/.codex/skills/genesis-api-sync/SKILL.md +1 -1
- package/.codex/skills/genesis-architecture/SKILL.md +6 -1
- package/.codex/skills/genesis-codebase-map/SKILL.md +1 -1
- package/.codex/skills/genesis-debug-guide/SKILL.md +11 -5
- package/.codex/skills/genesis-design-spec/SKILL.md +3 -3
- package/.codex/skills/genesis-docs-automation/SKILL.md +52 -973
- package/.codex/skills/genesis-executing-plans/SKILL.md +54 -0
- package/.codex/skills/genesis-executing-plans/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-executing-plans/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-executing-plans/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-executing-plans/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-harness/SKILL.md +64 -1384
- package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +3 -3
- package/.codex/skills/genesis-harness/scripts/init-planning.sh +1 -1
- package/.codex/skills/genesis-harness-engineering/SKILL.md +1 -1
- package/.codex/skills/genesis-new-design/SKILL.md +6 -2
- package/.codex/skills/genesis-new-design/agents/openai.yaml +2 -0
- package/.codex/skills/genesis-observability-automation/SKILL.md +69 -303
- package/.codex/skills/genesis-observability-automation/references/common-mistakes-and-recovery.md +84 -0
- package/.codex/skills/genesis-observability-automation/references/workflow-phases.md +78 -0
- package/.codex/skills/genesis-performance-profiling/SKILL.md +1 -22
- package/.codex/skills/genesis-performance-profiling/agents/openai.yaml +1 -1
- package/.codex/skills/genesis-pipeline-orchestration/SKILL.md +1 -1
- package/.codex/skills/genesis-planning/SKILL.md +31 -1
- package/.codex/skills/genesis-release/SKILL.md +29 -1
- package/.codex/skills/genesis-research-first/SKILL.md +6 -0
- package/.codex/skills/genesis-spec-propagation/SKILL.md +52 -504
- package/.codex/skills/genesis-test-driven-development/SKILL.md +55 -0
- package/.codex/skills/genesis-test-driven-development/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-test-driven-development/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-test-driven-development/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-test-driven-development/templates/.gitkeep +0 -0
- package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/SKILL.md +1 -1
- package/.codex/skills/genesis-upgrade-design/SKILL.md +4 -2
- package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +2 -0
- package/.codex/skills/genesis-using-git-worktrees/SKILL.md +54 -0
- package/.codex/skills/genesis-using-git-worktrees/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-using-git-worktrees/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-using-git-worktrees/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-using-git-worktrees/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-verification-before-completion/SKILL.md +53 -0
- package/.codex/skills/genesis-verification-before-completion/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-verification-before-completion/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-verification-before-completion/examples/.gitkeep +0 -0
- package/.codex/skills/genesis-verification-before-completion/templates/.gitkeep +0 -0
- package/.codex/skills/spec-impact-engine/SKILL.md +77 -500
- package/.codex/skills/spec-impact-engine/checklists/checklist.md +10 -0
- package/.codex-plugin/plugin.json +3 -4
- package/CHANGELOG.md +17 -0
- package/README.EN.md +33 -22
- package/README.VI.md +36 -24
- package/README.md +46 -8
- package/VERSION +1 -1
- package/bin/genesis-harness.js +1337 -7
- package/contracts/features/registry-schema.json +15 -0
- package/contracts/observability/agent-run-schema.json +34 -0
- package/contracts/observability/failure-schema.json +35 -0
- package/contracts/ui/auth/login-screen-contract.json +43 -0
- package/features/REGISTRY.md +63 -0
- package/features/SCOPE-template.md +65 -0
- package/fixtures/planning/MOCKUP_PROMPT_TEMPLATE.md +16 -0
- package/observability/agent-runs/sample-run.json +13 -0
- package/observability/decision-logs/sample-decision.md +43 -0
- package/observability/failures/sample-failure.json +12 -0
- package/package.json +9 -3
- package/playwright/e2e/app-template.spec.js +37 -0
- package/playwright/e2e/auth/login-screen.spec.js +65 -0
- package/playwright/e2e/web-template.spec.js +28 -0
- package/scripts/check-scope.sh +100 -0
- package/scripts/cold-start-check.js +133 -0
- package/scripts/install.sh +6 -6
- package/scripts/prompt_sentinel.js +35 -4
- package/scripts/run-evals.sh +137 -26
- package/scripts/scratch_parser.js +49 -0
- package/scripts/spec_visual_sync.js +1 -1
- package/scripts/test_generator.js +2 -2
- package/scripts/uninstall.sh +6 -6
- package/scripts/verify.sh +21 -66
- package/tests/integration/cli-smoke.test.js +103 -0
- package/tests/unit/feature_registry.test.js +152 -0
- package/tests/unit/prompt_sentinel.test.js +1 -1
- package/tests/unit/spec_visual_sync.test.js +1 -1
- package/tests/unit/test_generator.test.js +1 -1
- package/.codex/skills/genesis-docs/SKILL.md +0 -46
- package/.codex/skills/genesis-docs/agents/openai.yaml +0 -7
- package/.codex/skills/genesis-mvp-planning/SKILL.md +0 -114
- package/.codex/skills/genesis-mvp-planning/agents/openai.yaml +0 -6
- package/.codex/skills/genesis-release-orchestration/SKILL.md +0 -653
- package/.codex/skills/genesis-release-orchestration/agents/openai.yaml +0 -7
- package/.codex/skills/genesis-research/SKILL.md +0 -46
- package/.codex/skills/genesis-research/agents/openai.yaml +0 -7
- package/playwright/e2e/e2e-template.md +0 -4
- /package/.codex/skills/{genesis-docs/checklists/checklist.md → genesis-docs-automation/checklists/manual-docs-checklist.md} +0 -0
- /package/.codex/skills/{genesis-docs/examples/example.md → genesis-docs-automation/examples/manual-docs-example.md} +0 -0
- /package/.codex/skills/{genesis-docs → genesis-docs-automation}/templates/docs-update-template.md +0 -0
- /package/.codex/skills/{genesis-state-machine/SKILL.md → genesis-harness/references/state-machine.md} +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/checklists/mvp-readiness.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/examples/5-phase-roadmap-example.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-1-core.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-2-auth.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-3-features.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-4-integrations.md +0 -0
- /package/.codex/skills/{genesis-mvp-planning → genesis-planning}/templates/phase-5-readiness.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/post-deployment-verification.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/checklists/pre-release-validation.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration/examples/example.md → genesis-release/examples/orchestration-example.md} +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/observability/release-tracking.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/canary-deployment-orchestration.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/playbooks/semantic-versioning-automation.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/deployment-strategy-template.md +0 -0
- /package/.codex/skills/{genesis-release-orchestration → genesis-release}/templates/release-runbook-template.md +0 -0
- /package/.codex/skills/{genesis-research → genesis-research-first}/checklists/checklist.md +0 -0
- /package/.codex/skills/{genesis-research/examples/example.md → genesis-research-first/examples/manual-research-example.md} +0 -0
- /package/.codex/skills/{genesis-research → genesis-research-first}/templates/research-note-template.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/agents/openai.yaml +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/checklists/checklist.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/examples/example.md +0 -0
- /package/.codex/skills/{ui-ux-test-skill → genesis-ui-ux-test}/templates/playwright-test-template.md +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Lessons Learned & Historical Bugs
|
|
2
|
+
|
|
3
|
+
This file chronicles the major failures, recursive bugs, and architectural dead-ends we have encountered. It acts as an immune system preventing the agent from repeating history.
|
|
4
|
+
|
|
5
|
+
## 1. Duplicate Slash Commands in Registry
|
|
6
|
+
- **Symptom**: Agent registered 4 copies of the same slash command for a single skill.
|
|
7
|
+
- **Root Cause**: The CLI script recursively scanned the entire `.codex/` directory for active skills, accidentally parsing backup folders (`.codex/backup/`) generated during skill upgrades.
|
|
8
|
+
- **Resolution**: Backup directories must ALWAYS be placed completely outside the active parsed directory (e.g., moved to `~/.codex/backups` globally).
|
|
9
|
+
- **Rule**: When doing file tree walks for plugins/skills, always explicitly ignore `.git`, `node_modules`, `backup`, and `tmp` folders.
|
|
10
|
+
|
|
11
|
+
## 2. Documentation Drift & Broken Contracts
|
|
12
|
+
- **Symptom**: Code in `scripts/` changed logic without updating `contracts/`.
|
|
13
|
+
- **Root Cause**: Agent skipped the documentation step after a "quick fix" code edit.
|
|
14
|
+
- **Resolution**: Implemented Validation Gates (`npm run verify`).
|
|
15
|
+
- **Rule**: Never finalize a code edit without explicitly checking `TEST_MATRIX.md` and related schemas in `contracts/`. The validation gate will fail the build if it detects drift.
|
|
16
|
+
|
|
17
|
+
## 3. Excessive Token Usage from `cat` and `ls`
|
|
18
|
+
- **Symptom**: Context window flooded with massive minified bundle files or deep directory trees.
|
|
19
|
+
- **Root Cause**: Using `cat` on large files or `ls -R` without filters.
|
|
20
|
+
- **Resolution**:
|
|
21
|
+
- **Rule**: Always use the native `view_file`, `list_dir`, and `grep_search` tools with precise line bounds or search terms. NEVER `cat` a file directly in bash if a native agent tool exists.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Developer Preferences
|
|
2
|
+
|
|
3
|
+
This file records the specific technical choices, preferences, and stylistic guidelines of the human developer for this repository. Adhere to these implicitly during code generation and problem-solving.
|
|
4
|
+
|
|
5
|
+
## Technology Stack
|
|
6
|
+
- **Primary Language**: JavaScript (Node.js for backend scripts). Keep code modern but compatible with Node >= 18.
|
|
7
|
+
- **Testing**: Use standard Unix bash testing scripts (`verify.sh`, `run-evals.sh`) and standard Node asserts for unit testing unless specified otherwise.
|
|
8
|
+
- **Frontend/UI**: When dealing with UI generation, prefer Vanilla CSS for precise control and maximum performance. Emphasize "WOW" factor, modern gradients, glassmorphism, and responsive layouts.
|
|
9
|
+
|
|
10
|
+
## Architectural Choices
|
|
11
|
+
- **Harness Engineering**: The system relies on state machines (FSM) and validation gates. Never skip a validation gate (`contract_integrity_gate.js`, `healing_telemetry.js`).
|
|
12
|
+
- **File Integrity**: Ensure all metadata inside `.codebase/` and `contracts/` stays perfectly synchronized with any changes to actual codebase logic (`scripts/spec_visual_sync.js`).
|
|
13
|
+
|
|
14
|
+
## Communication Style
|
|
15
|
+
- Be concise, professional, and skip unnecessary pleasantries when delivering technical solutions.
|
|
16
|
+
- Use GitHub Flavored Markdown for formatting logs, alerts, and instructions.
|
|
17
|
+
- Provide Vietnamese localization in READMEs and user-facing artifacts where possible, as the user frequently requests Vietnamese communication.
|
package/.codebase/state.json
CHANGED
|
@@ -1,37 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"current_state": "COMPLETED",
|
|
3
|
+
"completed_at": "2026-06-03T02:42:00Z",
|
|
4
|
+
"active_work": "Full Score Harness Fix — L02-L12",
|
|
5
|
+
"session_id": "2026-06-03-full-score-fix",
|
|
6
|
+
"session_started_at": "2026-06-03T02:35:00Z",
|
|
7
|
+
"ttfv_seconds": 180,
|
|
8
|
+
"_comment_ttfv": "Time-to-First-Verification: seconds from session start to first passing test (L06 KPI). 180s = 3min for this session.",
|
|
9
|
+
"latest_handoff": ".codebase/IMPLEMENTATION_HANDOFF.md",
|
|
10
|
+
"latest_recovery_point": "Full Score Harness Fix — feature registry + observability",
|
|
11
|
+
"required_verification": [
|
|
12
|
+
"npm run verify",
|
|
13
|
+
"npm run eval",
|
|
14
|
+
"npm run pack:check",
|
|
15
|
+
"node tests/unit/feature_registry.test.js",
|
|
16
|
+
"node scripts/cold-start-check.js",
|
|
17
|
+
"node bin/genesis-harness.js docs-gate",
|
|
18
|
+
"node bin/genesis-harness.js leanctx"
|
|
19
|
+
],
|
|
3
20
|
"history": [
|
|
4
21
|
{
|
|
5
|
-
"from": "
|
|
6
|
-
"to": "
|
|
7
|
-
"reason": "
|
|
8
|
-
"timestamp": "2026-
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
"from": "REQUIREMENTS_GATHERING",
|
|
12
|
-
"to": "PLANNING",
|
|
13
|
-
"reason": "p",
|
|
14
|
-
"timestamp": "2026-05-31T05:51:07.765Z"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"from": "PLANNING",
|
|
18
|
-
"to": "IMPLEMENTATION",
|
|
19
|
-
"reason": "i",
|
|
20
|
-
"timestamp": "2026-05-31T05:51:07.883Z"
|
|
22
|
+
"from": "VERIFICATION",
|
|
23
|
+
"to": "COMPLETED",
|
|
24
|
+
"reason": "Harness drift gate hardening completed with source-of-truth, handoff, state, and CLI smoke verification gates.",
|
|
25
|
+
"timestamp": "2026-06-03T08:31:59+07:00",
|
|
26
|
+
"session_id": "2026-06-03-drift-gate"
|
|
21
27
|
},
|
|
22
28
|
{
|
|
23
|
-
"from": "
|
|
24
|
-
"to": "
|
|
25
|
-
"reason": "
|
|
26
|
-
"timestamp": "2026-
|
|
29
|
+
"from": "VERIFICATION",
|
|
30
|
+
"to": "COMPLETED",
|
|
31
|
+
"reason": "LeanCTX policy, CLI reporting, prompt sentinel thresholds, and portable npm-user command guidance added.",
|
|
32
|
+
"timestamp": "2026-06-03T09:06:31+07:00",
|
|
33
|
+
"session_id": "2026-06-03-leanctx"
|
|
27
34
|
},
|
|
28
35
|
{
|
|
29
36
|
"from": "VERIFICATION",
|
|
30
37
|
"to": "COMPLETED",
|
|
31
|
-
"reason": "
|
|
32
|
-
"timestamp": "2026-
|
|
38
|
+
"reason": "LeanCTX policy auto-seeding added for install and npm postinstall without overwriting project custom policy.",
|
|
39
|
+
"timestamp": "2026-06-03T09:28:41+07:00",
|
|
40
|
+
"session_id": "2026-06-03-leanctx-seed"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"from": "COMPLETED",
|
|
44
|
+
"to": "EXECUTE",
|
|
45
|
+
"reason": "Started full harness evaluation and score fix: L08 feature registry, L11 observability live, L04 instruction size, L03 cold-start, L05 session boundary, L07 scope, L09 victory blocker, L12 known problems.",
|
|
46
|
+
"timestamp": "2026-06-03T02:35:00Z",
|
|
47
|
+
"session_id": "2026-06-03-full-score-fix"
|
|
33
48
|
}
|
|
34
49
|
],
|
|
35
|
-
"context": {
|
|
50
|
+
"context": {
|
|
51
|
+
"score_target": "110/110",
|
|
52
|
+
"package_version": "0.1.7",
|
|
53
|
+
"verification_owner": "scripts/run-evals.sh",
|
|
54
|
+
"context_policy": ".codebase/context-policy.json",
|
|
55
|
+
"evaluation_report": ".codebase/../artifacts/harness_evaluation_report.md"
|
|
56
|
+
},
|
|
36
57
|
"pending_tasks": []
|
|
37
|
-
}
|
|
58
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: ai-provider
|
|
2
|
+
name: genesis-ai-provider
|
|
3
3
|
description: Define reliable AI provider harnesses with mock providers, schemas, retries, invalid JSON recovery, persistence tests, and provider contracts. Use for LLM, image, voice, subtitle, render, and pipeline provider work.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: api-sync
|
|
2
|
+
name: genesis-api-sync
|
|
3
3
|
description: Automatic API contract synchronization. Detects API changes in implementation, updates API_CONTRACTS.md, regenerates test contracts, and maintains backward compatibility documentation. Use after API-related implementation or when contracts drift from actual code.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: architecture
|
|
2
|
+
name: genesis-architecture
|
|
3
3
|
description: Guide Codex through architecture analysis, boundary decisions, dependency direction, module ownership, and architecture documentation. Use before structural changes, new subsystems, cross-module work, or when architecture memory must be updated.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -44,3 +44,8 @@ Changing dependency direction silently, documenting intent without tests, and sc
|
|
|
44
44
|
## Recovery workflow
|
|
45
45
|
If architecture drift is found, stop feature work, create a failing boundary test, update the contract, then repair the smallest module slice.
|
|
46
46
|
|
|
47
|
+
## MCP Automation Requirements
|
|
48
|
+
|
|
49
|
+
To ensure that architectural decisions are properly contextualized and persisted across the entire lifecycle of the project, you **MUST** use the following MCP server:
|
|
50
|
+
1. **`@modelcontextprotocol/server-memory`**: Use this MCP tool to automatically query the Knowledge Graph for past architectural decisions, trade-offs, and boundary definitions before making any new system-wide changes. After establishing a new architecture rule, you must save it to the memory graph.
|
|
51
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: codebase-map
|
|
2
|
+
name: genesis-codebase-map
|
|
3
3
|
description: Maintain repository memory and compressed codebase maps for token-efficient Codex operation. Use when files move, modules change, contracts change, tests change, or repository summaries need updating.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: debug-guide
|
|
2
|
+
name: genesis-debug-guide
|
|
3
3
|
description: "Systematic debugging for test failures, runtime errors, and production bugs. Follows TDD debugging patterns, isolation strategies, and observability-driven root cause analysis. Auto-triggers after bug fixes to verify fix quality and prevent regressions."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -161,13 +161,13 @@ Update `.codebase` memory after meaningful changes.
|
|
|
161
161
|
- Update documentation if behavior changed
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
## Auto-Trigger Workflow (Post /fix-bug)
|
|
164
|
+
## Auto-Trigger Workflow (Post /fix-bug or Heal Directive)
|
|
165
165
|
|
|
166
|
-
When `/fix-bug` completes successfully
|
|
166
|
+
When `/fix-bug` completes successfully, or when you receive the `[AGENT_DIRECTIVE] TESTS FAILED` from `genesis-harness heal`:
|
|
167
167
|
|
|
168
168
|
```yaml
|
|
169
|
-
Hook: PostToolUse → "/fix-bug completed"
|
|
170
|
-
Action: Activate genesis-debug-guide
|
|
169
|
+
Hook: PostToolUse → "/fix-bug completed" OR "[AGENT_DIRECTIVE] TESTS FAILED" printed to stdout.
|
|
170
|
+
Action: Activate genesis-debug-guide. Do NOT stop until tests pass.
|
|
171
171
|
|
|
172
172
|
1. Fix Verification (5 min):
|
|
173
173
|
- Run: npm test (or equivalent)
|
|
@@ -400,6 +400,12 @@ If debugging effort exceeds 30 minutes:
|
|
|
400
400
|
- Check GitHub issues/PRs for related bugs
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
+
## MCP Automation Requirements
|
|
404
|
+
|
|
405
|
+
To systematically isolate and resolve bugs, you **MUST** use the following MCP servers:
|
|
406
|
+
1. **`@modelcontextprotocol/server-puppeteer`**: For any UI, E2E, or visual bug, use this MCP tool to automatically navigate to the local dev server, interact with the UI, reproduce the bug, capture the browser console logs, and take screenshots for Vision analysis.
|
|
407
|
+
2. **`@modelcontextprotocol/server-memory`**: Query the Knowledge Graph to see if this bug is a known regression or if a similar issue has been resolved in the past.
|
|
408
|
+
|
|
403
409
|
## Integration with Genesis Harness
|
|
404
410
|
|
|
405
411
|
**Works with**:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: design-spec
|
|
2
|
+
name: genesis-design-spec
|
|
3
3
|
description: Define UI design specs, route contracts, visual states, accessibility expectations, and UI/API synchronization before frontend implementation. Use for new screens, redesigns, visual QA, or UI contract updates.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -18,7 +18,7 @@ Do not use for backend-only changes with no UI effect.
|
|
|
18
18
|
UI route, audience, state list, API dependencies, fixtures, and visual references if available.
|
|
19
19
|
|
|
20
20
|
## Outputs required
|
|
21
|
-
UI contract, Playwright fixture, acceptance states, and visual regression expectations.
|
|
21
|
+
UI contract, a generated visual mockup image representing the screen layout (saved as `mockup.png` in the active feature/bug directory), Playwright fixture, acceptance states, and visual regression expectations.
|
|
22
22
|
|
|
23
23
|
## Required tests
|
|
24
24
|
Create load, interaction, validation, API sync, and visual regression tests where applicable.
|
|
@@ -36,7 +36,7 @@ Update `.codebase/UI_ROUTES.md` and frontend summary.
|
|
|
36
36
|
Use state tables and route maps instead of long visual prose.
|
|
37
37
|
|
|
38
38
|
## Acceptance criteria
|
|
39
|
-
The UI can be implemented and tested without guessing states or API behavior.
|
|
39
|
+
The UI can be implemented and tested without guessing states or API behavior. A high-fidelity visual mockup `mockup.png` must be created using the `generate_image` tool and saved in the active task directory as the visual contract.
|
|
40
40
|
|
|
41
41
|
## Common mistakes
|
|
42
42
|
Designing only the happy path, skipping empty/error states, and omitting API synchronization.
|