Skip to content

connector-github: ship providerConfig.toolsSnapshot for search_issues and issue_read, digests measured against GitHub's live MCP server, so the listing's sha256 is the pin set (ruling 6556740185, #28590 B) #28647

Closed

Description

@objectstack-fleet

epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U

Filing gate: ④ execution of a maintainer ruling. Ruling 6556740185 on #28590 (letter B, maintainer 「28590 27855 同意」 2026-11-01T10:29Z) requires every MCP connector app on the shelf to ship providerConfig.toolsSnapshot for every tool it includes. The listing's sha256 is the digest of that pin set. Child of #27293 (E4). ⛔ Not a claim.

Ruling-ref: 6556740185

Blocked-by: #30116

Work

packages/apps/connector-github/src/connectors/github.connector.ts:39 (read at origin/main) includes ['search_issues', 'issue_read'] and pins nothing. Do the following:

  • Add providerConfig.toolsSnapshot with one sha256 per included tool. Take the digests as computeMcpToolsSnapshot (@objectstack/connector-mcp, PR feat(connector-mcp,spec): toolsSnapshot pins each MCP tool; a mismatch degrades through CONNECTOR_UPSTREAM_CHANGED #28515) computes them over the live tools/list answer of https://api.githubcopilot.com/mcp/, with the headers the app already sends (X-MCP-Readonly: true). Record the date and the measured digests in the app's README, beside the existing provenance section.
  • Add a test in packages/apps/connector-github/test/ that fails when an included tool has no pin or a pin is not 64 lowercase hex. It must stay offline (no live call in CI).
  • Give the listing a provenance line: upstream = the server URL, commit = the package commit, sha256 = the digest of the pin set. The digest is stableStringify of the record, then sha256. Name the exact recipe in the README so cloud's ingestion can recompute it.
  • Re-pinning when GitHub changes a tool is the shelf's routine. The ruling says a degraded instance means re-pin and re-publish, never drop the pin.

Measurement constraint: tools/list on GitHub's server needs a token whose scopes list both tools. A session without one cannot measure the digests. A measurement with no token, or with an under-scoped one, is no measurement: the answer is a 401, or a list missing a tool. If no token is available, the dev reports blocked naming the secret it needs; it must not commit placeholder digests.

Business reason

#27293's Done-when gives each shelf listing a verifiable upstream, commit and sha256. For an MCP app, only the pin set makes sha256 mean something, and it also turns silent tool drift into a named, degraded instance on the app that administrators install.

Reader

The epic PM of #27293 dispatches it (domain:server, packages/apps/*). Cloud seat 2 reads the provenance recipe for its ingestion (#28278).

Dedupe

The 200 most recent issues and PRs (read 2026-11-01T11:05Z), titles grepped for toolsSnapshot|\bpin\b: 3 hits (PR #28515, the mechanism; #28582 and PR #28597, the skills recipe); none pins a shelf app. Control connector: 21 hits.

Activity

  1. added
    enhancement
    pm:epic
    domain:server
    on Nov 1, 2026
  2. objectstack-fleet commented on Nov 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: 发布并装进一个环境 | none | P④

    Triage: p2 · area:automation · pm:epic kept · 2026-11-01T11:55Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 1, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U

    Dispatch held: the environment cannot do the measurement. ⛔ Not a claim.

    • Measured at 2026-11-01T12:03Z from this seat's container: a POST to https://api.githubcopilot.com/mcp/ (an MCP initialize, no token) answered curl: (56) CONNECT tunnel failed, response 403. The environment's network policy denies the host before any request reaches GitHub. With a token, the call would still be refused there.
    • This environment also has no dedicated measurement secret. The session's own GitHub credential is the fleet operator's and will not be used to measure a shelf app.
    • Two things unblock the card, both the maintainer's to set in the cloud environment: (1) add api.githubcopilot.com to the environment's allowed network domains; (2) store a read-only GitHub token whose scopes list both search_issues and issue_read, as the environment secret GITHUB_MCP_TOKEN (the app's own credentialRef). Once both are in place, the epic seat claims and dispatches this card. No placeholder digests will be committed.
  4. added
    pm:blocked
    on Nov 4, 2026
  5. objectstack-fleet commented on Nov 4, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#27293#1 · sunhaolin · session_017xRBcVBKAFk1ntXSjvPt7U

    Parked: pm:blocked on #30116 · 2026-11-04T14:58Z. ⛔ Not a claim.


    Generated by Claude Code

  6. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: unblocked and released to the lane · pm:blocked + pm:epic → pm:queue · 2026-11-08T16:21Z

    ⛔ Not a claim.


    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-steve · session_01ADHkmPF1skfu2kx89BEXZi

    Claim: PM loop round 1 · #28647 · 2026-11-08T18:01Z · enhancement (p2; unblocked by triage 6723942187)
    Session: session_01ADHkmPF1skfu2kx89BEXZi
    Account: os-steve
    Branch: claude/project-thread-moj8ij (the card thread's harness-pinned branch; platform exception to claude/issue-<n>-<slug>)
    Worktree: objectstack-issue-28647
    Domain: domain:server
    Seat: domain:server#1
    File surface: packages/apps/connector-github/ (src/connectors/github.connector.ts, README.md, test/), a changeset (stop on breach; explain in the report)
    Container & model: S/M, mode:thread, model: default tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6723942187
    Premise: holds (read at 69244406: github.connector.ts includes ['search_issues', 'issue_read'] and declares no toolsSnapshot)
    Serial constraints cleared: no open PR touches packages/apps/connector-github/. Digests come verbatim from #30116 comment 6691107153; no live re-measure.
    Order: standard order + server-seat1/28647-delta.md (project files).

  9. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-steve · session_01ADHkmQCkyoaDHDp37j8kV2
    os-dev-report

    {
      "issue": 28647,
      "status": "done",
      "branch": "claude/project-thread-moj8ij",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/31647",
      "session": "session_01ADHkmQCkyoaDHDp37j8kV2",
      "premise_still_valid": true,
      "summary": "github_mcp now ships providerConfig.toolsSnapshot with the two digests from #30116 comment 6691107153, verbatim; computeMcpToolsSnapshot over the posted tool definitions reproduces both exactly (step 0). The README gains a Provenance section: upstream URL, how commit is recorded, both pins, measured on 2026-11-06 by the maintainer with their local gh token (broader than read-only), and the pin-set sha256 e922e2420b05707fb3ec9df270009da30d57177c297a6d7c3ee0b4ccbbad7516 with its recipe. listing.test.ts gains an offline pin block (missing pin / non-64-lowercase-hex / pin outside include are refused; pins recompute from test/fixtures/github-mcp-tools.json; README digest matches). Forced edit: boot.test.ts's fake server serves the measured definitions, since the old stand-ins now trip the pin check.",
      "tests": "At 9f1340c6: pnpm --filter @objectstack/connector-app-github test: Test Files 2 passed, Tests 18 passed (base 69244406: 2/14); typecheck exit 0; pnpm --filter @objectstack/connector-mcp test: Test Files 9 passed, Tests 119 passed. Ablations via scripts/ablation-replace.mjs (app src is read directly by the tests, no dist leg; git diff HEAD empty after each): drop issue_read pin -> 4 failed/9 passed, 'expected [ issue_read: no pin ] to deeply equal []'; uppercase search_issues pin -> 4 failed/9 passed; boot fake back to pre-pin stand-ins -> 3 boot tests red, instance degraded 'toolsSnapshot does not match the tools its MCP server serves'.",
      "gates": "dispatch-gates --commands at 9f1340c6: 50 derived, 50 run, all exit 0; --ran reconciliation exit 0 (50 run, 0 NOT-MEASURED, 0 UNRUN). check-plugin-teardown-shape --self-test and check:dual-build-cjs-loads first exited 3 on container prerequisites (fixture commit outside the shallow clone; missing dists) and were exit 0 after git fetch --depth=1 of the fixture sha and a full pnpm build under the lock (VERDICT command-exit 0). pnpm lint family: root eslint --no-inline-config packages/apps/connector-github exit 0 (no package lint script). CI check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "8 — all reads: issue_read x7 (#28647 get + 3x get_comments, #30116 get + get_comments, #28590 get_comments), pull_request_read get x1 (#31647 read-back). No MCP write.",
      "api_writes": "2 relay strokes — fleet-write pr_create (POST pulls + issue-assignees leg os-steve + issue-labels leg skip-changeset; read-back 8395 bytes sent = stored); post-stamped os-dev-report comment on #28647. Plus git push of the branch (not REST).",
      "open_questions": [
        {
          "question": "commit in the listing provenance: the README says the publisher records the repository commit the package is published from, since a file cannot name the commit containing it. Is that the shape cloud ingestion expects?",
          "options": ["A keep it: the publish step (or ingestion) records the commit", "B add a manifest key for provenance (a spec/marketplace change, spec seat's)"],
          "recommendation": "A, because no manifest field carries provenance today (Stripe and DocuSign use a README section) and B is a spec-format change outside this lane."
        },
        {
          "question": "Pin-set recipe naming: the card says stableStringify; the repo exports none (four private copies). The README states the rules (keys sorted by UTF-16 code unit, no whitespace = RFC 8785 for a string record, sha256 UTF-8, lowercase hex) plus a printf | sha256sum line. Acceptable?",
          "options": ["A keep rules-based recipe", "B export canonicalJson from @objectstack/connector-mcp and name it"],
          "recommendation": "A, because B widens a published package's export surface for one consumer."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": [
        "packages/apps/connector-github/README.md",
        "packages/apps/connector-github/src/connectors/github.connector.ts",
        "packages/apps/connector-github/test/boot.test.ts",
        "packages/apps/connector-github/test/fixtures/github-mcp-tools.json",
        "packages/apps/connector-github/test/listing.test.ts"
      ],
      "line_budget": "+356 / -11 across 5 files (fixture JSON 165 lines; test +116/-11 incl. boot edit; README +57; connector +13); under the 3000-line human-merge threshold",
      "deviations": [
        "No changeset: the app is private: true, so skip-changeset rides pr_create (delta's own rule).",
        "Pin test added as a top-level describe in the existing test/listing.test.ts harness rather than a new file (ruling record 6583487846), still under test/.",
        "Forced test edit: boot.test.ts fake server now serves the measured tool definitions (measured red without it).",
        "A first teardown self-test rerun wrote its log to /teardown.log (an unset shell variable); the removal was refused by the safety check, so the stray file stays in this ephemeral container. No repo effect."
      ]
    }

    Stamped 2026-11-08T18:34Z.


    Generated by Claude Code

  10. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-steve · session_01ADHkmPF1skfu2kx89BEXZi

    Seat review round 1 of PR #31647 (head 9f1340c6): ACCEPT, record on the PR. Landing follows green CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:automationdomain:serverenhancementpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions