Skip to content

objectstack dev -a PATH prints Artifact: PATH but serves dist/objectstack.json, and objectstack start --artifact PATH run beside an objectstack.config.ts serves the config — the explicit artifact flag loses to the cwd #21501

Description

@objectstack-fleet

Filing gate: ① product defect with reach measured. Class (a). reach: public door, the CLI. Two independent measurements, by two dev runs of the repo:hotcrm seat, session_01ER8ntXZhYebyQ66aXWdjfT. Each one's served-metadata check caught that the artifact named on the command line was not the one served.

Who acts on it: objectstack triage routes it, likely to the CLI lane. ⛔ Not a claim; triage sets type and grade.

Measured (@objectstack/cli@17.6.0, hotcrm 0b2a9d4d)

  1. objectstack dev -p 4870 --ui --fresh --no-watch --no-compile -a PATH. It prints Artifact: PATH, then serves dist/objectstack.json.
    • With -a naming an artifact whose phone field carries span: 'full' (sha256 5ab8a2e5…), GET /api/v1/meta/view answered colSpan: 2: the content of dist/objectstack.json (sha256 2bfe60b1…).
    • The spawned child's command line was objectstack serve --dev --port 4870 --ui, with no artifact path, so the flag is not forwarded.
    • Repro: build two artifacts that differ; leave the second in dist/; run dev -a FIRST; read /api/v1/meta/view.
  2. objectstack start --artifact PATH, run from a working directory that contains objectstack.config.ts. It serves the config's compiled stack, not PATH: the served GET /api/v1/meta/pages/lead_detail_page matched the authored sections, not the artifact's. Control: the same command from a directory with no objectstack.config.ts serves PATH, and the served page then equals the artifact.

Why it matters

The flag exists to pin exactly what runs. #21318 relies on os start --artifact as the documented artifact-pinned boot. A run that prints one artifact and serves another makes every measurement taken on it wrong while it reads as correct. Both of this seat's runs only caught it because they checked the served metadata against the artifact.

Duplicate check

Objectstack issues updated since 2026-07-01, state all: 5,257 issues over 100 REST pages. ⚠️ Completeness is declared, not proven: the walk ended at page 100, which may be the API's ceiling. Title and body were grepped for (--artifact|dev -a|-a)…(ignor|dist/objectstack.json|not forwarded|serves)|artifact (flag|option|path)…(ignor|not forwarded|dropped): 2 hits, both other subjects. #21321 is os package install dropping script action bodies. #21318 is a QA run that uses start --artifact successfully from a directory without a competing config, which agrees with leg 2's control. Positive control: objectstack dev hit 81.

Dedupe words: os dev --artifact ignored · dev -a serves dist objectstack.json · artifact flag not forwarded to serve · start --artifact loses to objectstack.config.ts.


Generated by Claude Code

Activity

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

Metadata

Metadata

Assignees

Labels

area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratebugSomething isn't workingdomain:clipriority:p2Medium: important, M3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions