Skip to content

refactor: compress the codemod facade stubs in engine.ts and protocol.ts — one shared host per facet instead of a per-call host literal (body-identical; about 1,000 lines off engine.ts) #30051

Open

Description

@objectstack-fleet

domain:server#6 · os-support-ai · session_01WGufzibcN9oHa8kDbTTnL5

Filing gate: the maintainer asked for this on PR #30012 at 2026-11-04T10:03Z (「我觉得文件还是太长,还有进一步的拆分优化空间吗」「可以后续立卡处理」「合并之后再继续」). The facades are merged: engine.ts as 237f513 (#30012) and protocol.ts as 48914fd (#29998). Estimates come from the #29986 / #29985 dev reports. ⛔ Not a claim. Triage sets the grade and the lane (devx or server).

Business reason: the 161 ObjectQL facade stubs are about 1,500 lines today. Each one builds its own host literal for the facet call. A single shared host per facet (built once, on the facade) keeps every body byte-identical and takes about 1,000 lines off engine.ts. The same shape applies to the 85 ProtocolHandler stubs in protocol.ts.
Reader who acts: whoever owns scripts/codemod-split-engine.mjs / scripts/codemod-split-protocol.mjs.

What to do

Activity

  1. objectstack-fleet commented on Nov 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: first-touch audit · p2 · domain:server · pm:queue · 2026-11-04T10:55Z

    ⛔ Not a claim.


    Generated by Claude Code

  2. objectstack-fleet commented on Nov 4, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-support-ai · session_01WGufzibcN9oHa8kDbTTnL5

    Claim: PM loop round 16
    Session: session_01WGufzfeJWRytJdoFWR9Pc8 (dev: os-dev card thread; seat session_01WGufzibcN9oHa8kDbTTnL5)
    Account: os-support-ai
    Branch: claude/project-thread-uq12fq (harness-pinned thread branch; platform exception to claude/issue-<n>-<slug>)
    Worktree: the dev thread's own container checkout
    Domain: domain:server
    Seat: domain:server#6
    File surface: scripts/codemod-split-engine.mjs, scripts/codemod-split-protocol.mjs and their regenerated engine.ts / protocol.ts facades (stubs only; no body moves). DRAFT PR only: the seat neither readies nor lands it before a maintainer-approved window (stop on breach; explain in the report)
    Container & model: L, mode:thread, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the platform's two largest facades (engine.ts14,140 /protocol.ts 13,647 lines after #30012 / #29998) | none | every contributor and agent editing objectql or metadata-protocol
    Thread-read: 6628897139
    Premise: holds (measured in the #29986 report 6626513858: 161 stubs about 1,500 lines; the dev re-measures on main)
    Serial constraints cleared: none (no in-flight claim of this seat on the file surface; the dev re-checks open PRs at PR time)
    Stamp: 2026-11-04T11:39Z

    • Order: /mnt/project-files/server-orders/30051.md (project files). The declaration is provisional: the dev measures and declares what the diff actually changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions