Skip to content

37141 跟进:技能 context 指向依赖包资料包时误报,stdio MCP 未按工具绑定过滤技能 #37609

Done
1 of 1 issue completed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

Filing gate: ② follow-up out of #37141. The source is the os-dev report on PR #37552 (comment 7195831625, out-of-scope findings). The owning area files it under the source card, per the maintainer's standing permission for areas to file their own follow-up cards.
Grading: area:ai · Bug · p3 · reach: authors whose skill's context names a pack shipped by a dependency package; hosts on the long-lived stdio MCP door · evidence: read.

维护者速读

  • 做什么:两处小偏差。一,技能的 context 指向依赖包里的资料包时,os validate 误报「资料包不存在」,而运行时其实能找到。二,长连接(stdio)的 MCP 入口不按工具绑定过滤技能,主机不提供 get_record_context 时也会列出带 context 的技能。
  • 谁受益:技能作者;用 stdio 接入的外部 AI。
  • 不做会怎样:作者看到误报;stdio 上可能列出用不了的技能。
  • 需要你做的:无。

What

  1. Lint: ai-skill-context-unknown in packages/lint/src/validate-ai-tool-references.ts judges context only against the stack's own aiContexts, while the runtime resolves the pack through the package closure (ADR-0150 D3, resolvePackageScopedHolders). Judge it the way the runtime resolves it, or say in the warning that a dependency's pack is not seen.
  2. MCP: the long-lived stdio bridgePrompts (packages/mcp/src/plugin.ts / mcp-server-runtime.ts) applies no tool-binding filter (pre-existing, documented in its own describe block), so a skill with context is listed whether or not the host serves get_record_context. Apply skillBindingServed there, or record why that door cannot know what is served.

Acceptance

  • Item 1: a test with a pack from a dependency package: no false warning, or the warning says so; a control with a truly unknown pack still warns.
  • Item 2: a parity test between the HTTP door and the stdio door for a host that does not serve get_record_context.
  • Clause-②: no for item 1; item 2 narrows a listing, so state the line in the PR.

Parent: #37141
Size: S
Dedupe (objectstack, is:issue): ai-skill-context-unknown dependency 0 · bridgePrompts skillBindingServed 0.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    pm:queue
    area:ai
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:server · Bug · priority:p3 · pm:queue · size S; rationale: a skill whose context names a pack from a dependency package is misreported, and stdio MCP does not filter skills by tool binding. Read, narrow reach: p3 as filed.

  3. added
    domain:server
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    Scope note: item 2 (the stdio bridgePrompts binding gate) shipped in PR #37552 (seat REWORK 7196154770, S1): the stdio server offers the record argument only when it registers get_record_context, pinned by the stdio parity test. This card now carries item 1 only (lint reads the package closure for ai-skill-context-unknown).

  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    Claim: PM loop round 13 · area ai-36996 (topic #36996 non-cloud rows; the maintainer, verbatim, 2026-11-25T12:57Z project thread: 「开一个 36996 专题,接手剩余任务」; area concurrency 3 under the maintainer's total of 10, 2026-11-26T13:44Z: 「后续并发降到10」) · 2026-11-26T23:01Z
    Session: session_01Utp6CbeF2saT6wUBV4E9uc
    Account: os-bill
    Area: ai-36996
    Branch: claude/issue-37609-skill-context-closure
    Worktree: objectstack-issue-37609
    Domain: domain:server
    Seat: repo:objectstack#5
    File surface: item 1 only (scope note 7201041858): packages/lint/src/validate-ai-tool-references.ts (ai-skill-context-unknown), the lint-side reader of a stack's dependency closure if one already exists, and their tests; packages/lint/src/rule-explanations.ts if the rule's explanation changes; root .changeset/. ⛔ No packages/spec/**, packages/mcp/**, packages/runtime/**, skills/**, docs/adr/**, ui/**. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — dispatch-gates --tier: "no path-derived mandate", effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: packages/lint (ai-skill-context-unknown judges context against the stack's own aiContexts, while the runtime resolves the pack through the package closure, ADR-0150 D3) produces a false warning | no platform path covers it | every author whose skill names a context pack a dependency package ships
    Premise: holds in part — on origin/main 302cfda7ad: the rule reads stack.aiContexts only (validate-ai-tool-references.ts:276). Its message already hedges ("unless a dependency ships it", line 301), so the card's second option is met in wording. The open part is judging through the closure where lint can see it.
    Serial constraints cleared: #37141 (PR #37552) merged; item 2 shipped there. In flight: PR #37694 (packages/mcp/**, queued), PR #37674 (skills/**): disjoint.
    Pre-claim deps: #37141 closed
    Prior rulings read: scope note 7201041858; seat REWORK 7196154770 (S1) on PR #37552

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  7. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    os-dev-report

    {
      "issue": 37609,
      "status": "needs_decision",
      "branch": "claude/issue-37609-skill-context-closure",
      "pr": null,
      "head": "aca4960f66 (origin/main; branch pushed empty as the route probe, no commits)",
      "session": "session_01Utp6CbeF2saT6wUBV4E9uc",
      "premise_still_valid": true,
      "summary": "Stopped before code, per the dispatch's stop clause. Lint CAN see the artifact-internal closure: the per-package pass hands the package's stack its manifest plus the artifact's packages[] (packageBodyAsStack, packages/cli/src/utils/artifact-packages.ts), and lint already walks it with resolvePackageClosure from @objectstack/metadata-core, an existing edge (dependencyClosureObjectNames, packages/lint/src/validate-flow-trigger-readiness.ts). What lint CANNOT reach without a new package edge is the runtime's order: the one ADR-0150 D3 rule, resolvePackageScopedHolders, lives in @objectstack/core (packages/core/src/package-scoped-resolution.ts), which lint does not depend on (packages/lint/package.json; packages/lint/src/index.ts header: lint depends on spec and never on a runtime). The rule's own header forbids a second local copy, and the ADR-0150 ai_context addendum (reader 2) says the author surfaces that validate a skill judge context by the same rule, so a lint-local reimplementation of steps 1-3 would be the approximation the dispatch rules out. Measured on aca4960f66 (built lint dist, per-package stack shape): a pack shipped by a declared dependency in the same artifact still warns ai-skill-context-unknown (the false positive is real); own-stack pack 0 findings; truly unknown pack 1; a sibling package's pack with no declared dependency 1 (correct: the runtime refuses holders outside the closure). Packs of dependencies outside the artifact (npm-installed) are invisible to os validate under every option, so the current hedge stays right for them.",
      "tests": "No code, so no test suite owed. Repro: node SCRATCH/issue-37609/repro/repro.mjs against packages/lint/dist built at aca4960f66 (build under os-verify-lock: VERDICT command-exit 0, held 84s), exit 0, output: '1 dependency pack (B depends on A) 1' / '2 own-stack pack 0' / '3 truly unknown pack 1' / '4 sibling pack, not a declared dependency 1'. Ablation: not run (no change to ablate). NOT MEASURED: the os validate door end to end (CLI closure not built); the per-package pass is the shape reproduced.",
      "gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: exit 2, 'this branch changes nothing against origin/main (merge base aca4960f6) — nothing to derive'. No local gate owed, no PR check-runs exist.",
      "line_budget": "n/a — no diff",
      "files_changed": [],
      "deviations": "none. dispatch-gates.mjs and overlap-check.mjs were not needed past the derivation above, as nothing was pushed beyond the empty branch.",
      "readings": [
        "repo objectstack-ai/objectstack @ aca4960f66: git grep resolvePackageScopedHolders outside tests: hosts are packages/core (definition, security-catalog), packages/mcp/src/skill-prompts.ts, packages/cli/src/utils/picklist-references.ts; 0 under packages/lint/src.",
        "repo objectstack-ai/objectstack @ aca4960f66: packages/lint/package.json dependencies = formula, metadata-core, sdui-parser, spec (+ ajv, ajv-formats, sucrase, typescript); no @objectstack/core.",
        "repo objectstack-ai/objectstack @ aca4960f66: packages/core/package.json workspace deps = metadata-core, spec, types; nothing depends back on lint, so a lint-to-core edge is not a cycle.",
        "Precedent: packages/cli/src/utils/picklist-references.ts calls the core rule from the CLI, and its header 'Why this is not an @objectstack/lint registry rule' records the same wall; packages/metadata-core/src/package-closure.ts records the R2 move of the closure walk out of lint into metadata-core to add no package edge."
      ],
      "acceptance": [
        "Item 1, dependency pack gives no false warning: NOT DONE — blocked on the route decision below.",
        "Item 1, a truly unknown pack still warns: holds today (measured, case 3).",
        "Item 1, own-stack case: holds today (measured, case 2).",
        "Item 2: shipped in PR #37552 per scope note 7201041858, not this dispatch's."
      ],
      "dogfood_battery": "n/a — no PR",
      "mcp_calls": "0",
      "api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/37609/comments (this os-dev-report, via post-stamped). git push of the empty branch is not a REST write.",
      "open_questions": [
        {
          "question": "Through which seam should @objectstack/lint call the ADR-0150 D3 rule (resolvePackageScopedHolders) to judge a skill's context?",
          "options": [
            "A: host the pure rule in @objectstack/metadata-core (it imports nothing), core re-exports it under the same names, lint calls it with packageResolutionClosure over the artifact's packages[]. The precedent is R2, which moved the closure walk out of lint into metadata-core for the same reason. No new package edge. Cost: touches packages/core and packages/metadata-core, outside this claim's file surface; new public exports on metadata-core make Clause-② yes (widening). Effort M: two PRs or one wider claim, plus lint wiring and pins.",
            "B: add @objectstack/core as a lint dependency and call the rule directly. Cost: a new package edge against lint's stated charter (spec only, never a runtime). Effort S: lint package.json, lockfile and the rule.",
            "C: judge the dependency pack in the CLI's per-package pass, as picklist-references.ts does. Cost: touches packages/cli, outside the claim; the lint rule itself stays judging against the stack only, so the runtime gate and other lint consumers keep the hedge. Effort S-M.",
            "D: keep the hedged warning as is and close item 1 on wording. Cost: the measured false positive stays for a pack a declared in-artifact dependency ships. Effort zero."
          ],
          "recommendation": "A, because it is the one route that keeps a single copy of the rule and adds no package edge, which is how the closure walk itself was placed (R2). The dispatch did not carry the pm-dispatch decision axes, so this is not an axis-by-axis analysis: please paste the axes if the seat wants one, and re-claim with the widened file surface and the Clause-② line the chosen option implies."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed · observation: on the union run (authoringRuleUnionStack) every package's aiContexts fold into one list, so a skill naming a pack that only a sibling package outside its closure ships gets no ai-skill-context-unknown there, though the runtime refuses it; the per-package pass does report it (repro case 4), so the author still sees one warning."
      ]
    }
  8. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

    席位裁定 — route for item 1

    Route A. Move the pure ADR-0150 D3 rule (resolvePackageScopedHolders and its helpers; it has no imports) into @objectstack/metadata-core. @objectstack/core re-exports it under the same names, so no caller of core changes. ai-skill-context-unknown calls it with packageResolutionClosure.

    Why: it is the only route that keeps ONE copy of the rule and adds no package edge. Lint keeps its spec-only charter, and this follows the R2 precedent, which moved the closure walk out of lint into metadata-core. B breaks the lint charter. C leaves the lint rule and the runtime gate on the hedge. D keeps a false positive that has been measured.

    Terms:

    • The surface widens to packages/metadata-core/src, the packages/core re-export, and the lint rule with its pins. Size M.
    • Clause-②: yes (widening) at patch for the new @objectstack/metadata-core exports. Core's export set must stay identical: pin that the re-exported names are the same function objects.
    • Pins: the dependency-shipped pack no longer warns in the per-package pass; own-stack, unknown and non-dependency sibling packs keep their current verdicts; and an ablation that drops the closure argument turns the first pin red.
    • This is technical placement. The goal is unchanged, so no maintainer decision is owed.
  9. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    Claim amendment · 2026-11-26T23:11Z · claim 7205200630 · widens the surface for seat 5's route ruling 7205321128 (route A), per the os-dev blocked report 7205297983.

    • File surface, added: packages/metadata-core/src/ (the pure ADR-0150 D3 rule resolvePackageScopedHolders, with its types and tests, moved from packages/core/src/package-scoped-resolution.ts, and its export from the metadata-core index); packages/core/src/package-scoped-resolution.ts and the core index (the same names re-exported from metadata-core, with no second copy); a pin that core's re-exported names are the same function objects; and a @objectstack/metadata-core patch changeset. The lint side stays as claimed: ai-skill-context-unknown calls the moved rule with packageResolutionClosure over the artifact's packages[]. Still ⛔ packages/spec/**, packages/mcp/**, packages/runtime/**, skills/**, docs/adr/**, ui/**; no new package edge.
    • Clause-②: no → Clause-②: yes (widening), patch, for the new metadata-core exports.
    • Container & model: M, mode:subagent, model: default — dispatch-gates --tier: "no path-derived mandate", effort: high.
    • Pins the ruling names: a pack a declared dependency ships no longer warns; own-stack, truly unknown and non-dependency sibling verdicts are unchanged; one ablation dropping the closure argument.
  10. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    os-dev-report

    {
      "issue": 37609,
      "status": "blocked",
      "branch": "claude/issue-37609-skill-context-closure",
      "pr": null,
      "head": "14b930039a (local only, NOT pushed; the remote branch is still the empty probe at aca4960f66). Saved as 3 format-patch files and a verified git bundle under /mnt/project-files/objectstack-seat5/ai-36996/patch-37609-routeA/, and the worktree ../objectstack-issue-37609 is kept.",
      "session": "session_01Utp6CbeF2saT6wUBV4E9uc",
      "premise_still_valid": true,
      "summary": "Route A (seat ruling 7205321128, claim amendment 7205331748) is implemented and verified locally, but the push is held. The dispatch's overlap gate answered exit 1: open draft PR #37676 (knowledge_source governed type, Tier H, size xl) adds 4 lines to packages/core/src/package-scoped-resolution.ts, putting 'knowledge_source' into PACKAGE_SCOPED_TYPES. That file is hand-written and is exactly the one this route moves out, so the gate says stop and report. The fix is mechanical either way: whoever lands second moves that one list entry into packages/metadata-core/src/package-scoped-resolution.ts. Their metadata-core/src/index.ts hunk merges cleanly; origin/main 80519b5991 merges cleanly. What is done: the rule file and its tests moved with git mv into metadata-core and are exported from its index; core's package-scoped-resolution.ts is now only a named re-export of all 33 names (20 values, 13 types), so every core caller and every path#symbol anchor still resolves; the lint rule resolves context through resolvePackageScopedHolders with packageResolutionClosure over the artifact's packages[]. No new package edge.",
      "tests": "Full suites at 14b930039a, each captured before any pipe: @objectstack/metadata-core test exit 0 (28 files, 1104 tests), typecheck exit 0. @objectstack/core test exit 0 (158 files, 3777 tests, including the new reexport pin), typecheck exit 0. @objectstack/lint test exit 0 (239 files, 9718 tests), typecheck exit 0. Callers: @objectstack/mcp full suite exit 0 (87 files, 1589 tests; skill-prompts reads the rule through core), objectql's 7 package-scoped and bare-name test files exit 0 (1099 tests). The security-catalog is covered by core's suite. NOT MEASURED: cli picklist-references.ts tests (cli closure is 71 packages, declared to CI). New pins: core's 20 re-exported values are the same objects (toBe) as metadata-core's, through the module and core's index; core's value export set for the rule is exactly the pre-move set; instanceof holds across the two packages. Lint: a pack a declared dependency ships gives 0 findings; own-stack 0; truly unknown 1; non-dependency sibling 1 (names the holder, hint says to declare the dependency); two holders in the closure 1 (names both); refusal verdicts are one line of at most 200 characters. Ablation (scripts/ablation-replace.mjs, anchor 'closureOf,' replaced by an empty-set closure in skillContextResolver; the subject is imported from lint src, so no dist leg): anchor 1 to 0 and blob bb3e3db3 to abe67df5 on disk; 1 failed / 42 passed, and the one red is 'a pack a declared dependency ships resolves: no warning'; restored blob bb3e3db3 equals the HEAD blob.",
      "gates": "dispatch-gates --commands at 14b930039a: 69 commands; run in order with each exit captured before any pipe; 66 exit 0. Exit 3 (PREREQUISITE NOT MET, so NOT MEASURED, left to CI): check:dual-build-cjs-loads (96 packages unbuilt) and check:published-readme-exports. check:lean-entry-closure first exited 3, then exited 0 after building the objectql closure ('Admitted set held exactly (15 packages)'). --ran reconciliation: 69 derived, 69 run, 0 UNRUN. overlap-check --branch=HEAD: exit 1 (the #37676 conflict above), which is why nothing was pushed. No PR, so no check-runs.",
      "line_budget": "8 files, +1122 / -792 (1914 changed lines, under the 3000 human-merge threshold); 789 of the + lines are the moved rule file.",
      "files_changed": [
        ".changeset/37609-skill-context-package-closure.md",
        "packages/core/src/package-scoped-resolution-reexport.test.ts",
        "packages/core/src/package-scoped-resolution.ts",
        "packages/lint/src/validate-ai-tool-references.test.ts",
        "packages/lint/src/validate-ai-tool-references.ts",
        "packages/metadata-core/src/index.ts",
        "packages/metadata-core/src/package-scoped-resolution.test.ts (moved from packages/core/src)",
        "packages/metadata-core/src/package-scoped-resolution.ts (moved from packages/core/src)"
      ],
      "deviations": "One changeset file covers the three packages (all patch, Clause-② yes (widening), Metadata-protocol none) instead of one per package. The not-found message keeps its old wording. The two refusal shapes (outside the closure, two holders in reach) get their own one-line verdicts, because the rule's own refusal sentence breaks the 200-character one-line limit the suite pins.",
      "readings": [
        "objectstack-ai/objectstack @ 80519b5991 (origin/main): overlap-check says 'origin/main: merges cleanly'; for #37676 at head 45ed21271b: 'conflicts in packages/core/src/package-scoped-resolution.ts'.",
        "PR #37676 hunk on that file: +4 lines after 'ai_context' in PACKAGE_SCOPED_TYPES, adding 'knowledge_source' and a 3-line comment.",
        "docs/adr/0150 (fenced, not edited): one amendment note names the pin path packages/core/src/package-scoped-resolution.test.ts, which this move relocates; check:adr-symbol-anchors still exits 0 (4243 anchors resolve). Its path#symbol anchors into the core file still resolve through the named re-export."
      ],
      "acceptance": [
        "core re-exports are the same function objects as metadata-core's: pinned, green.",
        "a pack a declared dependency ships no longer warns: pinned, green; the ablation turns exactly this pin red.",
        "own-stack 0, truly unknown 1, non-dependency sibling 1: pinned, green.",
        "every existing caller of the core rule stays green: core (incl. security-catalog), mcp and objectql green locally; cli picklist-references NOT MEASURED locally, left to CI.",
        "draft PR, CI green: NOT DONE, the push is held by the overlap gate."
      ],
      "dogfood_battery": "n/a — no `!` in the planned title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 this round: POST /repos/objectstack-ai/objectstack/issues/37609/comments (the os-dev-report, via post-stamped). The first round's report comment 7205297983 was 1 more. No git push this round.",
      "open_questions": [
        {
          "question": "How should this route-A branch be sequenced against open draft PR #37676, which edits the file this route turns into a re-export?",
          "options": [
            "A: Allow the push now and open the draft PR. Whichever of the two lands second moves 'knowledge_source' into metadata-core's PACKAGE_SCOPED_TYPES; #37676's owning thread is told. Cost: a one-line conflict for the second lander. Effort: minutes.",
            "B: Hold this branch until #37676 lands, then merge main and re-home its line here. Cost: blocked behind a Tier H xl PR that is waiting for the maintainer's approval, for an unknown time.",
            "C: Ask #37676's owner to re-home its entry before this PR lands. Cost: churn on a Tier H PR that is already in review."
          ],
          "recommendation": "A, because the conflict is one list entry with only one possible resolution, and this PR is small and not governed, so it can land without waiting on a maintainer approval."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed · ADR-0150's amendment note names the pin path packages/core/src/package-scoped-resolution.test.ts, which this move relocates to packages/metadata-core/src/; docs/adr is fenced and its anchor gate stays green, so the pointer is left for the ADR owner."
      ]
    }
  11. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    os-dev-report

    {
      "issue": 37609,
      "status": "done",
      "branch": "claude/issue-37609-skill-context-closure",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37723",
      "head": "14b930039aba660463daf3df6bea3ff9110519b4",
      "session": "session_01Utp6CbeF2saT6wUBV4E9uc",
      "premise_still_valid": true,
      "summary": "Route A is implemented and the draft PR #37723 is open (assignee os-bill; body read back identical, 7434 bytes). The ADR-0150 D3 rule and its tests moved with git mv from packages/core/src into packages/metadata-core/src and are exported from metadata-core's index. Core's package-scoped-resolution.ts is now one named re-export of all 33 names, so no core caller changes and no package edge is added. ai-skill-context-unknown resolves context with resolvePackageScopedHolders and packageResolutionClosure over the artifact's packages[], so a pack a declared dependency ships no longer warns. CI finished on the head with every check green except Test UI: shard 6/16 failed one UI timing test the diff does not reach (gates field).",
      "tests": "Local, at 14b930039a, each exit captured before any pipe. metadata-core: test exit 0 (28 files, 1104 tests), typecheck exit 0. core: test exit 0 (158 files, 3777 tests), typecheck exit 0. lint: test exit 0 (239 files, 9718 tests), typecheck exit 0. mcp: full suite exit 0 (87 files, 1589 tests). objectql: 7 package-scoped and bare-name files exit 0 (1099 tests). cli picklist-references was not run locally (71-package closure); CI Test Core is green. Pins: core's 20 re-exported values are toBe metadata-core's, through the module and core's index; the value set equals the pre-move set; instanceof holds across the two packages. Lint verdicts: dependency pack 0, own-stack 0, truly unknown 1, non-dependency sibling 1, two holders in the closure 1, each one line of at most 200 characters. Ablation (scripts/ablation-replace.mjs, closure argument replaced by an empty set): mutation landed on disk (anchor 1 to 0, blob bb3e3db3 to abe67df5), 1 failed and 42 passed, the red being exactly 'a pack a declared dependency ships resolves: no warning'; restored blob equals the HEAD blob bb3e3db3.",
      "gates": "Local: dispatch-gates --commands derived 69. 66 exited 0. check:dual-build-cjs-loads and check:published-readme-exports exited 3 (PREREQUISITE NOT MET, so NOT MEASURED locally). check:lean-entry-closure exited 3, then 0 once objectql was built. --ran: 69 derived, 69 run, 0 UNRUN. overlap-check --branch=HEAD before the push exited 1 on the known #37676 entry only; origin/main 80519b5991 merges cleanly. PR check-runs at 14b930039a, all 68 completed: 55 success, 11 skipped, 2 failure. Required contexts: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core success, Governed Surface Queue Guard success, Type Check UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Lint UI skipped, Test UI FAILURE. Check Changeset success. The red is Test UI (6/16), log saved to SCRATCH/issue-37609/ci-testui6.log and grepped: 1 failed, 449 passed (451 files); 1 failed, 5368 passed (5400 tests). The failing test is ui/packages/app-shell/src/console/__tests__/AppContent.draftSaveKeepsList-35932.test.tsx, 'CONTROL: a whole-type invalidation of object on the bundle route still shows the skeleton', with AssertionError 'expected false to be true' at line 557. That line waits with waitFor's default timeout for a transient skeleton to be up. The diff touches no ui file, and git grep finds no ui source importing a moved name, so I read it as a timing flake. The dev did not re-run it, per the rerun-failed rule (a dev never re-runs); the seat decides.",
      "line_budget": "8 files, +1122 / -792 (1914 changed lines, under the 3000 threshold); 789 of the + lines are the moved rule file.",
      "files_changed": [
        ".changeset/37609-skill-context-package-closure.md",
        "packages/core/src/package-scoped-resolution-reexport.test.ts",
        "packages/core/src/package-scoped-resolution.ts",
        "packages/lint/src/validate-ai-tool-references.test.ts",
        "packages/lint/src/validate-ai-tool-references.ts",
        "packages/metadata-core/src/index.ts",
        "packages/metadata-core/src/package-scoped-resolution.test.ts (moved from packages/core/src)",
        "packages/metadata-core/src/package-scoped-resolution.ts (moved from packages/core/src)"
      ],
      "deviations": "One changeset file covers metadata-core, core and lint (all patch, with Clause-② yes (widening) and Metadata-protocol none). The PR body footer uses the AGENTS.md session-URL form, followed by the signed line the dispatch orders as the last line, not the harness's alternative footer text. The branch was pushed at 14b930039a without merging origin/main, as the area decision directed; main gained only disjoint files (core import utils, spec ui/system) and merges cleanly.",
      "readings": [
        "objectstack-ai/objectstack PR #37723 at 14b930039a: draft true, state open, assignee os-bill, labels none.",
        "overlap-check at 14b930039a against origin/main 80519b5991: only #37676 conflicts, in packages/core/src/package-scoped-resolution.ts (its 'knowledge_source' PACKAGE_SCOPED_TYPES entry); recorded in the PR body's Acceptance notes per the area decision."
      ],
      "acceptance": [
        "core's re-exported names are the same function objects as metadata-core's: pinned, green locally and in Test Core.",
        "a pack a declared dependency ships no longer warns: pinned, green; the ablation turns exactly this pin red.",
        "own-stack 0, truly unknown 1, non-dependency sibling 1: pinned, green.",
        "existing callers of the rule stay green: core (with the security catalog), mcp and objectql locally; Test Core green in CI (includes cli).",
        "draft PR via the relay: #37723; CI: all required contexts green except Test UI, a UI timing test outside the diff."
      ],
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm; the CI Dogfood Regression Gate concluded success",
      "mcp_calls": "0",
      "api_writes": "2 this round: pr_create via the fleet-write relay (POST /repos/objectstack-ai/objectstack/pulls, then POST /repos/objectstack-ai/objectstack/issues/37723/assignees), and POST /repos/objectstack-ai/objectstack/issues/37609/comments (this os-dev-report, via post-stamped). git push of the branch is not a REST write. Earlier rounds: report comments 7205297983 and 7206159244.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: area seat · noted, not filed · ADR-0150's amendment note still names the pin path packages/core/src/package-scoped-resolution.test.ts, which this PR moves to packages/metadata-core/src/; docs/adr is fenced and governed, so it is left alone and named in the PR body.",
        "carrier: area seat · noted, not filed · Test UI (6/16) red on AppContent.draftSaveKeepsList-35932.test.tsx line 557, a waitFor on a transient skeleton with the default timeout; not reproduced, outside the diff; the re-run decision is the seat's. Dedupe words: draftSaveKeepsList skeleton waitFor, whole-type invalidation bundle route, Test UI flake app-shell."
      ]
    }
  12. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    ACCEPT → PR #37723 comment 7206948596 (contract record 7206942612, PASS)

  13. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc

    Merged: PR #37723 at 520cf3f249 closed this card by Fixes (seat route ruling 7205321128, A). Delivered: the ADR-0150 D3 rule moved to packages/metadata-core/src/package-scoped-resolution.ts (body byte-identical, 33 names now exported by @objectstack/metadata-core); @objectstack/core re-exports the same 33 names with identity pinned; lint ai-skill-context-unknown resolves a skill's context through the package closure (a dependency's pack resolves, a non-dependency sibling and two holders in reach are named). Left: #37745 carries N1–N4 of record 7206942612 and the ADR-0150 pin-path line, handed to repo:objectstack#1. pm:dispatched removed; ai-37000 rung landed for #37676.

  14. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions