Skip to content

Restructure: wiki/ + bibliography consolidation, structure lint (#24)#25

Merged
Jammy2211 merged 6 commits into
mainfrom
feature/memory-structure-cleanup
Jul 16, 2026
Merged

Restructure: wiki/ + bibliography consolidation, structure lint (#24)#25
Jammy2211 merged 6 commits into
mainfrom
feature/memory-structure-cleanup

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Closes #24.

What changed

  • wiki/ layout — the five sub-wikis move to wiki/lensing/, wiki/smbh/, wiki/cti/, wiki/methods/, wiki/galaxies/; the shared schema is promoted from lensing_wiki/CLAUDE.md to wiki/CLAUDE.md and the lensing wiki keeps a slim scope-only CLAUDE.md like its siblings. Relative links rewritten (append-only log.md files left as historical record).
  • Legacy bib retirement — a key-level audit proved every unique key in the 9 root .bib files (and Euclid/Paykari2020.bib) already exists in bibliography/pyautomemory.bib (library.bib: 2918 entries → 1035 unique keys, all present). All legacy bibs deleted (git history retains them); the pyautopaper.bib back-compat symlink retired (no live references).
  • Stray artifact retirement — root ADS PDFs (Hubble1926.321H, devaucoleurs1948.247D), the one-file topic folders (CTI/, DarkMatterModels/, Euclid/, LightProFFits/, Medical/), cticomments, euclid.sty. The one canonical-coverage gap, Hall 1952 (PhysRev.87.387), gains a canonical entry and its sources/ TODO section is resolved.
  • Structure lintscripts/validate_structure.py: top-level allowlist, .bib only under bibliography/, no committed papers (PDF suffix or PDF magic bytes, catching extensionless ADS downloads). Wired into make validate + a new CI workflow; write contract documented in AGENTS.md; index.md no longer instructs committing acquired PDFs.

Verification

🤖 Generated with Claude Code

Jammy2211 and others added 6 commits July 16, 2026 09:23
Key-level audit confirmed every unique key in the 9 root legacy .bib
files (and Euclid/Paykari2020.bib) already exists in the canonical
bibliography/pyautomemory.bib, so the legacy files are deleted (git
history retains them). The pyautopaper.bib back-compat symlink had no
live references and is retired. Orphan paper artifacts (ADS-named PDFs
and one-file topic folders left over from the 2026-05-22 off-repo PDF
sweep) are deleted after verifying canonical coverage; the one gap,
Hall 1952 (PhysRev.87.387), gains a canonical entry and its sources
TODO section is resolved. index.md no longer instructs committing
acquired PDFs — PDFs stay off-repo.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…DE.md

wiki/lensing, wiki/smbh, wiki/cti, wiki/methods, wiki/galaxies replace the
root-level *_wiki folders (the _wiki suffix is redundant under wiki/). The
generic schema is promoted from lensing_wiki/CLAUDE.md to wiki/CLAUDE.md;
the lensing wiki keeps a slim scope-only CLAUDE.md like its siblings.
Relative links are rewritten for the new depth (append-only log.md files
are left as historical record); the citation validator's sources glob and
test fixture follow the layout.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…papers

scripts/validate_structure.py enforces the layout contract that would have
prevented the pre-cleanup state: a top-level allowlist, .bib only under
bibliography/, and no paper artifacts (PDF suffix or PDF magic bytes, so
extensionless ADS downloads are caught too). Wired into make validate and
a minimal GitHub Actions workflow alongside the existing citation
validator; the write contract is documented in AGENTS.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Untracked local scratch (.pytest_cache/, in-progress downloads) is out of
scope — the layout contract is about what gets committed. Falls back to a
filesystem walk outside a git checkout (freshly spawned template). The
stale !lensing_wiki/log.md gitignore exception follows the wiki/ move.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
wiki/CLAUDE.md ships verbatim into the PyAutoScientist fresh-slate
template (spawn.py KEEP rule); its illustrative examples must not carry
instance-content markers, so the SLACS examples become H0LiCOW ones.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit acab455 into main Jul 16, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/memory-structure-cleanup branch July 16, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restructure: wiki/ + bibliography consolidation, structure lint, template sync

1 participant