Refactor: lay the repo out by section (core, collection, analysis, planner, site) (#8)
Moves only; no behaviour changes. Every file now lives under the part of the project it belongs to, each section has a README, and docs/PRIVACY.md collects the rules all parts follow. core/ engine.js, graph.js, solver.js, python/clean.py collection/ sources/ (form, register, PDF check, daily update), bot/ (importer) analysis/ stats/ (Python statistics), network/ (build-graph.js), reports/ (POLICY.md) planner/ build-policy.js, policy-report.js site/ atlas/ (the page), build.js, qa/ tests/ core/ (unit), parity/ (JS vs Python), fixtures/ Checked against the previous layout: tests pass; coded runs, test outputs, graph.json and policy.json are byte-identical; the built site differs only in comments that name file paths. The published file names Ken's bot downloads (solver.js, graph.js, data/policy.json) are unchanged. Also removes the undefined/ folder of QA screenshots committed by mistake (the QA scripts now default to a temp folder) and test.txt, and drops the unused npm workspaces. Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
dcd5117373
commit
432e04c2c7
@@ -14,8 +14,8 @@ jobs:
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- run: pip install -r research/python/requirements.txt
|
||||
- run: pip install -r requirements.txt
|
||||
- run: npm test
|
||||
- name: graph.json is up to date
|
||||
run: node scripts/build-graph.js && git diff --exit-code data/public/graph.json
|
||||
run: node analysis/network/build-graph.js && git diff --exit-code data/public/graph.json
|
||||
- run: npm run build
|
||||
|
||||
@@ -21,13 +21,13 @@ jobs:
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- run: pip install -r research/python/requirements.txt
|
||||
- run: pip install -r requirements.txt
|
||||
- id: check
|
||||
run: python research/python/update_sources.py --report "$RUNNER_TEMP/report.md"
|
||||
run: python collection/sources/update_sources.py --report "$RUNNER_TEMP/report.md"
|
||||
- name: Rebuild graph and run tests
|
||||
if: steps.check.outputs.changed == 'true'
|
||||
run: |
|
||||
node scripts/build-graph.js
|
||||
node analysis/network/build-graph.js
|
||||
npm run policy
|
||||
npm test
|
||||
# The PR is opened with ATLAS_BOT_TOKEN (a fine-grained token, see docs/REPO_SETTINGS.md) when it is set:
|
||||
|
||||
Reference in New Issue
Block a user