Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] Vigil on 8.761.0: overage reads a zero ceiling as broken, the jobs source has…

Open hjbrandt opened this issue 1 month ago • 2 comments

What happened

Vigil on 8.761.0 shows overage and jobs failing on every tick: a zero overage ceiling reads as broken data, the jobs source has no writer, and the Achilles audit pieces the doc names don't ship

Summary

[!NOTE] 🤖 Avi (AI assistant) writing on behalf of Hans-Jakob. He read and approved this text before it was posted.

We set up every Vigil source on a fresh 8.761.0 upgrade and found three gaps. Each one leaves a source permanently red on /vigil even when everything is set up as documented.

  1. Overage: a zero ceiling is reported as broken data. The shipped overage config (overage.json) sets "ceilingUsd": 0 and its _about says "0 or a missing file means the built-in default". Overage.ts ceilingChecked() treats 0 as a config error instead (ceilingUsd is not a positive number: 0), and VIGIL/adapters/overage.ts live() requires s.ceilingUsd > 0, so the source fails with source shape changed: overage fields. That also switches off the weekly Claude window watch the same adapter carries. One of the note or the code is wrong. Our local fix reads a zero ceiling as a closed lane: band 0, the weekly watch keeps running.

    need(typeof s.ceilingUsd === "number" && s.ceilingUsd >= 0 && ...)
    const pct = s.ceilingUsd > 0 ? 100 * s.spentUsd / s.ceilingUsd : 0;
    
  2. The jobs source has no writer. VIGIL/adapters/jobs.ts reads the agent-jobs run ledger (agent-jobs/runs.json), but InstallAgentJobs.ts is marked legacy and refuses new jobs, since Workflows replaced agent jobs. On an install with no legacy jobs the file never exists, so the source is red forever. (WORKFLOWS/Inventory.ts reads that ledger from a different directory than the adapter does.) Either retire the source or point it at Workflows runs, which the workflows source already covers.

  3. The Achilles audit and remediation pieces named in AchillesSystem.md don't ship. The doc names the workflows security-audit, achilles-remediate and achilles-urgent and the audit manifest finders.json. None of them is in the release, so SecurityAudit.ts run --dry-run fails with ENOENT on the manifest. The shipped agent-jobs config still defines achilles-remediate as an agent job, which the legacy installer refuses. A starter finders.json and the three workflow definitions would let a fresh install run the loop the doc describes.

Reproduce on a clean 8.761.0: install the Vigil tick, leave overage.json as shipped, and open Pulse /vigil (or read the newest line of the tick log ticks.jsonl). overage and jobs fail every tick.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

hjbrandt avatar Oct 29 '26 14:10 hjbrandt

Confirming item 2 on 8.761.0. No agent jobs are installed here (all scheduled work is launchd or Workflows), so MEMORY/STATE/agent-jobs/runs.json never appears and jobs stays red on /vigil on every tick. As a local workaround I marked VIGIL/adapters/jobs.ts with @vigil-adapter retired. The registry drops it, and the workflows source still covers scheduled work. Retiring the adapter upstream, or reading Workflows runs instead, would fix it on every install.

Hoyass avatar Oct 29 '26 18:10 Hoyass

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @hjbrandt, and @Hoyass for confirming the jobs case. A zero overage ceiling now reads as a closed lane at band 0 with the weekly watch still running, and the shipped note says 0 keeps the lane closed (the guard that a bad config never raises the ceiling stays). A source the install never had, like jobs without agent jobs, now shows as not set up instead of red. The starter finders.json and the three Achilles workflows are not part of this fix, since those definitions live in private user config; a contributor PR with a starter manifest and workflow templates would be welcome. The rest lands in the next release.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler