basquetWi + New ticket
agent-ops OPS-48

memory-budget Layer 1: gdrive-canonical 'Memory Budget' directive + footprint-check threshold (thread 3); incl. maintainer-agents.md memory-lint ownership section (thread 4)

Done high nwnw-whey-cc ⛔ thread-3 blocked: evolutiva-memory-discipline.md (canonical) is §1-6 only; memory-lint.sh cites phantom §8-§14. Numbering must be reconciled before the Memory Budget directive can land. Asked bin-whey-cc for the §8-§14 source.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Questions

q#27 · rob → elazar · 2026-05-21 · answered by rob
memory-budget footprint-check threshold (tokens). FLEET BASELINE — auto-loaded per-session context, token est = bytes/4: WHEY: global CLAUDE.md 4749 B. Per-session range ~1.4K tok (nw-whey) to ~17.3K tok (mars agent: global + websites CLAUDE.md + mars MEMORY.md 11.7K + commons stack 48K). VENUS: global CLAUDE.md 8275 B (1.7x whey). Range ~2.1K tok (os-venus) to ~12.1K tok (pm-venus: + evolutiva-commons 15.4K + evolutiva-pm-commons 11.8K + venus-commons). LEZAMA: global CLAUDE.md 6600 B. ~4.6K tok (nw-lezama). No commons, no bloat — clean. Three findings: (1) per-host global CLAUDE.md sizes diverge — whey 4.7K / lezama 6.6K / venus 8.3K B; consider reconciling. (2) Bloated MEMORY.md indices (meant to be concise one-line indices): mars 11.7K, pluto 10.2K, venus-evolutiva 12.9K, llmmsg-srv 6.5K B — these are the horrors. (3) Stale file ~/.claude/2026-05-09-CLAUDE.md (7.2K B) on whey — not auto-loaded, recommend trash. QUESTION: what token threshold should the SessionStart footprint check alert at? PM recommends ~10K tok — it flags the heavy evolutiva PM/coder agents (12-17K, the real offenders) without false-positiving lean agents (1.4-4.6K). The check is alert-not-block. Confirm 10K or set your own number.
8K tokens. memory-lint warns when a session's auto-loaded context (global+project CLAUDE.md + MEMORY.md + always-on memory files) exceeds 8K. Elazar decided 2026-05-21.

Activity

  • system created · 2026-05-21
    wi cli
  • rob questionAsked · 2026-05-21
    q#27 to=elazar: memory-budget footprint-check threshold (tokens). FLEET BASELINE — auto-loaded per-session context, token est = bytes/4: WHEY: global CLAUDE.md 4749 B. Per-session range ~1.4K tok (nw-whey) to ~17.3K
  • rob blocked · 2026-05-21
    awaiting elazar
  • rob questionAnswered · 2026-05-21
    q#27: 8K tokens. memory-lint warns when a session's auto-loaded context (global+project CLAUDE.md + MEMORY.md + always-on memory files) exceeds 8K. Elazar decided 2026-05-21.
  • system statusChanged · 2026-05-21
    Unblocked — Q#27=8K. Implementation: 8K token-budget check as a named config var at top of memory-lint.sh; maintainer-agents.md memory-lint ownership section already done.
  • bin-whey-cc assigned · 2026-05-21
    assigned to bin-whey-cc
  • system done · 2026-05-21
    memory-lint.sh v1.2: MEM_BUDGET_TOKENS=8000 + budget_check() (global CLAUDE.md + CLAUDE.md chain + cwd/.claude/rules/*.md + MEMORY.md, bytes/4, warn >8K). cc-memlint-hook.sh v1.2 forwards JSON cwd; memlint-cron.sh v1.2 explicit no-cwd skip. Verified mechanism is .claude/rules/ symlink auto-load, NOT @-imports (zero @-import lines in mars chain). Tested: researcher-mars ~12.3K footprint -> WARN fires. Pushed sh.git 307d60c.
  • system commented · 2026-05-21
    Code DONE + pushed: memory-lint.sh / cc-memlint-hook.sh / memlint-cron.sh v1.2, sh.git 307d60c (MEM_BUDGET_TOKENS=8000 + budget_check, footprint = CLAUDE.md chain + .claude/rules/*.md + MEMORY.md). Thread-4 maintainer-agents.md ownership section DONE. NOT closing 444 — residual = thread-3: the gdrive-canonical 'Memory Budget' directive (written policy) not yet authored. Re-scoped 444 to that residual, reassigned nw-whey-cc.
  • nw-whey-cc assigned · 2026-05-21
    assigned to nw-whey-cc
  • system statusChanged · 2026-05-21
    Re-scoped to thread-3 residual only (Memory Budget directive doc); code + thread-4 done.
  • system blocked · 2026-05-21
    thread-3 blocked: evolutiva-memory-discipline.md (canonical) is §1-6 only; memory-lint.sh cites phantom §8-§14. Numbering must be reconciled before the Memory Budget directive can land. Asked bin-whey-cc for the §8-§14 source.
  • system statusChanged · 2026-05-21
    Drift resolved — v2 doc (repo, 130L, §1-14) is correct, /gdrive copy is stale v1. memory-lint.sh §-refs all valid. Thread-3: §15 drafted, posted to ARO for review; landing into evolutiva repo SSOT pending Evolutiva PM (cross-PM consensus doc). /gdrive stale-v1 sync flagged separately.
  • system commented · 2026-05-21
    memory-lint.sh v1.3 (dc3f208): budget_check citation §14->§15 - v2 doc §14 is Codification-Arrow Enforcement, Memory Budget is §15 per nw-whey-cc. Code side of WI 444 fully done + §15-consistent. Residual = thread-3 §15 doc (nw-whey-cc/Evolutiva PM) + stale /gdrive v1 mirror.
  • system commented · 2026-05-21
    Scope-in (nw-whey-cc, 2026-05-21): WI 444 extended to surface the §15 budget WARN into SessionStart context - one line, emitted only when over 8K budget. Gap found by nw-venus-cc + bin-whey-cc: budget_check fires but cc-memlint-hook.sh routes all output to ~/.cache/cc-memory-lint/<sid>.log, so the agent never sees it - §15's intent (tell the author to lazy-load per §10) never reaches the author. Fix is bin-whey-cc/sh.git lane, ~5 lines: memory-lint.sh flag to emit just the budget line + cc-memlint-hook.sh surfacing it. Decoupled from WI 450 trim and from Elazar qid 30. bin-whey-cc landing same-day.
  • system commented · 2026-05-21
    WI 444 completion (ae7eab8): §15 budget warn now surfaces to the agent. memory-lint.sh v1.4 new --budget-line mode prints ONLY the one-liner '[memory-budget] auto-loaded footprint ~NNK > 8K - lazy-load per §10/§15.' to stdout, over-budget only. cc-memlint-hook.sh v1.3 surfaces it to SessionStart stdout (context injection); under-budget injects nothing (zero context cost); all other lint stays log-only. Closes the 'agent never sees the warn' gap. Tested: over->1 line, under->blank, normal lint intact.
  • system commented · 2026-05-21
    Deploy progress (nw-whey-cc, 2026-05-21): WI 444 completion ae7eab8 (memory-lint.sh v1.4 + cc-memlint-hook.sh v1.3) live on whey (sh.git native) and venus (nw-venus-cc clean ff dc3f208..ae7eab8, HEAD=ae7eab8, confirmed on disk). Lezama pending - nw-lezama-cc offline; ae7eab8 queued, will route on its next reconnect. WI 444 stays todo until lezama confirms.
  • system completed · 2026-05-23
    §15 Memory Budget added to evolutiva-memory-discipline.md, committed to repo (d0c03a0) and synced to gdrive canonical copy.
task
2026-05-21
6w ago
2026-05-23 19:05