Ergon Rule Shadow Parity
Govern comparison, not authority. Use $ergon-rule-migration-orchestration for
phase admission and $ergon-rule-target-planning for the technical target.
Step Zero: Readiness
Read docs/migracao/rule-migration/factory-contracts/part2-foundation-readiness-v2.json
before opening Phase 13 or 14. Require the active profile to
admit the exact shadow stage and action in the current environment. Development
shadow evidence never crosses automatically into homologation or production.
Required Inputs
- exact screen, operation, decision and environment identity;
- approved Parte 1 baseline route and stable parity fixtures;
- admitted technical target plan with unresolved gaps visible;
- known decision order, HADES/client behavior and side effects;
- normalized input, output, error-envelope and observation contracts;
- fallback, disable control, cleanup and redaction policy.
Read references/shadow-contract-and-forward-tests.md before drafting or
reviewing shadow artifacts.
Workflow
- Define the atomic decision boundary and what remains DB-backed.
- Separate
productDecision from legacyEffectiveDecision when EP/HADES or
composition can suppress, replace or reorder product behavior.
- Define positive, negative, control and boundary fixtures with stable
timestamps/timezones and explicit null semantics.
- Normalize decision, code/message/fields, ordering, state, effects and
baseline availability. HTTP status or no-mutation alone is insufficient.
- Ensure shadow cannot decide, mutate, suppress errors, skip the baseline
route or execute external effects.
- Record redacted observations and classify every divergence or inconclusive
comparison.
- Update
shadow-contract.md, shadow-results.md, the traceability matrix and
the corresponding phase gate.
Status Discipline
Shadow Implemented: code is attached and focal tests pass; no live claim.
Shadow Running: live evidence is being collected with baseline authority.
Shadow Passed: declared coverage is sufficient for considering Phase 15.
- Missing control/ALLOW evidence, baseline unavailability, unknown order or
lossy normalization is inconclusive, never passed.
Shadow success does not authorize preflight, promotion or containment.
1---2name: ergon-rule-shadow-parity3description: Design and assess Ergon rule shadow contracts and parity evidence for Parte 2 Phases 13-14. Use when Codex must define an exact decision boundary, fixtures, baseline normalization, mismatch taxonomy, redacted observations, no-effect execution, fallback and phase evidence, or decide whether shadow is implemented, running, passed or inconclusive without changing user-visible results, skipping the approved baseline route or promoting authority.4metadata:5 source: https://skillmd.com/skills/codexrodrigues/ergon-rule-shadow-parity6---78# Ergon Rule Shadow Parity910Govern comparison, not authority. Use `$ergon-rule-migration-orchestration` for11phase admission and `$ergon-rule-target-planning` for the technical target.1213## Step Zero: Readiness1415Read `docs/migracao/rule-migration/factory-contracts/part2-foundation-readiness-v2.json`16before opening Phase 13 or 14. Require the active profile to17admit the exact shadow stage and action in the current environment. Development18shadow evidence never crosses automatically into homologation or production.1920## Required Inputs2122- exact screen, operation, decision and environment identity;23- approved Parte 1 baseline route and stable parity fixtures;24- admitted technical target plan with unresolved gaps visible;25- known decision order, HADES/client behavior and side effects;26- normalized input, output, error-envelope and observation contracts;27- fallback, disable control, cleanup and redaction policy.2829Read `references/shadow-contract-and-forward-tests.md` before drafting or30reviewing shadow artifacts.3132## Workflow33341. Define the atomic decision boundary and what remains DB-backed.352. Separate `productDecision` from `legacyEffectiveDecision` when EP/HADES or36 composition can suppress, replace or reorder product behavior.373. Define positive, negative, control and boundary fixtures with stable38 timestamps/timezones and explicit null semantics.394. Normalize decision, code/message/fields, ordering, state, effects and40 baseline availability. HTTP status or no-mutation alone is insufficient.415. Ensure shadow cannot decide, mutate, suppress errors, skip the baseline42 route or execute external effects.436. Record redacted observations and classify every divergence or inconclusive44 comparison.457. Update `shadow-contract.md`, `shadow-results.md`, the traceability matrix and46 the corresponding phase gate.4748## Status Discipline4950- `Shadow Implemented`: code is attached and focal tests pass; no live claim.51- `Shadow Running`: live evidence is being collected with baseline authority.52- `Shadow Passed`: declared coverage is sufficient for considering Phase 15.53- Missing control/ALLOW evidence, baseline unavailability, unknown order or54 lossy normalization is inconclusive, never passed.5556Shadow success does not authorize preflight, promotion or containment.