Before we look at the new data, let’s be clear: we need to stop playing whack-a-mole with these bugs.
These are no longer isolated issues. The recurring pattern is recursive semantic regression:
a local defect is patched, but the distinction that caused it is lost again at the next boundary, where a degraded, incomplete, or different state is converted into something that looks valid.
Another local fix will not close this architecturally.
We need one strict end-to-end rule:
two different states may share the same identity only if every downstream decision is genuinely invariant to the difference between them.
Until that contract is enforced across the whole pipeline — acquisition, reconstruction, identity, persistence, qualification, and final promotion — the same failure class can keep moving one layer deeper.
The latest repair demonstrates exactly that again.
Details below.
I checked the new a33a1ca repair rather than going back over the old 14+6 findings.
I think I1–I3 are real improvements. But the same class is already visible at several boundaries of the repair itself.
1. Re-registration still reduces identity consistency to one scalar
Right now the conflict test is effectively:
stored fatigue_score != recomputed fatigue_score
→ 409
That is still a lossy projection.
Two different component or metric states can produce the same weighted score, especially after rounding.
So:
same fatigue_score
!=
same measurement object
Your own regression test makes the boundary visible: stored status and comp_novelty can differ while the score remains unchanged, and the second POST is still allowed to succeed and return the stored row.
The stronger invariant should be:
same measurement_id
=>
same complete canonical result
not merely:
same measurement_id
=>
same scalar score
Persist and compare a result digest over the component vector, raw metrics, eligibility state, and canonical semantic input.
2. I3 adds a new source, but not yet its full qualification authority
You now add an ecosystem_governor receipt, but the frozen eligibility configuration still requires:
snapshot
governor
ecosystem
taxonomy
It does not require ecosystem_governor.
That matters because GovernorClient.fetch_ecosystem_exposure() can return some open proposals together with an error state when one Governor path fails while another still produced data.
The list can therefore continue into the merge while the new Governor-exposure receipt is not itself an enforced required source.
That recreates the familiar shape:
partial ecosystem evidence
→ usable list
→ normal concurrency
→ potentially PRIMARY_ELIGIBLE
The new source needs qualification authority, not only observability.
Either make ecosystem_governor explicitly required, or expose one composite ecosystem receipt whose completeness means that every authoritative layer required by the construct was successfully covered.
3. Cross-layer decision identity is still heuristic
The new Snapshot/Governor exposure merge goes through _klucz_decyzji, which is a normalized-title relation.
That relation now decides whether two records represent one governance decision and therefore whether concurrency is incremented once or twice.
So test both adversarial directions:
different decisions
→ same normalized title
→ accidental collapse
→ concurrency too low
and:
same decision
→ title changed across layers
→ failure to merge
→ concurrency too high
If title matching is heuristic, it should not silently acquire the authority of canonical decision identity.
4. Source availability is still not the same thing as an exact voting window
When the registry has no exact window, the new Governor path reconstructs one from ProposalCreated, voting delay, and block-time assumptions.
That may be a reasonable fallback, but:
ProposalCreated available
!=
exact voting window established
The measurement should preserve the basis of each window explicitly, for example:
REGISTRY_EXACT
GOVERNOR_CLOCK_DERIVED
ESTIMATED
UNKNOWN
and the eligibility policy should decide which of those states are allowed into the primary construct.
Otherwise an estimated window can cross the same boundary under a healthy-looking source state.
5. The concurrency construct changed, but its reference value did not
After adding Governor exposure, the Phase B values move:
22.0 → 27.5
43.9 → 50.6
39.8 → 46.1
and the increase comes from concurrency.
But the frozen concurrency reference still comes from the earlier Snapshot-only exposure distribution.
So keeping the configuration file unchanged does not by itself prove that the instrument is unchanged.
The formula is frozen, but the measured construct has changed.
Before N=50, I would re-estimate the concurrency reference on the combined Snapshot + Governor exposure domain and then freeze the construct and its reference together.
Otherwise the denominator belongs to one semantic object while the numerator now belongs to another.
6. Taxonomy source health still does not prove semantic coverage
You measured category coverage at only 1.2–31%, with one case using 5 classified lifecycles out of 412.
So:
taxonomy service healthy
!=
target/history taxonomy coverage sufficient
For primary analysis, novelty_basis and category_coverage should be first-class state.
If the engine changes from taxonomy-defined novelty to keyword-derived novelty, then either:
- the construct identity changes and the result is not primary-comparable; or
- the primary verdict fails closed.
A healthy server cannot by itself authorize a different construct.
7. A canonical-input digest is not yet a reconstructable canonical input
canonical_input_digest proves equality only if the canonical input still exists somewhere.
A digest is not a reconstructable manifest.
Persist the canonical serialized input itself, or a content-addressed artifact that can reproduce it exactly.
Otherwise:
we can prove that two hashes differ
but not necessarily:
we can reconstruct exactly what semantic object was measured
8. Code identity should be mandatory for confirmatory measurements
If code_commit == "unknown", two different builds can become indistinguishable at the code-identity layer.
For confirmatory measurements, I would make that state NOT_ELIGIBLE rather than merely recording "unknown".
A missing code identity is not a harmless metadata omission once the result is being treated as reproducible evidence.
The pattern is now very consistent:
local defect
→ local repair
→ lost distinction moves to the next authority boundary
I1 moved from record identity to semantic input.
I2 exposes the next question: scalar equality versus measurement-object equality.
I3 moved from Snapshot-only exposure to cross-layer exposure, and now the authority questions are completeness, cross-layer decision identity, window basis, and recalibration.
That is why I still would not call this another bug list.
It is one architectural closure problem:
at every boundary, a reduced representation may preserve the same identity only if every downstream decision is invariant to what was erased.
And for the future OpCo consumer boundary, the same rule should be enforced before integration, not after it.
P.S.
This is not unique to DFI.
I took a quick look at the first two relevant public, non-fork repositories I came across, and the same underlying architectural pattern is already visible there:
nsm-invoices-processor
p126-water-invoicing
You know those codebases, so I am not going to explain your own code back to you.
That is exactly why I am saying: stop treating this as another isolated bug.
The pattern is architectural.