Skip to content

DEM-PRODUCER-CANDLE (core): delete the stub and the haFlatBackConfirmed literal - #37

Merged
Gio2050 merged 2 commits into
mainfrom
dem/candle-core
Aug 26, 2026
Merged

Gio2050 merged 2 commits into
mainfrom
dem/candle-core

Conversation

@Gio2050

@Gio2050 Gio2050 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Wave 2 of 4 — DEM-PRODUCER-CANDLE, step 1 of 3. Merge after the whole PLAN wave (afi-core #36, afi-config #91, afi-reactor #89) has landed.

The accepted row and gate (quoted before building)

DEM-PRODUCER-CANDLE | real producers for brokeEmaWithBody and haFlatBackConfirmed in the technical lane, over candles the lane already fetches; the projection extension their bindings require; deletion of BROKE_EMA_WITH_BODY_UNIMPLEMENTED_STUB and the haFlatBackConfirmed: false literal. This is the act D5-GOV D-D5-1 reserved | No new fetch and no new provider; producer registered under D-FCP-3 with a declared paramsSchema; both inputs computed, neither literal anywhere on the production path; …; structure and risk axes proven non-constant over the fixture corpus; no scoring-law value changed

What leaves afi-core here

BROKE_EMA_WITH_BODY_UNIMPLEMENTED_STUB — the declared stub D5-GOV disclosed and expressly reserved for this act — is deleted, along with its ?? read and the haFlatBackConfirmed: false literal. Both are now computed technical-lane facts the registered mapping binds as required (no optionality: a window below the 50-candle kernel floor emits no technical payload and the determination refuses, D-DEM-5(2)).

The residual shrinks to three fields: the two HTF bias placeholders (wave 3) and the reserved liquiditySwept.

Tests are re-oracled rather than deleted: a view without the candle facts now refuses at the interpreter instead of quietly taking a stub — pinned in both the residual-builder and adapter suites.

afi-core 313/313; typecheck green. No scoring-law value moves.

🤖 Generated with Claude Code

Gio2050 and others added 2 commits August 25, 2026 17:29
…eralize the composer

DEM-GOV §9 DEM-PRODUCER-PLAN (owner-authorized 2026-08-25; afi-governance
#55): the planned R:R is a PROVIDER fact the technical lane produces from the
submitted afi.trade-plan.v1 and the registered mapping binds — never
synthesized from analyst inputs again.

- froggy.enrichment_adapter.ts: the synthesis at the old :282-283 is deleted;
  the builder returns FroggyAdapterOutput (Omit<…,'rrMultiplePlanned'>); the
  view type gains technical.plan (the lane's verified plan facts, read only
  through the mapping).
- froggy.residual_builder.ts: residual Pick shrinks to the five still-
  unexpressible fields; the composer is mapping-version-agnostic and
  fail-closed — fragment ∪ residual must partition the ten scorer-input fields
  exactly and every value must lie in its declared domain (predicate-valued
  table: no scorer-input field is ever assigned a literal here).
- froggy.trend_pullback_v1.ts: scoreFroggyTrendPullbackFromEnriched (the
  adapter-only convenience path) is deleted — the adapter no longer emits a
  full input; the rubric no longer imports the adapter.
- tests: the registered 1.1.0 mapping as shared test data (inline, drift-
  checked against the sibling registry file when present); the residual
  builder suite proves compose(fragment, residual) == adapter output + the
  mapping-bound R:R (fired default recorded when the producer emitted none);
  composer refusal cases (missing / extra / dual-source / out-of-domain).

No scoring-law value moves. afi-core suite 312/312.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ed literal

DEM-GOV §9 DEM-PRODUCER-CANDLE (owner-authorized 2026-08-25; afi-governance
#55) — the act D5-GOV D-D5-1 reserved. Merge after dem/plan-core, and after
the reactor's PLAN wave has merged.

- froggy.enrichment_adapter.ts: BROKE_EMA_WITH_BODY_UNIMPLEMENTED_STUB and its
  ?? read are DELETED, as is the `haFlatBackConfirmed: false` literal. Both are
  now computed technical-lane facts the registered mapping binds (required).
  FroggyAdapterOutput drops them; the view type gains the lane's
  brokeEmaWithBody / haFlatBack / haFlatBackConfirmed facts.
- froggy.residual_builder.ts: the residual Pick shrinks to the HTF bias
  placeholders + liquiditySwept — three fields.
- tests: mapping 1.2.0 in the shared support module (required binds); probes
  carry the candle facts and vary them; a view WITHOUT them now REFUSES at the
  interpreter (required-source-absent) instead of taking a stub — pinned in
  both the residual-builder and adapter suites.

afi-core 313/313. No scoring-law value moves.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kilo-code-bot

kilo-code-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

Kilo Code Review could not run — your account is out of credits.

Add credits or switch to a free model to enable reviews on this change.

@Gio2050
Gio2050 merged commit acc9233 into main Aug 26, 2026
1 of 2 checks passed
@Gio2050
Gio2050 deleted the dem/candle-core branch August 26, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant