Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix a duplicated comment and a doc claim stale against the derived ledger cap

[._.]/ Adam Eivy8a9c7d304afa
diff --git a/client/src/components/quotaBurn/FamilyCard.jsx b/client/src/components/quotaBurn/FamilyCard.jsx
index 7acb4e13a5..71d65bd953 100644
--- a/client/src/components/quotaBurn/FamilyCard.jsx
+++ b/client/src/components/quotaBurn/FamilyCard.jsx
@@ -23,8 +23,8 @@ export default function FamilyCard({
// Pending counts and `run once` completions stay on the STATUS side and are
// passed to JobRow as their own props — merging them into the job objects
// would mean stripping them back off before every save (the PUT schema is
- // strict). Matched by id so a reorder mid-save can't mis-pair them.
- // Indexed once, not scanned per lookup: this component re-renders on every
+ // strict). Keyed by id, so a reorder mid-save can't mis-pair them, and indexed
+ // once rather than scanned per lookup: this component re-renders on every
// keystroke (the page holds `config` in state and saves on a trailing
// debounce), and a linear `find` ran three times per job — the count below
// plus both props on every row.
diff --git a/docs/QUOTA-BURN.md b/docs/QUOTA-BURN.md
index 0faf5f62bd..5cf65187fb 100644
--- a/docs/QUOTA-BURN.md
+++ b/docs/QUOTA-BURN.md
@@ -139,7 +139,10 @@ completion continuation walks it one agent at a time and it stops of its own
accord instead of looping.
- **The ledger is `data/cos/quota-burn-completions.json`**, `<familyId>:<jobId>`
- → the ISO instant it ran, capped at 200 entries (newest kept). It is a
+ → the ISO instant it ran, capped (newest kept) at **twice** the keys a
+ maxed-out plan can hold — derived from `QUOTA_BURN_FAMILIES` and
+ `jobsPerFamily.max`, so pruning can only evict a job already deleted from the
+ plan, never a live one. It is a
separate file rather than a flag on the job because a config PUT **replaces**
a family's `jobs` array — that is how every reorder and edit saves — so a flag
on the job would be reset by an unrelated edit, and by the client's optimistic