Skip to content

metadata-protocol: before a restart, the _env address serves a row stamped to an installed package that ships nothing of that name, and refuses it 409 after #36090

Open

Description

@objectstack-fleet

repo:objectstack#7 · os-tesla · session_01L9qibxWPiQYXSf1jxGbN3W

Filing gate ①, Source: fleet. Out-of-scope finding of the #35379 dev (os-dev-report 7063074492), measured while answering that card's stop condition. Dedupe: admitEnvironmentQualifier 8 hits, _env before restart 19 hits, environment address package row 488 hits; the open ones nearby are #35379 (the after-restart member split, which this is not), #34452 (bare doc doors beside one enabled holder) and #32670 (email send judging served holders); none covers the before-restart _env read.

What happens (measured at origin/main fddb9cb on a booted kernel)

Arrangement: an installed package com.qa.envsplit that ships nothing named stamp_dash / stamp_only, and a row of that name stored with package_id com.qa.envsplit (a dashboard and an email_template).

  • Before a restart: GET /meta/dashboard/_env/stamp_dash and GET /meta/email_template/_env/stamp_only answer 200 and serve the package-stamped row at the environment's address.
  • After a restart (second boot on the same database): the same reads answer 409 RESOURCE_CONFLICT (not held by the qualifier).

So one request gets two answers depending on whether the process has restarted. The after-restart 409 is the one ADR-0150 D5 describes: the _env address is the environment's own item, exactly.

Seam: spec: ADR-0150 D5 _env → runtime: admitEnvironmentQualifier (packages/metadata-protocol/src/protocol-exact-qualifier.ts), which judges from the registry alone; before a restart the registry has not hydrated the stamped row. Its own docblock names the hazard ("a read admitted here could serve that package's row at the environment's address") but handles it only on the disabled-holders branch.

reach: HTTP GET /meta/:type/_env/:name as above, measured 200 before and 409 after a restart (dev's throwaway booted-kernel probes, readings in the report).

Done when

The _env read of such a name answers the same before and after a restart, the after-restart answer (409, not held by the qualifier), for at least dashboard and email_template. Pin it on a booted kernel across a restart, with a CONTROL that a genuinely package-less row is still served at _env both times. Whether the move from 200 to 409 before a restart is a narrowing is decided with #35379's same question (the seat routes both).

Business rationale

An environment's own address must not depend on process uptime: a dashboard or template read by _env that works until the next restart and then fails is a broken link no author can debug. Reader: seat 7 (area:data), routed together with #35379.

Grade: p3 · area:data · Bug · developers reading package-scoped metadata by _env address, rare · evidence measured.

Activity

  1. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibxWPiQYXSf1jxGbN3W

    Paired · 2026-11-21T13:17Z: this card is ruled together with #35379 (now needs-user-decision, release 7063155478), on the seat's routing. Both turn on the same question for the _env door: is moving a served read to 409 a defect fix or a narrowing. ⛔ Not a claim.

  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (metadata-protocol admitEnvironmentQualifier) · pm:queue; rationale: area:data · Bug · before a restart, the _env address serves a row stamped to an installed package that ships nothing of that name (200); after a restart it refuses the same read (409), so one request answers two ways by process age; measured on a booted kernel at fddb9cbb; reach: rows stamped to a package that does not ship them → p3 as filed (kept: a real inconsistency, narrow reach) · size S.

  3. added
    bug
    domain:server
    pm:queue
    on Nov 21, 2026
  4. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Ruling · 2026-12-01T07:21Z · the maintainer answered on a decision card in this account's fleet project (2026-12-01T07:20Z), ruling #35379 and #36090 together.
    Question, verbatim: 「定 #35379 和 #36090:环境地址上的 200 改成 409 算修缺陷吗?」
    Option tapped, verbatim: 「算修缺陷,两张一起修」. Consequence line: 「两张卡各一个小 PR,变更说明写明这次 200 变 409;这些行仍可用包地址读到。不走收窄流程。」
    Options not taken: 「算收窄,走完整流程」, 「不改」.

    What it settles:

    Not settled: any other served-to-refused move on other doors. The caller arm (resolveCallerPackageAddress) stays out. If a fix would refuse a read whose row is not package-stamped, that is outside this ruling and comes back.
    Area: area:data. This seat only records the ruling; the owning lane takes the card.

    This card is already pm:queue; it is now cleared to build as a Bug under this ruling.

  5. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Folded reading · 2026-12-01T14:44Z · same family as this card (同族并入收口卡), handed to triage by seat repo:objectstack@os-steve (mailbox #38656 comment 7314690760).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:databugdomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions