In this section
- Decision automation · stars / .github/ISSUE_TEMPLATE/decision.yml lines 1–144
- Coherence Workflow automation · stars / .github/workflows/coherence.yml lines 1–45
- Decisions Workflow automation · stars / .github/workflows/decisions.yml lines 1–62
- Modular Star Workflow automation · stars / .github/workflows/modular-star.yml lines 1–120
- Refresh Workflow automation · stars / .github/workflows/refresh.yml lines 1–89
- Policy Workflow automation · stones / .github/workflows/policy.yml lines 1–16
- Codex Cartridges Workflow automation · testcode / .github/workflows/codex-cartridges.yml lines 1–67
- Composition Guard Workflow automation · testcode / .github/workflows/composition-guard.yml lines 1–77
- Controls Layout Workflow automation · testcode / .github/workflows/controls-layout.yml lines 1–51
Decision
A configuration file in Stars covering the Renewable Energy Planning Database (REPD) register, solar, substations and cables.
automationstars / .github/ISSUE_TEMPLATE/decision.yml · lines 1–144 of 144 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain terms in the code: the REPD register, solar, substations, cables, 400kV, 275kV.
- Inputs & outputs
- Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV.
- What it achieves
- Record a decision, or an open question, against a block, constant or function family.
- Why it matters
- No other file in the estate was found to import it.
- Application
- stars · .github/ISSUE_TEMPLATE · configuration
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Decision
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- stars@030ebc202d35959fecd162327892f671d1d9a0cc .github/ISSUE_TEMPLATE/decision.yml:1-144 · blob 0de9de6e987af01d94a1e1927a26982b35515336 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
name: Decision
description: Record a decision, or an open question, against a block, constant or function family. The workflow files it as decisions/dNNN.json and closes this issue with a link.
title: "Decision: "
labels: ["decision"]
body:
- type: markdown
attributes:
value: |
One record, one question, one key. Pick the key from the list, say what was decided and why. The workflow gives it the next permanent number, commits it and closes this issue with a link to the record. See `decisions/README.md`.
- type: dropdown
id: record
attributes:
label: Record
description: A decision is permission; an open question is filed for later.
options:
- A decision (settles the question)
- An open question (not decided yet)
validations:
required: true
- type: dropdown
id: subject_type
attributes:
label: Subject type
options:
- Constant (blocks 1 to 12)
- Block (a named part of the periodic table)
- Function family (a permanent family number)
- Pair of blocks
validations:
required: true
- type: dropdown
id: subject_key
attributes:
label: Subject key
description: The key the decision is about. Constants first, then the named blocks. Families and pairs go in the box below.
options:
- At · Allowed technologies
- Ek · Earth km
- Hr · Hit radius edge px
- Hi · Hit radius vertex px
- L · Limit
- Mr · Max resources
- Mt · Max tries
- Ri · Repd ids
- Rp · Repd page
- Sm · Solar min exclusive
- S · Statuses
- T · Technologies
- Gc · Distance and bearing
- Ga · Area and perimeter
- Gs · Circles and shapes on the map
- Gg · GeoJSON helpers
- Vg · Geodesy (v9 atlas copy)
- Vn · Nearest substation search
- Nt · Grid network topology
- Ed · Electrical distance
- Re · Line and transformer ratings
- Ce · Cable corridor estimate
- Pf · Published fault level
- El · Electrification demand
- Fc · Firm capacity
- Dd · Diversified demand
- Cc · Connection capacity
- Ro · Route obstacles
- Ie · Interconnector economics
- Po · Power factor
- Vd · Voltage drop
- Sp · streaming-parquet-bridge
- Ug · uk-gazetteer-flyto
- Ss · sld-sandbox
- Si · substation-intelligence
- A · Airports
- D · Datacentres
- G1 · Grid 132 kV
- G2 · Grid 220 kV
- Gr · Grid 275 kV
- G4 · Grid 400 kV
- G6 · Grid 66 kV
- Gri · Grid substations
- Io · Industrial offtakers
- Pp · Power plants
- R · Railways
- Dt · The MAP button (deep-link contract)
- Ps · Place search and arrival
- Ra · REPD Grid Atlas core engine (v3 to v8)
- Cg · Cable trench geometry
- Sb · Solar and BESS single-line sandbox
- St · Solar electrical topology (text engine)
- Pn · Pipeline News app
- Gp · Grid proximity panel
- Wf · Wider fleet panel
- Ln · Live news discovery
- Tp · Teleprinter controls
- Em · Site menu bar
- Mb · Atlas menu bar
- Sa · Satellite imagery
- Pr · Proofs and checks
- Gn · Genome and spiders
- Dc · Data centres and offtakers data tools
- Not in the list (type it below)
validations:
required: true
- type: input
id: subject_key_other
attributes:
label: Subject key (if not in the list)
description: "A family number (511 or family:511), a block symbol not listed, or a pair (Ek+Gc)."
placeholder: "family:511 or Ek+Gc"
- type: input
id: question
attributes:
label: Question
description: The question being decided, one sentence.
placeholder: Which earth radius does distance use?
validations:
required: true
- type: textarea
id: decision
attributes:
label: Decision
description: What was decided, one or two sentences. Leave empty for an open question.
- type: textarea
id: rationale
attributes:
label: Rationale
description: Why, in plain words. The experience behind the decision is the point of the record.
- type: textarea
id: evidence
attributes:
label: Evidence
description: Links, one per line. Evidence packs, files, test runs, earlier issues.
placeholder: https://github.com/Ventusltd/star-maker/blob/main/logic/EARTH_KM.json
- type: textarea
id: agents_may
attributes:
label: What agents may now do
description: One sentence per line. What an agent may do on this key without asking, once decided.
placeholder: Replace any bare earth radius with an import from geo-core.js.
- type: input
id: supersedes
attributes:
label: Supersedes
description: The id of an earlier record this one replaces, if any (for example d002).
placeholder: d002Coherence Workflow
A GitHub Actions workflow in Stars. Runs by hand.
automationstars / .github/workflows/coherence.yml · lines 1–45 of 45 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Inputs & outputs
- Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Coherence intelligent resume”; runs Coherence (`modular-star/coherence.mjs`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- stars · .github/workflows · workflow
- Uses
- Coherence (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Coherence intelligent resume
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- stars@030ebc202d35959fecd162327892f671d1d9a0cc .github/workflows/coherence.yml:1-45 · blob 830dd00eac4a21220ef0928301eddad194e99f8d · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Coherence intelligent resume
# The lab's memory: one page that says what ran, what exists, what the graphs say and what is waiting, so any
# agent or person resumes from the same place. A one-off run, started by hand when a resume page is wanted;
# at most 20 minutes. It is deliberately not scheduled and not chained, so it adds no recurring logic.
on:
workflow_dispatch:
permissions:
contents: write
actions: read
concurrency:
group: coherence
cancel-in-progress: false
jobs:
resume:
runs-on: ubuntu-latest
timeout-minutes: 20
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
- name: Gather the resume page
run: node modular-star/coherence.mjs
- name: Save
run: |
git add resume
if git diff --cached --quiet; then echo "No change."; exit 0; fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -qm "Coherence resume $(date -u +%Y-%m-%dT%H:%MZ)"
for i in 1 2 3; do git pull --rebase -q -X theirs && git push -q && exit 0; git rebase --abort 2>/dev/null || true; sleep 7; done
exit 1
- name: Summary
if: always()
run: |
[ -f resume/RESUME.md ] && head -n 30 resume/RESUME.md >> "$GITHUB_STEP_SUMMARY" || echo "No resume page produced." >> "$GITHUB_STEP_SUMMARY"Decisions Workflow
A GitHub Actions workflow in Stars using data from the ventus-grid-engine repository.
automationstars / .github/workflows/decisions.yml · lines 1–62 of 62 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Inputs & outputs
- Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs Decision Record (`modular-star/decision-record.mjs`), Decisions (`modular-star/decisions.mjs`) and Check Graph (`tools/check-graph.mjs`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- stars · .github/workflows · workflow
- Uses
- Decision Record (workflow run), Decisions (workflow run), Check Graph (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Decisions
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- stars@030ebc202d35959fecd162327892f671d1d9a0cc .github/workflows/decisions.yml:1-62 · blob f70601d38510220c728daf4d986ae954ff05d9bc · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Decisions
# Turns an issue labelled `decision` (made from the Decision issue form) into decisions/dNNN.json with the next
# permanent number, commits it, and closes the issue with a link to the record. The Modular star then draws the
# record on the Decisions map at its next run.
on:
issues:
types: [opened, labeled]
permissions:
contents: write
issues: write
concurrency:
group: decisions
cancel-in-progress: false
jobs:
record:
if: contains(github.event.issue.labels.*.name, 'decision') && github.event.issue.state == 'open'
runs-on: ubuntu-latest
timeout-minutes: 10
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
- name: Write the record
id: record
env:
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: node modular-star/decision-record.mjs --out .
- name: Check the record reads as a graph
run: node modular-star/decisions.mjs --out . && node tools/check-graph.mjs decisions/graph.json
- name: Commit the record
run: |
git add decisions/*.json
git reset -q decisions/graph.json
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -qm "Decision ${{ steps.record.outputs.id }} (${{ steps.record.outputs.status }}): ${{ steps.record.outputs.key }} (#${{ github.event.issue.number }})"
for i in 1 2 3; do git pull --rebase -q -X theirs && git push -q && exit 0; git rebase --abort 2>/dev/null || true; sleep 7; done
exit 1
- name: Close the issue with a link to the record
run: |
gh issue comment "${{ github.event.issue.number }}" --repo "$GITHUB_REPOSITORY" --body "Recorded as **${{ steps.record.outputs.id }}** (${{ steps.record.outputs.status }}) on \`${{ steps.record.outputs.key }}\`: https://github.com/$GITHUB_REPOSITORY/blob/main/${{ steps.record.outputs.path }}
The Decisions map redraws at the next Modular star run: https://ventusltd.github.io/ventus-grid-engine/?graph=decisions"
gh issue close "${{ github.event.issue.number }}" --repo "$GITHUB_REPOSITORY" --reason completed
- name: Say why, if the record was not written
if: failure()
run: |
gh issue comment "${{ github.event.issue.number }}" --repo "$GITHUB_REPOSITORY" --body "The record was not written. Check the run: https://github.com/$GITHUB_REPOSITORY/actions/runs/${{ github.run_id }} — usually the question or the subject key was empty, or a decision was marked as decided with no decision text. Edit the issue and add the \`decision\` label again to retry."Modular Star Workflow
A GitHub Actions workflow in Stars that builds and publishes the site. Runs on push, on a schedule and by hand.
automationstars / .github/workflows/modular-star.yml · lines 1–120 of 120 · Entry point
- What it does
- It builds and publishes its content. Side effects: starts processes.
- Why it exists in the grid workflow
- README: "The workflow in `.github/workflows/modular-star.yml` runs every hour."
- Inputs & outputs
- Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs Wandering (`modular-star/wandering.mjs`), Build (`modular-star/build.mjs`) and Blocks (`modular-star/blocks.mjs`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- stars · .github/workflows · workflow
- Uses
- Test (workflow run), Wandering (workflow run), Build (workflow run), Blocks (workflow run), Reactions (workflow run), Decisions (workflow run), Check Graph (workflow run), Pages Check (workflow run), and 8 more
- Used by
- none found
- Produces
- none declared
- Defines here
- Modular star
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- stars@030ebc202d35959fecd162327892f671d1d9a0cc .github/workflows/modular-star.yml:1-120 · blob b9816cc34eff3149425f82df138fc7932a4b9f4e · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Modular star
# Scans the current code of every Ventusltd repository into a database where every unique line has a
# permanent number, groups the lines into numbered functions and families, and writes the reports,
# the Spider graph, the prior-work catalogue and the compiled library. Runs on GitHub's servers.
on:
workflow_dispatch:
schedule:
- cron: '41 * * * *'
push:
branches: [main]
paths: ['modular-star/**', 'tools/check-graph.mjs', 'tools/pages-check.mjs', '.github/workflows/modular-star.yml', 'package.json']
permissions:
contents: write
concurrency:
group: modular-star
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 100
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
- run: npm install --no-audit --no-fund
- name: Tests
run: node --test modular-star/test.mjs
- name: Restore the numbered database
run: |
mkdir -p /tmp/prev
if gh release view modular-star --repo "$GITHUB_REPOSITORY" > /dev/null 2>&1; then
# The release exists, so the database must come back; never start again from zero.
gh release download modular-star --repo "$GITHUB_REPOSITORY" --pattern modular.sqlite.gz --dir /tmp/prev
gunzip -c /tmp/prev/modular.sqlite.gz > modular.sqlite
cp modular.sqlite /tmp/prev/before.sqlite
else
echo "First run: starting the numbered database."
fi
- name: Wander through history (continues where the last run stopped)
run: node modular-star/wandering.mjs --db modular.sqlite --work /tmp/wander --minutes 40
- name: Scan and build
run: node modular-star/build.mjs --db modular.sqlite --work /tmp/repos --out .
- name: Group the families into blocks (the periodic table)
run: node modular-star/blocks.mjs --out . && node modular-star/reactions.mjs --out .
- name: Draw the decision records on the Decisions map
run: node modular-star/decisions.mjs --out . && node tools/check-graph.mjs decisions/graph.json
- name: Check the Spider graphs read the way the dashboard reads them
run: node tools/check-graph.mjs modular/graph.json && node tools/check-graph.mjs blocks/graph.json
- name: Check the published pages reach a phone (own files served, no script from another host)
run: node tools/pages-check.mjs --grace 30
- name: Structure of the estate and proof of work (Spider graphs with Mermaid pages)
run: node modular-star/structure.mjs --out . && node modular-star/proof.mjs --out .
- name: Further graphs, when their scripts exist (sense, proof, structure)
run: |
for s in sense proof structure; do [ -f modular-star/$s.mjs ] && (node modular-star/$s.mjs --out . || echo "$s: did not complete"); done
true
- name: Relationship line on every focused card and the why on every red card (relationships/VOCABULARY.md)
run: |
node modular-star/why.mjs --out .
node modular-star/relate.mjs --out . modular/graph.json blocks/graph.json sense/graph.json structure/graph.json proof/graph.json
node tools/check-graph.mjs modular/graph.json && node tools/check-graph.mjs blocks/graph.json
- name: Write every unique line with its number (LINES.md)
run: node modular-star/lines.mjs --db modular.sqlite --out LINES.md
- name: Check that no earlier number changed
run: |
if [ -f /tmp/prev/before.sqlite ]; then node modular-star/check-permanent.mjs /tmp/prev/before.sqlite modular.sqlite; fi
- name: Check that the compiled library loads
run: |
node --check library/standalone.mjs
node -e "import('./library/standalone.mjs').then(m => console.log(Object.keys(m).length + ' library functions load'))"
- name: Save the database and catalogue
run: |
gzip -9 -c modular.sqlite > modular.sqlite.gz
if gh release view modular-star --repo "$GITHUB_REPOSITORY" > /dev/null 2>&1; then
gzip -9 -c /tmp/prev/before.sqlite > modular.previous.sqlite.gz
gh release upload modular-star modular.previous.sqlite.gz --clobber --repo "$GITHUB_REPOSITORY"
gh release upload modular-star modular.sqlite.gz catalog.json.gz --clobber --repo "$GITHUB_REPOSITORY"
else
gh release create modular-star modular.sqlite.gz catalog.json.gz --repo "$GITHUB_REPOSITORY" \
--title "Modular star database" \
--notes "The numbered code database (SQLite, gzip) and the prior-work catalogue. Updated by the Modular star workflow."
fi
- name: Save reports
run: |
python3 spider/register.py
git add modular library spider code blocks sense proof structure decisions relationships LINES.md
if git diff --cached --quiet; then echo "No changes."; exit 0; fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -qm "Modular star $(date -u +%Y-%m-%dT%H:%MZ)"
for i in 1 2 3; do git pull --rebase -q -X theirs && git push -q && exit 0; git rebase --abort 2>/dev/null || true; sleep 7; done
exit 1
- name: Summary
if: always()
run: |
[ -f modular/SUMMARY.md ] && head -n 20 modular/SUMMARY.md >> "$GITHUB_STEP_SUMMARY" || echo "No summary produced." >> "$GITHUB_STEP_SUMMARY"Refresh Workflow
A GitHub Actions workflow in Stars. Runs on a schedule, by hand and after another workflow.
automationstars / .github/workflows/refresh.yml · lines 1–89 of 89 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Why it exists in the grid workflow
- README: "The workflow in `.github/workflows/refresh.yml` runs hourly and on demand."
- Inputs & outputs
- Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs Register (`spider/register.py`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- stars · .github/workflows · workflow
- Uses
- Register (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Refresh reports
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- stars@030ebc202d35959fecd162327892f671d1d9a0cc .github/workflows/refresh.yml:1-89 · blob 3cb65ea745d6b89dbd656ea4f69d1889b916430a · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Refresh reports
# Reads the latest recorded test results (the "stars") from Ventusltd/star-maker, read-only,
# and rebuilds the summary reports in this repository. Runs on GitHub's servers.
on:
workflow_dispatch:
workflow_run:
workflows: ["Modular star"]
types: [completed]
schedule:
- cron: '23 * * * *'
permissions:
contents: write
concurrency:
group: refresh
cancel-in-progress: false
jobs:
refresh:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v5
- name: Fetch the latest test results (read-only)
uses: actions/checkout@v5
with:
repository: Ventusltd/star-maker
path: sky
fetch-depth: 1
sparse-checkout: |
stars
elements
electron
soul
magnetar
chemistry
vedic
random
- uses: actions/setup-node@v5
with:
node-version: 22
- name: Rebuild reports
env:
SKY_DIR: ${{ github.workspace }}/sky
run: |
source_sha=$(git -C sky rev-parse --short HEAD)
count=$(ls sky/stars/*.json | wc -l)
echo "SOURCE_SHA=$source_sha" >> "$GITHUB_ENV"
echo "STAR_COUNT=$count" >> "$GITHUB_ENV"
{
echo "## Reports refreshed"
echo "Test results read: **$count**, from star-maker \`$source_sha\`."
echo ""
echo "| Report | Result |"
echo "|---|---|"
} >> "$GITHUB_STEP_SUMMARY"
# Order matters: each report may read the one before it.
for r in chemistry vedic random; do
if node "builders/$r.mjs" > "/tmp/$r.log" 2>&1; then
res="updated"
mkdir -p "reports/$r"
name=$r; [ "$r" = vedic ] && name=classification
cp "sky/${name^^}.md" "reports/${name^^}.md"
cp sky/$r/*.json "reports/$r/" 2>/dev/null || true
else
res="not updated: $(tail -n 1 /tmp/$r.log | cut -c1-160)"
fi
echo "| $r | $res |" >> "$GITHUB_STEP_SUMMARY"
done
- name: Save if anything changed
run: |
printf '{\n "source_repository": "Ventusltd/star-maker",\n "source_commit": "%s",\n "test_results_read": %s\n}\n' "$SOURCE_SHA" "$STAR_COUNT" > reports/source.json
python3 spider/register.py
git add reports spider
if git diff --cached --quiet -- reports/source.json spider; then
echo "No new test results since the last refresh." >> "$GITHUB_STEP_SUMMARY"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -qm "Reports from star-maker $SOURCE_SHA ($STAR_COUNT test results)"
for i in 1 2 3; do git pull --rebase -q -X theirs && git push -q && exit 0; git rebase --abort 2>/dev/null || true; sleep 7; done
exit 1Policy Workflow
A GitHub Actions workflow in Stones. Runs on push and on pull requests.
automationstones / .github/workflows/policy.yml · lines 1–16 of 16 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs Check Policy (`tools/check-policy.mjs`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- stones · .github/workflows · workflow
- Uses
- Check Policy (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Publication policy
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- stones@45b6b3eed03dca5efac4fe1b443d1a6764d7838d .github/workflows/policy.yml:1-16 · blob 110da22a516362a35ec668a5050f305b28580399 · GitHub at these lines
- State
- achieves: comment · context: auto · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: unknown
name: Publication policy
on:
push:
pull_request:
jobs:
policy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Every record must meet POLICY.md
run: node tools/check-policy.mjsCodex Cartridges Workflow
A GitHub Actions workflow in Testcode. Runs on push, on pull requests and by hand.
automationtestcode / .github/workflows/codex-cartridges.yml · lines 1–67 of 67 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain stage agent_infra (path word 'codex'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief).
- Inputs & outputs
- Out: JSON file receipt.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Codex cartridge capsule checks”.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- testcode · .github/workflows · workflow
- Uses
- Registry Test (workflow run), Session Restart Test (workflow run), Compose Test (workflow run), Dismissal Test (workflow run), Focus Boundary Test (workflow run), Navigation Test (workflow run), Ownership Test (workflow run), Readiness Test (workflow run), and 3 more
- Used by
- none found
- Produces
- none declared
- Defines here
- Codex cartridge capsule checks
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- testcode@a8a215982b13d6e2f6019b40bf0bef5755719773 .github/workflows/codex-cartridges.yml:1-67 · blob ab52b1725d7339b9c6987c2c31a7155ef798b230 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: filesystem, process · domain stage: agent_infra · users: ai_agent · canonical: unknown
name: Codex cartridge capsule checks
# This checks the maintained capsule code, not the estate fleet or a browser release.
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'sandbox/capsules/tool-layers/**'
- 'sandbox/capsules/teleprinter/build.mjs'
- '.github/workflows/codex-cartridges.yml'
pull_request:
paths:
- 'sandbox/capsules/tool-layers/**'
- 'sandbox/capsules/teleprinter/build.mjs'
- '.github/workflows/codex-cartridges.yml'
permissions:
contents: read
concurrency:
group: codex-cartridge-capsules-${{ github.ref }}
cancel-in-progress: false
jobs:
capsule:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Prove ownership, copying and dismissal boundaries
shell: bash
run: |
set -euo pipefail
mkdir -p capsule-artifacts
node --test --test-reporter=tap sandbox/capsules/tool-layers/*.test.mjs > capsule-artifacts/tests.tap
- name: Parse the host and build capsule
run: |
node --check sandbox/capsules/tool-layers/host.js
node --check sandbox/capsules/teleprinter/build.mjs
- name: Record exact source identity and outcome
if: always()
env:
CHECK_STATUS: ${{ job.status }}
shell: bash
run: |
mkdir -p capsule-artifacts
python3 - <<'PY'
import hashlib, json, os, pathlib, subprocess
names = sorted(str(p) for p in pathlib.Path('sandbox/capsules/tool-layers').rglob('*') if p.is_file() and p.suffix in ('.js', '.mjs')) + ['sandbox/capsules/teleprinter/build.mjs']
rows = [{'path': name, 'sha256': hashlib.sha256(pathlib.Path(name).read_bytes()).hexdigest()} for name in names if pathlib.Path(name).is_file()]
result = {'schema': 'testcode.codex-cartridge-ci.v1', 'commit': subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip(), 'runId': os.environ['GITHUB_RUN_ID'], 'runAttempt': os.environ['GITHUB_RUN_ATTEMPT'], 'statusBeforeReceipt': os.environ['CHECK_STATUS'], 'node': subprocess.check_output(['node', '--version'], text=True).strip(), 'platform': 'ubuntu-24.04', 'files': row … [line shortened here: 561 characters; full line on GitHub]
pathlib.Path('capsule-artifacts/receipt.json').write_text(json.dumps(result, indent=2) + '\n')
PY
- name: Retain compact capsule receipt
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: codex-cartridges-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
path: capsule-artifacts/
if-no-files-found: error
retention-days: 30Composition Guard Workflow
A GitHub Actions workflow in Testcode. Runs on push and by hand.
automationtestcode / .github/workflows/composition-guard.yml · lines 1–77 of 77 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage experimental (repository name word 'testcode'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Complete browser composition contract”; runs Verify Composition Guard (`sandbox/tools/verify-composition-guard.mjs`), Candidate Server (`sandbox/tools/candidate-server.cjs`) and Composition Contract Browser (`sandbox/tools/composition-contract.browser.cjs`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- testcode · .github/workflows · workflow
- Uses
- Verify Composition Guard (workflow run), Candidate Server (workflow run), Composition Contract Browser (workflow run), Tool Recovery Browser (workflow run), Polygon Remove Browser (workflow run), Measurement Controls Browser (workflow run), App Print Browser (workflow run), Controls Layout Browser (workflow run), and 1 more
- Used by
- none found
- Produces
- none declared
- Defines here
- Complete browser composition contract
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- testcode@a8a215982b13d6e2f6019b40bf0bef5755719773 .github/workflows/composition-guard.yml:1-77 · blob 251d936b819adda0cf049924b19b737199c0036b · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: experimental · users: none · canonical: unknown
name: Complete browser composition contract
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'sandbox/202609060517/**'
- 'sandbox/tools/*composition*'
- 'sandbox/capsules/atlas-composition-contract.mjs'
- '.github/workflows/composition-guard.yml'
permissions:
contents: read
jobs:
recovery:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Verify exact router reconstruction and carried dependencies
run: node sandbox/tools/verify-composition-guard.mjs 202609060517
- name: Install pinned browser tooling
run: |
npm install --no-save --package-lock=false playwright@1.62.1
npx playwright install --with-deps chromium
- name: Exercise controls, retained edits and tool recovery
run: |
node sandbox/tools/candidate-server.cjs > candidate-server.log 2>&1 &
node sandbox/tools/composition-contract.browser.cjs http://127.0.0.1:8417/testcode/202609060517/atlas/
node sandbox/tools/tool-recovery.browser.cjs http://127.0.0.1:8417/testcode/202609060517/atlas/
node sandbox/tools/polygon-remove.browser.cjs http://127.0.0.1:8417/testcode/202609060517/atlas/
node sandbox/tools/measurement-controls.browser.cjs http://127.0.0.1:8417/testcode/202609060517/atlas/
node sandbox/tools/app-print.browser.cjs http://127.0.0.1:8417/testcode/202609060517/atlas/
- name: Preserve actual menu, search and control layout
env:
CHROME_CHANNEL: chromium
TEST_GENERATION: '202609060517'
run: node sandbox/tools/controls-layout.browser.cjs
- name: Preserve full polygon interaction coverage
env:
CHROME_CHANNEL: chromium
TEST_GENERATION: '202609060517'
TEST_RESET: '1'
TEST_DRAFT: '1'
TEST_EXPORT: '1'
TEST_IMPORT: '1'
TEST_HISTORY: '1'
TEST_LOCK: '1'
TEST_FIT: '1'
TEST_CSV: '1'
TEST_COORDINATE: '1'
TEST_VALIDITY: '1'
TEST_REDRAW: '1'
TEST_TOUCH: '1'
TEST_KEYBOARD: '1'
TEST_WINDING: '1'
TEST_OUTPUT: poly-zone-artifacts
run: node sandbox/tools/poly-zone.browser.cjs
- uses: actions/upload-artifact@v4
if: always()
with:
name: composition-guard-${{ github.sha }}
path: |
tool-recovery-artifacts/
polygon-remove-artifacts/
measurement-controls-artifacts/
composition-contract-artifacts/
app-print-artifacts/
poly-zone-artifacts/
controls-layout-artifacts/
candidate-server.log
retention-days: 7Controls Layout Workflow
A GitHub Actions workflow in Testcode. Runs on push, on pull requests and by hand.
automationtestcode / .github/workflows/controls-layout.yml · lines 1–51 of 51 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'layout'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Atlas controls browser regression”; runs Controls Layout Browser (`sandbox/tools/controls-layout.browser.cjs`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- testcode · .github/workflows · workflow
- Uses
- Registry Test (workflow run), Session Restart Test (workflow run), Compose Test (workflow run), Dismissal Test (workflow run), Focus Boundary Test (workflow run), Navigation Test (workflow run), Ownership Test (workflow run), Readiness Test (workflow run), and 3 more
- Used by
- none found
- Produces
- none declared
- Defines here
- Atlas controls browser regression
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- testcode@a8a215982b13d6e2f6019b40bf0bef5755719773 .github/workflows/controls-layout.yml:1-51 · blob a8f001a63e927eaebb7d0be8d88d5c13b5e0a4e9 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unknown
name: Atlas controls browser regression
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'sandbox/capsules/tool-layers/**'
- 'sandbox/202609060228/**'
- 'sandbox/tools/controls-layout.browser.cjs'
- '.github/workflows/controls-layout.yml'
pull_request:
paths:
- 'sandbox/capsules/tool-layers/**'
- 'sandbox/202609060228/**'
- 'sandbox/tools/controls-layout.browser.cjs'
- '.github/workflows/controls-layout.yml'
permissions:
contents: read
jobs:
controls:
runs-on: ubuntu-24.04
timeout-minutes: 12
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Offline capsule and syntax gates
run: |
node --test sandbox/capsules/tool-layers/*.test.mjs
node --check sandbox/tools/controls-layout.browser.cjs
- name: Install pinned browser tooling
run: |
npm install --no-save --package-lock=false playwright@1.62.1
npx playwright install --with-deps chromium
- name: Test locally served candidate at desktop and 393px
env:
CHROME_CHANNEL: chromium
TEST_GENERATION: '202609060228'
TEST_OUTPUT: controls-layout-artifacts
run: node sandbox/tools/controls-layout.browser.cjs
- uses: actions/upload-artifact@v4
if: always()
with:
name: atlas-controls-${{ github.sha }}
path: controls-layout-artifacts/
retention-days: 7