Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

feat(telos): parse status/dims/work tokens in PROJECTS.md

Open brycemagera opened this issue 6 months ago • 0 comments

Stacked on #1245 — that PR adds the parseTelosProjects() stub; this one fills it out so the dashboard's Projects and Work table actually renders all four columns. Will rebase to a single commit after #1245 lands.

Problem

what.tsx renders a 4-column Projects and Work table: Project / Strategy / Feeds / Work in flight. In #1245 parseTelosProjects() was added as a stub that returns only the title — strategy, dims, and work are hardcoded empty, and status is hardcoded amber. The result is 3 of 4 columns render empty for every project.

Change

Extends parseTelosProjects() to accept three additions in PROJECTS.md:

  1. Inline tokens on the project line: status:, dims: (pipe-delimited)
  2. Strategy already supported via the (ties Sx, Gy) syntax — first S-prefixed id becomes the strategy badge
  3. Work items as 2-space-indented sub-bullets with W\d+ ids and their own inline tokens

Example

```markdown

  • PR1: Project title — description | status:green | dims:money,freedom (ties S0, G2)
    • W1: Work item | strategy:S0 | eta:30d | status:amber | owner:Name
    • W2: Another item | strategy:S0 | eta:60d | status:red | owner:Name ```

Tokens

Field Values Default
status (project + work) green | amber | red amber
dims (project only) comma-list, validated against DIMENSIONS.md ids []
strategy (work only) any Sx; falls back to parent project's strategy parent's strategy
eta (work only) free-text \"\"
owner (work only) free-text \"\"

Compatibility

Format-incompatible PROJECTS.md files (no tokens, no sub-bullets) still parse correctly — projects get title only, with empty dims/work and amber status. This is the same shape #1245's stub produced.

Files

  • Releases/v5.0.0/.claude/PAI/PULSE/Observability/observability.ts — parseTelosProjects() rewrite (+51 / -9)

Verification

  • API at /api/telos/overview returns the new shape for projects with inline tokens
  • Dashboard renders all four columns when PROJECTS.md uses the format
  • Old-format PROJECTS.md still parses (title only)

brycemagera avatar May 12 '26 19:05 brycemagera