This is the audit-ready DynaMix-HSPI project. It includes:
- DynaMix core hierarchy code.
- DynaMix Trace2Skill bridge code.
- Only the Trace2Skill runtime files actually reused by this project.
It does not include Trace2Skill's patch-merge implementation, released skills, upstream README, or unused experiment scripts.
Trace2Skill SpreadsheetBench runner
-> ReAct trajectory logs
-> DynaMix trajectory normalization
-> Qwen3-Embedding-8B embeddings
-> weighted PCA/GMM-BIC hierarchy
-> cluster-level Trace2Skill-style ExperienceCards
-> skill folder export
-> top-k skillbank selection
-> Trace2Skill skill-preloaded heldout evaluation
src/dynamix_core/ DynaMix hierarchy core
src/dynamix_trace2skill/ Trace2Skill bridge, prompt adaptation, skillbank selection
spreadsheet_agent/ pruned Trace2Skill spreadsheet agent runtime
src/react_agent/ pruned Trace2Skill ReAct/LLM/tool runtime
analysis/ Trace2Skill prompt templates used by DynaMix analyst
scripts/ DynaMix run/build/smoke scripts
configs/ DynaMix configs
tests/ DynaMix contract tests
See docs/dynamix/PRUNED_TRACE2SKILL_REUSE_MANIFEST.md.
cd DynaMix_Trace2Skill_audit_ready_v1
python -m venv .venv
source .venv/bin/activate
pip install -e .
pip install openai numpy scikit-learn tqdm openpyxl pandas transformers pytestpytest -q
python scripts/smoke_correctness_synthetic.py \
--work-dir /tmp/dynamix_correctness_smokeIf you have data/spreadsheetbench_verified/spreadsheetbench_verified_400:
python scripts/smoke_real_data_trace2skill_dynamix.py \
--data-path /path/to/spreadsheetbench_verified_400 \
--limit 4 \
--work-dir /tmp/dynamix_realdata_smokepython scripts/run_dynamix_trace2skill_experiment.py \
--data-path /path/to/spreadsheetbench_verified_400 \
--run-dir runs/qwen_smoke_001 \
--train-start 0 \
--train-end 5 \
--heldout-start 200 \
--heldout-end 201 \
--workers 1 \
--model Qwen3.5-9B \
--openai-base-url http://127.0.0.1:18002/v1 \
--openai-api-key EMPTY \
--embedding-base-url http://127.0.0.1:18000/v1 \
--embedding-model Qwen3-Embedding-8B \
--embedding-tokenizer Qwen3-Embedding-8B \
--max-turns 100 \
--thinking true \
--skillbank-top-k 3DynaMix may export multiple skill folders. At inference time, for each task:
- Embed task query with Qwen3-Embedding-8B.
- Embed all
SKILL.mdfiles in the skillbank. - Select top-k skills by cosine similarity, default top-k = 3.
- Preload the selected
SKILL.mdcontent into Trace2Skill's normal skill-preloaded prompt. - Keep references/scripts in their fixed skill directories; no per-query copying.
This is concurrency-safe for local multi-worker runs because each task only reads the immutable skillbank.
Current code assumes local path visibility. If a future remote/Docker runner is used, stage or mount the whole skillbank root once before the run, then rewrite the skillbank index paths to that visible root. Do not copy selected folders per query.
This package includes a tiny synthetic SpreadsheetBench-compatible dataset under:
data/spreadsheetbench_verified/spreadsheetbench_verified_400
It is only for smoke tests and layout checks. It is not the real benchmark.
For detailed Codex instructions, see CODEX_NEXT_STEPS.md.