GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(aggregator): isOrchestrationSection validates only the top level — a malformed goal crashes /today instead of falling back · Issue #949 · developing-today/code

fix(aggregator): isOrchestrationSection validates only the top level — a malformed goal crashes /today instead of falling back #949

New issue
Copy link
New issue
Copy link
Closed
#1018
Closed
fix(aggregator): isOrchestrationSection validates only the top level — a malformed goal crashes /today instead of falling back#949
#1018
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Oct 26, 2026
Issue body actions

Finding

isOrchestrationSection validates only the orchestration section's top level, but the today-view consumer dereferences nested per-goal arrays unconditionally. A section that passes the validator can still crash /today and /api/today.json with a TypeError instead of falling back to the locally derived view.

Evidence

  • PR feat(aggregator): orchestration section in the fleet feed + /api/orchestration.json #900 (commit 92d17e356135) added the validator at pm-stack/aggregator/src/feed.ts:38 (current main a2eef6f7920a). It checks only version/generatedAt/runId, that tiers.needsDrew/tiers.needsOrchestrator are arrays, and that dependencies/goals/actions are arrays. It never checks provenance, nor any per-goal field, nor tier-item fields.
  • PR feat(aggregator): slice 2 — mobile, needs-Drew/orchestrator tiers, roadmap horizons, today view, session clarity #901's todayFromSection (current main pm-stack/aggregator/src/derive.ts) dereferences the unvalidated fields: g.linedUp.filter(...) (:595), g.stalled.filter and g.linedUp.flatMap (:614-615), ...g.gaps (:622), g.progressedSinceLastRun (:618), section.actions.slice (:630).
  • Reproduced against current main with a section whose single goal omits linedUp: isOrchestrationSection(s) === true, then todayFromSection(s) throws TypeError: undefined is not an object (evaluating 'g.linedUp.filter').
  • PR feat(aggregator): orchestration section in the fleet feed + /api/orchestration.json #900's own tests (pm-stack/aggregator/test/orchestration.test.ts:50,56) only reject a wrong version / missing top-level tier arrays — no nested-shape case exists.

Why it matters

The section is produced by an LLM-run orchestration job writing JSON by hand — exactly the producer a structural check exists to fail-soft against. The validator's documented contract (feed.ts comment: "Absent or malformed = 'not measured'") promises the derived fallback; instead, one malformed goal takes down the today view with a 500, which is the aggregator's headline page.

Acceptance criteria

  • The validator rejects (or the consumer tolerates) a goal missing any of linedUp/stalled/gaps/progressedSinceLastRun, and a section missing provenance.
  • Regression tests mirror orchestration.test.ts for the nested cases (goal missing each array in turn).
  • For such a feed, /today and /api/today.json return the locally derived view, not an error.

Found by the pr-diff-review job reviewing PRs #900 and #901 against current main (one finding covering both PRs: #900 introduced the validator, #901 the consumer). Dedupe: searches for isOrchestrationSection / orchestration linedUp validator returned only the closed implementation issue #899.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    on Oct 26, 2026
  2. developing-today commented on Oct 26, 2026

    @developing-today
    developing-todayBot
    on Oct 26, 2026 – with developing.today
    Contributor
    More actions

    CODE-161

  3. dezren39
    added
    source/pr-diff-reviewFiled by the pr-diff-review job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    on Oct 26, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 26, 2026
  5. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    Agent note — state: filed; Agent: pr-diff-review job; Session/ID: pr-diff-review run 2026-10-25 23:37 CDT; Found via: filed this run (PR diff review against current main a2eef6f). A repo-task/v1 packet for this issue is being enqueued to the repo-health-code-pilot queue.

  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 26, 2026
  7. 8 remaining items

  8. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Oct 26, 2026
  9. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane A shift
    • Session / ID: queue task 1151
    • Found via: queue claim
    • Task: Implement the fix(aggregator): isOrchestrationSection validates only the top level — a malformed goal crashes /today instead of falling back #949 fix per triage task 1098's design: deepen isOrchestrationSection in pm-stack/aggregator/src/feed.ts with per-goal checks (linedUp/stalled/gaps arrays; progressedSinceLastRun string-or-array) plus a section-level provenance string check, with regression tests in test/orchestration.test.ts. Validator only — no consumer changes.
    • Expectation: m — done = PR open with bun test green in pm-stack/aggregator.
    • Links: branch queue/1151-949-orchestration-validator (to be created)
  10. developing-today
    added
    status:in-review
    on Oct 26, 2026
  11. dezren39
    added 2 commits that reference this issue on Oct 26, 2026

    style(aggregator): biome-format feed.ts and orchestration.test.ts (#949)

    02d0c5a

    fix(aggregator): deepen isOrchestrationSection to per-goal fields (#949…

    f73a808
  12. dezren39
    closed this as completedin #1018on Oct 26, 2026
  13. developing-today
    added
    status:done
    and removed
    status:in-review
    on Oct 26, 2026
  14. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane A shift
    • Session / ID: queue task 1151
    • Found via: queue claim
    • Task: Merged PR fix(aggregator): deepen isOrchestrationSection to per-goal fields (#949) #1018 — isOrchestrationSection now validates per-goal fields (linedUp/stalled/gaps arrays; progressedSinceLastRun string-or-array) and section provenance, so a malformed goal fails validation and /today falls back to the derived view instead of crashing. Full aggregator suite (130 tests) and typecheck green locally; CI green after a biome format fix.
    • Expectation: done — task 1151 completed with outcome fixed_merged.
    • Links: PR fix(aggregator): deepen isOrchestrationSection to per-goal fields (#949) #1018
  15. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/aggregatorPackage/app: aggregator (pm-stack in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.