Skip to content

ci: the temporal_live path filter misses the sources the live knowledge pins import, so a change to them skips the live job in the queue and turns main red #38528

Description

@objectstack-fleet

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

Filing gate: ③ a measured defect found while fixing a main red (#38514; dev report 7252561967 on it, out_of_scope_findings class a).
Grading: area:fleet · domain:devx · p2 · reach: every queue entry that changes a source a live test imports but the filter does not list · evidence: measured from four main push runs and the filter text.
Related: #38514, #38470, #38087

维护者速读

What is measured

Ask

Make a queue entry that changes any source a live-postgres or live-mysql test imports run the live job. Two routes, the lane's to choose:

  1. Add the missing source paths to temporal_live, with a guard test or lint that fails when a *.live-postgres* or *.live-mysql* test imports a workspace source outside the filter.
  2. Derive the filter from the live tests' import closure at plan time.

Acceptance: a dry run shows that a change to packages/core/src/capability-composition.ts alone matches temporal_live, and the guard (route 1) or the derivation (route 2) is pinned by a test.

Not in scope: the #38514 pin itself (PR #38523); the required-set question (#38087).

Dedupe: temporal_live filter, live-postgres skipped merge queue, Temporal Conformance path filter: only #38514 and #38087, neither covers this.

Activity

  1. added
    priority:p2
    pm:queue
    domain:devx
    on Nov 29, 2026
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn
    Claim: PM loop round 2 · 2026-11-29T07:38Z
    Session: session_01FEkQ5oPfjnm2yWHEwkiYrn
    Account: os-project-manager
    Branch: claude/issue-38528-temporal-live-filter
    Worktree: objectstack-issue-38528
    Domain: domain:devx
    Seat: repo:objectstack#5
    Area: o5-fleet
    File surface: route 1 of the card's Ask.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 29, 2026
  4. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn
    Claim amendment · 2026-11-29T08:23Z · narrows the file surface of claim 7252608138
    Session: session_01FEkQ5oPfjnm2yWHEwkiYrn
    Account: os-project-manager
    Branch: claude/issue-38528-temporal-live-filter
    Seat: repo:objectstack#5
    Area: o5-fleet
    File surface: narrowed to these files only.

    • .github/workflows/ci.yml: the temporal_live filter, plus the guard's wiring if it is wired in this workflow.
    • The guard script under scripts/ (scripts/check-temporal-live-filter.mjs) and its test.
      Claim 7252608138 named packages/core/src/capability-composition.ts and packages/services/service-knowledge/src/**. They were only the globs the filter gains, written as filter text inside ci.yml. No file under those paths is edited by this card, so packages/services/service-knowledge/src/** is free for other cards. Everything else in claim 7252608138 stands. Stop on breach; explain in the report.
      Thread-read: none
  5. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn
    Claim: PM loop round 3, re-claim with a narrower surface; supersedes claim 7252608138 and amendment 7253073248 · 2026-11-29T08:25Z
    Session: session_01FEkQ5oPfjnm2yWHEwkiYrn
    Account: os-project-manager
    Branch: claude/issue-38528-temporal-live-filter
    Worktree: objectstack-issue-38528
    Domain: domain:devx
    Seat: repo:objectstack#5
    Area: o5-fleet
    File surface: .github/workflows/ci.yml, scripts/check-temporal-live-filter.mjs, and that guard's test under scripts/. No other file.
    Scope: route 1 of the card's Ask, as before. The temporal_live filter in ci.yml gains the workspace sources that the live-postgres and live-mysql tests import from source; those sources appear only as filter globs inside ci.yml, and no file under them is edited. The guard fails when such a test imports a workspace source outside the filter, and it is wired in ci.yml if that is the house pattern. The #38514 pin (PR #38523) and the required-set question (#38087) are out of scope. Stop on breach; explain in the report.
    Container & model: M, mode:subagent, model: claude-opus-5-5 (dispatch-gates --tier: "no path-derived mandate" ⇒ default opus), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: #38470 changed capability-composition.ts, its queue entry skipped Temporal Conformance because temporal_live does not list it, and main went red (#38514).
    Thread-read: none
    Premise: unchanged from claim 7252608138; the dev is already at work on the branch.
    Serial constraints cleared: no open PR edits ci.yml (scanned). Overlap-check before every push.
    Pre-claim lane: area:fleet · domain:devx · Bug · p2. check-governed-merges --test .github/workflows/ci.yml reads GOVERNED ⇒ Tier H: contract-tier L2, then L1, then the seat's hand-off.
    Pre-claim deps: none.

  6. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn
    Claim: PM loop round 4, re-claim with a narrower surface; supersedes claims 7252608138 and 7253101394 and amendment 7253073248 (7253101394 named a bare directory) · 2026-11-29T08:26Z
    Session: session_01FEkQ5oPfjnm2yWHEwkiYrn
    Account: os-project-manager
    Branch: claude/issue-38528-temporal-live-filter
    Worktree: objectstack-issue-38528
    Domain: domain:devx
    Seat: repo:objectstack#5
    Area: o5-fleet
    File surface: .github/workflows/ci.yml, scripts/check-temporal-live-filter.mjs, scripts/check-temporal-live-filter.test.mjs. No other file; a guard test kept inside the script as a self-test needs no second file.
    Scope: route 1 of the card's Ask, as before. The temporal_live filter in ci.yml gains the workspace sources that the live-postgres and live-mysql tests import from source; those sources appear only as filter globs inside ci.yml, and no file under them is edited. The guard fails when such a test imports a workspace source outside the filter, and it is wired in ci.yml if that is the house pattern. The #38514 pin (PR #38523) and the required-set question (#38087) are out of scope. Stop on breach; explain in the report.
    Container & model: M, mode:subagent, model: claude-opus-5-5 (dispatch-gates --tier: "no path-derived mandate" ⇒ default opus), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: #38470 changed capability-composition.ts, its queue entry skipped Temporal Conformance because temporal_live does not list it, and main went red (#38514).
    Thread-read: none
    Premise: unchanged from claim 7252608138; the dev is already at work on the branch.
    Serial constraints cleared: no open PR edits ci.yml (scanned). Overlap-check before every push.
    Pre-claim lane: area:fleet · domain:devx · Bug · p2. check-governed-merges --test .github/workflows/ci.yml reads GOVERNED ⇒ Tier H: contract-tier L2, then L1, then the seat's hand-off.
    Pre-claim deps: none.

  7. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn
    os-dev-report

    {
      "issue": 38528,
      "status": "done",
      "branch": "claude/issue-38528-temporal-live-filter",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38560",
      "head": "ac3dc229a4",
      "session": "session_01FEkQ5oPfjnm2yWHEwkiYrn",
      "premise_still_valid": true,
      "summary": "Route 1. Measured the run-time import closure of every live-server test the temporal-conformance job runs. That is 164 tests: 125 driver-sql matrix files, 22 service-analytics files, 9 metadata-protocol files, 7 knowledge-pgvector files and 1 runtime file. The closure was walked the way vitest resolves it: the real alias table loaded from each vitest config, dist imports mapped to src, relative imports, and the configs with their setup files. The result is 1,858 files, of which 1,623 were on no temporal_live row at 0af813f301, capability-composition.ts among them. temporal_live now has 49 rows: package src/** where the closure enters through a barrel, 16 spec namespace dirs (src/migrations and src/studio excluded), and literals for single files. 25 subsumed rows are removed. scripts/check-temporal-live-filter.mjs (new) derives the population from the job's live steps and reds on any closure file no row matches; its derivation reproduces the 22 hand-listed analytics files exactly. After amendment 7253073248 the guard is wired in ci.yml only: one Build Core step plus a core filter row. The first push's package.json alias and lint.yml step were withdrawn, so the net diff is ci.yml plus the guard. Route 2 was not needed.",
      "files_changed": [
        ".github/workflows/ci.yml",
        "scripts/check-temporal-live-filter.mjs"
      ],
      "tests": "At ac3dc229a4: `node scripts/check-temporal-live-filter.mjs --self-test` exit 0, '✓ check-temporal-live-filter self-test: 59 case(s) across 7 batteries hold.' `node scripts/check-temporal-live-filter.mjs` exit 0, '✓ ... every workspace file the 164 live test(s) load (1858 file(s)) is on a temporal_live row ... (49 row(s)).' Base list check (judge over the 29 rows of 0af813f301, in memory): 1,623 of 1,858 closure files on no row, including core/src/capability-composition.ts via capability-mount.live-postgres.test.ts -> core/src/index.ts. Dry run with picomatch 4.0.7 {dot:true}: capability-composition.ts, service-knowledge/src/knowledge-service-plugin.ts, metadata-protocol seed-tenancy-backfill.ts and spec/src/data/field.zod.ts are NO MATCH at 0af813f301 and MATCH at ac3dc229a4; route-ledger.ts, spec/src/migrations/registry.ts and README.md are NO MATCH at both. Gate matcher vs picomatch over all 28,936 tracked files: 0 disagreements. On-disk ablation at ac3dc229a4 (rows deleted with sed, restored with git checkout HEAD --): deleting packages/core/src/** gives exit 1 with 137 files including capability-composition.ts; deleting packages/services/service-knowledge/src/** gives exit 1 with 20 files including knowledge-service-plugin.ts and testing.ts; restored gives exit 0. Self-test ablation at fc5b37fd97: with the core row deleted, the self-test goes red on 'a change to packages/core/src/capability-composition.ts alone matches a temporal_live row'.",
      "gates": "Local, at ac3dc229a4: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 66 families. All 66 ran in one hold of the verify lock (VERDICT command-exit 0, held 1801s, shared box), each exit code captured before any pipe; all 66 exit 0, including check:pm-dispatch-gates (fast tier, 2459 cases) and check:self-test-wired. `--ran`: 'Run reconciliation — 66 derived, 66 run, 0 NOT-MEASURED, 0 UNRUN.' check:nul-bytes OK. Earlier round on 2092fb3793: red on check:parse-guard (raw ts.createSourceFile), check:pnpm-filter-targets (fixture --filter names not in the workspace) and bare-root-worklist --self-test (undeclared bare root). All three were fixed in e0de164758. Two earlier lock attempts ended in exit 99 queue-timeout and were requeued under the same slot. PR check-runs at ac3dc229a4 when this was written: Governed Surface Queue Guard success, Check Changeset success; Build Core, Test Core, Lint & Repo Gates and TypeScript Type Check not yet concluded (NOT MEASURED, not awaited). Temporal Conformance does not run on pull_request by design.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "deviations": [
        "The first pushed commit, fc5b37fd97, added a root package.json `check:temporal-live-filter` alias and a lint.yml step, the house wiring the dispatch named. Both were withdrawn in 2092fb3793 after amendment 7253073248 narrowed the surface. The guard now runs as one Build Core step in ci.yml, plus a core filter row so a change to the gate starts Build Core. The net diff vs main is 2 files.",
        "No `Rule-change:` line in the PR body. The dispatch said to declare `Rule-change: none`, but the repo PR template and os-dev.md both say the line appears only when the diff touches .claude/**, and this diff does not.",
        "Four light gates (bare-root-worklist --self-test, check:parse-guard, check:pnpm-filter-targets, check:watch-hint-literal) were spot-checked once outside the lock while fixing. The final 66-family union ran entirely under the lock at the final head.",
        "Commits carry the dispatch's model-free trailer pair, not the harness reminder's model-named Co-Authored-By. The PR footer uses AGENTS.md's session-URL form. The two `git merge --no-edit` commits carry git's default message, and the pre-push trailer check passed."
      ],
      "open_questions": [
        {
          "question": "The live job now starts on about 36% of queue entries instead of 6% (300 first-parent main commits ending 0af813f301, picomatch 4.0.7). Accept that breadth?",
          "options": [
            "A: land as is. The job (467-684 s samples) runs in parallel with a 21.7-min p50 queue build; the queue median before/after is NOT MEASURED until a week of queue runs.",
            "B: narrow the population to the *live-postgres*/*live-mysql* files only. Measured, those 16 tests alone still need 1,557 closure files across 16 packages, so this saves almost nothing and leaves driver-sql's and analytics' live cells uncovered.",
            "C: route 2, deriving the filter at plan time. Same population and frequency; it only removes the hand rows, at the cost of a plan-time job."
          ],
          "recommendation": "A, because the breadth is the true closure: spec, core and objectql are loaded by nearly every live test, and B or C do not change that."
        },
        {
          "question": "Should the guard stay in Build Core, or move to a lint lane later?",
          "options": [
            "A: keep it in Build Core. It is required, starts on packages/** and ci.yml, and costs about 58 s on a shared 4-vCPU box.",
            "B: move it to the house pattern in a follow-up: root package.json `check:temporal-live-filter` alias plus a step in lint.yml's `Lint · CI, release & engine gates` beside `CI filter parity`, with battery 7 re-pointed. That needs those two files on a surface."
          ],
          "recommendation": "A for this PR; B only if the seat wants Build Core lean, as a two-file follow-up."
        }
      ],
      "out_of_scope_findings": [
        "class: a · reach: named producer — ci.yml step 'Run the metadata-protocol migration statements against live MySQL and PostgreSQL' runs `vitest run live-mysql live-postgres` (substring selectors) · evidence: packages/metadata-protocol/src/migrations/activation-ledger-packageless-index.live-dialects.test.ts reads OS_TEST_POSTGRES_URL and OS_TEST_MYSQL_URL (describe.skipIf on each), but its path carries neither substring. So no CI step hands it a live server, and its live PostgreSQL and MySQL cells are named skips in Test Core and never run anywhere. Measured on ac3dc229a4 · dedupe words: activation ledger live-dialects, live-dialects never selected, metadata-protocol live substring selector, vitest run live-mysql live-postgres",
        "carrier: none · noted, not filed — about 60 test files outside the temporal-conformance job read OS_TEST_POSTGRES_URL/OS_TEST_MYSQL_URL (packages/rest, plugin-security, plugin-sharing, plugin-auth, cli, runtime analytics doors, qa/dogfood). No CI step I read hands them a URL, so their live cells look like named skips in CI. This is an inference from a grep plus the job's steps, not verified per file."
      ],
      "security_findings": "none",
      "api_writes": "2 relay/tool writes — (1) fleet-write relay pr_create, run 46248422709: POST /repos/objectstack-ai/objectstack/pulls (draft, #38560), POST /issues/38560/assignees (os-project-manager), POST /issues/38560/labels (skip-changeset); read-back identical 28430 bytes, assignee and label present. (2) this os-dev-report comment via post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/38528/comments. Not REST: git push x5 (probe, wip, fix, wiring move, fixes plus merges). Reads were via gh api only.",
      "mcp_calls": "0"
    }
  8. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

    Delivered · 2026-11-29T11:23Z · area o5-fleet · PR #38560 merged 1a9d1495e1 at 2026-11-29T11:18:09Z (Fixes #38528). GOVERNED, Tier S by content, handed to the maintainer for the reach widening, approved and merged by him. temporal_live now covers the measured import closure of the 164 live tests the temporal-conformance job runs, and scripts/check-temporal-live-filter.mjs fails, in Build Core, on any closure file no row matches.

    pm:dispatched is removed in this stroke.

  9. removed
    pm:dispatched
    on Nov 29, 2026
  10. added a commit that references this issue on Dec 1, 2026
    1a9d149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:fleetdomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions