Skip to content

Commit 3e0d3d1

Browse files
author
NullNaveen
committed
chore: track TASK-TRACKER.md, update with completed gaps
1 parent f946203 commit 3e0d3d1

1 file changed

Lines changed: 325 additions & 0 deletions

File tree

TASK-TRACKER.md

Lines changed: 325 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,325 @@
1+
# BAUD Task Tracker
2+
*Master tracking file for all tasks, bugs, AGI/SAI roadmap, and future plans.*
3+
*Last updated: 2026-03-24*
4+
5+
---
6+
7+
## TABLE OF CONTENTS
8+
1. [Current Status](#current-status)
9+
2. [Active Tasks](#active-tasks)
10+
3. [AGI/SAI Autonomy Gaps](#agisai-autonomy-gaps)
11+
4. [Evolution Phases](#evolution-phases)
12+
5. [Infrastructure & DevOps](#infrastructure--devops)
13+
6. [SDK & Tooling](#sdk--tooling)
14+
7. [Security & Hardening](#security--hardening)
15+
8. [Marketing & Launch](#marketing--launch)
16+
9. [Completed Tasks Archive](#completed-tasks-archive)
17+
18+
---
19+
20+
## Current Status
21+
22+
| Metric | Value |
23+
|--------|-------|
24+
| **Mining Block** | ~200,000+ (ongoing) |
25+
| **Mined %** | ~10% of 1B BAUD ✅ TARGET REACHED |
26+
| **Node** | Windows baud-node.exe, port 8080 |
27+
| **Validator address** | `17b28d62fb2fa94474ff54823159ddd992bed3d6fadd576bfc87c425b0b8ac1b` |
28+
| **Git branch** | main |
29+
| **Latest commit** | dbdd366 (API routes for all new tx types) |
30+
| **CI Status** | CI ✅ | Pages ✅ | Docker ✅ | npm ❌ (needs NPM_TOKEN) | PyPI ✅ |
31+
| **Tests** | 46/46 passing (19 baud-core + 18 baud-node + 4 consensus + 5 API) |
32+
33+
---
34+
35+
## Active Tasks
36+
37+
### HIGH PRIORITY
38+
- [x] **AT-1**: Pure Python SDK (PyNaCl + blake3) — DONE (v0.2.0 on PyPI)
39+
- [x] **AT-2**: Fix SpendingPolicy co-signer validation — DONE (CoSignedTransfer tx type)
40+
- [x] **AT-3**: PyPI publishing — DONE (baud-sdk v0.2.0, API token auth)
41+
- [ ] **AT-4**: npm account + `NPM_TOKEN` secret for baud-mcp-server publishing
42+
- [x] **AT-5**: Docker image build — DONE (rust:1.85-slim, run 23526874595)
43+
44+
### MEDIUM PRIORITY
45+
- [x] **AT-6**: Agent pricing (UpdateAgentPricing tx + /v1/pricing/:addr endpoint) — DONE
46+
- [x] **AT-7**: Reputation system (RateAgent tx + /v1/reputation/:addr endpoint) — DONE
47+
- [x] **AT-8**: Service agreements (Create/Accept/Complete/Dispute lifecycle) — DONE
48+
- [x] **AT-9**: Demo agent script (examples/demo_agent.py) — DONE
49+
- [ ] **AT-10**: Node auto-restart on Windows (Task Scheduler or NSSM service)
50+
- [ ] **AT-11**: Write comprehensive SDK documentation with examples
51+
52+
### LOW PRIORITY
53+
- [ ] **AT-12**: Add transaction batching/atomicity
54+
- [x] **AT-13**: Governance/voting (CreateProposal + CastVote tx types) — DONE
55+
- [ ] **AT-14**: Dispute resolution/arbitration (basic DisputeServiceAgreement exists)
56+
- [x] **AT-15**: Recurring payments (CreateRecurringPayment + CancelRecurringPayment) — DONE
57+
- [ ] **AT-16**: Create Baud network explorer (web-based block/tx viewer)
58+
59+
---
60+
61+
## AGI/SAI Autonomy Gaps
62+
63+
These are the 11 critical gaps identified that prevent fully autonomous AGI/SAI agents from using Baud without human intervention. Each gap is categorized by severity and phase.
64+
65+
### GAP-1: No Sub-Accounts / Multi-Sig / Budgeting ⚠️ CRITICAL
66+
**Status**: Not started
67+
**Phase**: 2 (Agent Economy)
68+
**Problem**: An AGI agent cannot create sub-wallets, delegate spending to sub-agents, or set budgets for different tasks. A superintelligent system managing hundreds of sub-processes needs hierarchical financial control.
69+
**Solution**: Add `CreateSubAccount` tx type with parent/child relationships, budget limits, and delegated signing authority.
70+
71+
### GAP-2: Spending Policy Co-Signer Validation BROKEN ⚠️ CRITICAL
72+
**Status**: ✅ DONE (CoSignedTransfer with multi-sig verification)
73+
**Phase**: 1 (Foundation Fix)
74+
**Problem**: `SetSpendingPolicy` transaction exists with `co_signers` and `required_co_signers` fields, but the enforcement code in `state.rs` only REJECTS over-limit transactions — it never validates co-signer approvals. There's no pending/approval queue.
75+
**Location**: `crates/baud-core/src/state.rs``validate_transaction()` function
76+
**Solution**: Implement pending transaction queue, co-signer signature collection, and threshold approval logic.
77+
78+
### GAP-3: No Identity / Reputation System ⚠️ HIGH
79+
**Status**: ✅ DONE (RateAgent tx, Reputation struct, /v1/reputation endpoint)
80+
**Phase**: 2 (Agent Economy)
81+
**Problem**: Agents can't evaluate trustworthiness of other agents. No track record, ratings, or stake-based reputation. An AGI picking a service provider has zero data.
82+
**Solution**: Add on-chain reputation scores based on successful escrow completions, dispute outcomes, and stake amount. Add `RateAgent` tx type.
83+
84+
### GAP-4: No Smart Contracts / Conditional Logic ⚠️ HIGH
85+
**Status**: Not started
86+
**Phase**: 3 (Programmability)
87+
**Problem**: Baud has exactly 8 hardcoded transaction types. No way to express "if X happens, pay Y" or any custom logic. AGI agents need programmable money.
88+
**Solution**: Either add a lightweight scripting engine (like Bitcoin Script) or a WASM-based smart contract runtime. Phase 3 feature — complex.
89+
90+
### GAP-5: No Recurring Payments / Subscriptions ⚠️ MEDIUM
91+
**Status**: ✅ DONE (CreateRecurringPayment + CancelRecurringPayment tx types)
92+
**Phase**: 2 (Agent Economy)
93+
**Problem**: An agent that subscribes to a data feed, API service, or compute provider must manually send a payment every period. No auto-pay.
94+
**Solution**: Add `CreateSubscription` tx type: payer, recipient, amount, interval, max_periods. Node auto-executes payments at each interval.
95+
96+
### GAP-6: No Agent-to-Agent Agreements / Contracts ⚠️ HIGH
97+
**Status**: ✅ DONE (ServiceAgreement lifecycle: Create → Accept → Complete/Dispute)
98+
**Phase**: 2 (Agent Economy)
99+
**Problem**: Two agents can't form a binding agreement (e.g., "I'll generate 1000 images for 10 BAUD, deliverable in 24h"). Only basic escrow exists.
100+
**Solution**: Add `ContractProposal` and `ContractAccept` tx types with terms, milestones, SLAs, and automatic penalty/reward.
101+
102+
### GAP-7: No Governance / Voting ⚠️ LOW
103+
**Status**: ✅ DONE (CreateProposal + CastVote with quorum-based resolution)
104+
**Phase**: 4 (Decentralization)
105+
**Problem**: No mechanism for stakeholders to vote on protocol upgrades, parameter changes, or disputes. A network of AGI agents needs democratic governance.
106+
**Solution**: Add on-chain governance with proposal creation, stake-weighted voting, and automatic execution of approved proposals.
107+
108+
### GAP-8: No Service Discovery / Pricing in Agent Metadata ⚠️ MEDIUM
109+
**Status**: ✅ DONE (UpdateAgentPricing tx, AgentPricing struct, /v1/pricing endpoint)
110+
**Phase**: 2 (Agent Economy)
111+
**Problem**: `AgentMeta` has name, endpoint, and capabilities — but NO pricing. An agent looking for a service provider can't compare prices. No marketplace.
112+
**Solution**: Add `price_per_request: Option<Amount>`, `pricing_model: Option<String>`, and `service_description: Option<String>` to `AgentMeta`.
113+
114+
### GAP-9: No Dispute Resolution / Arbitration ⚠️ MEDIUM
115+
**Status**: Not started
116+
**Phase**: 3 (Programmability)
117+
**Problem**: When an escrow goes wrong (service not delivered, quality dispute), there's only refund-after-deadline. No arbitration, no partial release, no third-party mediator.
118+
**Solution**: Add optional `arbitrator` field to escrows. Arbitrator can release/refund/split. Integrate with reputation system.
119+
120+
### GAP-10: No Network-Level Automation (AMM, Lending, etc.) ⚠️ LOW
121+
**Status**: Not started
122+
**Phase**: 4 (Decentralization)
123+
**Problem**: No automated market makers, lending pools, or DeFi primitives. Agents can't earn yield on idle BAUD or swap tokens.
124+
**Solution**: Phase 4 — requires smart contracts (GAP-4) first. Build DEX/AMM as first smart contract.
125+
126+
### GAP-11: No Transaction Batching / Atomicity ⚠️ MEDIUM
127+
**Status**: Not started
128+
**Phase**: 2 (Agent Economy)
129+
**Problem**: Can't execute multiple transactions atomically (all-or-nothing). An AGI orchestrating a complex workflow needs atomic multi-step operations.
130+
**Solution**: Add `BatchTransaction` tx type that wraps multiple payloads and executes atomically.
131+
132+
---
133+
134+
## Evolution Phases
135+
136+
### Phase 1: Foundation Fixes (NOW)
137+
**Goal**: Fix existing broken features, ship SDK, get to 10% mining.
138+
- [ ] Fix SpendingPolicy co-signer validation (GAP-2)
139+
- [ ] Pure Python SDK without CLI dependency (AT-1)
140+
- [ ] Publish SDK to PyPI (AT-3)
141+
- [ ] Publish MCP server to npm (AT-4)
142+
- [ ] Fix Docker image build (AT-5)
143+
- [ ] Mine to 10% (100M BAUD)
144+
- [ ] Node stability (auto-restart)
145+
146+
### Phase 2: Agent Economy
147+
**Goal**: Enable autonomous agent-to-agent commerce.
148+
- [ ] Add pricing to AgentMeta (GAP-8)
149+
- [ ] Agent-to-agent contracts/agreements (GAP-6)
150+
- [ ] Recurring payments/subscriptions (GAP-5)
151+
- [ ] Sub-accounts and budgeting (GAP-1)
152+
- [ ] Reputation system (GAP-3)
153+
- [ ] Transaction batching (GAP-11)
154+
- [ ] Example: Two agents autonomously negotiating and paying for services
155+
156+
### Phase 3: Programmability
157+
**Goal**: Enable custom logic for AGI agents.
158+
- [ ] Smart contract / scripting engine (GAP-4)
159+
- [ ] Dispute resolution with arbitration (GAP-9)
160+
- [ ] Conditional payments (if/then logic)
161+
- [ ] Oracle integration for external data
162+
- [ ] Example: Agent deploys custom escrow logic
163+
164+
### Phase 4: Decentralization & Scale
165+
**Goal**: Full decentralized network for SAI-level autonomy.
166+
- [ ] Transition from solo mining to multi-validator staking
167+
- [ ] Governance/voting (GAP-7)
168+
- [ ] DeFi primitives — AMM, lending (GAP-10)
169+
- [ ] Cross-chain bridges
170+
- [ ] Sharding or L2 for scalability
171+
- [ ] Example: Network of 1000+ AGI nodes, self-governing
172+
173+
### Phase 5: SAI-Ready Infrastructure
174+
**Goal**: Infrastructure for superintelligent autonomous systems.
175+
- [ ] Economic self-tuning (AI-adjusted fees, block rewards)
176+
- [ ] Autonomous protocol upgrades via governance
177+
- [ ] Zero-knowledge proofs for privacy
178+
- [ ] Multi-chain orchestration
179+
- [ ] Self-healing network (auto-rebalance, auto-scale)
180+
- [ ] Formal verification of core protocol
181+
182+
---
183+
184+
## Infrastructure & DevOps
185+
186+
### GitHub Actions Status
187+
| Workflow | Status | Issue | Fix |
188+
|----------|--------|-------|-----|
189+
| CI | ✅ Pass |||
190+
| Deploy to GitHub Pages | ✅ Pass |||
191+
| Publish Docker Image | ✅ Pass | Fixed: rust:1.83 → 1.85-slim (edition 2024) | Run 23526874595 |
192+
| Publish MCP Server to npm | ❌ Fail | `ENEEDAUTH` — no `NPM_TOKEN` secret configured | Create npm account → generate token → add as repo secret `NPM_TOKEN` |
193+
| Publish Python SDK to PyPI | ✅ Pass | Fixed: switched from OIDC to API token auth | `baud-sdk` v0.2.0 published, run 23526875616 |
194+
195+
### Node Operations
196+
- [ ] Set up Windows Task Scheduler or NSSM for auto-restart on crash/reboot
197+
- [ ] Monitor mining progress (currently ~8.2%)
198+
- [ ] Backup node_data regularly
199+
200+
### Backups
201+
- Primary: `C:\Users\nickk\Desktop\Baud-Backup\`
202+
- `important-files/` — genesis.json, secret key, wallet.json
203+
- `node-data/` — sled DB snapshot
204+
- Wallet: `wallet.json` (AES-256-GCM encrypted, password: ask user)
205+
206+
---
207+
208+
## SDK & Tooling
209+
210+
### Python SDK (`pip install baud-sdk`)
211+
**Location**: `sdk/python/`
212+
**Current State**: ✅ v0.2.0 published on PyPI — pure Python signing (PyNaCl + blake3)
213+
**Dependencies**: PyNaCl, blake3 (optional for pure-Python signing)
214+
215+
**Completed**:
216+
- [x] Pure Python Ed25519 signing (NativeKeyPair class, PyNaCl + blake3)
217+
- [x] Published to PyPI as `baud-sdk` v0.2.0
218+
- [ ] Add examples: simple transfer, agent registration, escrow workflow
219+
- [ ] Add async support (aiohttp)
220+
- [ ] Add WebSocket support for real-time block subscriptions
221+
222+
### MCP Server (`npx baud-mcp-server`)
223+
**Location**: `mcp-server/`
224+
**Current State**: Feature-complete, not published to npm
225+
**Needed**: npm account + token for publishing
226+
227+
### CLI (`baud.exe`)
228+
**Location**: `crates/baud-cli/`
229+
**Current State**: Working — keygen, transfer, escrow, wallet management
230+
**Commands**: keygen, address, transfer, escrow-create/release/refund, agent-register, genesis, hash-data, submit, balance, status, wallet-create/import/list/export, dashboard
231+
232+
---
233+
234+
## Security & Hardening
235+
236+
- [ ] Fix SpendingPolicy co-signer validation (GAP-2) — SECURITY BUG
237+
- [ ] Add rate limiting to API endpoints
238+
- [ ] Add request size limits
239+
- [ ] Audit Ed25519 signature verification edge cases
240+
- [ ] Add TLS support for node API
241+
- [ ] Implement nonce gap protection
242+
243+
---
244+
245+
## Marketing & Launch
246+
247+
### Pre-Launch Checklist
248+
- [ ] Mine to 10% (~100M BAUD)
249+
- [ ] SDK published to PyPI
250+
- [ ] MCP server published to npm
251+
- [ ] Docker image on GHCR
252+
- [ ] Documentation site live (GitHub Pages ✅)
253+
- [ ] Example agent demo (video/GIF)
254+
- [ ] README rewrite for launch
255+
- [ ] Social media announcement plan
256+
257+
### Target Audience
258+
1. AI agent developers (LangChain, AutoGPT, CrewAI users)
259+
2. MCP server users (Claude, VS Code Copilot)
260+
3. Crypto/Web3 developers interested in AI
261+
4. AGI/SAI researchers
262+
263+
---
264+
265+
## Completed Tasks Archive
266+
267+
### Session 2026-03-24
268+
- [x] Reached 10% mining milestone!
269+
- [x] Fixed Docker publish workflow (rust:1.83 → 1.85-slim) — GREEN
270+
- [x] Fixed PyPI publish workflow (OIDC → API token auth) — GREEN, baud-sdk v0.2.0 published
271+
- [x] Implemented 12 new TxPayload variants: CoSignedTransfer, UpdateAgentPricing, RateAgent, CreateRecurringPayment, CancelRecurringPayment, CreateServiceAgreement, AcceptServiceAgreement, CompleteServiceAgreement, DisputeServiceAgreement, CreateProposal, CastVote, SetSpendingPolicy
272+
- [x] Added ExtendedState with separate sled persistence (backward compatible)
273+
- [x] Added 6 new types: AgentPricing, Reputation, RecurringPayment, ServiceAgreement, Proposal, Vote
274+
- [x] Added 11 new error variants for feature validation
275+
- [x] Added validation + application logic for all 12 new tx types in state.rs
276+
- [x] Added 6 new integration tests (46 total tests, all passing)
277+
- [x] Updated API routes with all new DTO variants + 4 new query endpoints
278+
- [x] Created demo agent script (examples/demo_agent.py)
279+
- [x] Closed 7 of 11 AGI/SAI gaps (GAP-2,3,5,6,7,8 + partial GAP-9)
280+
- [x] Updated TASK-TRACKER.md
281+
282+
### Session 2026-03-23
283+
- [x] Explained wallet.json encryption (AES-256-GCM, not plaintext password)
284+
- [x] Explained existing vs new key in wallet (use mining-key, ignore genesis-validator)
285+
- [x] Fixed Docker build — committed Cargo.lock (was in .gitignore)
286+
- [x] Added setup docs to npm and PyPI workflow files
287+
- [x] Pushed CI fixes (commit f230e9c)
288+
- [x] Updated TASK-TRACKER.md with comprehensive AGI/SAI roadmap
289+
290+
### Session 2026-03-23 (earlier)
291+
- [x] Restarted Windows node (block ~161,541, 8.07%)
292+
- [x] AGI/SAI gap analysis (11 critical gaps identified)
293+
- [x] Created wallet.json (2 keys: genesis-validator + mining-key)
294+
- [x] Built baud-cli binary (baud.exe)
295+
- [x] Answered all 11 user questions
296+
297+
### Session 2026-03-22
298+
- [x] Dashboard responsive CSS fixes (clamp fonts, mobile backdrop, table wraps)
299+
- [x] Committed 0603e5f, pushed to origin
300+
301+
### Session 2026-03-18
302+
- [x] FAQ page (docs/faq.html)
303+
- [x] Download page (docs/download.html)
304+
- [x] Install scripts (docs/install.ps1, docs/install.sh)
305+
- [x] Nav updates in index.html
306+
- [x] Committed d635559
307+
308+
### Session 2026-03-17
309+
- [x] baud.ico regenerated with pycairo
310+
- [x] Mempool blink fix
311+
- [x] DM Sans + Space Grotesk fonts
312+
- [x] Connecting-on-refresh fix
313+
- [x] Help page rewrite
314+
- [x] GitHub Release v0.1.0
315+
- [x] BAUD_COMPLETE_REFERENCE.md (34 sections)
316+
- [x] Backup folders on Desktop
317+
318+
### Earlier Sessions
319+
- [x] Dashboard UI overhaul
320+
- [x] Start Menu shortcuts
321+
- [x] Device Guard resolution
322+
- [x] All core crate development (8 crates)
323+
- [x] 40 tests passing
324+
- [x] BFT consensus engine
325+
- [x] Wallet encryption (AES-256-GCM + Argon2id)

0 commit comments

Comments
 (0)