[bug] 发布包漏发 LIFEOS/SETUP/template-hashes.json,SetupInventory.ts status 因此把与出厂模板逐字节相同的…

Aperta
#2,633 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
bun, typescript

Direzione di ricerca

Start with LIFEOS/TOOLS/SetupInventory.ts and its tests, then inspect InterviewScan.ts and the release packaging for LIFEOS/SETUP/template-hashes.json. Reproduce the fresh-install status with the listed Bun command and compare its result with fingerprints computed from the install payload. Done means the readiness table handles missing hashes, failed probes, and unchanged sample lines as described; the report says all three fixes are already patched locally.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What happened

发布包漏发 LIFEOS/SETUP/template-hashes.json,SetupInventory.ts status 因此把与出厂模板逐字节相同的 USER 文件也算作已填,全新安装会报所有系统 ready。

Summary

SetupInventory.ts status reports every system as ready on a fresh install, because the release does not ship LIFEOS/SETUP/template-hashes.json (the installer payload's LIFEOS/SETUP/ holds only SetupManifest.json). With the file absent, status sets the fingerprints to {}, so the "unchanged from the shipped template" check never fires and a USER file byte-identical to its template counts as filled in.

Reproduce (LifeOS 8.761.0)

  1. Fresh install; ls LIFEOS/SETUP/ shows only SetupManifest.json.
  2. bun LIFEOS/TOOLS/SetupInventory.ts status prints 50 ready · 0 need setup · 0 optional and off.
  3. Computing the fingerprints from the install payload instead (templateHashes(manifest, "skills/LifeOS/install/USER")) gives 27 ready · 3 need setup · 20 optional and off for the same USER tree.

Two more of the same kind

  • status runs a system's probe only with --probe, so a system whose files exist but which does not work still reads ready.
  • InterviewScan.ts scores the TELOS sections that still hold the shipped (sample) lines word for word as 100% "already substantive", because it recognises placeholders only by marker words (TBD, "seed during interview").

Suggested fix

  • When template-hashes.json is missing, compute the fingerprints from the install payload's USER tree; when neither exists, never report ready (report unknown).
  • Run the probes by default, and let a failing probe outrank the files.
  • Decide "is this still the template?" by comparing the file line by line with the shipped template rather than by marker words, which works for any language and any placeholder style.

We patched all three locally along these lines, with tests, and the readiness table now matches what actually works.

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.

Lingua principale
TypeScript
Stelle
19.9k
Fork
2.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di danielmiessler/LifeOS

Tutte le issue di danielmiessler/LifeOS

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.