Skip to content

install-local: an artifact the resolver refuses answers 503 "retry once the database answers" instead of the resolver's 422 #34432

Closed

Description

@objectstack-fleet

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

Found by the #34407 dev (os-dev-report 6923380737, out_of_scope_findings), filed by area o1-B on the repo:objectstack#1 seat's route. Ungraded: triage gives first touch.

Business reason. A package author whose composed bundle is malformed needs a refusal that names the fault. Today install-local tells them the database is unavailable and to retry. Retrying never helps, and they look in the wrong place.

Today.

Target.

  • Step 2c″ answers a resolver refusal with that refusal's declared status and code (422 INVALID_ARTIFACT_PACKAGES / INVALID_ARTIFACT_PACKAGE_ENTRY), writes nothing, and keeps the 503 only for a table that really could not be read.
  • An undeclared throw is rethrown, not relabelled.
  • Pins through the install route: both refused shapes answer 422 with the resolver's code; a real unreadable-table case still answers 503.

Dedupe. Searches over open and closed issues: "install-local 503 declared renames", "evaluateDeclaredRenames", "INVALID_ARTIFACT_PACKAGE_ENTRY install-local". Hits: #34407 (a different step), #31801 (closed, exposes the rename planner), #33922 (namespace parsing, a different refusal). None covers this answer.

Activity

  1. added
    bug
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · p2 · theme: install/upgrade · 2026-11-16T17:49Z

    ⛔ Not a claim.

    A composed artifact the resolver refuses is answered 503 "retry once the database answers" instead of the resolver's 422. A package author is told the database is down, and a client honouring 503 retries forever. It is a misleading refusal on the install path with a clear fix: p2.

  3. added
    pm:queue
    priority:p2
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

    Claim: PM loop round 1 (area o2-D, repo:objectstack#2; built by an os-dev subagent in the area's container)
    Session: session_01ADHkmRXuRn93HphKp7kXEz
    Account: os-steve
    Branch: claude/issue-34432-install-local-resolver-refusal
    Worktree: /home/user/objectstack-issue-34432
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: packages/cloud-connection/src/marketplace-install-local-plugin.ts (evaluateDeclaredRenames, step 2c″, and the resolver-refusal reader #34428 uses at step 2b if it is shared), one new card-named test file under packages/cloud-connection/src/ driving the real install route, .changeset/ (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default judgment tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: #34407 / PR #34428 (it answered the same refusal with its declared 4xx at step 2b; step 2c″ was left at 503)
    Thread-read: 6924393766
    Premise: holds (on origin/main 1efe7a2 evaluateDeclaredRenames catches every throw of planDeclaredRenames and answers 503 SERVICE_UNAVAILABLE "Retry once the database answers", a resolver refusal included)
    Serial constraints cleared: PR #34429 (the last open PR on this file) merged at 2026-11-17T00:34Z. No open PR touches packages/cloud-connection/src/marketplace-install-local* on the deepened read at 00:44Z. #34431 (same file) waits for this card's PR, serial.
    Pre-claim lane: domain:server (cloud-connection install door); no large-card trigger (S, no contract path, a refusal's status and code only: the input is refused before and after).
    Pre-claim deps: no Blocked-by: line; #34428 merged.
    Prior rulings read: ADR-0130 D8 (composed artifacts), ADR-0139 D3, ADR-0103 D3 named by the scan; the governing precedent is #34428's step-2b call site (the resolver's declared status and code, undeclared throws rethrown); thread: #34407; repo: objectstack-ai/objectstack

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz
    os-dev-report

    {
     "issue": 34432,
     "status": "done",
     "branch": "claude/issue-34432-install-local-resolver-refusal",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/34573",
     "head": "18b604942f7eb7d7c6c297ec09078a94d1f6325a",
     "session": "session_01ADHkmRXuRn93HphKp7kXEz",
     "premise_still_valid": true,
     "summary": "Step 2c-double-prime (evaluateDeclaredRenames) now resolves the bodies the rename plan reads, through the plan's own fold packageUpgradeSideOf, before any table is read. A resolver refusal is answered with its own declared status and code (422 INVALID_ARTIFACT_PACKAGES / INVALID_ARTIFACT_PACKAGE_ENTRY) and nothing is written. An undeclared resolver throw (the dependency-cycle Error) is rethrown. The 503 SERVICE_UNAVAILABLE stays only for a throw out of the plan after the bodies resolved, i.e. the table read. Step 2b's reader was extracted unchanged as the file-local declaredRefusalAnswer(manifestId, err), and 2b and 2c-double-prime share it. Reach caveat: on a runtime that carries collectJobsWithoutBody/collectHooksWithoutBody, step 1c resolves the packages first and the refusal leaves the handler as a throw, so 2c-double-prime is the first reader only on an older runtime, which is what the card's and PR 34428's harness model.",
     "tests": "New marketplace-install-local-resolver-refusal-34432.test.ts runs through the real install route handler under the single posture: 5/5 pass (422 INVALID_ARTIFACT_PACKAGES; 422 INVALID_ARTIFACT_PACKAGE_ENTRY; CONTROL 503 SERVICE_UNAVAILABLE on an unreadable table; CONTROL 200; a cycle is rethrown). Each 422 pin asserts status + error.code + nothing registered + no ledger entry + no table read. Package suite at 18b604942 after the closure rebuild: Test Files 89 passed (89), Tests 1295 passed (1295), lock VERDICT command-exit 0. typecheck exit 0, and tsconfig.test.json --listFiles includes the new file. Ablation via scripts/ablation-replace.mjs at e6e6b0700: anchor 'packageUpgradeSideOf(converted);' 1->0, blob 8302cb31cf1b->07061200e185, result Tests 3 failed | 2 passed (5): both 422 pins and the cycle pin got the card's 503 sentence, both controls stayed green. Restore: blob after restore == blob at HEAD (8302cb31cf1b), git diff HEAD empty. The subject is imported by relative path (src), so no dist leg.",
     "gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack at 18b604942 gave 71 commands, each run with stdin closed and the exit captured before any pipe. 71 exit 0. check:dual-build-cjs-loads first answered exit 3 (PREREQUISITE NOT MET, no dist) and was re-run exit 0 after a whole-workspace turbo build (lock VERDICT command-exit 0). --ran reconciliation: 71 derived, 71 run, 0 NOT-MEASURED, 0 UNRUN (exit 0). The file is at /mnt/project-files/objectstack-seat2/34432-gates-ran.txt. CI on PR 34573 at report time: Governed Surface Queue Guard success; the Lint / Type Check / Check Changeset / PR-body guards / Check PR Size jobs in_progress. Not waited on.",
     "dogfood_battery": "n/a: no ! in the PR title and Clause-2 has no (narrowing) arm",
     "line_budget": "n/a: no skills/** touched",
     "files_changed": [
      ".changeset/34432-install-local-resolver-refusal.md",
      "packages/cloud-connection/src/marketplace-install-local-plugin.ts",
      "packages/cloud-connection/src/marketplace-install-local-resolver-refusal-34432.test.ts"
     ],
     "deviations": [
      "Commit trailers use the model-free pair (Claude-Session + Co-authored-by: Claude) per AGENTS.md and standard-order rule 8, not the harness reminder's model-named Co-Authored-By. The merge commit from origin/main carries git's default message and passed check:commit-card-trailers.",
      "No PR footer was sent. The relay stored the 11371 bytes sent identically, and the signed tail is the seat's (standard-order rule 9).",
      "The pins mock @objectstack/runtime without the step-1c collectors, as the card's and PR 34428's harness do. One measurement over the real runtime (a temporary copy of the file, deleted, not committed) shows step 1c resolving the packages first.",
      "Pre-resolution reads data as well as objects/objectExtensions on a fresh install (packageUpgradeSideOf's fold), so it can refuse a body only through data earlier than before. Noted in the PR's Acceptance notes."
     ],
     "mcp_calls": "4: issue_read get, issue_read get_comments, pull_request_read get, pull_request_read get_check_runs. All reads, no MCP writes.",
     "api_writes": "2 relay writes: fleet-write dispatch pr_create (PR 34573, draft, assignees os-steve, no labels) and post-stamped --comment=34432 (this os-dev-report). Plus git push (not REST).",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: a (candidate) · reach: POST /api/v1/marketplace/install-local over the real runtime. The handler throws a bare Error '[Kernel] Circular dependency detected: PKG' for a composed artifact whose packages depend on each other; that throw was measured. The transport seam's 500 INTERNAL_ERROR with no cause was read from plugin-hono-server adapter.ts, not measured. · evidence: resolveArtifactPackageOrder documents the cycle as a bare Error (runtime artifact-collections.ts header), so an author gets an opaque 500 that does not name the cycle · dedupe: 'composed artifact dependency cycle 500', 'resolvePluginOrder Circular dependency install-local', 'resolveArtifactPackageOrder cycle bare Error'",
      "carrier: none · noted, not filed: step 1c (unrunnableCode -> collectJobsWithoutBody) lets the resolver's declared 422 leave the door as a throw, answered by the transport seam rather than in-door like 2b/2c-double-prime (a transport escape, not a wrong status)",
      "carrier: none · noted, not filed: a fault in planDeclaredRenames' own code (not the driver read) is still answered 503 by 2c-double-prime. Separating it needs a marker at the driver call in marketplace-install-declared-renames.ts, outside this card's surface"
     ]
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

    PR #34573 at 18b604942: L1 ACCEPT 6935847976, landing 6935964098 (ready, auto-merge armed). Follow-ups filed: #34574 (dependency cycle answered an opaque 500), #34583 (a refused installed copy blames the incoming package).

  8. removed
    pm:dispatched
    on Nov 17, 2026
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

    bugdomain:serverpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions