Complete State Hub bootstrap (POLYCODE-WP-0001); add POLYCODE-WP-0002
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s

This commit is contained in:
tegwick 2026-07-08 15:07:22 +02:00
parent c0fc597f37
commit 395d0fddd0
4 changed files with 46 additions and 18 deletions

View file

@ -1,19 +1,15 @@
## Stack ## Stack
<!-- TODO: Fill in language, frameworks, and key dependencies --> - **Language:** Python 3.11+ (simulator scaffold planned)
- **Language:** - **Key deps:** stdlib-first; pytest when `simulator.py` lands
- **Key deps:**
## Dev Commands ## Dev Commands
```bash ```bash
# TODO: Fill in the standard commands for this repo # Planned v0.1 workflow (see README.md)
python3 simulator.py
python3 experiments.py
# Install dependencies # After workplan edits
statehub fix-consistency
# Run tests
# Lint / type check
# Build / package (if applicable)
``` ```

View file

@ -1,7 +1,6 @@
# SCOPE # SCOPE
> This file was generated by `statehub register`. Refine it as the repository > Lightweight boundary for agents and contributors.
> boundaries become clearer.
## One-liner ## One-liner
@ -27,7 +26,8 @@ Polycode is a simulation laboratory for mechanism design: a way to test governan
## Current State ## Current State
- {"project_description": "PolyCode Simulator is a Python-based agent simulation modeling investor and voter strategies to study governance/allocation dynamics, with parameter sweeps and KPI aggregation.", "intent_markdown": "# Intent\n\n## Purpose\nPolyCode Simulator (v0.1) is a Python simulation engine that models interactions between investor and voter agents under pluggable strategies, used to explore governance and capital-allocation dynamics and their emergent outcomes (KPIs) across parameter sweeps.\n\n## In Scope\n- Core simulation engine (`simulator.py`) running single demo simulations\n- Pluggable investor/voter strategy implementations (`strategies.py`)\n- Parameter sweep / grid-search experiments with KPI aggregation (`experiments.py`)\n- Baseline parameter configuration (`params_default.json`)\n- Protocol specification documentation (`spec.md`)\n- Run outputs written to `./runs/`\n\n## Out of Scope\n- Production deployment or live trading/voting integration\n- UI/dashboard for visualizing results\n- Multi-repo orchestration or external service integration\n\n## Current State\nEarly-stage (v0.1) simulator with a minimal CLI-driven workflow; single initial commit plus a CI smoke workflow.\n", "domain_slug": null, "topic_slug": "polycode-sim", "topic_title": "PolyCode Simulator", "repo_slug": "polycode-sim", "workplan_prefix": "POLYCODE-WP", "in_scope": ["Core simulation engine for a single demo run", "Pluggable investor/voter strategy modules", "Parameter sweeps and KPI aggregation via experiments.py", "Baseline parameter configuration management", "Protocol specification documentation"], "out_of_scope": ["Production/live deployment integration", "Visualization dashboard or UI", "Cross-repo orchestration"], "project_description": "PolyCode Simulator is a Python-based agent simulation modeling investor and voter strategies to study governance/allocation dynamics, with parameter sweeps and KPI aggregation.", "repo_slug": "polycode-sim", "topic_slug": "polycode-sim", "topic_title": "PolyCode Simulator", "workplan_prefix": "POLYCODE-WP"} - Planning/spec repo: README and pitch materials exist; v0.1 Python simulator modules not yet committed.
- Bootstrap State Hub integration (POLYCODE-WP-0001) finished; next: simulator scaffold (POLYCODE-WP-0002).
## Getting Oriented ## Getting Oriented

View file

@ -4,7 +4,7 @@ type: workplan
title: "Bootstrap State Hub integration" title: "Bootstrap State Hub integration"
domain: infotech domain: infotech
repo: polycode-sim repo: polycode-sim
status: ready status: finished
owner: codex owner: codex
topic_slug: custodian topic_slug: custodian
created: "2026-07-08" created: "2026-07-08"
@ -20,11 +20,13 @@ PolyCode Simulator is a Python-based agent simulation modeling investor and vote
```task ```task
id: POLYCODE-WP-0001-T01 id: POLYCODE-WP-0001-T01
status: todo status: done
priority: high priority: high
state_hub_task_id: "d0f6a1cd-641f-4a63-890c-99bc5c12cc4b" state_hub_task_id: "d0f6a1cd-641f-4a63-890c-99bc5c12cc4b"
``` ```
Result 2026-07-08: INTENT.md and SCOPE.md reviewed; README/spec aligned with planned v0.1 layout.
Review `INTENT.md`, `SCOPE.md`, `AGENTS.md`, and `.custodian-brief.md`. Review `INTENT.md`, `SCOPE.md`, `AGENTS.md`, and `.custodian-brief.md`.
Replace generated placeholders with repo-specific facts where needed. Replace generated placeholders with repo-specific facts where needed.
@ -32,11 +34,13 @@ Replace generated placeholders with repo-specific facts where needed.
```task ```task
id: POLYCODE-WP-0001-T02 id: POLYCODE-WP-0001-T02
status: todo status: done
priority: high priority: high
state_hub_task_id: "6ad22e61-ad4d-4643-ad49-000e41e4959b" state_hub_task_id: "6ad22e61-ad4d-4643-ad49-000e41e4959b"
``` ```
Result 2026-07-08: Documented planned Python workflow in stack-and-commands.md (code scaffold tracked in WP-0002).
Identify the repo's install, test, lint, build, and run commands. Add or refine Identify the repo's install, test, lint, build, and run commands. Add or refine
those commands in the agent instructions so future coding sessions can verify those commands in the agent instructions so future coding sessions can verify
changes confidently. changes confidently.
@ -45,11 +49,13 @@ changes confidently.
```task ```task
id: POLYCODE-WP-0001-T03 id: POLYCODE-WP-0001-T03
status: todo status: done
priority: medium priority: medium
state_hub_task_id: "d0d8fea2-28e8-4766-8295-9118a8378c2c" state_hub_task_id: "d0d8fea2-28e8-4766-8295-9118a8378c2c"
``` ```
Result 2026-07-08: Created POLYCODE-WP-0002.
Create the first implementation workplan for the repository's most important Create the first implementation workplan for the repository's most important
next change. After workplan file updates, run the sync locally from this repo next change. After workplan file updates, run the sync locally from this repo
checkout: checkout:

View file

@ -0,0 +1,26 @@
---
id: POLYCODE-WP-0002
type: workplan
title: "PolyCode simulator v0.1 scaffold"
domain: infotech
repo: polycode-sim
status: ready
owner: codex
topic_slug: custodian
created: "2026-07-08"
updated: "2026-07-08"
---
# PolyCode simulator v0.1 scaffold
Implement the documented v0.1 simulation engine (`simulator.py`, `strategies.py`, `experiments.py`, `params_default.json`) described in README and specs.
## Simulator scaffold
```task
id: POLYCODE-WP-0002-T01
status: todo
priority: high
```
Add minimal runnable simulator with default strategies, params file, `./runs/` output, and a smoke test for one demo run.