Skip to content

[P0] build-time vs runtime validation parity: objectstack build accepts metadata the runtime rejects #1876

Description

@xuyushun441-sys

Problem

objectstack build accepts metadata that the runtime then rejects, so "CI green" does not guarantee "boots".

Repro (observed on 9.5.1)

  1. Dashboard widgets in the legacy object/aggregate shape pass objectstack build but the runtime com.objectstack.metadata plugin rejects them (requires dataset/values), so the app fails to start.
  2. A hook handler referencing a module-scope helper passes build, then throws ReferenceError at runtime (handler ships body-only).

Expected

Build validates against the same schema/rules the runtime enforces. "build clean" ⇒ "boot clean".

Affected

@objectstack/cli (build) ↔ @objectstack/metadata runtime schema.


Found while runtime-testing objectstack-ai/templates (all 9 templates via objectstack dev all) on @objectstack 9.5.1. Build + typecheck pass; these only surface at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions