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): provenance is lazily populated per process — /api/health reports "fixtures" for facets not yet loaded since boot · Issue #1267 · developing-today/code

fix(aggregator): provenance is lazily populated per process — /api/health reports "fixtures" for facets not yet loaded since boot #1267

New issue
Copy link
New issue
Copy link
Closed
#1318
Closed
fix(aggregator): provenance is lazily populated per process — /api/health reports "fixtures" for facets not yet loaded since boot#1267
#1318
Copy link
Assignees
dezren39
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/bugSomething isn't working (prefixed form of the classic bug label)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

Found by the #1184 coherence design track (2026-10-26, verified live twice): the aggregator's Provenance facet strings are lazily populated per server process. live.ts initializes every facet to a fixture default, and each facet's string is only replaced when that facet's method has actually run in that process. /api/health (server.ts) reads source.provenance() without exercising the facets — so its answers depend on which pages happened to be visited since boot.

Verified tonight: /api/health reported registry: "fixtures" in the same minutes /sessions was serving 221 merged records. Health that lies by omission, depending on request order, undermines every freshness/honesty surface in epic #1184.

Fix direction

Health must actively load or probe the facets it reports on (or provenance must be computed from loaded state, not request history). The coherence design doc (~/workspace/pm-stack-coherence-design-2026-10-26.md, health/freshness sections) already stipulates: actively load or probe; never trust the lazy strings. Coordinate with #1140 (absent-vs-invalid diagnosis) — same honesty family, different mechanism: #1140 is about the orchestration section's validation outcome being misreported as absent; this is about facet provenance depending on process request history.

Acceptance

  • Fresh server process, first-ever request is /api/health: every facet reports its true source (live vs fixtures) without any prior page visit.
  • Regression test: provenance correctness independent of call order.
  • /api/health output for a fully-live deployment contains no false "fixtures" facets.

Refs: epic #1184, #1140, #1138.

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

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

    CODE-391

  3. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  4. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    Agent note (pickup): building the honesty + freshness slice of epic #1184 in one PR — this issue (banner + unknown counts + dead-man's-switch half of #1148), #1138 (freshness chips), #1267 (health priming). Design: ~/workspace/pm-stack-coherence-design-2026-10-26.md cluster 1. The PR also carries the role-based copy change (visible "Needs Drew" → "Needs user"; contract field names untouched).

  5. dezren39
    added 2 commits that reference this issue on Oct 27, 2026

    feat(aggregator): honesty + freshness — no silent zeros, primed healt…

    fc571cf

    Merge pull request #1318 from developing-today/pm/honesty-freshness

    b8aedf0
  6. dezren39
    closed this as completedin #1318on Oct 27, 2026
  7. developing-today
    added
    status:done
    on Oct 27, 2026
  8. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    Agent-note (completion): shipped in PR #1318 (merge b8aedf09), closing this issue.

    What landed

    • /api/health now primes every provenance facet before answering (ensureProvenancePrimed in src/server.ts): it exercises the board/roadmap/comments/quota/usage/attention/orchestration/dns/aa/registry/projects reads via Promise.allSettled, cached for 60 s (the impl(aggregator): service & page health page - live probes for every stack service, feed ages, last runs #1147 probe-cache cadence) so a polling watchdog doesn't fan out to every upstream per hit. A facet that fails keeps its honest fallback string — which is exactly what health exists to report — and health itself never fails because a facet did.
    • The response also carries the structured diagnosis beside the strings: sections.orchestration = { state: live|stale|absent|invalid, runId?, generatedAt?, ageMs?, failedChecks? } (from Source.diagnostics(), fix(aggregator): /attention presents derived-only data as authoritative when the orchestration tier source is missing - banner + never a silent 0 #1139/fix(aggregator): health/footer misdiagnoses a rejected orchestration section as 'has not published' - distinguish absent vs invalid #1140's primitive).
    • Supporting fix: the live items() facet now reports live (project pool · fleet feed · <age>) on an empty-refs call when a pool is present (the prime path), instead of leaving the fixture default standing for a facet nobody had resolved refs through.

    Regression test: test/health-priming.test.ts boots a live-source server against a controlled feed and asserts on the first response the process ever serves (the readiness poll itself): quota facet live (fleet feed …, orchestration facet live (orchestration section orch-health-test …, registry facet contains 1 session records (not fixtures), and sections.orchestration.state === "live".

    Verification: bun test 181 pass / 0 fail, bunx tsc --noEmit clean, CI green. The fresh-process case is additionally proven live at deploy time (service restart → /api/health as first hit).

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/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/bugSomething isn't working (prefixed form of the classic bug label)status: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.