gaslighting-engine 0.3.1 → 0.4.1

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.
Files changed (194) hide show
  1. package/README.md +133 -18
  2. package/desktop-dist/assets/index-BoI6eWtN.js +44 -0
  3. package/desktop-dist/assets/index-oFTvTTu8.css +1 -0
  4. package/desktop-dist/index.html +13 -0
  5. package/dist/agent-runtimes/permissions.js +34 -0
  6. package/dist/agent-runtimes/prompts.js +30 -0
  7. package/dist/agent-runtimes/registry.js +214 -0
  8. package/dist/agent-runtimes/types.js +1 -0
  9. package/dist/cli.js +142 -4
  10. package/dist/commands/agent.js +11 -0
  11. package/dist/commands/apiRun.js +32 -0
  12. package/dist/commands/cockpit.js +37 -6
  13. package/dist/commands/desktop.js +45 -0
  14. package/dist/commands/doctor.js +8 -1
  15. package/dist/commands/loop.js +64 -0
  16. package/dist/commands/mcp.js +43 -0
  17. package/dist/commands/skill.js +23 -0
  18. package/dist/core/codexRuntime.js +2 -19
  19. package/dist/core/generateDocs.js +16 -10
  20. package/dist/core/generateOtherMarkdown.js +27 -27
  21. package/dist/core/generateStructuredDocs.js +405 -0
  22. package/dist/core/mcpRegistry.js +103 -0
  23. package/dist/core/missionLoop.js +179 -0
  24. package/dist/core/skillRegistry.js +62 -0
  25. package/dist/desktop/main.js +188 -0
  26. package/dist/desktop/preload.js +22 -0
  27. package/dist/utils/logger.js +1 -1
  28. package/dist/version.js +1 -1
  29. package/docs/codex-usage.md +28 -3
  30. package/examples/ecommerce/.agents/config.json +10 -0
  31. package/examples/ecommerce/.agents/mcp/manifest.json +5 -0
  32. package/examples/ecommerce/.agents/runtimes/claude.json +6 -0
  33. package/examples/ecommerce/.agents/runtimes/codex.json +6 -0
  34. package/examples/ecommerce/.agents/runtimes/kimi.json +6 -0
  35. package/examples/ecommerce/.agents/runtimes/local.json +6 -0
  36. package/examples/ecommerce/.agents/runtimes/openai_compatible.json +6 -0
  37. package/examples/ecommerce/.agents/runtimes/opencode.json +6 -0
  38. package/examples/ecommerce/.agents/runtimes/qwen.json +6 -0
  39. package/examples/ecommerce/.codex/prompts/gaslighting.md +9 -9
  40. package/examples/ecommerce/.gaslighting/AGENTS.md +9 -9
  41. package/examples/ecommerce/.gaslighting/AGENT_RUNTIME.md +1 -1
  42. package/examples/ecommerce/.gaslighting/CODEX_PROMPT.md +9 -9
  43. package/examples/ecommerce/.gaslighting/DECISION_LOG.md +1 -1
  44. package/examples/ecommerce/.gaslighting/GASLIGHTING.md +2 -2
  45. package/examples/ecommerce/.gaslighting/INDEX.md +39 -0
  46. package/examples/ecommerce/.gaslighting/MEMORY.md +1 -1
  47. package/examples/ecommerce/.gaslighting/PRD.md +1 -1
  48. package/examples/ecommerce/.gaslighting/PROJECT_CARE.md +1 -1
  49. package/examples/ecommerce/.gaslighting/checkpoints/latest.md +7 -0
  50. package/examples/ecommerce/.gaslighting/config.json +7 -0
  51. package/examples/ecommerce/.gaslighting/decisions/ADR-0001-stack.md +11 -0
  52. package/examples/ecommerce/.gaslighting/decisions/ADR-0002-agent-runtime.md +11 -0
  53. package/examples/ecommerce/.gaslighting/features/core-scope/DECISIONS.md +5 -0
  54. package/examples/ecommerce/.gaslighting/features/core-scope/FEATURE.md +7 -0
  55. package/examples/ecommerce/.gaslighting/features/core-scope/RISKS.md +5 -0
  56. package/examples/ecommerce/.gaslighting/features/core-scope/TASKS.md +18 -0
  57. package/examples/ecommerce/.gaslighting/loops/current-session.json +9 -0
  58. package/examples/ecommerce/.gaslighting/memory/OPEN_QUESTIONS.md +5 -0
  59. package/examples/ecommerce/.gaslighting/memory/PROJECT_MEMORY.md +5 -0
  60. package/examples/ecommerce/.gaslighting/memory/SESSION_LOG.md +3 -0
  61. package/examples/ecommerce/.gaslighting/mission/COMPLETION_STANDARD.md +11 -0
  62. package/examples/ecommerce/.gaslighting/mission/EXECUTION_RULES.md +20 -0
  63. package/examples/ecommerce/.gaslighting/mission/PROJECT_PURPOSE.md +20 -0
  64. package/examples/ecommerce/.gaslighting/operations/DEPLOYMENT.md +6 -0
  65. package/examples/ecommerce/.gaslighting/operations/DOMAIN.md +6 -0
  66. package/examples/ecommerce/.gaslighting/operations/ENV.md +5 -0
  67. package/examples/ecommerce/.gaslighting/operations/GIT.md +7 -0
  68. package/examples/ecommerce/.gaslighting/operations/GITHUB.md +7 -0
  69. package/examples/ecommerce/.gaslighting/operations/PROJECT_CARE.md +76 -0
  70. package/examples/ecommerce/.gaslighting/pages/admin-products/ACCEPTANCE.md +7 -0
  71. package/examples/ecommerce/.gaslighting/pages/admin-products/PAGE_PRD.md +15 -0
  72. package/examples/ecommerce/.gaslighting/pages/cart/ACCEPTANCE.md +7 -0
  73. package/examples/ecommerce/.gaslighting/pages/cart/PAGE_PRD.md +15 -0
  74. package/examples/ecommerce/.gaslighting/pages/checkout/ACCEPTANCE.md +7 -0
  75. package/examples/ecommerce/.gaslighting/pages/checkout/PAGE_PRD.md +15 -0
  76. package/examples/ecommerce/.gaslighting/pages/home/ACCEPTANCE.md +7 -0
  77. package/examples/ecommerce/.gaslighting/pages/home/PAGE_PRD.md +15 -0
  78. package/examples/ecommerce/.gaslighting/pages/my-orders/ACCEPTANCE.md +7 -0
  79. package/examples/ecommerce/.gaslighting/pages/my-orders/PAGE_PRD.md +15 -0
  80. package/examples/ecommerce/.gaslighting/pages/order-complete/ACCEPTANCE.md +7 -0
  81. package/examples/ecommerce/.gaslighting/pages/order-complete/PAGE_PRD.md +15 -0
  82. package/examples/ecommerce/.gaslighting/pages/product-detail/ACCEPTANCE.md +7 -0
  83. package/examples/ecommerce/.gaslighting/pages/product-detail/PAGE_PRD.md +15 -0
  84. package/examples/ecommerce/.gaslighting/pages/product-list/ACCEPTANCE.md +7 -0
  85. package/examples/ecommerce/.gaslighting/pages/product-list/PAGE_PRD.md +15 -0
  86. package/examples/ecommerce/.gaslighting/product/PAGE_MAP.md +11 -0
  87. package/examples/ecommerce/.gaslighting/product/PRD.md +115 -0
  88. package/examples/ecommerce/.gaslighting/product/USER_FLOWS.md +22 -0
  89. package/examples/ecommerce/.gaslighting/tasks/TASK-0001.md +17 -0
  90. package/examples/ecommerce/.gaslighting/verification/latest-report.md +3 -0
  91. package/examples/ecommerce/AGENTS.md +12 -10
  92. package/examples/hospital-homepage/.agents/config.json +10 -0
  93. package/examples/hospital-homepage/.agents/mcp/manifest.json +5 -0
  94. package/examples/hospital-homepage/.agents/runtimes/claude.json +6 -0
  95. package/examples/hospital-homepage/.agents/runtimes/codex.json +6 -0
  96. package/examples/hospital-homepage/.agents/runtimes/kimi.json +6 -0
  97. package/examples/hospital-homepage/.agents/runtimes/local.json +6 -0
  98. package/examples/hospital-homepage/.agents/runtimes/openai_compatible.json +6 -0
  99. package/examples/hospital-homepage/.agents/runtimes/opencode.json +6 -0
  100. package/examples/hospital-homepage/.agents/runtimes/qwen.json +6 -0
  101. package/examples/hospital-homepage/.codex/prompts/gaslighting.md +9 -9
  102. package/examples/hospital-homepage/.gaslighting/AGENTS.md +9 -9
  103. package/examples/hospital-homepage/.gaslighting/CODEX_PROMPT.md +9 -9
  104. package/examples/hospital-homepage/.gaslighting/INDEX.md +37 -0
  105. package/examples/hospital-homepage/.gaslighting/checkpoints/latest.md +7 -0
  106. package/examples/hospital-homepage/.gaslighting/config.json +7 -0
  107. package/examples/hospital-homepage/.gaslighting/decisions/ADR-0001-stack.md +11 -0
  108. package/examples/hospital-homepage/.gaslighting/decisions/ADR-0002-agent-runtime.md +11 -0
  109. package/examples/hospital-homepage/.gaslighting/features/core-scope/DECISIONS.md +5 -0
  110. package/examples/hospital-homepage/.gaslighting/features/core-scope/FEATURE.md +7 -0
  111. package/examples/hospital-homepage/.gaslighting/features/core-scope/RISKS.md +5 -0
  112. package/examples/hospital-homepage/.gaslighting/features/core-scope/TASKS.md +17 -0
  113. package/examples/hospital-homepage/.gaslighting/loops/current-session.json +9 -0
  114. package/examples/hospital-homepage/.gaslighting/memory/OPEN_QUESTIONS.md +5 -0
  115. package/examples/hospital-homepage/.gaslighting/memory/PROJECT_MEMORY.md +5 -0
  116. package/examples/hospital-homepage/.gaslighting/memory/SESSION_LOG.md +3 -0
  117. package/examples/hospital-homepage/.gaslighting/mission/COMPLETION_STANDARD.md +11 -0
  118. package/examples/hospital-homepage/.gaslighting/mission/EXECUTION_RULES.md +20 -0
  119. package/examples/hospital-homepage/.gaslighting/mission/PROJECT_PURPOSE.md +20 -0
  120. package/examples/hospital-homepage/.gaslighting/operations/DEPLOYMENT.md +6 -0
  121. package/examples/hospital-homepage/.gaslighting/operations/DOMAIN.md +6 -0
  122. package/examples/hospital-homepage/.gaslighting/operations/ENV.md +5 -0
  123. package/examples/hospital-homepage/.gaslighting/operations/GIT.md +7 -0
  124. package/examples/hospital-homepage/.gaslighting/operations/GITHUB.md +7 -0
  125. package/examples/hospital-homepage/.gaslighting/operations/PROJECT_CARE.md +76 -0
  126. package/examples/hospital-homepage/.gaslighting/pages/consultation-contact/ACCEPTANCE.md +7 -0
  127. package/examples/hospital-homepage/.gaslighting/pages/consultation-contact/PAGE_PRD.md +15 -0
  128. package/examples/hospital-homepage/.gaslighting/pages/departments-treatments/ACCEPTANCE.md +7 -0
  129. package/examples/hospital-homepage/.gaslighting/pages/departments-treatments/PAGE_PRD.md +15 -0
  130. package/examples/hospital-homepage/.gaslighting/pages/doctor-profiles/ACCEPTANCE.md +7 -0
  131. package/examples/hospital-homepage/.gaslighting/pages/doctor-profiles/PAGE_PRD.md +15 -0
  132. package/examples/hospital-homepage/.gaslighting/pages/home/ACCEPTANCE.md +7 -0
  133. package/examples/hospital-homepage/.gaslighting/pages/home/PAGE_PRD.md +15 -0
  134. package/examples/hospital-homepage/.gaslighting/pages/hospital-introduction/ACCEPTANCE.md +7 -0
  135. package/examples/hospital-homepage/.gaslighting/pages/hospital-introduction/PAGE_PRD.md +15 -0
  136. package/examples/hospital-homepage/.gaslighting/pages/location/ACCEPTANCE.md +7 -0
  137. package/examples/hospital-homepage/.gaslighting/pages/location/PAGE_PRD.md +15 -0
  138. package/examples/hospital-homepage/.gaslighting/pages/privacy-policy/ACCEPTANCE.md +7 -0
  139. package/examples/hospital-homepage/.gaslighting/pages/privacy-policy/PAGE_PRD.md +15 -0
  140. package/examples/hospital-homepage/.gaslighting/product/PAGE_MAP.md +9 -0
  141. package/examples/hospital-homepage/.gaslighting/product/PRD.md +119 -0
  142. package/examples/hospital-homepage/.gaslighting/product/USER_FLOWS.md +20 -0
  143. package/examples/hospital-homepage/.gaslighting/tasks/TASK-0001.md +17 -0
  144. package/examples/hospital-homepage/.gaslighting/verification/latest-report.md +3 -0
  145. package/examples/hospital-homepage/AGENTS.md +12 -10
  146. package/examples/landing-page/.agents/config.json +10 -0
  147. package/examples/landing-page/.agents/mcp/manifest.json +5 -0
  148. package/examples/landing-page/.agents/runtimes/claude.json +6 -0
  149. package/examples/landing-page/.agents/runtimes/codex.json +6 -0
  150. package/examples/landing-page/.agents/runtimes/kimi.json +6 -0
  151. package/examples/landing-page/.agents/runtimes/local.json +6 -0
  152. package/examples/landing-page/.agents/runtimes/openai_compatible.json +6 -0
  153. package/examples/landing-page/.agents/runtimes/opencode.json +6 -0
  154. package/examples/landing-page/.agents/runtimes/qwen.json +6 -0
  155. package/examples/landing-page/.codex/prompts/gaslighting.md +9 -9
  156. package/examples/landing-page/.gaslighting/AGENTS.md +9 -9
  157. package/examples/landing-page/.gaslighting/AGENT_RUNTIME.md +1 -1
  158. package/examples/landing-page/.gaslighting/CODEX_PROMPT.md +9 -9
  159. package/examples/landing-page/.gaslighting/DECISION_LOG.md +1 -1
  160. package/examples/landing-page/.gaslighting/GASLIGHTING.md +2 -2
  161. package/examples/landing-page/.gaslighting/INDEX.md +31 -0
  162. package/examples/landing-page/.gaslighting/MEMORY.md +1 -1
  163. package/examples/landing-page/.gaslighting/PRD.md +1 -1
  164. package/examples/landing-page/.gaslighting/PROJECT_CARE.md +1 -1
  165. package/examples/landing-page/.gaslighting/checkpoints/latest.md +7 -0
  166. package/examples/landing-page/.gaslighting/config.json +7 -0
  167. package/examples/landing-page/.gaslighting/decisions/ADR-0001-stack.md +11 -0
  168. package/examples/landing-page/.gaslighting/decisions/ADR-0002-agent-runtime.md +11 -0
  169. package/examples/landing-page/.gaslighting/features/core-scope/DECISIONS.md +5 -0
  170. package/examples/landing-page/.gaslighting/features/core-scope/FEATURE.md +7 -0
  171. package/examples/landing-page/.gaslighting/features/core-scope/RISKS.md +5 -0
  172. package/examples/landing-page/.gaslighting/features/core-scope/TASKS.md +11 -0
  173. package/examples/landing-page/.gaslighting/loops/current-session.json +9 -0
  174. package/examples/landing-page/.gaslighting/memory/OPEN_QUESTIONS.md +5 -0
  175. package/examples/landing-page/.gaslighting/memory/PROJECT_MEMORY.md +5 -0
  176. package/examples/landing-page/.gaslighting/memory/SESSION_LOG.md +3 -0
  177. package/examples/landing-page/.gaslighting/mission/COMPLETION_STANDARD.md +11 -0
  178. package/examples/landing-page/.gaslighting/mission/EXECUTION_RULES.md +20 -0
  179. package/examples/landing-page/.gaslighting/mission/PROJECT_PURPOSE.md +19 -0
  180. package/examples/landing-page/.gaslighting/operations/DEPLOYMENT.md +6 -0
  181. package/examples/landing-page/.gaslighting/operations/DOMAIN.md +6 -0
  182. package/examples/landing-page/.gaslighting/operations/ENV.md +5 -0
  183. package/examples/landing-page/.gaslighting/operations/GIT.md +7 -0
  184. package/examples/landing-page/.gaslighting/operations/GITHUB.md +7 -0
  185. package/examples/landing-page/.gaslighting/operations/PROJECT_CARE.md +75 -0
  186. package/examples/landing-page/.gaslighting/pages/single-landing-page-with-hero-problem-solution-benefits-social-p/ACCEPTANCE.md +7 -0
  187. package/examples/landing-page/.gaslighting/pages/single-landing-page-with-hero-problem-solution-benefits-social-p/PAGE_PRD.md +15 -0
  188. package/examples/landing-page/.gaslighting/product/PAGE_MAP.md +3 -0
  189. package/examples/landing-page/.gaslighting/product/PRD.md +103 -0
  190. package/examples/landing-page/.gaslighting/product/USER_FLOWS.md +14 -0
  191. package/examples/landing-page/.gaslighting/tasks/TASK-0001.md +17 -0
  192. package/examples/landing-page/.gaslighting/verification/latest-report.md +3 -0
  193. package/examples/landing-page/AGENTS.md +12 -10
  194. package/package.json +22 -5
@@ -0,0 +1,5 @@
1
+ # Feature Risks
2
+
3
+ - Classification confidence: high
4
+ - Missing information can affect copy, data model, page details, and production readiness.
5
+ - Repetitive surfaces are at risk of being summarized instead of implemented.
@@ -0,0 +1,18 @@
1
+ # Core Scope Tasks
2
+
3
+ - [ ] Preserve and restate the project purpose for `ecommerce`.
4
+ - [ ] Implement all required MVP pages or feature surfaces.
5
+ - [ ] Implement and verify page/surface: Home
6
+ - [ ] Implement and verify page/surface: Product List
7
+ - [ ] Implement and verify page/surface: Product Detail
8
+ - [ ] Implement and verify page/surface: Cart
9
+ - [ ] Implement and verify page/surface: Checkout
10
+ - [ ] Implement and verify page/surface: Order Complete
11
+ - [ ] Implement and verify page/surface: My Orders
12
+ - [ ] Implement and verify page/surface: Admin Products
13
+ - [ ] Verify build/test/lint/browser flow as appropriate.
14
+ - [ ] Update decisions, missing info, memory, and project care files.
15
+
16
+ Original request:
17
+
18
+ > Build an ecommerce MVP.
@@ -0,0 +1,9 @@
1
+ {
2
+ "active": false,
3
+ "status": "off",
4
+ "currentTask": "TASK-0001",
5
+ "runtime": "codex",
6
+ "permissionMode": "auto_review",
7
+ "iterations": 0,
8
+ "stopRequested": false
9
+ }
@@ -0,0 +1,5 @@
1
+ # Open Questions
2
+
3
+ - Product catalog, payment market, and fulfillment rules: Provide real SKU data, shipping policy, tax rules, payment provider, and refund policy.
4
+ - Final brand identity and production copy: Collect final brand name, tone, assets, and legally approved copy before launch.
5
+ - Exact deployment credentials and accounts: Add project-specific env vars and provider accounts before production deployment.
@@ -0,0 +1,5 @@
1
+ # Project Memory
2
+
3
+ - Original request: Build an ecommerce MVP.
4
+ - Project type: ecommerce
5
+ - Classification confidence: high
@@ -0,0 +1,3 @@
1
+ # Session Log
2
+
3
+ - 2026-05-23: Gaslighting-engine structured mission initialized for: Build an ecommerce MVP.
@@ -0,0 +1,11 @@
1
+ # Completion Standard
2
+
3
+ A task is complete only when:
4
+
5
+ - Requested scope is fully handled.
6
+ - No required item was silently skipped.
7
+ - No placeholder is pretending to be implementation.
8
+ - No TODO replaces requested implementation.
9
+ - Verification was run or the reason it could not run is stated.
10
+ - Assumptions, missing information, and operational care risks are updated.
11
+ - The result can actually be used.
@@ -0,0 +1,20 @@
1
+ # Execution Rules
2
+
3
+ - Runtime: codex
4
+ - Loop mode: off
5
+ - Permission mode: auto_review
6
+
7
+ ## Non-Negotiables
8
+
9
+ - Do the actual work.
10
+ - Do not shrink scope.
11
+ - Do not use TODOs as fake implementation.
12
+ - Do not present representative examples as full coverage.
13
+ - Document missing information and continue unless truly blocked.
14
+ - Record operational risk in `operations/PROJECT_CARE.md`.
15
+
16
+ ## Permission Modes
17
+
18
+ - `ask_each_task`: request approval before each task action.
19
+ - `auto_review`: continue ordinary work; request approval for destructive, publishing, deployment, secret, DNS, payment, MCP install, or global configuration changes.
20
+ - `full_autonomy`: continue without approval, but log every action and never expose secrets.
@@ -0,0 +1,20 @@
1
+ # Project Purpose
2
+
3
+ Original request:
4
+
5
+ > Build an ecommerce MVP.
6
+
7
+ Project type: `ecommerce`
8
+
9
+ The purpose is:
10
+
11
+ - product discovery
12
+ - product detail clarity
13
+ - cart flow
14
+ - checkout flow
15
+ - order creation
16
+ - payment readiness
17
+ - admin product management
18
+ - mobile purchase experience
19
+
20
+ Do not turn this project into a generic showcase. Preserve the business purpose and conversion/operation goals implied by the project type.
@@ -0,0 +1,6 @@
1
+ # Deployment Operations
2
+
3
+ - Deployment provider: unconfirmed until detected or selected.
4
+ - Preview URL policy: missing until confirmed.
5
+ - Rollback path: missing until confirmed.
6
+ - Deployment commands require approval in auto-review mode.
@@ -0,0 +1,6 @@
1
+ # Domain Operations
2
+
3
+ - Production domain: missing until confirmed.
4
+ - DNS provider: missing until confirmed.
5
+ - Domain owner: missing until confirmed.
6
+ - Do not treat missing domain data as implementation-blocking unless launch is requested.
@@ -0,0 +1,5 @@
1
+ # Environment Operations
2
+
3
+ - Keep real secrets out of generated documents.
4
+ - Prefer `.env.example` for required variables.
5
+ - Secret changes require approval in auto-review mode.
@@ -0,0 +1,7 @@
1
+ # Git Operations
2
+
3
+ Project root: `examples/ecommerce`
4
+
5
+ - Keep meaningful checkpoints.
6
+ - Do not rewrite user changes.
7
+ - Record remote changes in decisions.
@@ -0,0 +1,7 @@
1
+ # GitHub Operations
2
+
3
+ Project root: `examples/ecommerce`
4
+
5
+ - If no GitHub remote exists, ask for the GitHub URL and offer to connect it.
6
+ - If a remote exists, preserve it unless the user explicitly asks to replace it.
7
+ - Push only when permission mode allows it or approval is granted.
@@ -0,0 +1,76 @@
1
+ # PROJECT_CARE.md
2
+
3
+ This file is the project-care ledger for Gaslighting-engine.
4
+
5
+ It is not a blocker wall.
6
+
7
+ It is the place where the agent keeps noticing operational risk, ownership gaps, Git/GitHub status, deployment readiness, domain ownership, and missing production decisions.
8
+
9
+ The agent must treat this project as mission-critical. If something can put delivery, trust, data, launch, SEO, legal compliance, or operations at risk, record it here and keep pushing it forward.
10
+
11
+ ## Project Snapshot
12
+
13
+ - Date: 2026-05-23
14
+ - Original request: Build an ecommerce MVP.
15
+ - Project type: ecommerce
16
+ - Classification confidence: high
17
+ - Project purpose:
18
+ - product discovery
19
+ - product detail clarity
20
+ - cart flow
21
+ - checkout flow
22
+ - order creation
23
+ - payment readiness
24
+ - admin product management
25
+ - mobile purchase experience
26
+
27
+ ## Git And GitHub Registry
28
+
29
+ | Item | Status | Next Action |
30
+ |---|---|---|
31
+ | Git repository | Detected, branch `main` | Commit meaningful checkpoints. |
32
+ | Origin remote | `https://github.com/nohsangwoo/GaslightingEngineering.git` | Keep remote ownership recorded when it changes. |
33
+ | GitHub remote | Detected | Use GitHub as the source-of-truth remote. |
34
+
35
+ ## Domain And Deployment Registry
36
+
37
+ | Item | Current Status | Risk | Next Action |
38
+ |---|---|---|---|
39
+ | Production domain | Missing | Users cannot reach production reliably. | Confirm domain owner, DNS provider, and final domain. |
40
+ | DNS provider | Missing | Launch can be delayed by DNS access issues. | Record provider, account owner, and nameserver strategy. |
41
+ | Deployment target | Not confirmed | Environment drift and launch confusion. | Confirm Vercel, Netlify, Cloudflare, or other target. |
42
+ | Preview URL policy | Missing | Stakeholders cannot review safely. | Decide preview deployment workflow. |
43
+ | Rollback path | Missing | Production incidents become slower to recover. | Define rollback command/provider workflow. |
44
+
45
+ ## Care Checklist
46
+
47
+ - [x] Git repository: Git repository detected on branch main. Next: Keep committing discipline and implementation changes.
48
+ - [x] GitHub remote: GitHub remote detected: https://github.com/nohsangwoo/GaslightingEngineering.git Next: Record repository decisions in DECISION_LOG.md when remote ownership changes.
49
+ - [ ] Project package file: package.json is missing. Next: Create package.json when implementation starts, unless this is not a Node project.
50
+ - [ ] Deployment target: No explicit deployment config detected. Next: Confirm deployment target, production domain, preview environment, and rollback path before launch.
51
+ - [ ] Environment template: .env.example is missing. Next: Add .env.example before sharing the project so required secrets are visible without exposing real values.
52
+ - [ ] Production domain confirmed.
53
+ - [ ] DNS owner confirmed.
54
+ - [ ] Deployment provider confirmed.
55
+ - [ ] Analytics ownership confirmed.
56
+ - [ ] Form/email delivery owner confirmed.
57
+ - [ ] Privacy/legal review path confirmed.
58
+ - [ ] Launch checklist created before production release.
59
+
60
+ ## Agent Care Rules
61
+
62
+ - Do not stop implementation just because an operational detail is missing.
63
+ - Do make a practical assumption, record it, and keep moving.
64
+ - If Git is not initialized, ask for a GitHub URL and offer the exact commands.
65
+ - If Git is initialized but no GitHub remote exists, ask for the remote URL and offer `git remote add origin <url>`.
66
+ - If the user provides a GitHub URL, run `gaslighting-engine care --github-url <url>` or connect it directly with Git CLI.
67
+ - If GitHub is connected, record the remote URL here and in `DECISION_LOG.md` when it changes.
68
+ - If domain or deployment details are missing, keep warning until they are confirmed.
69
+ - Treat missing domain, deployment, analytics, email, and privacy ownership as mission-critical launch risks, not as reasons to abandon the task.
70
+ - Never turn care warnings into fake blockers.
71
+
72
+ ## Current Care Warnings
73
+
74
+ - Project package file: package.json is missing. Action: Create package.json when implementation starts, unless this is not a Node project.
75
+ - Deployment target: No explicit deployment config detected. Action: Confirm deployment target, production domain, preview environment, and rollback path before launch.
76
+ - Environment template: .env.example is missing. Action: Add .env.example before sharing the project so required secrets are visible without exposing real values.
@@ -0,0 +1,7 @@
1
+ # Admin Products Acceptance Criteria
2
+
3
+ - [ ] Page purpose is visible.
4
+ - [ ] Required content is not placeholder-only.
5
+ - [ ] CTA or operational action is usable.
6
+ - [ ] Mobile layout is usable.
7
+ - [ ] No TODO replaces implementation.
@@ -0,0 +1,15 @@
1
+ # Admin Products Page PRD
2
+
3
+ Project type: `ecommerce`
4
+
5
+ ## Purpose
6
+
7
+ This page must support the project purpose and not become decorative filler.
8
+
9
+ ## Required Coverage
10
+
11
+ - Clear user goal.
12
+ - Clear content hierarchy.
13
+ - Clear CTA or operational action.
14
+ - Mobile usability.
15
+ - Empty/error states when relevant.
@@ -0,0 +1,7 @@
1
+ # Cart Acceptance Criteria
2
+
3
+ - [ ] Page purpose is visible.
4
+ - [ ] Required content is not placeholder-only.
5
+ - [ ] CTA or operational action is usable.
6
+ - [ ] Mobile layout is usable.
7
+ - [ ] No TODO replaces implementation.
@@ -0,0 +1,15 @@
1
+ # Cart Page PRD
2
+
3
+ Project type: `ecommerce`
4
+
5
+ ## Purpose
6
+
7
+ This page must support the project purpose and not become decorative filler.
8
+
9
+ ## Required Coverage
10
+
11
+ - Clear user goal.
12
+ - Clear content hierarchy.
13
+ - Clear CTA or operational action.
14
+ - Mobile usability.
15
+ - Empty/error states when relevant.
@@ -0,0 +1,7 @@
1
+ # Checkout Acceptance Criteria
2
+
3
+ - [ ] Page purpose is visible.
4
+ - [ ] Required content is not placeholder-only.
5
+ - [ ] CTA or operational action is usable.
6
+ - [ ] Mobile layout is usable.
7
+ - [ ] No TODO replaces implementation.
@@ -0,0 +1,15 @@
1
+ # Checkout Page PRD
2
+
3
+ Project type: `ecommerce`
4
+
5
+ ## Purpose
6
+
7
+ This page must support the project purpose and not become decorative filler.
8
+
9
+ ## Required Coverage
10
+
11
+ - Clear user goal.
12
+ - Clear content hierarchy.
13
+ - Clear CTA or operational action.
14
+ - Mobile usability.
15
+ - Empty/error states when relevant.
@@ -0,0 +1,7 @@
1
+ # Home Acceptance Criteria
2
+
3
+ - [ ] Page purpose is visible.
4
+ - [ ] Required content is not placeholder-only.
5
+ - [ ] CTA or operational action is usable.
6
+ - [ ] Mobile layout is usable.
7
+ - [ ] No TODO replaces implementation.
@@ -0,0 +1,15 @@
1
+ # Home Page PRD
2
+
3
+ Project type: `ecommerce`
4
+
5
+ ## Purpose
6
+
7
+ This page must support the project purpose and not become decorative filler.
8
+
9
+ ## Required Coverage
10
+
11
+ - Clear user goal.
12
+ - Clear content hierarchy.
13
+ - Clear CTA or operational action.
14
+ - Mobile usability.
15
+ - Empty/error states when relevant.
@@ -0,0 +1,7 @@
1
+ # My Orders Acceptance Criteria
2
+
3
+ - [ ] Page purpose is visible.
4
+ - [ ] Required content is not placeholder-only.
5
+ - [ ] CTA or operational action is usable.
6
+ - [ ] Mobile layout is usable.
7
+ - [ ] No TODO replaces implementation.
@@ -0,0 +1,15 @@
1
+ # My Orders Page PRD
2
+
3
+ Project type: `ecommerce`
4
+
5
+ ## Purpose
6
+
7
+ This page must support the project purpose and not become decorative filler.
8
+
9
+ ## Required Coverage
10
+
11
+ - Clear user goal.
12
+ - Clear content hierarchy.
13
+ - Clear CTA or operational action.
14
+ - Mobile usability.
15
+ - Empty/error states when relevant.
@@ -0,0 +1,7 @@
1
+ # Order Complete Acceptance Criteria
2
+
3
+ - [ ] Page purpose is visible.
4
+ - [ ] Required content is not placeholder-only.
5
+ - [ ] CTA or operational action is usable.
6
+ - [ ] Mobile layout is usable.
7
+ - [ ] No TODO replaces implementation.
@@ -0,0 +1,15 @@
1
+ # Order Complete Page PRD
2
+
3
+ Project type: `ecommerce`
4
+
5
+ ## Purpose
6
+
7
+ This page must support the project purpose and not become decorative filler.
8
+
9
+ ## Required Coverage
10
+
11
+ - Clear user goal.
12
+ - Clear content hierarchy.
13
+ - Clear CTA or operational action.
14
+ - Mobile usability.
15
+ - Empty/error states when relevant.
@@ -0,0 +1,7 @@
1
+ # Product Detail Acceptance Criteria
2
+
3
+ - [ ] Page purpose is visible.
4
+ - [ ] Required content is not placeholder-only.
5
+ - [ ] CTA or operational action is usable.
6
+ - [ ] Mobile layout is usable.
7
+ - [ ] No TODO replaces implementation.
@@ -0,0 +1,15 @@
1
+ # Product Detail Page PRD
2
+
3
+ Project type: `ecommerce`
4
+
5
+ ## Purpose
6
+
7
+ This page must support the project purpose and not become decorative filler.
8
+
9
+ ## Required Coverage
10
+
11
+ - Clear user goal.
12
+ - Clear content hierarchy.
13
+ - Clear CTA or operational action.
14
+ - Mobile usability.
15
+ - Empty/error states when relevant.
@@ -0,0 +1,7 @@
1
+ # Product List Acceptance Criteria
2
+
3
+ - [ ] Page purpose is visible.
4
+ - [ ] Required content is not placeholder-only.
5
+ - [ ] CTA or operational action is usable.
6
+ - [ ] Mobile layout is usable.
7
+ - [ ] No TODO replaces implementation.
@@ -0,0 +1,15 @@
1
+ # Product List Page PRD
2
+
3
+ Project type: `ecommerce`
4
+
5
+ ## Purpose
6
+
7
+ This page must support the project purpose and not become decorative filler.
8
+
9
+ ## Required Coverage
10
+
11
+ - Clear user goal.
12
+ - Clear content hierarchy.
13
+ - Clear CTA or operational action.
14
+ - Mobile usability.
15
+ - Empty/error states when relevant.
@@ -0,0 +1,11 @@
1
+ # Page Map
2
+
3
+ - [ ] Home: define purpose, content, CTA, empty state, and acceptance criteria.
4
+ - [ ] Product List: define purpose, content, CTA, empty state, and acceptance criteria.
5
+ - [ ] Product Detail: define purpose, content, CTA, empty state, and acceptance criteria.
6
+ - [ ] Cart: define purpose, content, CTA, empty state, and acceptance criteria.
7
+ - [ ] Checkout: define purpose, content, CTA, empty state, and acceptance criteria.
8
+ - [ ] Order Complete: define purpose, content, CTA, empty state, and acceptance criteria.
9
+ - [ ] My Orders: define purpose, content, CTA, empty state, and acceptance criteria.
10
+ - [ ] Admin Products: define purpose, content, CTA, empty state, and acceptance criteria.
11
+ - [ ] Admin Orders: define purpose, content, CTA, empty state, and acceptance criteria.
@@ -0,0 +1,115 @@
1
+ # PRD.md
2
+
3
+ ## 1. Product Overview
4
+
5
+ Build an MVP for this request:
6
+
7
+ > Build an ecommerce MVP.
8
+
9
+ Classified project type: `ecommerce`
10
+
11
+ The product must preserve the user's actual scope and must not become a decorative shell.
12
+
13
+ ## 2. Business Purpose
14
+
15
+ - product discovery
16
+ - product detail clarity
17
+ - cart flow
18
+ - checkout flow
19
+ - order creation
20
+ - payment readiness
21
+ - admin product management
22
+ - mobile purchase experience
23
+
24
+ ## 3. Target Users
25
+
26
+ - Shoppers browsing products
27
+ - Returning customers checking orders
28
+ - Store operators managing products and orders
29
+
30
+ ## 4. User Flows
31
+
32
+ - Browse products -> view detail -> add to cart -> checkout -> order complete
33
+ - Admin -> create/edit product -> review orders
34
+
35
+ ## 5. Page List
36
+
37
+ - Home
38
+ - Product List
39
+ - Product Detail
40
+ - Cart
41
+ - Checkout
42
+ - Order Complete
43
+ - My Orders
44
+ - Admin Products
45
+ - Admin Orders
46
+
47
+ ## 6. Feature List
48
+
49
+ - product listing
50
+ - product detail page
51
+ - cart
52
+ - checkout preparation
53
+ - order creation
54
+ - product image support
55
+ - admin product CRUD
56
+ - admin order view
57
+ - responsive UI
58
+
59
+ ## 7. Data Model Draft
60
+
61
+ - Product: title, slug, description, price, images, stockStatus
62
+ - CartItem: productId, quantity, priceSnapshot
63
+ - Order: customer, items, total, status, createdAt
64
+ - AdminUser: email, role
65
+
66
+ ## 8. MVP Scope
67
+
68
+ - Implement all pages, flows, and features listed above.
69
+ - Include responsive behavior.
70
+ - Include useful empty, loading, success, and error states where applicable.
71
+ - Include SEO metadata where public pages exist.
72
+ - Include analytics-ready structure where conversion matters.
73
+ - Document every assumption that affects implementation.
74
+
75
+ ## 9. Out of Scope
76
+
77
+ - warehouse automation
78
+ - multi-vendor marketplace
79
+ - subscription billing unless requested
80
+ - complex ERP integration
81
+
82
+ ## 10. Non-Functional Requirements
83
+
84
+ - Mobile-first where users are likely to arrive from search or ads.
85
+ - Accessible semantic HTML.
86
+ - Fast initial load for public pages.
87
+ - Safe form validation and clear error messages.
88
+ - Maintainable TypeScript structure.
89
+ - No unnecessary distributed systems.
90
+
91
+ ## 11. Tech Stack
92
+
93
+ No stack hints were provided. Use the default practical web stack unless the user later changes it.
94
+
95
+ See `STACK_POLICY.md` for defaults and forbidden-by-default technology.
96
+
97
+ ## 12. Risks
98
+
99
+ - Vague source requirements can cause wrong vertical assumptions.
100
+ - Placeholder copy can look real if not reviewed.
101
+ - Missing production credentials can block deployment.
102
+ - AI agents may reduce scope unless `GASLIGHTING.md` is enforced.
103
+
104
+ ## 13. Missing Information
105
+
106
+ See `MISSING_INFO.md`.
107
+
108
+ ## 14. Success Criteria
109
+
110
+ - The project purpose is visible in the implemented product.
111
+ - The core pages and features are implemented, not merely described.
112
+ - No required scope is replaced by representative examples.
113
+ - No TODO is used as a substitute for implementation.
114
+ - Assumptions and decisions remain documented.
115
+ - The output can actually be used for the MVP purpose.
@@ -0,0 +1,22 @@
1
+ # User Flows
2
+
3
+ Project type: `ecommerce`
4
+
5
+ ## Primary Flow
6
+
7
+ 1. User lands on the first relevant page.
8
+ 2. User understands the offer or purpose quickly.
9
+ 3. User explores the page or feature set needed for trust and decision-making.
10
+ 4. User completes the primary conversion or operational action.
11
+
12
+ ## Page Coverage
13
+
14
+ 1. Home
15
+ 2. Product List
16
+ 3. Product Detail
17
+ 4. Cart
18
+ 5. Checkout
19
+ 6. Order Complete
20
+ 7. My Orders
21
+ 8. Admin Products
22
+ 9. Admin Orders
@@ -0,0 +1,17 @@
1
+ # TASK-0001: Initialize Mission Scope
2
+
3
+ Status: pending
4
+ Runtime: codex
5
+ Permission mode: auto_review
6
+
7
+ ## Goal
8
+
9
+ Turn the original request into implemented project work without fake completion.
10
+
11
+ ## Request
12
+
13
+ > Build an ecommerce MVP.
14
+
15
+ ## Project Type
16
+
17
+ `ecommerce`
@@ -0,0 +1,3 @@
1
+ # Latest Verification Report
2
+
3
+ No verification has run yet.
@@ -4,18 +4,20 @@ This repository uses Gaslighting-engine.
4
4
 
5
5
  The main discipline documents live under `.gaslighting/` to avoid cluttering the project root.
6
6
 
7
+ Start with `.gaslighting/INDEX.md`. It points to the mission, product, feature, operation, task, loop, verification, and memory documents.
8
+
7
9
  Before doing any work, read these files in order:
8
10
 
9
- 1. `.gaslighting/GASLIGHTING.md`
10
- 2. `.gaslighting/PRD.md`
11
- 3. `.gaslighting/STACK_POLICY.md`
12
- 4. `.gaslighting/MISSING_INFO.md`
13
- 5. `.gaslighting/ASSUMPTIONS.md`
14
- 6. `.gaslighting/DECISION_LOG.md`
15
- 7. `.gaslighting/MEMORY.md`
16
- 8. `.gaslighting/AGENT_RUNTIME.md`
17
- 9. `.gaslighting/PROJECT_CARE.md`
18
- 10. `.gaslighting/AGENTS.md`
11
+ 1. `.gaslighting/INDEX.md`
12
+ 2. `.gaslighting/mission/PROJECT_PURPOSE.md`
13
+ 3. `.gaslighting/mission/EXECUTION_RULES.md`
14
+ 4. `.gaslighting/mission/COMPLETION_STANDARD.md`
15
+ 5. `.gaslighting/product/PRD.md`
16
+ 6. `.gaslighting/product/PAGE_MAP.md`
17
+ 7. `.gaslighting/features/core-scope/TASKS.md`
18
+ 8. `.gaslighting/operations/PROJECT_CARE.md`
19
+ 9. `.gaslighting/loops/current-session.json`
20
+ 10. `.gaslighting/GASLIGHTING.md`
19
21
 
20
22
  Do not reduce scope.
21
23
 
@@ -0,0 +1,10 @@
1
+ {
2
+ "sourceOfTruth": true,
3
+ "defaultRuntime": "codex",
4
+ "permissionMode": "auto_review",
5
+ "exports": [
6
+ ".codex"
7
+ ],
8
+ "skillRoot": ".agents/skills",
9
+ "mcpRoot": ".agents/mcp"
10
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "servers": [],
3
+ "installedAt": null,
4
+ "source": ".agents/mcp"
5
+ }