Skip to content

skills: the ask-data skill's zero-match row reads the candidates list once list_datasets fills it #34868

Closed

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic). The maintainer set who files this epic's cards, in this session's chat, 2026-11-17, verbatim: 「你应该负责立卡,对方只是派发处理」. The gap was reported to this session by the dispatching seat repo:objectstack#3 on #34659 (comment 6947907343, repeated in 6948819963); the filer did not re-read the code behind it. It is the Skills-docs follow-up PR #34828 names.

Why

The published ask-data skill tells a client, on a zero-match, to read the whole catalogue and judge near readings itself. Once the server returns candidates, that wording teaches the slower and less reliable path.

Evidence

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 (R1197, 14:5xZ): p2 · domain:skills → pm:blocked.

    Theme: MCP and epic #34659 (in focus). Skills text teaches external agents what to do on a zero-match answer. No direct customer effect on its own, so p2. Blocked: it waits on #34763 (open), which fills the candidates list this row reads.

  3. added
    domain:skills
    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_01WGufzfR33NbV51QQU6R6bm

    Claim: PM loop round 1 · 2026-11-17T20:07Z
    Session: session_01WGufzfR33NbV51QQU6R6bm
    Account: os-support-ai
    Branch: claude/issue-34868-ask-skill-reads-candidates
    Worktree: objectstack-issue-34868
    Domain: domain:skills
    Seat: repo:objectstack#3
    File surface: skills/objectstack-ask/SKILL.md (step 1 names candidates; step 2's zero-match rows read them), skills/objectstack-ask/evals/** (cases: candidates listed, one candidate, none listed), packages/mcp/src/ask-skill.generated.ts (regenerated by scripts/gen-mcp-ask-skill.mjs, the served /mcp/skill source), scripts/check-skills-token-ratchet.mjs (the objectstack-ask row and its comment, re-measured), whatever check:skill-docs regenerates, root .changeset/. ⛔ The tool strings LIST_DATASETS_DESCRIPTION and DATASET_SELECTION_RULE are the reference, not edited here.
    Surface note (seat 3 ruling Q1 A on PR #34904): one candidate also asks. The ADR-0149 D3 amendment note ("With candidates, the AI asks in rule 3's form and acts on none") outranks the seat's earlier #34792 Q1 A, so the row "One near form is not a match either: it selects nothing" changes to ask when list_datasets lists any candidate for the word.
    Container & model: M, mode:subagent (area o3-E), model: CONTRACT_REVIEW_TIER (dispatch-gates --tier MANDATORY for 'skills/**', no one-line exit), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6959409450
    Premise: holds (area reading at origin/main after 44c7a4a415: skills/objectstack-ask/SKILL.md:51-52 still has the client's own loose-form rows and "One near form is not a match either: it selects nothing", and :55-60 the catalogue loose-form check, with no word of candidates; LIST_DATASETS_DESCRIPTION (packages/services/service-analytics/src/dataset-tools.ts:93-95) and the DATASET_SELECTION_RULE docblock (packages/mcp/src/mcp-server-runtime.ts:1811-1816) now carry the candidates branch from #34763)
    Serial constraints cleared: #34763 closed 20:01Z (PR #34904 merged 44c7a4a415); o3-F also edits skills/**, so overlap-check runs at the first push and before every push
    Pre-claim lane: domain:skills — the published ask-data skill and its generated served mirror
    Pre-claim deps: #34763 closed (triage unlock 6959409450)
    Prior rulings read: candidates,near form,zero-match → ADR-0149 D3 + amendment note; #34691 F1 B (6943126855); seat #34792 Q1 A (6945986942, superseded for one candidate); seat Q1 A on PR #34904; repo: objectstack-ai/objectstack.

    Lease o3-E (seat post #34584); child of epic #34659. skills/**: L1-c, then the seat's L2 at CONTRACT_REVIEW_TIER; check-governed-merges --pr decides the landing tier.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfR33NbV51QQU6R6bm
    os-dev-report

    {
     "issue": 34868,
     "status": "done",
     "branch": "claude/issue-34868-ask-skill-reads-candidates",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/34977",
     "session": "session_01WGufzfR33NbV51QQU6R6bm",
     "premise_still_valid": true,
     "summary": "skills/objectstack-ask/SKILL.md step 1 gains one bullet naming candidates (a word that matched nothing may have them, each a {term, dataset, member} pointer to a member the same answer lists; a candidate is not a match). Step 2 rows 4 and 5 are replaced: a word with no match and candidates listed, one or several, is a question for the user (label, dataset label, description; with one candidate, ask whether it is the one meant; pick none, treat none as a match, compute nothing yet); no match and no candidates for the word for a thing measured is step 4 with the answer labelled. The paragraph defining the client's own loose-form check over the catalogue is deleted: the client's judgment goes and is not kept as a secondary check, because the ADR-0149 D3 amendment note says no hit and nothing offered is the labelled fallback and that nearness is the executor's rule, both tool strings say 'No match and no candidates: fall back', and skills and mcp publish at one version. Rows 1, 2, 3 and 6 are byte-identical. packages/mcp/src/ask-skill.generated.ts is regenerated; evals: case 3 rewritten to three candidates, new case 8 (exactly one candidate asks), new case 9 (no candidates, Chinese, falls back labelled and names the dataset), cases 4, 5, 6 state no candidates. The token ratchet row is LOWERED 1522 to 1491 (6105 to 5981 bytes), pinned at the measurement. Changeset: skills patch and mcp patch. I found no contradiction between the two tool strings and the ADR note; the skill says two things more than the strings on purpose (the no-candidates row is scoped to the word for a thing measured; the one-candidate case is spelled out), both named in the PR body's rows table. check:skill-docs needed no regeneration. Deviations: the PR body's first and last lines are HTML comments as the dispatch order requires (the seat's area order over os-dev.md); the harness reminder asked for a model-named commit trailer and a different PR footer, and the repo's model-free pair and session-URL footer were used. The card's assignee field was not written.",
     "tests": "All at head bd92fff5b9 after pnpm --workspace-concurrency=2 --filter '@objectstack/mcp^...' build (lock VERDICT command-exit 0). pnpm --filter @objectstack/mcp test: Test Files 71 passed (71), Tests 1252 passed (1252), VERDICT command-exit 0. pnpm --filter @objectstack/mcp typecheck: VERDICT command-exit 0, check:test-typecheck: OK. node scripts/gen-mcp-ask-skill.mjs --check: exit 0, 'is current with skills/objectstack-ask/SKILL.md'. Evals: skill-evals --dry-run --skills objectstack-ask loads 'objectstack-ask: 9 case(s)', exit 0, no model call; a one-off uncommitted consistency script (every must_contain token is in expected_output and in the prompt or SKILL.md, no must_not_contain token is in expected_output, none on both lists) reads 9 cases, 55 tokens, 0 findings, with a control on main of 7 cases, 39 tokens, 0 findings. NOT MEASURED: an eval round against a model, reason: not run in this order. Ablation (one behaviour, change committed first): git restore --source=44c7a4a415 on the skill, working tree only, proved on disk (new-row count 1 to 0, old-row count 0 to 1); red leg: vitest src/skill-single-source-34686.test.ts exit 1, Tests 2 failed | 1 passed (3), and gen --check exit 1 'is stale'; restore by git checkout HEAD on the path, blob cd76aade6389 equal to the HEAD blob, git diff HEAD empty, status clean; green leg: Tests 3 passed (3), gen --check exit 0. The pin test reads source, so no rebuild is part of either leg.",
     "gates": "dispatch-gates --commands (no paths) at bd92fff5b9 derived 88 commands; each run with its exit recorded before any pipe; --ran: '88 derived famil(ies) accounted for — 87 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)', exit 0. 87 exited 0, among them node scripts/check-skills-token-ratchet.mjs ('skills/objectstack-ask/SKILL.md is 1491 tokens (ceiling 1491; headroom 0)'), its --self-test ('104 cases pass'), pnpm check:skill-compatibility, pnpm --filter @objectstack/spec run check:skill-docs ('Skill docs in sync'), check-changeset-no-major and check-empty-changeset. NOT MEASURED: pnpm check:dual-build-cjs-loads, reason: exit 3 PREREQUISITE NOT MET, it needs a whole-workspace build and only the mcp closure was built; CI is the reading. overlap-check before the push: 'VERDICT clean exit 0' against origin/main and PRs 34793 and 33849. check-governed-merges --branch: GOVERNED, landing tier H, skills/** x2, 97 changed lines (+70 / -27), exit 3; --pr 34977 reads the same tier H and 97 lines, low-risk skills arm: Tier H. dispatch-gates --tier: MANDATORY contract-review tier for skills/**. PR check-runs at bd92fff5b9 when this report was written: Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards, the Lint lanes and the Type Check lanes all in_progress; Queue verdict, Borrowed queue verdict and the opt-in lanes skipped. Not run locally and left to CI: pnpm lint, test:repo, the farm outside the derived list.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "3 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches; the relay ran POST /pulls and POST /issues/34977/assignees); post-stamped comment on #34868 (POST /issues/34868/comments). git push is not counted (two pushes: the empty-branch probe and bd92fff5b9).",
     "open_questions": [
      {
       "question": "Two pending changesets (.changeset/34685-ask-data-skill.md and .changeset/34686-skill-single-source.md) still describe the loose-form wording this PR replaces ('a loose form of several listed measures', 'One near form selects nothing'). Should they be corrected, or left as each PR's own record?",
       "options": [
        "A leave them; the new changeset says it supersedes those sentences",
        "B a deliberate correction of both entries (Check Changeset goes red on that PR by design and the seat records it)"
       ],
       "recommendation": "A, because each entry records what its own PR did and the new entry names the supersession; B is the seat's call if it wants one rule per release note."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: seat repo:objectstack#3 · the docblock above DATASET_SELECTION_RULE (packages/mcp/src/mcp-server-runtime.ts) ends 'The skill's own loose-form rows predate candidates and are amended in its lane'; after this PR those rows no longer exist, so the sentence is out of date. The file is the reference and outside the claim's file surface, so it is noted, not edited, not filed.",
      "carrier: seat repo:objectstack#3 · the skill does not say what the client does after the user answers the clarifying question (compute the chosen candidate, or fall back when the answer settles nothing); the ADR note states it, the card does not ask for it. Noted, not filed."
     ]
    }
  9. removed
    pm:dispatched
    on Nov 17, 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:skillspriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions