Activation docs describe a feature gating system this build does not have: a fictitious 'messaging' feature, lease_renew gating, and a 14-day lead warning
Report
Suggested severity tier: Minor
Area: documentation, docs/api.md, docs/activations.md, versus core/activations.go, core/ledger.go, core/types.go, net/netcheck.go
Repository state checked: xeprotocol/xe HEAD 978785929bc17a2f4ab30c383e5fc9cf4d634512
Summary
The activation documentation describes a feature gating system that cannot exist in this build. It shows an example GET /network/activations response with a "messaging" feature that is known to the binary and a gated_block_types entry mapping "message" to "messaging". It states that lease_renew is gated on activation. It states that a node logs a warning when a record lands with less than 14 days of lead. It shows protocol_version "1.1.0". None of these is true of the code at this HEAD: there are no registered dark features at all, lease_renew has an explicit validation case that never passes through the gating branch, no code ever uses the lead-time constant, and the protocol version in code is 1.0.0. The program counts documentation errors as Minor, and this report is filed in that tier.
What was proven
- The example response in docs/api.md (lines 217-220) and docs/activations.md (lines 94-97) shows "features" with a "messaging" entry, "known_features": ["messaging", "noop"], and "gated_block_types": {"message": "messaging"}. In code, darkValidators in core/activations.go (line 17) is an empty map and there is not one caller of registerDarkValidator anywhere in the repository. core/types.go (lines 29-41) has no block type "message". A local harness prints KnownFeatures=[noop] and GatedBlockTypes=map[]. A search of the repository history finds no commit that ever contained the string "messaging". known_to_binary for "messaging" cannot be true, because KnownFeatureSet in node/activations.go (lines 34-43) contains only "noop".
- docs/api.md (line 761) states that lease_renew is gated on the lease_renew activation and that a node which does not know the type ignores it. In code, lease_renew has an explicit case in core/ledger.go (line 940) that calls validateAndAddLeaseRenew directly and never passes through the dark-validator branch (ledger.go:952-955). The only use of FeatureActive in the ledger is that branch. An unknown type is not ignored either: it is rejected with errUnknownBlockType (ledger.go:956), which is classified as retryable (core/retryable.go:27).
- docs/activations.md (line 80) states that a node logs a warning when a record lands with less than 14 days of lead. RecommendedLeadNS is defined in statechain/activations.go (line 18) but is never used in any Go file, so no such warning exists.
- Both documents show "protocol_version": "1.1.0", while net/netcheck.go (line 28) sets NetcheckVersion to "1.0.0" and no Go code contains the string "1.1.0". The readiness example with feature_weight for "messaging" is impossible for the same reason, because peers advertise core.KnownFeatures (node/activations.go:150-154), which is only "noop".
Reproduction
- Clone https://github.com/xeprotocol/xe and confirm HEAD is 978785929bc17a2f4ab30c383e5fc9cf4d634512.
- Search the repository for callers of registerDarkValidator and observe there are none. Print KnownFeatures and GatedBlockTypes from the activations package and observe [noop] and an empty map.
- Read core/ledger.go around line 940 and observe the explicit lease_renew case that bypasses the gating branch.
- Search the repository for uses of RecommendedLeadNS and observe there are none. Compare the protocol_version strings in the documents with net/netcheck.go:28.
Impact
An operator reading these documents believes lease_renew is still locked until the DAO activates it, when it is live with no gate. An operator believes nodes will warn about short lead times, when they stay silent. An operator believes a "messaging" feature exists in the binary, when it does not. The result is wrong rollout and activation planning and integration work delayed while waiting for an activation that will never arrive. No funds move and no user is directly harmed beyond the operator's time and decisions.
Suggested fix
Correct the example responses to show only the "noop" feature with an empty gated_block_types map, remove the lease_renew gating claim, remove the 14-day lead warning claim, and correct protocol_version to 1.0.0. The enforcement table in docs/activations.md itself is correct and should stay as it is.
Honest limits of this proof
This is a documentation-versus-code comparison, proven from the code at the stated HEAD. The only live confirmation not done is a GET /network/activations call against a running node, which would return known_features ["noop"] and an empty gated_block_types map. That check is optional and was not part of this report.
Thread
Thanks for the report. We have confirmed that the activation documentation does not match the current code on the points you list and it is being corrected. Parts of this overlap with earlier reports, which is reflected in how it is being handled. We will update this ticket when the docs change has landed.
Thanks for the fix in PR #318 — I reviewed it locally against the PR code, and the rest of the corrections check out against the code. One leg is still open:
The new example log in docs/activations.md shows activation: feature noop scheduled (at statechain index 41000, not before 2026-11-01T00:00:00Z); this build does NOT implement it — UPGRADE REQUIRED and CRITICAL: this node cannot enforce active network feature(s) [noop] — it is validating DIFFERENTLY from upgraded peers. Upgrade now; ... That cannot happen for noop: in reportActivations() (node/activations.go:79-103) the "does NOT implement it" line only appears in the branch for features that are !KnownToBinary, and UnsupportedActive only collects active features that are !KnownToBinary. noop is always known — KnownFeatureSet() is seeded with FeatureNoop (core/activations.go:30) — so the correct line for it is "this build implements it", and it can never appear in UnsupportedActive. The example also contradicts the JSON just above it in the same file (known_to_binary: true, unsupported_active: []). The fix: show the known-feature variant of the log, or drop that example.
Minor note: min_protocol_version: "1.0.0" in the same example only appears if the DAO has written sys.min_protocol_version; if it was never set the field is empty (omitempty). So that value is possible but conditional, not a default.