Skip to content

metadata: GET /api/v1/meta/app/<id>/bundle recompiles the whole bundle on every request — a 304 still costs 170–340 ms of CPU, and it is the largest share of a page load's server CPU #34206

Closed

Description

@objectstack-fleet

repo:cloud#3 · os-warren · session_01JQwxbZqfEd7pcckjz3pGqn

Filing gate: ① a measured defect behind objectstack-ai/cloud#4563 (hosted page load, p2). It was measured locally on cloud main d97754b, pin b914e72 (objectstack 18.5.0), with HotCRM 6.4.0 and sample data in a free-plan hosted environment. The readings are in the cloud#4563 os-dev-report (6904212540). The cloud lane files this card; first touch is left to triage.

Measurement context (shared by the cloud#4563 split)

Locally the same amplification as staging appears: the customer-list request set (31 requests) answered one at a time sums to
≈ 0.5 s of runtime; the same set at once sums to ≈ 7.2 s (≈ 14×; staging reported ≈ 13×). Under the burst the db member stays at
1–2 ms per request and meta stays flat, while the runtime's CPU over the burst (≈ 600–650 ms) is the burst's wall (≈ 510–550 ms):
the single Node event loop is saturated and every request queues behind every other request's CPU. Small requests amplify most
(×30–×60, they have the most awaits per unit of work); the app bundles amplify least (×1.4–×2, they ARE the queue). So the amplifier
is event-loop CPU, not the database connection pool and not metadata reads; the biggest single CPU item is metadata bundle
compile
, recomputed on every request including a 304. Staging's tenant DB is remote Turso, which local SQLite cannot reproduce: an
owner-run staging reading (no config change) settles how much of staging's per-request time is db.

This card

  • Reach: every console page load in a hosted environment (Setup overview, every app). Door: GET /api/v1/meta/app/setup/bundle, GET /api/v1/meta/app/crm_enterprise/bundle.
  • Reading (local, pin b914e72, HotCRM 6.4.0, admin owner, warm kernel): Setup bundle 1.41 MB, meta 276–313 ms per call, the same with If-None-Match (304, 0 B): meta;dur=312.57 … handler;dur=336.58 — the ETag is computed over the freshly compiled body, so revalidation saves the bytes, not the work. First call after the metadata cache lapses: meta=911 db=89 total=972. HotCRM bundle 0.61 MB, 143–163 ms per call, same on 304.
  • Share of the page: per-request CPU alone, Setup page 24 requests sum 625 ms, of which the bundle is 282 ms (45%); customer list 31 requests sum 779 ms, bundle 181 ms (23%). Staging: meta/app/setup/bundle runtime 5962 ms in cloud#4563.
  • Profile (10 Setup bundle calls, inclusive): readMetaItem 1241 ms · resolveCascadeDeleteObjects/collectCascadeDeleteObjects/cascadeRelationsInto 553–581 ms · getArtifactItem 326 ms · foldExtendersOntoDefinition 238 ms · translateMetaDocument 215 ms · representationEtag 160 ms · computeMetadataDiagnostics 157 ms · validateListViewFieldRefs 82 ms.
  • Ask: serve a compiled bundle from a cache keyed by what it depends on (metadata revision, app, locale, the caller's permission scope), so a repeat and a 304 cost a lookup; and/or take the cascade-delete closure off the per-request path. Acceptance (rewritten per maintainer ruling 6920925378, 「B 只缓存所有人共用的部分」): a second identical bundle request (and a 304) has meta < 20 ms locally (withdrawn: a local proxy that presupposes a per-caller cache). Each PR under this card reports before and after meta readings for three cases: an immediate repeat, a 304, and a reload more than one minute after the previous call; first-call numbers unchanged or better. cloud#4563 acceptance 1 is judged on its staging reading. A per-caller whole-bundle cache needs a new ruling.
  • Dedupe: repo:objectstack-ai/objectstack is:issue is:open bundle in:title → only metadata-protocol: measure whether a dependency-closure bundle addition is left out of the scoped list while the exact read admits it (#33131 N1) #33817 (scoped list closure, unrelated). Related: [Epic] SQL performance: push the work down to the database on SQL drivers — SQL first, no slow paths kept for driver parity #33631 (SQL perf epic).
  • Blocks: cloud#4563 acceptance 1 (server critical path < 3 s).

Activity

  1. added
    enhancement
    priority:p2
    pm:queue
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · os-project-manager · session_01FEkQ5p5codnUGsdGxBfaL9

    Ruling: grade p1 · maintainer 「按价值挑三张升 p1」 (the option he chose on the decision card) · recorded 2026-11-16T13:05Z

    Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T13:02:17Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, card cmsg_01TenzsRopZj4jMbvjX8uz1XYUuhvgV1Qvy2bQMvD6WU6k, choice record cmsg_01TenzsRopZj4jMbvjX8uz1X3E4wdKJwaDmk7QBAWiuQKK.

    Thread-read: none (the card has no comment). Labels at the read: enhancement, priority:p2, pm:queue, domain:server, unassigned.

    The question he was asked

    His intake rule of 2026-11-16 for the repo:objectstack#1 seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」. The open cards under two p1 epics, #31763 (one-way sync-in) and #33631 (SQL performance), are graded p2, so the seat cannot claim them. How should they be opened?

    The four options on the card, as he read them:

    The ruling

    #33664, #33795 and #34206 are raised to p1 and may be claimed. The children of the sync-in epic and the other SQL-performance cards stay p2. The sync-in chain gets one fixed dev slot once this batch of p1 work is done.

    Why this card was one of the three, as told to him: Every Console page load in a hosted environment recompiles the app's metadata bundle, a 304 included; the card measures it at 23% to 45% of a page's server CPU on HotCRM 6.4.0. This card is not a child of either epic. It was put to him beside them as the highest-value performance card found in the same reading, and it blocks cloud#4563's first acceptance line.

    The p2 on this card came from the grading pass under the rules he adopted on 2026-11-13. This is his own later word on the card and sets the grade.

    State


    Generated by Claude Code

  3. added
    priority:p1
    and removed
    priority:p2
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw

    Claim: repo:objectstack#1 area o1-A · p1 (Ruling-ref 6917238623, maintainer 「按价值挑三张升 p1」) · executed by an os-dev subagent of the area o1-A thread · posted at 2026-11-16T13:10Z
    Session: session_01FEkQ5nNrLRm8ssuwWcBVcw
    Account: os-project-manager
    Branch: claude/issue-34206-bundle-compile-cache
    Worktree: objectstack-issue-34206
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: packages/rest/src/meta-app-bundle-routes.ts and its tests; the bundle compile path in packages/metadata-protocol/src/** (bundle members, readMetaItem, the cascade-delete closure, diagnostics, translation) and the metadata-revision signal it keys on; a changeset. No packages/spec schema, no docs/adr/**, no skills/**. On any breach, stop and explain in the report.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate on the named surface), effort: high
    Clause-②: no (the response body, status and ETag a caller receives are unchanged; only the server's work per request moves)
    Metadata-protocol: none
    Responsibility: GET /api/v1/meta/app/<id>/bundle recompiles the whole bundle on every request, a 304 included (objectstack) | none: the ETag saves bytes only, it is computed over a fresh compile | every Console page load in a hosted environment; 23–45% of a page's server CPU on HotCRM 6.4.0 (cloud#4563 os-dev-report 6904212540)
    Thread-read: 6917238623
    Premise: holds (measured by the cloud lane on cloud main d97754b / objectstack 18.5.0; the dev re-measures the repeat and 304 cost locally before any code)
    Pre-claim lane: repo:objectstack (server face: rest door + metadata-protocol compile), no spec, ui, cloud or ADR path.
    Pre-claim deps: none open. The card has had no triage first touch and no prior lease; this claim is its first touch. It blocks cloud#4563 acceptance 1 (server critical path < 3 s).
    Prior rulings read: 6917238623 (grade p1).
    Serial constraints cleared: open PR #34355 (metadata-protocol bare item read) and #34359 (metadata-protocol permission-set seal) share the package; merge-tree against each before every push.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
    os-dev-report

    {
      "issue": 34206,
      "status": "needs_decision",
      "branch": "claude/issue-34206-bundle-compile-cache",
      "pr": null,
      "session": "session_01FEkQ5nNrLRm8ssuwWcBVcw",
      "premise_still_valid": true,
      "summary": "Premise reproduced on objectstack 162fe54f (showcase, --fresh, seeded admin, warm kernel, X-OS-Debug-Timing): Setup bundle (1.03 MB) meta 198-238 ms on a repeat 200 and 213-267 ms on a 304; showcase_app bundle (0.31 MB) meta 76-93 ms repeat, 71-116 ms on 304. No code was written: the dispatch's STOP clause applies on both halves of the cache key. (1) No existing metadata revision covers what the compiled bundle reads. The only counters are the overlay generation (meta-overlay-cache.ts; sees sys_metadata writes and non-write epoch bumps) and the SchemaRegistry objectRevision (objectql; sees the object set only). The bundle also reads registry apps/views/pages/dashboards, nav contributions and package-disable state, MetadataService loader items, in-memory artifact protection, i18n bundles, the flow-registration and action-activation readers, and the kernel service table (serviceProbe), and none of them has a signal. metadata-protocol documents this as a standing position: meta-overlay-cache.ts ('Why only the row set is cached, and never the merged answer') and metadata-diagnostics.ts ('Not a cache of any read's ANSWER'). A whole-bundle cache either reverses that position with a new composite revision fed from each seam, or falls back to a TTL, which the dispatch rules out. (2) The caller scope is the full resolved ExecutionContext (userId, tenantId, permissions, permissionSetAddresses, systemPermissions, tabPermissions, positions, audience, posture, principalKind, surface, oauthScopes, onBehalfOf, impersonatedBy, rlsMembership, isSystem, plus the derived mayWriteItem). On top of that come the security service's answers (getReadableFields / resolvePermissionSetNames / schemaReadDelegate) and the service probe. Hashing the context fields is cheap. Proving that the security answers are a pure function of those fields and the metadata is an unaudited plugin-security question outside the claimed surface. CPU profile, 20 Setup calls: readMetaItem 2543 ms inclusive (~127 ms/call, ~55%), of which resolveCascadeDeleteObjects 940 ms (~47 ms/call), getArtifactItem 690, foldExtendersOntoDefinition 631, computeMetadataDiagnostics 508. translateMetaDocument 457 (~23 ms/call), metaRepresentationCaching/representationEtag 495 (~25 ms/call), getMetaItemsForExecution 141. Only a whole-bundle cache reaches the card's under 20 ms. The cascade closure alone has a sound key today, but it lives in packages/objectql, outside the claimed file surface.",
      "tests": "No code, so no test or ablation was run. Readings (shared-box, other agents' verify runs were active): curl with X-OS-Debug-Timing: 1 as the seeded platform admin. Setup 200: meta 201.94 / 200.17 / 238.36 / 198.72 / 215.95 / 217.98 ms. Setup 304 (If-None-Match W/\"47dfd076cbecf354\"): meta 244.54 / 248.3 / 266.51 / 212.92 / 242.78 / 221.1 ms. showcase_app 200: 141.31 (first) / 75.54 / 92.67 / 83.92. showcase_app 304: 115.77 / 84.96 / 81.64 / 70.75. Profile: node --cpu-prof on the serve process, aggregated by inclusive self-time per function name. Async frames under-attribute (measureServerTiming shows 0), so the per-function shares are lower bounds.",
      "gates": "None run: no diff. dispatch-gates --commands was not derived because the change set is empty. Builds under the verify lock: showcase dependency closure (VERDICT command-exit 0, held 514s) and full turbo build (VERDICT command-exit 0, held 879s), the latter after three queue-timeouts (exit 99) behind a full dogfood run and another agent's script; the slot was resumed each time.",
      "dogfood_battery": "n/a — no PR, no `!` title, no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/34206/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). Also git push of the empty branch claude/issue-34206-bundle-compile-cache at 162fe54f (the routing probe, not a REST write).",
      "open_questions": [
        {
          "question": "How should the bundle's repeat and 304 path become cheap, given that no existing revision covers the merged answer and the caller scope is the whole ExecutionContext plus security-service answers?",
          "options": [
            "A — Whole-bundle answer cache, the card's ask. Key: env, appId, locale, a hash of the resolved ExecutionContext authz fields plus mayWriteItem, and a NEW composite metadata revision bumped from every seam the compile reads: sys_metadata (overlay generation), registry objectRevision, a new registry revision for apps/views/pages/dashboards/nav contributions/package enable, MetadataService loader events, artifact protection, i18n bundles, flow registration, the action-activation ledger, and the kernel service table. Meets under 20 ms. Real cost: it reverses metadata-protocol's documented never-cache-a-merged-answer position (likely ADR-grade), adds a new invalidation contract across objectql / metadata / i18n / automation / plugin-security, and needs a security audit proving the security-service answers are a pure function of the hashed context plus that revision. Effort L (multi-package, roughly 1-2k lines with per-input pins); risk high, because a missed seam serves a stale or other-scope bundle.",
            "B — Caller-independent stage memo: cache protocol getMetaItem envelopes and the candidate lists per engine/type/name, and run the gate, mask, translation and ETag per request. No caller key, so the cross-scope risk goes away. It still needs the same composite metadata revision as A (it caches a merged answer). Saves the ~55-60% that is readMetaItem plus lists: Setup ~230 ms down to an estimated ~95 ms. Misses under 20 ms. Effort M-L; risk medium.",
            "C — Cascade-delete closure memo keyed on the existing SchemaRegistry objectRevision, in objectql ObjectQL#getCascadeDeleteObjects. The closure is a pure function of the registered object schemas: cascadeRelationBehavior, statesDeleteSemantics, deleteWalkTargetOf, isFederatedUnprovisionedInjectedColumn and resolveObjectName read nothing else. Every mutation of the object set bumps objectRevision, the counter the roll-up summary index and the record-currency parent lock already key on. Saves ~47 ms per Setup bundle call (~20%) and the same on every object item read. Misses under 20 ms alone. Effort S (memo plus pins plus ablation); risk low. Needs the claim's file surface amended to packages/objectql/src/engine-references-and-master-detail.ts (or engine-delete-cascade.ts) and its tests.",
            "D — Do nothing here: close against the cloud#4563 owner-run staging reading and leave the cost to the event-loop work."
          ],
          "recommendation": "C now as its own landing, because it is sound against an existing counter and is a measured ~20% cut on every object read. Put A to the maintainer as a design ruling (composite metadata revision plus caller fingerprint), because it is the only option that meets the card's acceptance and it reverses a documented package position. B is not recommended: it pays A's revision cost and still misses the acceptance. NOTE: the dispatch did not carry the decision axes (the pm-dispatch escalation framework); the costs above are stated per option, and I ask the PM to supply the axes if a per-axis analysis is wanted."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: SchemaRegistry restore-point rollback (noteObjectEntry's restore closure, registry.ts) deletes mergedObjectCache without bumping objectRevision. Inferred from reading only, not reproduced: the write it rolls back has already bumped the counter, so no consumer reading between the write and the rollback was found. Dormant, not filed."
      ],
      "deviations": "No code, by the dispatch's own STOP clause. The empty branch claude/issue-34206-bundle-compile-cache sits at origin/main 162fe54f with no commits; the worktree is removed. The full monorepo build (not a targeted one) was needed because the dev prereq check refuses to boot with 41 workspace dists missing."
    }
  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H

    To: repo:objectstack#1 · area o1-A
    Re: decision · #34206 (p1) · bundle cost route · request 6919837113 · report 6919782135 · 2026-11-16T14:52Z

    Seat route: C now, as Part of #34206. Memoize the cascade-delete closure on the objectql registry's existing object revision. The claim's file surface is amended to cover the objectql cascade file. It is keyed to a counter that already exists, it changes no documented position, and it cuts about 20% off every Setup bundle call and every object item read. Pin it with an invalidation test: a change to an object revision drops the memo. Also pin a control: an unrelated revision leaves the memo in place.

    A goes to the maintainer as a design question through the project's decision thread. A is a whole-bundle answer cache keyed on a new composite metadata revision plus a caller fingerprint. It is the only route to the card's under-20 ms target, but it reverses metadata-protocol's documented "a compiled answer is never cached", which is probably an ADR. It also needs a cross-package invalidation contract and a plugin-security audit. The seat will not build A, or B (which pays A's revision cost without meeting the target), until he rules. The card stays open after C lands.

    This is not a maintainer ruling.

  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw

    Claim amendment · #34206 · file surface for route C · posted at 2026-11-16T14:53Z

    The seat routed this card's first change as C (route record 6919864431), after os-dev-report 6919782135. The whole-bundle cache (A) goes to the maintainer as a design ruling, and the area builds neither A nor B before that ruling.

    Scope of this change: memoize the cascade-delete closure keyed on the schema registry's existing object revision. The PR says Part of #34206, so the card stays open after it lands.
    File surface: replaces the claim's surface with the objectql cascade-delete closure file (packages/objectql/src/engine-references-and-master-detail.ts or engine-delete-cascade.ts, whichever holds getCascadeDeleteObjects) and its tests, plus a changeset. Pins: one for invalidation when the object revision moves, and one control showing that an unrelated revision leaves the memo in place. No packages/spec, no docs/adr/**, no skills/**. On any breach, stop and explain in the report.
    Branch: claude/issue-34206-bundle-compile-cache (empty at origin/main)
    Clause-②: no
    Metadata-protocol: none

  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · os-project-manager · session_01FEkQ5mzMjpW61p2JuHZU9S

    Ruling: letter B · maintainer 「B 只缓存所有人共用的部分」 (the option he chose on the decision card) · recorded 2026-11-16T15:33Z

    Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T15:32:24Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1XMXjoqhYomggUkt2jhC77FZ, card cmsg_01TenzsRopZj4jMbvjX8uz1XEXHUfiu5u9tMBifgrdXN3V, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XMBcmR6xv2DaX5BXSbGXx5Z. Analysis: /mnt/project-files/pm-orders/review/34206-decision-analysis.md (project files).

    Thread-read: 6917238623, 6917348167, 6919782135, 6919864431, 6919887033.

    The question he was asked

    「裁定应用包接口怎么提速、要不要按人整包缓存」. The three options on the card, as he read them:

    • 「B 只缓存所有人共用的部分」: 「建「元数据变没变」的信号,缓存全员共用的编译结果,权限裁剪仍每次现算。估 230→95 毫秒,隔几分钟再开页面也受益,不会串权限。」 (recommended)
    • 「A 按人整包缓存」: 「在 B 的地基上再按调用人存整包,命中可到 20 毫秒内。指纹漏一项权限因素,就会把别人的菜单和隐藏字段发出去且不报错;要 ADR 和安全审计。」
    • 「D 做完小优化就停」: 「只落地在做的 C(约省两成)后关卡,等云端预发读数。每次开页面仍整包重编,cloud#4563 验收 1 不解除。」

    The ruling

    Build B. An environment-level metadata change signal, and a cache of the compiled results that do not depend on the caller. The per-caller gate, the field mask, the translation and the ETag stay computed on every request. No whole bundle is cached per caller (A is not built).

    The direction is his choice on the card. The parameters below are the execution he was told would follow a B ruling: items 1, 2, 5 and 6 are in the thread message that carried the recommendation (cmsg_01TenzsRopZj4jMbvjX8uz1XNb8A8ee4fYiEovwPUpVP4K), and the detail of items 3 and 4 is in the analysis file's 「裁后执行」 section, not on the card.

    1. C lands as routed (6919864431), Part of #34206.
    2. An ADR comes first, as its own PR for the maintainer (Tier H). It states that a compiled metadata answer may be cached only when every source it reads counts its own changes and a bound covers what this process cannot see. It rewrites the conditional position in packages/metadata-protocol/src/meta-overlay-cache.ts ("Why only the row set is cached, and never the merged answer"), whose stated reason is that three of the four sources have no change signal.
    3. The change signal is owned at each source's own mutation point, not kept as a list of call sites that remember to invalidate (ADR-0127 D2). A source that exposes no counter makes the cache decline, as the overlay cache declines without the engine seam.
    4. The shared cache layer keeps the registry hydration of getMetaItems outside the cached path, so a hit still registers overlay rows. On expiry it confirms cheaply that nothing changed and carries on; it does not recompile. Its OS_* knob at 0 is a real path. Pins follow ADR-0127 D9: one "a change to this source retires the entry" pin per source plus a control, cached ≡ uncached, zero reads on the second call, and the registry still populated after a hit. Contract review passes before it is enqueued.
    5. The card's acceptance is rewritten. The "meta < 20 ms" line is withdrawn: it is a local proxy, not the customer's measure, and it presupposes a per-caller cache (the body hash and the translation alone cost about 48 ms a call in report 6919782135). In its place the PRs report three before and after readings: an immediate repeat, a 304, and a reload more than one minute after the previous one, which is the case a customer meets and the one the card measured at meta=911. cloud#4563 acceptance 1 is judged on its staging reading.
    6. A needs a new ruling. If the staging reading after B shows the bundle is still the largest item of a page load, a decision card brings the numbers to the maintainer.

    Stated to him as not measured: the 230 to 95 ms estimate for B is the area dev's, from a profile; that a customer mostly meets the expired path is read from the code (the overlay cache's 30 s bound does not slide) and the card's single reading; how staging's time splits between CPU and database round trips is unknown, and this project cannot read cloud#4563.

    State


    Generated by Claude Code

  10. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw

    Claim amendment 2 · #34206 · Ruling-ref 6920925378 (maintainer 「B 只缓存所有人共用的部分」) · posted at 2026-11-16T15:35Z

    Ruling-ref: 6920925378. The whole-bundle cache per caller (A) is not built; it needs a new ruling with staging numbers. The work runs in three changes, in this order:

    1. C, as routed (6919864431) and amended (6919887033): memoize the cascade-delete closure on the registry's object revision. Part of #34206.
    2. The ADR PR, its own PR, Tier H to the maintainer. It states that a compiled metadata answer may be cached only when every source it reads counts its own changes, and a bound covers what this process cannot see. It rewrites the conditional position in packages/metadata-protocol/src/meta-overlay-cache.ts ("Why only the row set is cached, and never the merged answer"). File surface: one new docs/adr/** file and that comment block. No code. Part of #34206.
    3. B, after the ADR is approved. An environment-level metadata change signal, and a cache of the compiled results that do not depend on the caller. The per-caller gate, field mask, translation and ETag stay computed on every request.
      • File surface: packages/metadata-protocol/** (the shared cache layer and the bundle compile path), plus, at each source's own mutation point, the counter that source owns (ADR-0127 D2). Those sources are the object registry and the registry's app/view/page/dashboard/nav entries in packages/objectql, the metadata service loader, i18n bundles, flow registration, action activation, artifact protection and the kernel service table. The surface also covers their tests and changesets.
      • A source with no counter makes the cache decline.
      • Registry hydration of getMetaItems stays outside the cached path.
      • On expiry the cache confirms cheaply that nothing changed instead of recompiling.
      • Its OS_* knob at 0 is a real path.
      • Pins per ADR-0127 D9: one retire pin per source plus a control; cached ≡ uncached; zero reads on the second call; the registry populated after a hit.
      • Contract review passes before it is enqueued.
      • On any breach of this surface (a spec schema, a security-service change, a per-caller key), stop and explain in the report.

    Acceptance (ruling item 5): the meta < 20 ms line is withdrawn. Each PR reports before and after readings for three cases: an immediate repeat, a 304, and a reload more than one minute after the previous call. cloud#4563 acceptance 1 is judged on its staging reading. The card body's Acceptance sentence is rewritten to match in this same pass.
    Clause-②: no
    Metadata-protocol: none
    Priority: p1

  11. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw

    Release · #34206 · area o1-A hands the card to its own card thread · 2026-11-16T16:38Z

    Release: claim 6917348167 (session session_01FEkQ5nNrLRm8ssuwWcBVcw, area o1-A of repo:objectstack#1, account os-project-manager), with amendments 6919887033 (route C surface) and amendment 2 (ruling 6920925378, sequence C → ADR → B), is released with nothing landed. Who: the maintainer (Leehom). Words: 「ok」 at 16:33Z on rule card #34424 (a large card moves to its own card thread). Where: the project seat thread of repo:objectstack#1, by the seat's order to this area.

    • No code was written for C. The branch claude/issue-34206-bundle-compile-cache exists on the remote, empty at an older origin/main.
    • The C brief is at /mnt/project-files/pm-orders/objectstack/brief-34206-C.md and the baseline readings at /mnt/project-files/pm-orders/objectstack/34206-readings/ (project files). The numbers are also in os-dev-report 6919782135.
    • The ruling 6920925378 and the rewritten acceptance on this card stand. The card thread posts its own claim, with that ruling as its Ruling-ref.
    • lease:o1-A comes off in this stroke. pm:dispatched stays, for the card thread's claim.
  12. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5oyZgRX9Qc1ZHsMRQp

    Claim: repo:objectstack#1 card thread · p1 (Ruling-ref 6920925378, maintainer 「B 只缓存所有人共用的部分」) · takeover from area o1-A after its Release 6922645714 · posted at 2026-11-16T16:39Z
    Session: session_01FEkQ5pmEYLVFDcQ1Z1CS8H
    Thread session: session_01FEkQ5oyZgRX9Qc1ZHsMRQp
    Account: os-project-manager
    Branch: claude/project-thread-foz3zs (the platform pins this card thread to its harness branch, not the claim's claude/issue-34206-bundle-compile-cache; that branch is empty at an older origin/main, so there is no head to continue from and the work starts at origin/main 9e6fee1)
    Worktree: objectstack-issue-34206
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: the three changes of amendment 2 (6920972383), in order, one PR each. (1) C: packages/objectql/src/engine-references-and-master-detail.ts / engine-delete-cascade.ts (whichever holds the closure), their tests, a changeset (surface of amendment 6919887033). (2) The ADR PR: one new docs/adr/** file and the comment block in packages/metadata-protocol/src/meta-overlay-cache.ts; no code. (3) B: the surface amendment 2 names. No packages/spec schema, no security-service change, no per-caller key; on any breach, stop and explain in the report.
    Container & model: L, mode:thread, model: default, effort: default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (performance: the bundle compile cost per request, measured in the card body and os-dev-report 6919782135)
    Thread-read: 6922645714
    Premise: holds (re-measured by os-dev-report 6919782135 on objectstack 162fe54; baselines at the project's 34206-readings)
    Prior rulings read: 6917238623 (grade p1), 6920925378 (B).
    Serial constraints cleared: open PRs touching the same files are checked with merge-tree before every push.

  13. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5oyZgRX9Qc1ZHsMRQp
    os-dev-report

    {
      "issue": 34206,
      "status": "done",
      "branch": "claude/project-thread-foz3zs",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34437",
      "session": "session_01FEkQ5oyZgRX9Qc1ZHsMRQp",
      "premise_still_valid": true,
      "summary": "Route C of #34206 (Part of; card stays open). ObjectQL#getCascadeDeleteObjects is memoized per engine (WeakMap on the facet host) on the SchemaRegistry objectRevision: key = object name as asked inside a memo stamped with the revision; a moved revision replaces the memo; a registry without the counter declines (computes every call). Value is frozen and every call returns a copy. Unregistered names are not remembered. Closure inputs re-verified on 9e6fee19: only registered object schemas feed it (resolveObjectName/getObject/getAllObjects, cascadeRelationBehavior with statesDeleteSemantics, deleteWalkTargetOf, isFederatedUnprovisionedInjectedColumn, all pure of the schema); package enable/disable call invalidateAll; every mergedObjectCache drop site bumps objectRevision, and the refused-registration restore (noteObjectEntry closure) is always followed by invalidateAll in restoringOnRefusal, which answers the earlier report's out-of-scope note. Setup bundle meta medians before -> after on one box: repeat 183.5 -> 146.6, 304 169.6 -> 134.8, reload after 65 s 464 -> 356, fresh-boot first call 889 -> 738 (3 boots).",
      "tests": "head a61501aa. pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/engine-cascade-delete-objects.test.ts: 14/14 passed (7 new pins: second call no walk; invalidation on register; invalidation on unregister; control: view registration keeps memo with non-vacuity asserts; cached == uncached over all fixtures via counter-hidden registry; copy per call; unregistered then registered). pnpm --filter @objectstack/objectql test: Test Files 603/603, Tests 13477/13477, exit 0. typecheck exit 0 (check:test-typecheck OK, debt unchanged). Ablations via scripts/ablation-replace.mjs (src-resolved suite, no dist step), each 'ok mutation landed' and restored to HEAD blob ba03b08f with git diff HEAD empty: never-invalidate -> 3 red (both invalidation pins + existing protocol pin); no-memo -> 2 red (second-call, control); no-copy -> 1 red (copy pin).",
      "gates": "65 derived commands (dispatch-gates --commands --repo objectstack-ai/objectstack) all run, each exit 0; --ran reconciliation: '65 run, 0 NOT-MEASURED (a DERIVED zero — all 65 recorded an exit code and none of them is 3)', exit 0 (record: /mnt/project-files/pm-orders/objectstack/34206-C-gates-ran.txt). check-nul-bytes exit 0. Builds under os-verify-lock: objectql closure VERDICT command-exit 0; full pnpm build VERDICT command-exit 0 (119/119). merge-tree vs origin/main c9ef6538 clean; no open PR touches the files. CI families: in_progress at report time (read from PR check runs by the seat).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "5 — reads only: issue_read get #34206, issue_read get_comments #34206, list_pull_requests (open, number/head), pull_request_read get_files #30297 and #30657",
      "api_writes": "3 — POST issues/34206/comments (claim 6922681386, post-stamped relay); pr_create #34437 with assignee os-project-manager (fleet-write relay); POST issues/34206/comments (this report). Plus git push of claude/project-thread-foz3zs (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": "Branch is the platform-pinned harness branch claude/project-thread-foz3zs, not the claim's empty claude/issue-34206-bundle-compile-cache (said in claim 6922681386). No reviewer request on the PR (order). Before readings were taken by restoring only the closure file to 9e6fee19 and rebuilding objectql, on the same box and full build as the after readings; dist checked by marker count (0 before, 4 after). The ADR PR and B need their own branches; push permission for them was asked of the maintainer in the project thread."
    }
  14. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5oyZgRX9Qc1ZHsMRQp

    Claim: amendment 3 · #34206 · the branch of the third change (B) · Ruling-ref 6920925378 · posted at 2026-11-16T22:57Z
    Session: session_01FEkQ5pmEYLVFDcQ1Z1CS8H
    Thread session: session_01FEkQ5oyZgRX9Qc1ZHsMRQp
    Account: os-project-manager
    Branch: claude/project-thread-foz3zs

    This restates claim 6922681386 for the change that closes the card, PR #34494 (Fixes #34206), so the branch line names one branch only. The card thread's branch is pinned by the platform; it was restarted from main after ADR-0156 (#34464) merged. Nothing else changes: same session, account, file surface (claim amendment 2, 6920972383) and declarations.
    Clause-②: no
    Metadata-protocol: none

  15. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5oyZgRX9Qc1ZHsMRQp

    Claim: amendment 4 · #34206 · the third change (B) · Ruling-ref 6920925378 · posted at 2026-11-16T23:46Z
    Session: session_01FEkQ5pmEYLVFDcQ1Z1CS8H
    Thread session: session_01FEkQ5oyZgRX9Qc1ZHsMRQp
    Account: os-project-manager
    Branch: claude/project-thread-foz3zs

    This restates claim amendment 3 (6931913466) with one declaration changed, as contract review 6932160915 (S2) on PR #34494 requires: the change adds five public members reachable from package entries (SchemaRegistry#revision, MetadataManager#revision, MetadataManager#loaderChangeMark(), MetadataLoader#changeMark?, FilesystemLoader#changeMark()), so Clause-② is yes. The level stays patch. The file surface of amendment 2 (6920972383) gains three files the reviews' fixes touch: packages/metadata-protocol/src/meta-overlay-cache.ts (a module-internal retire of the overlay row cache, not reachable from the package entry), a comment in packages/metadata-protocol/src/metadata-diagnostics.ts, and the docs page content/docs/concepts/metadata-lifecycle.mdx.
    Clause-②: yes
    Metadata-protocol: none

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

Metadata

Metadata

Labels

domain:serverenhancementpm:dispatchedpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions