-
Notifications
You must be signed in to change notification settings - Fork 0
Development
Guide home | Architecture | Contributing
From a checkout, create and activate a virtual environment as described in Getting started. Then install the development packages:
python -m pip install -e ./engine -e './shell[dev]' -e './agent[dev]'
python -m playwright install chromium
python -m pytest -q --color=noRead the actual test summary. Collection counts do not establish a passing run. Some server tests bind a loopback port and need an environment that permits it.
Use the testing guide for unit, BDD, integration, and validation commands. Unit coverage must reach 80% of executable lines in each Python package. BDD and integration coverage do not count toward that minimum. The guide includes success and failure scenarios and the TDD procedure.
python3 scripts/refresh.py --no-indexThis command rebuilds generated files and runs the configured checks.
Use --fast only when you intend to skip the suites.
--no-package skips rebuilding the installable forms.
The stages are docs, inventory, counts, evidence, package, index, one pytest run per package, and rules. --fast drops the three pytest stages.
Read every stage result before claiming that the refresh passed.
Edit local skills in shell/skills/ and hosted skills in openai-skills/.
Do not edit generated plugin copies or runtime documents directly.
After editing anything under shell/skills/, .claude/commands/, or .claude/agents/, run python3 scripts/package.py and commit the regenerated plugins/ copies with the change.
The validation suite compares each plugin copy with its source byte for byte, and CI fails when they differ.
python -m pytest shell/tests/test_screenshots.py shell/tests/test_documented_counts.py shell/tests/test_documented_evidence.py shell/tests/test_wiki.py -q
python3 scripts/evidence.py check
git diff --checkThe screenshot checks catch broken references and orphaned images.
The count checks compare documented inventories with the current source.
The evidence check preserves the relationship between historical figures and their recorded origin.
The wiki checks resolve every relative link and anchor under docs/wiki/ and compare the preserved reference pages with docs/reference-preservation.json.
The supplied examples/dashboard directory contains synthetic artifacts for the full visual tour.
The interactive walkthrough builds a smaller set from examples/chain-synth.json.
Install the browser capture tools in the active environment:
python -m pip install playwright
python -m playwright install chromiumRun the existing capture script:
python scripts/screenshots.py --artifacts examples/dashboard --underlying SYNTH --expiry 2026-10-08 --note "Synthetic teaching inputs. No observed market data."The script starts a local dashboard, captures its DOM elements, and writes the gallery and README images. It does not fetch market data. Check the resulting images at full size before committing them. Record the capture date, code revision, and input hashes in screenshot provenance.
Some captions reflect the supplied scenario, such as its contract count. If a new capture changes filenames, remove obsolete captures only after updating their references.
When shortening the README or a guide, move detailed content into linked wiki pages before removing it from the overview. Preserve diagrams, examples, measurements, explanations, and their source references. Label superseded instructions as historical and link the current procedure. Retain useful badges, with values that match current evidence.
The editable guide pages live in docs/wiki/.
They use relative Markdown links so the guide also works in a repository checkout.
The sidebar and footer live beside the pages.
The GitHub wiki is a separate Git repository. Before its first Git publication, create its initial page through GitHub's web interface. See GitHub's wiki instructions.
When exporting these pages to that repository:
- Convert sibling guide links to wiki page URLs without the
.mdsuffix. - Convert repository-document links to the corresponding
blob/mainURLs. - Convert image links to the corresponding
raw.githubusercontent.comURLs. - Include
_Sidebar.mdand_Footer.md. - Check the rendered home page, navigation, code blocks, and images.
Keep the repository pages as the editable source.
Record the published revision and preserve unrelated wiki pages during updates.
The wiki repository is git@github.com:Iman/agent-driven-options-desk-and-skills.wiki.git.
Clone it beside the checkout, replace the exported pages, review git diff, and commit with the source revision in the message.
Next: Documentation map.
Guide home · Examples · Troubleshooting · Repository
Research software. Source available for noncommercial use. Read the license and disclaimer.