You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
placement: P2/P6 follow-ups from the P5 rule engine reviews #794
Follow-ups from the reviews of #787 (placement P5, pure rule engine) that belong to P2 and P6, not to the engine. Reviews: lens A, lens B.
P6: an answer with neither field. The engine counts only facts: null as "no facts". An answer that carries neither placement nor hostResources (P3's docs say an older build leaves both out) gets every rule, so a named machine is refused, while the same machine mapped to null gets only the no-facts rules (H1, H3, H7, H9). Both fail closed. P6 decides which one it maps that answer to and says so (lens A item 7).
P6: a lone "here" without host facts. P3 leaves out hostResources when the sampler is absent or fails, so under enforce the engine returns none for a lone here (test "missing, stale or partial facts never fit"). P6 must say what enforce does with that none, so a sampler failure does not stop all delegation (lens B item 10).
P6: decode what is forwarded. The engine now fails closed on NaN, infinite or negative numbers by itself, but P6 should still decode the forwarded t3_environment_read answer with P3's schema, so a bad answer is reported as bad rather than as a refused machine.
P2: store labels in the engine's form. Labels, needs and never groups are compared trimmed and lower-cased, blanks and repeats dropped (canonicalLabels in packages/shared/src/forkPlacement.ts). P2 stores them the same way (use that function), so what the settings page shows is what the engine compares. P2 also decodes the weight to the four words (prefer, normal, less, manual); an unknown word is never ranked.
Activity
placement: decode forwarded facts, here fallback, needs reader, facts…
placement: decode forwarded facts, here fallback, needs reader, facts…
placement: decode forwarded facts, here fallback, needs reader, facts…