Skip to content

service-analytics: the dataset executor computes nextStep and sourceLine, and the MCP door returns them #34919

Closed

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic), filed by the session the maintainer set to file this epic's cards. Ruling: #34894 = A, comment 6953671481, the maintainer verbatim: 「两件都同意:构建提交进仓库,#34894 选 A」.

Why

The decision "one match answers, several ask, near ones are offered, none falls back and says so" is computed today in a hosted wrapper, for one client. The ruling moves it into the framework's executor so every client that calls the tool reads the same next step in the result.

Evidence (objectstack a0326b06; the hosted wrapper read on cloud 53a5844)

  • grep -n nextStep over packages/services/service-analytics/src/dataset-tools.ts and packages/mcp/src/mcp-http-tools.ts finds nothing.
  • The hosted wrapper computes it from the framework's own matches, in the user's language, and composes the citation from the result's provenance. Its header records the measured reason: a model handed a finished string copies it; one that assembles it from parts often does not.
  • A tool result is read by any client that made the call. In this session's five-repetition pilot a client with no skill reached the governed route in a minority of runs.

Scope

Done when

Relations

Activity

  1. added
    area:ai
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (R1199, 16:5xZ): p2 · domain:server → pm:blocked.

    Theme: MCP and epic #34659. The executor computes nextStep and sourceLine, and the MCP door returns them, implementing the maintainer's ruling on #34894 (A). No named customer effect, so p2. Blocked: it waits on #34763.

  3. added
    domain:server
    pm:blocked
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock (20:0xZ): the only blocker, #34763, closed at 20:01Z. Moved pm:blocked → pm:queue. The grade is unchanged.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz

    Claim: PM loop (area o3-C, epic #34659, seat note 21:06Z)
    Session: session_01WGufziunkXbDT7wUWqfmWz
    Account: os-support-ai
    Branch: claude/issue-34919-dataset-next-step
    Worktree: objectstack-issue-34919
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: packages/services/service-analytics/** (the dataset executor computes nextStep and sourceLine; tool descriptions) and packages/mcp/src/** (the door passes both through on HTTP and stdio; the initialize rule), their tests, root .changeset/. ⛔ Not skills/objectstack-ask/** or packages/mcp/src/ask-skill.generated.ts: those are area o3-E's (#34977 in review), and the skill's "follow nextStep" line is theirs to add after this lands. If the result shape is declared in packages/spec, the dev stops and reports before widening.
    Container & model: M, mode:subagent (area o3-C os-dev), model: TIER_DEFAULT, effort: high (seat)
    Clause-②: yes (widening, expected) — new nextStep and sourceLine fields in the dataset tools' results widen a declared tool contract, so the seat's L2 follows; the dev confirms from the measured diff
    Metadata-protocol: none expected
    Responsibility: @objectstack/service-analytics / @objectstack/mcp in objectstack (the one-match / several-ask / near-offered / none-falls-back decision and the citation line are computed today only in a hosted wrapper for one client; ruling #34894 A moves them into the framework executor so every client reads the same next step) | none | every MCP client that calls the dataset tools
    Thread-read: 6959442493
    Premise: holds on origin/main 421f180: grep nextStep|sourceLine over packages/services/service-analytics/src, packages/mcp/src and packages/spec/src finds nothing; dataset-tools.ts:451 computes candidates (#34763 / #34904, closed) and returns them at :461. The dev re-measures on examples/app-crm before code.
    Serial constraints cleared: area o3-E (ask-data, #34977 on packages/mcp/src/ask-skill.generated.ts and skills/objectstack-ask/**) is told this file list before building; overlap-check against open PRs before every push.
    Pre-claim lane: domain:server — seat-assigned to area o3-C.
    Pre-claim deps: Blocked-by: objectstack-ai/objectstack#34763, closed 20:01Z; triage unlock 6959442493 re-queued it at p2 (epic p2, dispatched per the maintainer's 12:25Z rule).
    Prior rulings read: #34894 = A (6953671481, maintainer verbatim 「两件都同意:构建提交进仓库,#34894 选 A」); thread: none; repo: objectstack-ai/objectstack

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  8. 21 remaining items

  9. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 18, 2026
  10. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

    Landed · 2026-11-18T04:10Z: PR #35043 (first PR of this card: executor nextStep / sourceLine, served by the MCP door) MERGED as 6932cb84fe at 2026-11-18T04:01:04Z. The card stays open for PR #35100 (skill line, Tier H, rework round running under claim 6968320293); done-when item 2 lives on #34869 (6967910642). Release freeze from 04:09Z: #35100 goes to draft + reviews only until the seat lifts it.

  11. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
    os-dev-report

    {
      "issue": 34919,
      "status": "done",
      "branch": "claude/issue-34919-ask-skill-next-step",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35100",
      "session": "session_01JQwxbWDsbbJizuYnDwBxT8",
      "premise_still_valid": true,
      "summary": "Rework round for L1-c REWORK 6967924755, one commit 9da3374525 on 8f4b4468 (plain push, no merge of origin/main: overlap-check clean). M1: PR objectstack-ai/objectstack#35100 body now opens with `Part of objectstack-ai/objectstack#34919` and carries no closing keyword; no second Claim was added to the card. S1: the `sourceLine` half left the step 2 line and is folded into step 3's citation bullet (\"Cite the answer's `sourceLine` as given; without one, build the source from `provenance` (...), not from memory.\"), so the skill holds exactly one citation instruction; step 2 keeps the `nextStep` line. Row re-measured 1753 -> 1750 (7019 bytes, less 20, ceil(6999/4)), pinned at the measurement; `Clause-②: no` in PR body and changeset per the seat ruling; ask-skill.generated.ts regenerated; skills-reference.mdx unchanged (check:skill-docs in sync). PR stays draft; objectstack-ai/objectstack#35043 was still open at 861f110f when read. Notes: commit trailers use the AGENTS.md model-free pair, not the harness reminder's model-named one; the PR body's harness attribution first line and the previous author's signed trailer line were kept as found.",
      "tests": "All at 9da3374525. Under os-verify-lock: `pnpm --workspace-concurrency=2 --filter '@objectstack/mcp^...' build` VERDICT command-exit 0; `pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 && pnpm --filter @objectstack/mcp typecheck` VERDICT command-exit 0, Test Files 71 passed (71), Tests 1261 passed (1261), includes skill-single-source-34686.test.ts. `node scripts/gen-mcp-ask-skill.mjs --check` exit 0 (\"is current with skills/objectstack-ask/SKILL.md\"). No ablation: prose-only change, no tested behaviour changed. Note: the vitest run was on the tree before a message-only amend of the same commit (tree identical; `git diff HEAD` empty).",
      "gates": "Local: dispatch-gates --commands (no paths) derived 88; 87 exit 0, 1 NOT MEASURED: `pnpm check:dual-build-cjs-loads` exit 3 PREREQUISITE NOT MET (no whole-workspace build; CI runs it). --ran: \"1 of 88 derived famil(ies) UNRUN\" (that one). `node scripts/check-skills-token-ratchet.mjs` exit 0: \"skills/objectstack-ask/SKILL.md is 1750 tokens (ceiling 1750; headroom 0)\", bundle total 263550; `--self-test` exit 0, 104 cases pass. spec `check:skill-docs` exit 0; `check:skill-refs` exit 0 (\"9 generated files in sync\"); `check:skill-examples` exit 0 (\"347 prose examples type-check across 3 surface(s)\") after building the client-react closure (first try exit 3 PREREQUISITE NOT MET). `node scripts/pm/check-governed-merges.mjs --branch HEAD` exit 3: GOVERNED, landing tier H, skills/** x1 (bare `--branch` is refused, exit 1: it wants a ref). `node scripts/pm/overlap-check.mjs --branch=HEAD` exit 0, VERDICT clean vs origin/main 526282e11a, objectstack-ai/objectstack#35087, objectstack-ai/objectstack#35077, objectstack-ai/objectstack#33849. `check:nul-bytes` exit 0. CI check-runs on 9da3374525: in_progress, not read (report not held for CI); PR-body guards expected to re-read the new body.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay (fleet-write dispatch): issue_patch body on objectstack-ai/objectstack#35100 (run 44236612772, read-back 8454 bytes sent, 8454 stored, identical); post-stamped comment on objectstack-ai/objectstack#34919 (this report). Plus one git push.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  12. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
    os-dev-report

    {
      "issue": 34919,
      "status": "done",
      "branch": "claude/issue-34919-ask-skill-next-step",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35100",
      "session": "session_01JQwxbWDsbbJizuYnDwBxT8",
      "premise_still_valid": true,
      "summary": "Fix round for contract review 6969596617, finding S1, in the ruled direction (the nextStep note wins). skills/objectstack-ask/SKILL.md: the nextStep line continues 'If `note` says to answer one measure and ask about a word, do both; use none of that word's candidates until the user answers.' and the paragraph under it opens 'When you only ask, the reply is the question alone'. Paid down first (', one or several' cut from the candidates row, whose right cell states it); the token row moves 1750 -> 1779, pinned at the measurement (+29 this round, +39 over main). Served copy regenerated, changeset and PR body updated; one commit b82c7383fc4, one push. N1 is an accepted deviation in the review and was not touched. No example added.",
      "tests": "All at b82c7383fc4. Verify lock: `pnpm --workspace-concurrency=2 --filter '@objectstack/mcp^...' build` VERDICT command-exit 0; `pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 && pnpm --filter @objectstack/mcp typecheck` Test Files 71 passed (71), Tests 1261 passed (1261), VERDICT command-exit 0 (skill-single-source-34686.test.ts is in the package's test set). No ablation: prose and a ratchet row only.",
      "gates": "Local, exit captured before any pipe: gen-mcp-ask-skill.mjs --check 0 (current); check-skills-token-ratchet.mjs 0 (objectstack-ask 1779 / 1779, +0; bundle total 263579) and --self-test 0 (104 cases pass); spec check:skill-docs 0, check:skill-refs 0 (9 generated files in sync), check:skill-examples 0 (347 prose examples, after building the client-react closure under the lock, VERDICT command-exit 0); check-nul-bytes 0; overlap-check --branch=HEAD 0, VERDICT clean against origin/main dfc6bbf615 and 2 PR heads; check-governed-merges --branch HEAD exit 3 = GOVERNED, Tier H (expected; head repo NOT MEASURED on a branch read). dispatch-gates --commands: 88 derived, 87 exit 0, 1 NOT MEASURED: `pnpm check:dual-build-cjs-loads` exit 3, PREREQUISITE NOT MET (reads every package's dist; no whole-workspace build here; CI runs it). --ran: '88 derived famil(ies) accounted for, 87 run, 1 NOT-MEASURED'. The derivation printed a stale-tree note (branch at least 20 commits behind origin/main; main not merged: no conflict, no red). CI check-runs on b82c7383fc4 at report time: 37 success, 18 skipped, 2 in_progress, 0 failure.",
      "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2: relay issue_patch on pull 35100 (PATCH /repos/objectstack-ai/objectstack/issues/35100, run 44258316750, read-back identical, 10068 bytes); this report comment (POST /repos/objectstack-ai/objectstack/issues/34919/comments via post-stamped). Plus one git push.",
      "open_questions": [
        {
          "question": "The dispatch cap 'net-add <= +40 tokens' can be read per round or over main. Which was meant?",
          "options": ["A: per round: this round is +29", "B: over main for the whole PR: the PR is +39 (1740 -> 1779)"],
          "recommendation": "Either reading holds at this head; no action needed."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  13. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

    Closed · 2026-11-18T09:09Z: both PRs of this card have merged. PR #35043 (executor nextStep / sourceLine, served by the MCP door) as 6932cb84fe, and PR #35100 (the ask skill follows nextStep; Tier H, os-zhuang) as f54fc93090 at 2026-11-18T08:28:11Z. Done-when item 2 (the before/after ask round) lives on #34869 (6967910642). The rule scoped by #35005 reaches the skill through #35158. Lease o1-C released.

  14. removed
    pm:dispatched
    on Nov 18, 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:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions