See docs/DISCLAIMER_SNIPPET.md
Hosting Instructions
Current release publishing (1.4.0 onward)
The public workspace is https://montrealai.github.io/AGI-Alpha-Agent-v0/. In repository settings choose
Pages β Build and deployment β Source β GitHub Actions. Do not configure another workflow template.
Pushes to main run the complete acceptance, packaging, Pages deployment and public browser validation.
For a manual run, choose Actions β π Docs β Run workflow β main. The Docs entry point now reuses that
same guarded workflow, and publishes an unpublished version only after every required check passes.
Existing releases remain unchanged. No gh-pages branch or extra admin token is required once Pages is
enabled. See the workspace publishing and recovery guide.
The build and branch-publishing instructions below are retained for historical reference and personal
forks. Commands using mkdocs gh-deploy require branch-based Pages settings; they do not update this
repository's Actions-based public deployment.
This project uses MkDocs to build the static documentation. The generated site is hosted at https://montrealai.github.io/AGI-Alpha-Agent-v0/alpha_agi_insight_v1/.
- Token Address:
0xa61a3b3a130a9c20768eebf97e21515a6046a1fa - Token Decimals:
18(ERCβ20 standard; 1 token = 1e18 base units)
Quick Deployment
deploy_insight_demo.sh downloads the Insight browser assets, installs the
Node dependencies and then invokes publish_insight_pages.sh. The latter runs
edge_human_knowledge_pages_sprint.sh to refresh the MkDocs site and pushes the result to the
gh-pages branch. When the script completes it prints the GitHub Pages URL.
For an endβtoβend build with verification use deploy_insight_full.sh. This
wrapper script runs the environment preflight checks, builds the PWA, verifies
offline functionality and then publishes the docs in one step.
- Fetch the assets:
npm --prefix alpha_factory_v1/demos/alpha_agi_insight_v1/insight_browser_v1 run fetch-assets - Run the build script with
./scripts/publish_insight_pages.sh(or executedeploy_insight_demo.shto perform both steps automatically). - Verify the page at
https://<org>.github.io/AGI-Alpha-Agent-v0/alpha_agi_insight_v1/.
The fetch-assets command downloads the Pyodide runtime and GPTβ2 weights from
official mirrors. Override PYODIDE_BASE_URL or HF_GPT2_BASE_URL to change
the sources. IPFS is no longer used for these assets, so failures should be
diagnosed by checking your network connection or mirror URLs. IPFS_GATEWAY
only affects loading pinned Insight demo runs.
Prerequisites
- Python 3.11β3.13
mkdocs,mkdocs-materialandplaywright- Node.js 22.17.1 (optional, only for building the React dashboard)
- Run
node alpha_factory_v1/demos/alpha_agi_insight_v1/insight_browser_v1/build/version_check.jsto verify Node β₯22.17 before building unzipto extractinsight_browser.zip
Install MkDocs:
pip install mkdocs mkdocs-material playwright
Before building the demo, ensure optional Python packages are available:
python scripts/check_python_deps.py
python check_env.py --auto-install
Build the Insight Demo
The static browser bundle lives under
alpha_factory_v1/demos/alpha_agi_insight_v1/insight_browser_v1. Install the
Node dependencies then create the distribution archive:
cd alpha_factory_v1/demos/alpha_agi_insight_v1/insight_browser_v1
npm install
npm run build:dist
npm run build:dist produces insight_browser.zip. Extract the archive and copy
its contents into docs/alpha_agi_insight_v1 so MkDocs can include the files:
unzip -o insight_browser.zip -d ../../../docs/alpha_agi_insight_v1
Generate tree.json from the latest run so the visualization reflects the
current meta-agent state. scripts/edge_human_knowledge_pages_sprint.sh automatically
refreshes this file when lineage/run.jsonl is present, so the command below is
only needed when running it manually:
python alpha_factory_v1/demos/alpha_agi_insight_v1/tools/export_tree.py \
lineage/run.jsonl -o docs/alpha_agi_insight_v1/tree.json
The helper script scripts/edge_human_knowledge_pages_sprint.sh automates the steps above.
Run it from the repository root to build the bundle, refresh
docs/alpha_agi_insight_v1 and generate the site.
Whenever demo assets change, rerun python scripts/build_service_worker.py to
update docs/assets/service-worker.js. Otherwise visitors may see outdated
files due to the service worker cache on GitHub Pages. If the checksum values in
scripts/fetch_assets.py are updated, execute python
scripts/generate_build_manifest.py so build_assets.json reflects the new
hashes. When upgrading the Pyodide runtime run
python scripts/update_pyodide.py <version> to refresh the checksums and
regenerate the manifest automatically. Then download the updated assets and
verify them:
- run: npm --prefix alpha_factory_v1/demos/alpha_agi_insight_v1/insight_browser_v1 run fetch-assets
- run: python scripts/fetch_assets.py --verify-only
Building the Site
Run the following from the repository root:
mkdocs build
This generates the HTML under site/. Verify that the Insight demo was copied
correctly:
ls site/alpha_agi_insight_v1
Ensure lib/workbox-sw.js resides under site/alpha_agi_insight_v1/lib/ because the service worker expects the file relative to index.html.
Serve the site locally to test it:
python -m http.server --directory site 8000
Then browse to http://localhost:8000/alpha_agi_insight_v1/. Direct file://
access is unsupported due to the service worker; use a minimal HTTP server or
GitHub Pages.
The "π Docs" workflow
The repository owner manually triggers docs.yml, which runs
scripts/edge_human_knowledge_pages_sprint.sh, builds the site and pushes the result to the
gh-pages branch. Open Actions β π Docs, click Run workflow and confirm.
The workflow restores a cache keyed by the Pyodide and GPTβ2 file checksums before
running npm run fetch-assets. Once the assets pass verification the cache is
saved so subsequent runs skip the downloads. Only the repository owner can
dispatch the workflow from the Actions β π Docs page by clicking
Run workflow.
Manual Publish
To trigger a one-off deployment outside of CI run:
./scripts/publish_insight_pages.sh
This wrapper script rebuilds the browser bundle, regenerates the MkDocs site and
runs scripts/generate_gallery_html.py
so docs/index.html includes the latest demos and updates the docs/gallery.html
redirect.
It then uses mkdocs gh-deploy to push the contents of site/ to the gh-pages branch.
Use it when testing changes locally or publishing from a personal fork.
Publishing to GitHub Pages
When triggered, docs.yml pushes the
site/ directory to the gh-pages branch. GitHub Pages serves the result at
https://montrealai.github.io/AGI-Alpha-Agent-v0/alpha_agi_insight_v1/.
Opening https://montrealai.github.io/AGI-Alpha-Agent-v0/ shows a landing page
with quick links. Choose Visual Demo Gallery to open the full showcase, or
select Launch Demo to jump directly to the insight demo.
The standard project disclaimer applies.
Verifying Deployment
Confirm the workflow is enabled under Actions and that
docs.yml specifies
permissions: contents: write. Run the "π Docs" workflow from the GitHub UI to trigger it. The initial run creates the gh-pages branch.
After it finishes, browse to
https://montrealai.github.io/AGI-Alpha-Agent-v0/alpha_agi_insight_v1/ and
check that the insight demo loads.
Run the integrity check to make sure lib/workbox-sw.js matches the hash
embedded in service-worker.js:
python scripts/verify_workbox_hash.py site/alpha_agi_insight_v1
Verify the SRI hash for the Insight bundle:
python scripts/check_insight_sri.py site/alpha_agi_insight_v1
This step catches missing or corrupted assets after deployment.
Capturing Demo Previews
Use scripts/capture_demo_preview.py to generate short recordings for the
documentation. The helper launches a demo inside a virtual display and captures
the screen with ffmpeg.
python scripts/capture_demo_preview.py path/to/demo.sh -o demo.mp4
Supply a .gif output name to automatically convert the clip after recording.
--duration and --size adjust the recording length and virtual display size.