Skip to content

docs(complete): curate the Highlights band of complete/index.md #368

Closed

Description

@Jammy2211

Overview

complete/index.md is the token-light entry point over 1223 finished-work records, generated by scripts/lifecycle.py index. Its hand-curated Highlights band (between <!-- CURATED:START/END -->) is still the placeholder _(curate hard-won records here — survives regeneration.)_. This task is the editorial pass the original prompt reduced to on 2026-08-09: pick the hard-won records and write one-line hooks so an agent can find "have we hit this before" in one page.

Plan

  • Curate ~25–30 entries into the Highlights band under five theme headings (JAX/numerics/perf · Release/build/CI drift · Samplers/inference · Lensing science · Mind/Brain infra), reading each record's traps section before writing its hook.
  • Fix complete/AGENTS.md to describe the link form the generator actually emits and state what earns a Highlights line.
  • Add one test proving a non-empty curated band survives lifecycle.py index regeneration byte-for-byte.
Detailed implementation plan

Work Classification

Library (Mind organ source + docs) — ships via /ship_library.

Affected Repositories

  • PyAutoMind (primary)

Branch Survey

Repository Current Branch Dirty?
./PyAutoMind main clean

Suggested branch: feature/complete-archive-highlights
Worktree root: ~/Code/PyAutoLabs-wt/mind-workflow/ (shared by the mind-workflow bundle; one branch at a time)

Implementation Steps

  1. complete/index.md — replace the placeholder inside the CURATED markers with ## Highlights + five ### <theme> groups of - [slug](2026/MM/slug.md) — hook lines. Hook style: autolens_assistant/wiki/literature/index.md (noun-phrase, ≤2 wrapped lines, no dates). Seed candidates: 08/xla-cpu-eigen-pool-deadlock, 08/delaunay-nan-probe-fix, 05/cluster-f-jax-baseline-oom, 08/border-relocator-degenerate-pca, 08/sub-312-install-tombstone, 08/spawn-drift-self-heal, 08/tenant-firewall-drift-aug, 08/autohands-firewall-allowlist, 08/script-size-guard-git-based, 08/overflow-flood-refs-smc-cell, 08/nautilus-test-mode-degenerate-corner, 08/ep-hierarchical-scale-collapse-guard, 08/stored-sample-reconstruction-guard, 08/adapt-linear-regularization, 07/adapt-image-cache-mask-validation, 04/skip-degenerate-radial-caustic, 04/history-rewrite-guard, 07/api-gate-clause-scope, 07/agent-failure-modes, 08/heart-red-guarded-sample-escape, 08/organ-remote-block-and-uv-hook-repair, 07/lifecycle-state-split. Read each record's ## Traps… / ## Lessons section first; drop any that turn out not to carry a reusable lesson, add better ones found on the way.
  2. The band must be exactly what _render_index re-emits (scripts/lifecycle.py:1371, _existing_curated :1407 — index --check is a byte-for-byte round trip), so run python3 scripts/lifecycle.py index after editing and commit the regenerated file.
  3. complete/AGENTS.md (lines ~20-21): the index uses markdown links [slug](path), not [[slug]]; add a short "what earns a Highlights line" rule — a trap that cost a session, a decision that will be re-asked, an architecture invariant.
  4. Test (in the existing lifecycle test module under tests/): build a tmp Mind with a curated band containing headings + links, run index, assert the band is unchanged and index --check is clean.

Key Files

  • complete/index.md — the curated band
  • complete/AGENTS.md — lookup protocol + band rule
  • scripts/lifecycle.py — _render_index, _existing_curated, cmd_index (read-only unless the round trip needs a fix)
  • tests/test_lifecycle*.py — new round-trip test

Not in scope

Per-record tag blocks, per-theme sub-index pages, teaching the Brain memory faculty to read index.md first (note as a follow-up in the completion record).

Original Prompt

Click to expand starting prompt

Token-light wiki index over the complete/ archive

Type: feature
Target: PyAutoMind
Repos:

  • PyAutoMind
  • PyAutoBrain
    Themes:
  • mind-workflow
    Difficulty: medium
    Autonomy: supervised
    Priority: normal
    Status: formalised
    Filed: 2026-07-13 (backfilled from git)

Depends on

feature/pyautomind/lifecycle_state_split.md (Phase 1) — this needs
complete/YYYY/MM/<slug>.md per-task rich records to exist first. Do not
issue this until Phase 1 nears shipping
(feedback_no_bulk_issue_queues).

2026-08-09 — SUBSTANTIALLY SHIPPED; only the curation is left

Checked by the draft/ sweep. Phase 1 shipped
([[lifecycle-state-split]], monolithic complete.md retired 2026-07-16, issue #81),
so the dependency above is long satisfied — and most of what this prompt asks for
shipped with it.

complete/index.md exists on main and already is the token-light index this
prompt specifies:

  • 952 records linked, grouped by dated bucket.
  • Its own header states the lookup protocol this prompt describes almost verbatim
    — "read this, follow one or two links, and only then grep a dated bucket."
  • Generated, by scripts/lifecycle.py index, with index --check gating
    staleness in CI — so it cannot rot.
  • It has the curated band: <!-- CURATED:START --> … <!-- CURATED:END -->,
    documented as surviving regeneration.
  • complete/AGENTS.md § "How to look something up (token-light — RAG is dead)"
    carries the same doctrine this prompt opens with.

What is actually left is the curation, not the machinery. The Highlights band
is empty — it reads _(curate hard-won records here — survives regeneration.)_.
So the remaining work is the editorial pass: pick the hard-won records worth
surfacing and write the one-line hooks, in the autolens_assistant/wiki style
this prompt says to study.

Re-scope before issuing: drop the "build the index" legs, keep the "curate it"
legs, and re-read § "Model to emulate" against what lifecycle.py index already
generates rather than against a blank slate. Difficulty: medium is now
generous.

Problem

Once complete/ holds hundreds of per-task records, an agent still can't look
up "have we hit this before / what did we learn about X" without reading many
files. We want the autolens_assistant/wiki model — a curated markdown index
with [[wiki-links]], not RAG / embeddings
("RAG is dead") — so lookup is
token-light: read one index page, follow one or two links, done.

Model to emulate — autolens_assistant/wiki

Study autolens_assistant/wiki/ before designing:

  • wiki/README.md — the "when to read / when to write which" table.
  • wiki/literature/index.md — the token-light top-level nav: grouped
    [[slug]] links with one-line hooks, nothing more.
  • wiki/literature/AGENTS.md — the page schema (concepts/entities/sources page
    types, [[wiki-link]] cross-refs) the assistant is told to follow.
  • Its provenance split: core/ generated from source, literature/
    hand-curated, project/ append-only journal.

Goal

Build complete/index.md + supporting index pages so an agent can navigate the
finished-work archive cheaply.

  • complete/index.md — the entry point. Grouped [[links]] with one-line
    hooks (by theme: JAX/perf, release/build, samplers, lensing science, Mind/
    Brain infra, …), plus a "by date" pointer to the YYYY/MM/ tree.
  • Per-record front-matter / tags — each complete/YYYY/MM/<slug>.md gains a
    small tag block (theme, repos touched, key traps) so the index generator can
    bucket it. Cross-link related records with [[slug]] (analogous to how the
    auto-memory MEMORY.md + [[name]] links already work — reuse that idiom).
  • complete/AGENTS.md — schema + "how an agent should search the archive"
    rules (read index → follow links → grep a dated bucket only if needed).
    Wire a pointer into the top-level AGENTS.md router so the archive is
    discoverable.

Generation + drift

  • A generator (scripts/lifecycle.py extended, or a sibling) that (re)builds
    complete/index.md from the per-record tags — deterministic, so it can run in
    --check mode and fail CI on drift (mirrors spawn_drift / the Phase-1
    lifecycle check). Hybrid allowed: generated skeleton + a hand-curated
    "highlights / hard-won traps" section that survives regeneration (like the
    assistant wiki's curated vs generated split).
  • Decide: fully-generated index (cheap, mechanical) vs curated (richer, ages).
    Recommend generated skeleton + curated highlights band.

Open questions to settle at plan time

  • Granularity: one flat index.md, or index.md + per-theme sub-index pages
    (only if the archive is big enough to warrant it)?
  • Does the memory faculty (/memory, PyAutoMemory) already cover "what did we
    learn" such that this index should link out to memories rather than
    duplicate them? Reconcile with PyAutoBrain Memory Faculty so the archive
    index and long-term memory don't fork.

Original request (verbatim)

As a follow up, I think we probbaly want to then build a wiki or indexing
scheme for the complete folder so its really easy for an agent to look up old
issues in a token light way, analogous to the wiki features used in
autolens_assistant (e.g. RAG is dead). This is actually quite a large task so
do some deep research on the plan.

Activity

  1. Jammy2211 commented on Aug 29, 2026

    @Jammy2211
    CollaboratorAuthor

    PR opened: #371 — Heart YELLOW acknowledged by the human for the bundle (workspace-validation timeout autolens_test delaunay_mge.py; no release rehearsal), unrelated to this change. Tests: 282 passed. Next: /prm.

  2. added a commit that references this issue on Aug 29, 2026
  3. Jammy2211 commented on Aug 30, 2026

    @Jammy2211
    CollaboratorAuthor

    Shipped

    PR #371 — MERGED.

    The token-light archive index shipped with lifecycle-state-split (2026-07); what this prompt still owed was the editorial pass. The <!-- CURATED --> band of complete/index.md now carries 30 records under JAX/numerics/perf · release/build/CI drift · samplers/inference · lensing science · Mind/Brain infrastructure, each with a one-line hook that states the reusable lesson, not the task.

    complete/AGENTS.md describes the link form the generator actually emits (markdown links, not [[wiki-links]]) and what earns a Highlights line. One test proves a curated band survives lifecycle.py index regeneration byte-for-byte.

    Validation: lifecycle.py index --check OK; lifecycle.py check OK; PyAutoMind suite 282 passed (new tests/test_lifecycle_index.py, control-tested — a trailing blank line in the band fails it).

    Record: complete/2026/08/complete-archive-highlights.md

  4. added a commit that references this issue on Aug 30, 2026
  5. added a commit that references this issue on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions