Skip to content

AI-built apps: objects the AI creates get their colour tile — the AI service passes the blueprint's color to the object, as it already passes icon #36348

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Split out of #35985 by the maintainer's decision (Sales, 2026-11-22 07:25Z: 「同意 35985」, which picked 「现在关卡,AI 带色另开卡」).

What the user sees today

#35985 gave every object a colour, picked from a small fixed palette (ObjectSchema.color). The icon is drawn as a white glyph on a coloured rounded tile, the same in menus, titles, lookup chips and search (PRs #36012, #36042, #36089, all merged). An object a person creates by hand, or one declared in a package, shows its colour.

An app the AI builds does not: its new objects come out without a colour, so every tile falls back to the neutral face. The AI writes a color in its blueprint, but the step that turns the blueprint into objects passes icon and drops color. That step is in the AI service, not in this repository.

What to do

  • Wherever the AI service materialises a blueprint object, pass the blueprint's color through to ObjectSchema.color, exactly as it passes icon. A value outside the palette is dropped (the schema refuses it), not guessed.
  • No platform change is expected here. If the AI service needs a platform hook, say so on this card first.

Acceptance

  • Ask the AI for an app with three new objects. The three objects show three different colour tiles in the app menu, on the record page title and on a lookup chip, matching the colours the blueprint chose.
  • An object the AI creates with no colour still shows the neutral tile, unchanged.

Context: #35985 (closed by this split), #36099 (the CLI os explain object colour row, separate).

Activity

  1. added
    enhancement
    priority:p2
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in repo:cloud · domain:cloud (the AI service that materialises a blueprint into objects) · pm:queue; rationale: area:cloud (the change reads and edits cloud code only; the platform needs no change, which the card says) · Feature · objects the AI builds come out without their colour tile, because the blueprint step passes icon and drops color, so AI-built apps look different from hand-built ones. Split from #35985 on the maintainer's 「现在关卡,AI 带色另开卡」 → p2 as filed (maintainer-directed feature) · size XS. Route: a cloud-lane seat, not repo:objectstack#2. If the fix needs a platform hook, file it here first. On request from repo:objectstack#2 (#32588 comment 7075970338).

  3. added
    domain:cloud
    pm:queue
    repo:cloud
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 5 · 2026-11-23T10:24Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxba4KVEuQQgwhzLsA9q
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat amends this claim then
    Worktree: objectstack-issue-36348
    Domain: domain:cloud
    Seat: repo:objectstack#1
    Area: card thread #36348 (w5-B)
    Dispatch: the maintainer's ruling in this seat's project thread, 2026-11-23T10:20Z verbatim 「objectstack area:cloud 也让 objectstack 座位接手」, then the decision card at 2026-11-23T10:21Z: 「p1 和 p2 都接」. p2, carries repo:cloud: the step that turns the AI blueprint into objects lives in the cloud AI service. A fidelity fix (the blueprint's color is dropped), not AI algorithm work, so the maintainer's AI-optimization hold of 2026-11-18 does not cover it.
    File surface: the cloud repo's AI service step that materialises blueprint objects (pass color beside icon), its tests; a PR in objectstack-ai/cloud under that repo's own rules; nothing in this repository unless a framework type needs it (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: opus — dispatch-gates --tier: no path-derived mandate, default tier; the thread's first report states the served tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the blueprint-to-object step passes icon and drops color | an app the AI builds | every hosted user of AI-built apps (all their object tiles fall back to the neutral face)
    Thread-read: 7075979766
    Premise: holds as filed by reading; the thread names the exact cloud file and line on cloud main before code
    Serial constraints cleared: no open PR names #36348

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxba4KVEuQQgwhzLsA9q
    os-dev-report

    {
      "issue": 36348,
      "status": "done",
      "branch": "claude/project-thread-hzcpil (objectstack-ai/cloud)",
      "pr": "https://github.com/objectstack-ai/cloud/pull/4936",
      "session": "session_01JQwxba4KVEuQQgwhzLsA9q",
      "premise_still_valid": true,
      "summary": "Premise held at cloud pin ed0edb1b5075: BlueprintObjectSchema declares color (the ObjectSchema.color leaf, #35985) and objectBodyWithSharing in packages/service-ai-studio/src/tools/blueprint-tools.ts staged iconEntry(o.icon) without color. The object body now carries the parsed color beside the icon, in a new app and in an extend build. No colour stages no key (neutral tile); an out-of-palette value is refused by the blueprint parse at objects.N.color before anything is staged. No platform change.",
      "tests": "4 new cases in src/__tests__/mcp-door-tool-contracts-4339.test.ts (three colours staged, extend build, no colour no key, #3366ff refused): file 27/27. Ablation on a2d22ca (carry line removed, marker grep 1/0, restored with git checkout HEAD --, git diff HEAD empty): Tests 3 failed | 24 passed (27); the refusal case stays green because the spec parse owns it. Rule-13 affected set on head 9398004, BASE 777e8e2: typecheck ...[BASE] 28/28 tasks; tier select scope=affected, 52 kept periodic files, test 27/27 tasks, 1239 files (1238 passed, 1 skipped), 19724 tests (19702 passed, 21 skipped, 1 todo), 0 failed. Lock VERDICT command-exit 0.",
      "gates": "cloud has no dispatch-gates.mjs; derived by hand from cloud AGENTS.md rules 7 and 13. PR check-runs on 9398004: typecheck-and-gates skipped, build-and-test skipped, daily-red-card skipped (expected on pull_request). overlap-check.mjs --repo=objectstack-ai/cloud VERDICT clean exit 0 before each push.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0 GitHub MCP calls",
      "api_writes": "3 relay writes — pr_create cloud#4936; issue_patch cloud#4936 (rule-13 counts); this report comment on objectstack#36348",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: cloud · create_object and the apply_edit create-object op declare no color input, so an object the AI creates one at a time outside a blueprint cannot ask for a colour; a new tool input, so a Feature, noted in the PR Acceptance notes, not filed · dedupe words: create_object color, object colour tile AI, apply_edit color"]
    }

    Screenshots: NOT MEASURED, the card's acceptance needs a live build model and this container has none.


    Generated by Claude Code

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

    area:clouddomain:cloudenhancementpriority:p2repo:cloud

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions