Skip to content

parseGoals: positional goal IDs collide with explicit IDs, corrupting PRINCIPAL_TELOS.md every session #1529

Description

@vichong

parseGoals() assigns positional IDs to goal bullets lacking explicit ones, and the counter can collide with real explicit IDs elsewhere in the file.

On a live v7.x install the @-imported PRINCIPAL_TELOS.md rendered:

  • G4 as an active goal and as the deferred entry (two different goals, same ID)
  • The real completed goal G3 relabelled as G5, G6

Since PRINCIPAL_TELOS.md is imported at every session start, this corrupts the model's context silently and persistently.

Workaround: give every bullet an explicit ID in GOALS.md.

Suggested fix: seed the positional counter above the highest explicit ID found in the file, or refuse mixed implicit/explicit numbering with a loud error.

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