Skip to content

Commit 0ad08b6

Browse files
authored
Merge pull request #121 from PyAutoLabs/feature/memory-wiki-glob
Memory faculty: discover sub-wikis under PyAutoMemory's new wiki/ layout
2 parents 0f2076f + 76bbeba commit 0ad08b6

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

agents/faculties/memory/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ memory.sh "delaunay regularization prior work"
2929
- **No indexes, no embeddings, no new infra** — grep + the wikis' own
3030
structure, the same as a careful human session, kept deterministic.
3131
- **No layout coupling** — sub-wikis are discovered at query time
32-
(`*_wiki/` directories); when Memory grows a wiki, the faculty sees it with
32+
(`wiki/<domain>/`, plus legacy root `*_wiki/`); when Memory grows a wiki, the faculty sees it with
3333
no edits (the standing "do not couple to Memory's internal layout" rule).
3434
- Operational history stays Mind's: `complete.md` is *read* here as a recall
3535
surface, but the boundary prose in ORGANISM.md is unchanged.

agents/faculties/memory/_memory.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ def terms_of(query: str) -> list[str]:
3232
def surfaces(memory: Path | None, assistant: Path | None, mind: Path | None):
3333
"""Yield (surface-name, root, md-file) triples, discovered at query time."""
3434
if memory and memory.is_dir():
35-
for wiki in sorted(memory.glob("*_wiki")):
35+
# wiki/<domain>/ is the current layout; root-level *_wiki/ is the
36+
# pre-2026-07 layout, kept for older checkouts and forks.
37+
wikis = sorted(d for d in memory.glob("wiki/*") if d.is_dir())
38+
wikis += sorted(memory.glob("*_wiki"))
39+
for wiki in wikis:
3640
for f in wiki.rglob("*.md"):
3741
yield f"PyAutoMemory/{wiki.name}", memory, f
3842
if assistant and assistant.is_dir():

skills/sampler_pipeline/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ table.
113113
the candidate on lensing use cases via `autolens_profiling` — the
114114
`/profile_likelihood` skill drives the sweep machinery; A100/HPC runs go
115115
through that repo's conventions.
116-
- Record durable findings in `PyAutoMemory/methods_wiki/concepts/
116+
- Record durable findings in `PyAutoMemory/wiki/methods/concepts/
117117
sampler-benchmarks.md` (internal; never cited in public output).
118118

119119
## Stage 3 — promotion: the PyAutoFit implementation

0 commit comments

Comments
 (0)