Skip to content

Commit b870580

Browse files
authored
Merge pull request #2 from gryszzz/upgrade-kaspa-researcher-engineer-v1.4
Upgrade Kaspa AI Agent Skill freshness, research radar, source discipline, adapters, docs, and dedicated branding.
2 parents 018b860 + 6f214fd commit b870580

31 files changed

Lines changed: 686 additions & 440 deletions

.DS_Store

-8 KB
Binary file not shown.

.github/workflows/pages.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ jobs:
4040
if [ -z "$DOMAIN" ] && [ -f /tmp/pages-artifact/CNAME ]; then
4141
DOMAIN="$(tr -d '[:space:]' < /tmp/pages-artifact/CNAME)"
4242
fi
43-
if [ -z "$DOMAIN" ]; then
44-
DOMAIN="forge-os.xyz"
43+
if [ -n "$DOMAIN" ]; then
44+
echo "$DOMAIN" > /tmp/pages-artifact/CNAME
45+
echo "Using custom domain: $DOMAIN"
46+
else
47+
rm -f /tmp/pages-artifact/CNAME
48+
echo "Using default GitHub Pages project URL"
4549
fi
46-
echo "$DOMAIN" > /tmp/pages-artifact/CNAME
47-
echo "Using custom domain: $DOMAIN"
4850
4951
- name: Upload Pages artifact
5052
uses: actions/upload-pages-artifact@v3

PLANS.md

Lines changed: 54 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,64 @@
1-
# ExecPlan: Ship Kaspa Wallet Fullstack v1 Revenue-Ready
1+
# ExecPlan: Upgrade Kaspa Researcher + Engineer Skill v1.4.0
22

33
## 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.
56

67
## 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.
1014

1115
## 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.
5052

5153
## 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`
6661

6762
## 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.

README.md

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
# 🧠 Kaspa Sovereign Architect Engine
22

3-
**Codex-native Kaspa engineering skill** with **cross-platform adapters** for OpenAI, Claude, Cursor, OpenClaw, Gemini CLI, and generic LLM workflows.
3+
**Kaspa researcher + engineering skill** with **cross-platform adapters** for Codex, OpenAI-style agents, Claude, Cursor, OpenClaw, Gemini CLI, and generic LLM workflows.
44

55
## 🚀 What This Is
66

7-
This repository publishes a reusable AI skill package for serious Kaspa engineering.
7+
This repository publishes a reusable AI skill package for serious Kaspa research and engineering.
88

99
- **Skill ID:** `$kaspa-sovereign-architect-engine`
1010
- **Main skill file:** [`SKILL.md`](skills/public/kaspa-sovereign-architect-engine/SKILL.md)
11-
- **Release downloads:** [GitHub Releases](https://github.com/gryszzz/Top-Ai-Agent-Developer-For-Kaspa/releases)
11+
- **Release downloads:** [GitHub Releases](https://github.com/gryszzz/Kaspa-Ai-Agent-Skill/releases)
1212
- **Positioning:** package-first distribution (not a website product)
13+
- **Freshness model:** current-aware, source-grounded, KIP-aware, and research-radar aware
14+
- **Build scope:** Kaspa protocol, wallet, indexer, WASM, dApp, Kdapp, and infrastructure work
1315

1416
## 🔥 What This Agent Is Good At
1517

1618
`$kaspa-sovereign-architect-engine` focuses on:
1719

18-
- **Protocol engineering:** BlockDAG, GHOSTDAG, mempool, UTXO semantics
19-
- **Indexer architecture:** DAG-aware indexing, conflict handling, consistency flows
20-
- **Backend reliability:** APIs, workers, retries, caching, validation, observability
21-
- **Wallet + UX:** wallet-aware transaction lifecycle and confirmation state UX
22-
- **Security rigor:** threat modeling, key boundaries, replay and double-spend controls
20+
- **Kaspa research radar:** economics, L1/L2, consensus, mining, KIPs, papers, and ecosystem engineering
21+
- **Protocol engineering:** BlockDAG, GHOSTDAG, DAGKNIGHT status checks, mempool, UTXO semantics, and future-feature handling
22+
- **KIP-aware analysis:** separates research ideas, KIP proposals, merged code, activation, wallet/indexer support, and app usability
23+
- **Indexer architecture:** DAG-aware ordering, idempotent ingestion, dedupe, checkpoints, retries, sync lag, and query-layer separation
24+
- **WASM + TypeScript apps:** browser/Node separation, watch-only prototypes, wallet-provider signing, RPC trust assumptions
25+
- **Wallet + UX safety:** signing boundaries, custody warnings, phishing, UI spoofing, RPC hijacking, replay, and supply-chain risk
26+
- **Backend and infrastructure reliability:** APIs, workers, retries, caching, validation, observability, deployment, and recovery plans
2327

2428
## ⚡ Quick Start (Codex)
2529

@@ -36,6 +40,24 @@ Or embed it directly:
3640
Use $kaspa-sovereign-architect-engine to audit my wallet backend for replay, nonce, and signing risks.
3741
```
3842

43+
## 🛰 Example Prompts
44+
45+
```text
46+
Use $kaspa-sovereign-architect-engine in Research Radar mode. Check what is new across Kaspa Research categories and identify builder-relevant changes.
47+
```
48+
49+
```text
50+
Use $kaspa-sovereign-architect-engine in Engineering Build Plan mode. Design a testnet-first Kaspa WASM wallet dashboard with watch-only mode and safe signing boundaries.
51+
```
52+
53+
```text
54+
Use $kaspa-sovereign-architect-engine in Deep Protocol Audit mode. Audit a Kaspa indexer design for DAG-aware ordering, idempotency, replay handling, and sync lag.
55+
```
56+
57+
```text
58+
Use $kaspa-sovereign-architect-engine in KIP Status mode. Build a table of relevant KIPs, their activation status, builder impact, and what must be verified.
59+
```
60+
3961
## 🧩 Compatibility Matrix
4062

4163
| Platform | Status | Adapter |
@@ -51,10 +73,12 @@ Use $kaspa-sovereign-architect-engine to audit my wallet backend for replay, non
5173
Compatibility metadata:
5274

5375
- [`manifest.json`](skills/public/kaspa-sovereign-architect-engine/manifest.json)
76+
- Source trust policy: [`source-trust-policy.md`](skills/public/kaspa-sovereign-architect-engine/references/source-trust-policy.md)
77+
- Research radar: [`kaspa-research-radar.md`](skills/public/kaspa-sovereign-architect-engine/references/kaspa-research-radar.md)
5478

5579
Automated verification:
5680

57-
- [Compatibility Matrix workflow](https://github.com/gryszzz/Top-Ai-Agent-Developer-For-Kaspa/actions/workflows/compatibility-matrix.yml)
81+
- [Compatibility Matrix workflow](https://github.com/gryszzz/Kaspa-Ai-Agent-Skill/actions/workflows/compatibility-matrix.yml)
5882
- Release gating validation is enforced in [`.github/workflows/release-skill.yml`](.github/workflows/release-skill.yml)
5983

6084
## 🛠 Install
@@ -64,23 +88,23 @@ Automated verification:
6488
```bash
6589
mkdir -p "$CODEX_HOME/skills"
6690
curl -L -o /tmp/kaspa-sovereign-architect-engine.zip \
67-
https://github.com/gryszzz/Top-Ai-Agent-Developer-For-Kaspa/releases/latest/download/kaspa-sovereign-architect-engine.zip
91+
https://github.com/gryszzz/Kaspa-Ai-Agent-Skill/releases/latest/download/kaspa-sovereign-architect-engine.zip
6892
unzip -o /tmp/kaspa-sovereign-architect-engine.zip -d "$CODEX_HOME/skills"
6993
```
7094

7195
Verify artifact integrity:
7296

7397
```bash
7498
curl -L -o /tmp/SHA256SUMS.txt \
75-
https://github.com/gryszzz/Top-Ai-Agent-Developer-For-Kaspa/releases/latest/download/SHA256SUMS.txt
99+
https://github.com/gryszzz/Kaspa-Ai-Agent-Skill/releases/latest/download/SHA256SUMS.txt
76100
(cd /tmp && grep "kaspa-sovereign-architect-engine.zip$" SHA256SUMS.txt | shasum -a 256 -c -)
77101
```
78102

79103
Alternative tarball install:
80104

81105
```bash
82106
curl -L -o /tmp/kaspa-sovereign-architect-engine.tar.gz \
83-
https://github.com/gryszzz/Top-Ai-Agent-Developer-For-Kaspa/releases/latest/download/kaspa-sovereign-architect-engine.tar.gz
107+
https://github.com/gryszzz/Kaspa-Ai-Agent-Skill/releases/latest/download/kaspa-sovereign-architect-engine.tar.gz
84108
tar -xzf /tmp/kaspa-sovereign-architect-engine.tar.gz -C "$CODEX_HOME/skills"
85109
```
86110

@@ -160,13 +184,13 @@ Design a Kaspa DAG-aware indexer for 100k users with failure recovery and replay
160184

161185
## 📦 Releases
162186

163-
- Download packages: [Releases](https://github.com/gryszzz/Top-Ai-Agent-Developer-For-Kaspa/releases)
187+
- Download packages: [Releases](https://github.com/gryszzz/Kaspa-Ai-Agent-Skill/releases)
164188
- Automated packaging workflow: [`.github/workflows/release-skill.yml`](.github/workflows/release-skill.yml)
165189

166190
## 🌐 Deploy + Marketing
167191

168192
- Auto-deploy workflow: [`.github/workflows/pages.yml`](.github/workflows/pages.yml)
169-
- GitHub Pages landing page: [Live Site](https://gryszzz.github.io/Top-Ai-Agent-Developer-For-Kaspa/)
193+
- GitHub Pages landing page: [Live Site](https://gryszzz.github.io/Kaspa-Ai-Agent-Skill/)
170194
- Custom domain support: set repo variable `GH_PAGES_CNAME` (for example `skill.yourdomain.com`); workflow writes `CNAME` automatically
171195
- Domain setup guide: [`docs/domain-setup.md`](docs/domain-setup.md)
172196
- Launch copy + channel templates: [`docs/launch-kit.html`](docs/launch-kit.html)

docs/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/assets/forge-os-logo.png

-135 KB
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Loading

docs/domain-setup.md

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,28 @@
1-
# Custom Domain Setup (GitHub Pages)
1+
# GitHub Pages Setup
22

3-
Canonical domain for this repository:
3+
This repository is dedicated to Kaspa AI Agent Skill.
44

5-
- https://forge-os.xyz
5+
Default project URL:
66

7-
Fallback project URL:
7+
- https://gryszzz.github.io/Kaspa-Ai-Agent-Skill/
88

9-
- https://gryszzz.github.io/Top-Ai-Agent-Developer-For-Kaspa/
9+
## Optional Custom Domain
1010

11-
## DNS records (Name.com or similar)
11+
The Pages workflow uses the default GitHub Pages project URL unless you set a repository Actions variable:
1212

13-
Set these records:
13+
- `GH_PAGES_CNAME`
1414

15-
1. Apex `A` records for `forge-os.xyz`:
16-
- `185.199.108.153`
17-
- `185.199.109.153`
18-
- `185.199.110.153`
19-
- `185.199.111.153`
20-
2. `CNAME` for `www`:
21-
- `www -> gryszzz.github.io`
22-
3. Remove conflicting `www` `A`/`AAAA`/URL redirect records.
15+
When `GH_PAGES_CNAME` is set, the workflow writes that value into the deployed `CNAME` artifact. No custom domain is hard-coded in this repository.
2316

24-
## GitHub Pages settings
17+
## GitHub Pages Settings
2518

2619
1. Repo -> `Settings` -> `Pages`.
27-
2. Set `Custom domain` to `forge-os.xyz` and save.
28-
3. Wait for certificate provisioning.
29-
4. Enable `Enforce HTTPS`.
20+
2. Use GitHub Actions as the Pages source.
21+
3. Leave custom domain blank unless you intentionally configure `GH_PAGES_CNAME`.
22+
4. Enable `Enforce HTTPS` when GitHub allows it.
3023

31-
## Repo behavior
32-
33-
- `docs/CNAME` is committed as `forge-os.xyz`.
34-
- Pages workflow always writes a `CNAME` into the deploy artifact.
35-
- Optional Actions variable `GH_PAGES_CNAME` can override if needed.
36-
37-
## Quick verification commands
24+
## Quick Verification
3825

3926
```bash
40-
dig +short forge-os.xyz A
41-
dig +short www.forge-os.xyz CNAME
42-
curl -I https://forge-os.xyz
43-
curl -I https://www.forge-os.xyz
27+
curl -I https://gryszzz.github.io/Kaspa-Ai-Agent-Skill/
4428
```

0 commit comments

Comments
 (0)