Skip to content

pm/skills: write the SQL-first rule down — a capability the memory or mongo driver cannot run is refused there, never served by a slower path kept for parity #33627

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filing gate: ③ maintainer-directed. In the triage seat session on 2026-11-15, verbatim: 「有的功能如果Mongo内存不支持,那就不需要支持,首先保sql,应该用最高性能的方案,而不能为了兼容而兼容」. It generalises the 2026-08-05 freeze anchored on #5499 (driver-memory and driver-mongodb: no new investment; memory to be replaced by SQLite in-memory). Today the rule lives only on cards (#5499, #33619, #33626), so a design or a review can still choose a driver-agnostic slow path. ⛔ Not a claim.

维护者速读

把一条设计原则写进规则文件:SQL 驱动(含 Turso)优先,用性能最高的方案;内存和 Mongo 驱动做不到的能力就在那里明确拒绝,不为了兼容去保留一条更慢的通用路径。今天这条只散在几张卡上,设计和复审时仍可能选「各驱动都能跑但慢」的方案(例如跨对象过滤先查 id 再 IN、1000 上限)。

What lands

  1. AGENTS.md (governed; Tier H, maintainer merge): one rule near the engine and driver guidance. A capability is designed for SQL drivers first, at the highest-performing shape (push-down: JOIN or semi-join, aggregates in the database). Drivers that cannot run it refuse with a stable code. A slower driver-agnostic path is never built only for parity. Cite [裁决] driver-memory / driver-mongodb 投入冻结 —— 维护者 2026-08-05 口径(跨单锚点) #5499 and this card.
  2. pm-dispatch decision analysis (references/decision-analysis.md): under 项目长远合理性, an option that slows SQL to keep memory/mongo parity counts against itself.
  3. Contract review (references/contract-review.md): a reviewer flags a new id-materialisation or in-app join on a path SQL can push down, unless the PR names why.
  4. Skills (authoring guidance that mentions drivers): state that memory and mongo may refuse capabilities that SQL serves.

Grade

p2 (a rule that steers every design; tooling-class).

Activity

  1. added
    documentation
    priority:p2
    pm:queue
    domain:skills
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    Claim: PM loop round 9
    Session: session_01FEkQ5pjSPT7ui2EUcunaVb
    Account: os-project-manager
    Branch: claude/project-thread-38uqiv
    Thread session: session_01FEkQ5ox6ciJi31EnMeiYwq
    Worktree: objectstack-issue-33627
    Domain: domain:skills
    Seat: domain:skills#1
    File surface: AGENTS.md, .claude/skills/pm-dispatch/references/decision-analysis.md, .claude/skills/pm-dispatch/references/contract-review.md, at most two skills/** rule files outside objectstack-automation/SKILL.md, objectstack-ui/**, objectstack-query/SKILL.md (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: opus (default; dispatch-gates --tier on the real diff decides), effort default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — governance wording (SQL-first rule)
    Thread-read: none
    Premise: holds (no Blocked-by)
    Serial constraints: one card per file at a time; the excluded skills files are held for PR #33668 and card #33560.
    Order: /mnt/project-files/pm-orders/skills/order-33627.md (project file). Ruling-ref: Leehom 「后续只处理 p1 p2」 (2026-11-15T05:05Z). Claimed 2026-11-15T06:09Z.

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

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5ox6ciJi31EnMeiYwq
    os-dev-report
    {
    "issue": 33627,
    "status": "done",
    "branch": "claude/project-thread-38uqiv",
    "pr": "#33693",
    "head": "399db5deef072d3cf56a78851b2afba8c831b97e",
    "session": "session_01FEkQ5ox6ciJi31EnMeiYwq",
    "premise_still_valid": true,
    "clause_2": "Clause-②: no",
    "metadata_protocol": "Metadata-protocol: none",
    "summary": "The four items land, each in its own file with no ceiling moved. (1) AGENTS.md Prime Directive 5 carries the rule: build a query capability at its fastest SQL shape (JOIN or semi-join, aggregates in the database); memory and mongo refuse what they cannot run with a stable code; never a slower path kept only for parity (ruling record 6888468549). Paid by deleting two restatements (Multi-agent 7's 'Arm only what is already green and accepted' and Post-Task 2's 'never straight to main; never arm a PR that isn't green yet'). (2) decision-analysis.md facet ①: 为内存/Mongo 对齐拖慢 SQL 记负, on its own line. (3) contract-review.md ④: SQL 可下推处新增 id 物化或应用内 join,无因由即记发现(AGENTS.md), paid by dropping two restatements in the same bullet. (4) skills/objectstack-platform/SKILL.md Driver Selection Guide: 'Memory and MongoDB may loudly refuse a query capability SQL serves (no slower fallback).', paid by the replaced lead and two asides; '@objectstack/skills' patch changeset.",
    "tests": "Text-only diff, no package source; no unit tests owed. Ceilings on head 399db5d: check-skill-line-ratchet exit 0 (AGENTS.md 1050/1050, decision-analysis.md 49/49, contract-review.md 63/63, all lines within 120 bytes); check-skills-token-ratchet exit 0 (objectstack-platform/SKILL.md 6011/6011); check-skill-id-lint exit 0. Ablation not owed (no tested behaviour changed).",
    "gates": "dispatch-gates --commands on head 399db5d: 54 derived, 52 exit 0, 2 exit 3 NOT MEASURED (check:dual-build-cjs-loads, check:lean-entry-closure read every package's dist; no package touched). --ran: '54 derived famil(ies) accounted for, 52 run, 2 NOT-MEASURED'. First pass on 2592278 was red on check:pm-skill-ratchet (3 lines over the 120-byte line budget); fixed in 399db5d. Formula and lint built under the verify lock first (VERDICT command-exit 0) for check:doc-formula-expressions. dispatch-gates --tier: MANDATORY contract-review tier (skills/, no one-line exit). check-governed-merges --branch: Tier H, .claude/ x2, skills/** x1, AGENTS.md x1, 32 changed lines. CI check-runs: in_progress at report time.",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "0",
    "api_writes": "2 — relay pr_create (POST pulls, #33693; read-back 10641 bytes identical) and this os-dev-report comment via post-stamped",
    "deviations": [
    "Order item 1 asks AGENTS.md to cite #5499 and #33627; check:pm-skill-id-lint scans AGENTS.md and skills/** and refuses any 3-digit issue number, and AGENTS.md's header makes the ruling record the provenance, so the rule cites ruling record 6888468549 (the principle recorded on #33619).",
    "#5499's freeze is not cited as live: it was lifted 2026-08-11 (records 5249019855, 5252526378, per retraction 5545071055 on that card). The rule stands on the 2026-11-15 principle alone.",
    "'One home, the others point': the 120-byte line budget at 0 line headroom leaves room for '(AGENTS.md)' in contract-review.md and no pointer in decision-analysis.md.",
    "Driver-memory wording follows #33626 Q1 ruling A (memory keeps serving the composed leaf in process): the rule says refuse 'what they cannot run' and the skill says 'may refuse'.",
    "Authored on the claim's default model while dispatch-gates --tier reads a MANDATORY contract-review tier for skills/**; the seat's at-tier contract review is the owed record.",
    "The standing lines' trailing signed HTML comment is left out of the PR body (os-dev.md bans HTML comments other than the attribution line); the signature is a prose line under Fixes."
    ],
    "files_changed": [
    "AGENTS.md",
    ".claude/skills/pm-dispatch/references/decision-analysis.md",
    ".claude/skills/pm-dispatch/references/contract-review.md",
    "skills/objectstack-platform/SKILL.md",
    ".changeset/33627-skills-platform-sql-first-drivers.md"
    ],
    "line_budget": "AGENTS.md 1050 to 1050; decision-analysis.md 49 to 49; contract-review.md 63 to 63; objectstack-platform/SKILL.md 414 to 414 lines, 6009 to 6011 tokens (ceiling 6011); bundle SKILL.md lines 4588 to 4588",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": []
    }


    Generated by Claude Code

  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    ACCEPT → PR #33693 comment 6890891373 · contract review PASS 6890853677 · held for the maintainer (Tier H; reviewers requested) · 2026-11-15T07:11Z

  6. added a commit that references this issue on Nov 16, 2026
    3be1347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationdomain:skillspm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions