Skip to content

feat(prebuilt): decision-8b flag surface — hidden --prebuilt-core, global --no-prebuilt-libs (#1882) - #2170

Merged
zackees merged 1 commit into
mainfrom
agent/1882-prebuilt-flags
Nov 24, 2026
Merged

zackees merged 1 commit into
mainfrom
agent/1882-prebuilt-flags

Conversation

@zackees

@zackees zackees commented Nov 24, 2026

Copy link
Copy Markdown
Member

Implements the flag surface of decision 8b (docs/design/artifact-serving-decisions.md), the required test 22 of #1882. No artifact is fetched, verified or extracted here — this PR is the decision, so the ladder that lands next reads a policy instead of re-deriving one from argv.

Why now. The fingerprint half of #1882 is on main (#2162/#2164/#2166/#2167/#2168/#2169: per-component stamps → framework identity → canonical prebuilt_core_plan). That plan has no consumer because the fetch ladder does not exist, and the ladder cannot ship without a switch that says who asked for it. Today the CLI has no prebuilt switch at all (git grep prebuilt_libs = 0 hits), so even the public opt-out of decision 1 is missing.

piece behaviour
PrebuiltPolicy{Disabled, Libs, Core} (fbuild_build::prebuilt) the per-request verdict, Default = Libs (per-chip libraries may be used, core objects stay research)
PrebuiltPolicy::resolve(no_prebuilt_libs, prebuilt_core) the opt-out wins over the opt-in, per 8b
PrebuiltPolicy::resolve_with_env(.., env) / from_environment FBUILD_NO_PREBUILT_LIBS / FBUILD_PREBUILT_CORE through fbuild_core::env_flag (the canonical truth table: 1/true/yes/on, and a typo is off)
--no-prebuilt-libs public, global = true, documented in --help
--prebuilt-core hidden research opt-in, conflicts_with = "no_prebuilt_libs"
cli/prebuilt_notice.rs one honest line per build for an explicit decision, following shrink_notice (#1459): --prebuilt-core warns that core-object serving is not implemented yet and the framework compiles from source; --no-prebuilt-libs states the source compile. Default stays silent.

Test 22 from the design doc, one test each: --prebuilt-core parses; --no-prebuilt-libs is global and parses before the subcommand; the two conflict; --prebuilt / --no-prebuilt / --prebuilt-libs-core do not parse; --help documents --no-prebuilt-libs and never mentions prebuilt-core. Policy tests cover opt-out-wins in every combination (flag×flag, env×env, flag×env), the canonical env truth table (including "" and the ture typo), and the wire spelling round trip (disabled/libs/core, unknown → None rather than a silent default).

Not in this PR: the fetch ladder (local verified cache → mirrors[] → source), bucket keys, and the --prebuilt-core consumer in the esp32 orchestrator — those follow once this policy is the thing they receive. #1882 stays open.

Closes nothing.

…ary (#1882)

Adds the prebuilt-artifact switches the design doc fixes before the
core-object serving ladder exists: the public global --no-prebuilt-libs
opt-out, the hidden --prebuilt-core research opt-in, their FBUILD_*
twins through the canonical env_flag truth table, and PrebuiltPolicy as
the single typed verdict (opt-out wins over the opt-in, whatever source
either came from).

cli/prebuilt_notice reports an explicit decision once per build, in the
shrink_notice (#1459) style: --prebuilt-core warns that core-object
serving is not implemented yet and the framework compiles from source;
--no-prebuilt-libs states the source compile. The default stays silent.

Tests: policy resolution (flag x flag, env x env, flag x env), the env
truth table incl. '' and a typo, wire-spelling round trip and its
unknown -> None rule; CLI test 22 from the design doc (opt-in parses,
opt-out is global, the two conflict, --prebuilt/--no-prebuilt rejected,
--help documents the opt-out and never names the hidden flag).
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

Parsing warnings: 1

Validation error: Unrecognized key: "enabled" at "reviews.pre_merge_checks"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@zackees
zackees added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit ec5a874 Nov 24, 2026
34 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant