Skip to content

Hypothesis graduation archives as "graduated" when its target frame is missing, writing the principle nowhere #2675

Closed

Description

@drpaulobernardy

Note

🤖 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.

Activity

  1. danielmiessler commented on Nov 12, 2026

    @danielmiessler
    Owner

    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_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions