Commit Graph

7 Commits

Author SHA1 Message Date
argenis de la rosa
f7de9cda3a Merge remote-tracking branch 'origin/main' into pr2093-mainmerge 2026-02-28 17:33:17 -05:00
Chummy
3aa1eb1fd5 chore(fmt): normalize rustfmt output to satisfy quality gate 2026-03-01 00:45:18 +08:00
Chummy
d9cdaa0757 fix: resolve post-rebase compile and test stability issues 2026-02-28 21:30:37 +08:00
VirtualHotBar
fae10cd5c4 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/channels/mod.rs
#	src/config/mod.rs
#	src/config/schema.rs
2026-02-28 16:12:02 +08:00
Preventnetworkhacking
a2f1f09364 feat(economic): add TaskClassifier for BLS occupation-based task valuation
Phase 2 of ClawWork integration. Implements:
- TaskClassifier with 44 BLS occupations and wage data
- OccupationCategory enum (Tech/Business/Healthcare/Legal)
- Keyword-based classification with confidence scoring
- Hours estimation based on instruction complexity
- Fuzzy matching for occupation lookup

Reference: ClawWork/clawmode_integration/task_classifier.py
2026-02-27 22:26:04 -08:00
Preventnetworkhacking
055e9b7b31 fix: remove trailing whitespace from economic module 2026-02-27 21:42:19 -08:00
Preventnetworkhacking
9798b34f8d feat(economic): add ClawWork economic tracking module
Phase 1 of ZeroClaw Economic Agents (CDV-20):

## New Module: src/economic/

- **tracker.rs** (995 lines): EconomicTracker with balance management,
  token cost tracking, income ledger, and JSONL persistence
- **status.rs** (212 lines): SurvivalStatus enum with 5 states
  (Thriving/Stable/Struggling/Critical/Bankrupt)
- **costs.rs** (369 lines): TokenCostAccumulator for multi-channel
  cost tracking (LLM, search, OCR, etc.)
- **mod.rs** (81 lines): Module exports with comprehensive docs

## Features

- Track agent balance and economic health
- Configurable token pricing (input/output per million)
- Task-level cost isolation with start_task/end_task
- Work income with quality threshold (0.6 default)
- Persistent ledger (balance.jsonl, token_costs.jsonl)
- Daily cost aggregation

## Next Steps

- Phase 2: Task classifier (44 occupations)
- Phase 3: Work evaluator (LLM scoring)
- Phase 4: Economic tools (decide_activity, submit_work, etc.)

Relates to: CDV-20, Discussion #2132
2026-02-27 15:54:47 -08:00