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

オープン
#2,633 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
bun, typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
19.9k
フォーク
2.5k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

danielmiessler/LifeOS のほかの issue

danielmiessler/LifeOS の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。