|
1 | | -# ExecPlan: Ship Kaspa Wallet Fullstack v1 Revenue-Ready |
| 1 | +# ExecPlan: Upgrade Kaspa Researcher + Engineer Skill v1.4.0 |
2 | 2 |
|
3 | 3 | ## Goal |
4 | | -Deliver a production-ready Kaspa wallet fullstack where users can connect via Kasware/Kaspium, query balances, and generate payment intents with a transparent platform fee routed to the configured operator wallet. |
| 4 | + |
| 5 | +Upgrade the existing `kaspa-sovereign-architect-engine` package into a sharper, current-aware, source-grounded Kaspa researcher and engineering skill without breaking its package-first structure or adapter compatibility. |
5 | 6 |
|
6 | 7 | ## Success Metrics |
7 | | -- Activation: wallet challenge + session completion succeeds for both Kasware and Kaspium flows. |
8 | | -- Retention: balance refresh + payment quote happy path remains stable under repeated requests. |
9 | | -- Revenue: platform fee quote is generated on every eligible payment intent and points to configured fee recipient. |
| 8 | + |
| 9 | +- Skill supports efficient response modes and no longer forces deep audit output for tiny questions. |
| 10 | +- Current/future Kaspa claims use freshness checks, source hierarchy, absolute dates, and commit hashes where applicable. |
| 11 | +- KIPs, Kdapp, WASM/TypeScript, indexers, wallet safety, and future features have explicit handling rules. |
| 12 | +- Adapters reference the same core policies and pass compatibility validation. |
| 13 | +- README, manifest, release notes, and references describe the v1.4.0 behavior clearly. |
10 | 14 |
|
11 | 15 | ## Constraints |
12 | | -- Timebox: ship in this execution session with verified commands. |
13 | | -- Tech constraints: |
14 | | - - Keep Kaspa UTXO-first and wallet-signing separation intact. |
15 | | - - No hidden fees; fees must be explicit in API response and UI. |
16 | | - - Preserve both wallet flows (Kasware/Kaspium). |
17 | | - - Validate both `kaspa:` and `kaspatest:` prefixes. |
18 | | - |
19 | | -## Milestones (PR-sized) |
20 | | -1. Planning rails and repo alignment |
21 | | -- [x] Add/update `AGENTS.md` and `PLANS.md` with enforceable execution rules. |
22 | | -- [x] Ensure required docs references are present or documented if missing. |
23 | | - |
24 | | -2. Monetization spine (transparent platform fee) |
25 | | -- [x] Add backend pricing config (fee recipient, bps, min fee, enable toggle). |
26 | | -- [x] Add fee quote endpoint for payment intents. |
27 | | -- [x] Add frontend payment quote UI + fee breakdown + deeplink outputs. |
28 | | - |
29 | | -3. Analytics/telemetry minimums |
30 | | -- [x] Add backend analytics event counters for signup, activation, payment intent. |
31 | | -- [x] Expose telemetry through existing metrics endpoint. |
32 | | - |
33 | | -4. Tests and verification hardening |
34 | | -- [x] Add backend unit tests for fee math and validation. |
35 | | -- [x] Add frontend tests for fee/deeplink logic. |
36 | | -- [x] Run lint/typecheck/tests for backend and frontend. |
37 | | - |
38 | | -5. Deployment + docs completeness |
39 | | -- [x] Update README + env docs + troubleshooting + pricing config. |
40 | | -- [x] Verify Docker path exists and is documented. |
41 | | -- [x] Run one end-to-end happy path command sequence and record result. |
42 | | - |
43 | | -## Definition of Done Checklist |
44 | | -- [x] Clean clone -> one command runs (`docker compose up --build` in `kaspa-wallet-fullstack/`) |
45 | | -- [x] Tests/lint/typecheck pass |
46 | | -- [x] Deploy documented and reproducible |
47 | | -- [x] Monetization live (transparent platform fee config + quote flow) |
48 | | -- [x] Analytics events tracked (signup/activation/payment) |
49 | | -- [x] README complete (setup, env vars, run, test, deploy, troubleshooting) |
| 16 | + |
| 17 | +- Preserve the existing package layout under `skills/public/kaspa-sovereign-architect-engine/`. |
| 18 | +- Modify existing skill/docs instead of creating a new project. |
| 19 | +- Do not remove adapter compatibility or validator-required metadata. |
| 20 | +- Do not present roadmap or research discussion as live protocol behavior. |
| 21 | + |
| 22 | +## Milestones |
| 23 | + |
| 24 | +1. Inspect current repository structure and stale defaults. |
| 25 | +- [x] Review README, README.dev, AGENTS, PLANS, CONTRIBUTING, manifest, skill, references, adapters, workflows, docs, release notes, and training corpus. |
| 26 | + |
| 27 | +2. Refresh source baseline. |
| 28 | +- [x] Check primary Kaspa source families and record repository snapshot hashes. |
| 29 | + |
| 30 | +3. Upgrade the core skill. |
| 31 | +- [x] Add Freshness & Verification Protocol. |
| 32 | +- [x] Add Source Trust Policy pointer. |
| 33 | +- [x] Add Research Radar pointer. |
| 34 | +- [x] Add Efficient Response Modes. |
| 35 | +- [x] Add KIP, Kdapp, WASM/TypeScript, indexer, wallet, and future-feature disciplines. |
| 36 | +- [x] Scope deep audit skeleton to Deep Protocol Audit mode. |
| 37 | + |
| 38 | +4. Update package assets. |
| 39 | +- [x] Add `source-trust-policy.md`. |
| 40 | +- [x] Add `kaspa-research-radar.md`. |
| 41 | +- [x] Refresh source inventory. |
| 42 | +- [x] Update adapters. |
| 43 | +- [x] Update README examples and manifest metadata. |
| 44 | +- [x] Add v1.4.0 release notes. |
| 45 | + |
| 46 | +5. Validate and ship branch. |
| 47 | +- [x] Run compatibility validation. |
| 48 | +- [x] Run available markdown/link checks if present. |
| 49 | +- [x] Confirm adapter references and required files. |
| 50 | +- [ ] Commit changes. |
| 51 | +- [ ] Push branch if remote is available. |
50 | 52 |
|
51 | 53 | ## Commands to Verify |
52 | | -- `cd kaspa-wallet-fullstack/backend && npm ci && npm run build && npm run lint && npm test` |
53 | | -- `cd kaspa-wallet-fullstack/frontend && npm ci && npm run build && npm run lint && npm test` |
54 | | -- `cd kaspa-wallet-fullstack && docker compose config` |
55 | | -- Happy path API run: |
56 | | - - `cd kaspa-wallet-fullstack/backend && npm run build && node dist/server.js` |
57 | | - - `curl -s http://localhost:8080/v1/payments/quote -X POST -H 'content-type: application/json' -d '{...}'` |
58 | | - |
59 | | -## Progress Log |
60 | | -- [x] Initial scan of repository and target app (`kaspa-wallet-fullstack`). |
61 | | -- [x] Milestone 1 complete. |
62 | | -- [x] Milestone 2 complete. |
63 | | -- [x] Milestone 3 complete. |
64 | | -- [x] Milestone 4 complete. |
65 | | -- [x] Milestone 5 complete. |
| 54 | + |
| 55 | +- `node skills/public/kaspa-sovereign-architect-engine/scripts/validate-compatibility.mjs --all` |
| 56 | +- `rg -n "Freshness & Verification Protocol|Source Trust Policy|Research Radar|Efficient Response Modes|KIP Status Discipline|Wallet Safety Discipline" skills/public/kaspa-sovereign-architect-engine/agents` |
| 57 | +- `rg -n "kaspa-sovereign-architect-engine" skills/public/kaspa-sovereign-architect-engine/agents` |
| 58 | +- `test -f skills/public/kaspa-sovereign-architect-engine/references/source-trust-policy.md` |
| 59 | +- `test -f skills/public/kaspa-sovereign-architect-engine/references/kaspa-research-radar.md` |
| 60 | +- `test -f release-notes/v1.4.0.md` |
66 | 61 |
|
67 | 62 | ## Blockers / TODOs |
68 | | -- TODO(issue:LOCAL-DOCKER-VERIFY): Docker binary is unavailable in this execution environment, so local Docker smoke execution could not be run here. Follow-up: run `docker compose up --build` in `kaspa-wallet-fullstack/` and verify `GET /healthz` plus frontend boot at `http://localhost:3000`. |
| 63 | + |
| 64 | +- No markdown lint or broken-link checker was present in repo metadata or workflows; compatibility, package, adapter export, and targeted search checks were run instead. |
0 commit comments