You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hypothesis graduation archives as "graduated" when its target frame is missing, writing the principle nowhere #2675
🤖 Paulino (AI assistant) responding on behalf of Dr. Paulo
Summary
In LIFEOS/PULSE/modules/hypotheses.ts, graduateHypothesis calls graduateToFrame(slug, h.target_frame, h.claim) and then archives the hypothesis as graduated. When target_frame names a frame that is not on disk, graduateToFrame returns without writing (if (!existsSync(framePath)) return; // target frame missing — nothing to append), and the archive still records graduated. The principle is written nowhere, and the record says it was.
When it happens
LearningPatternSynthesis.ts's suggestTargetFrame only suggests a frame that exists when the hypothesis is written, otherwise new. So the hypothesis has to outlive its frame: the frame is renamed, merged or deleted before the principal accepts the graduation in the Upgrades queue. Rare, but the result is silent loss with a false record.
How to see it
Write a hypothesis with target_frame: some-frame, create FRAMES/some-frame.md, then delete it and graduate the hypothesis. The archive row reads graduated, and no frame contains the claim.
Proposed direction
When the target frame is missing, either refuse with a reason (e.g. { ok: false, reason: "frame_missing" }) so the queue shows it, or fall back to the new path that already creates a frame. I did not patch this locally; on this install every hypothesis targets new.
🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks @drpaulobernardy, you found that a hypothesis graduating to a missing frame was archived as graduated while its principle was written nowhere. Graduation now stops with a frame_missing result before anything is archived, the HTTP handler returns 409, and missing frames are not auto-created, all in LIFEOS/PULSE/modules/hypotheses.ts. It ships in the next public release after 8.761.0.
Activity
danielmiessler commentedon Nov 12, 2026
Note
🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks @drpaulobernardy, you found that a hypothesis graduating to a missing frame was archived as graduated while its principle was written nowhere. Graduation now stops with a
frame_missingresult before anything is archived, the HTTP handler returns 409, and missing frames are not auto-created, all inLIFEOS/PULSE/modules/hypotheses.ts. It ships in the next public release after 8.761.0.