<!-- XE-0689 · 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 · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0689>. The page is the record; this is the same page for reading.*

XE-0689 · Bounty

# 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

Triaging
claimed Minor
[xe#272](https://github.com/xeprotocol/xe/issues/272)
filed 2026-11-05 11:46 UTC
by rusdiwireng

Verdict
:   published when the fix ships

Tier
:   published when the fix ships

Claimed
:   Minor

Area
:   SDK / docs / web

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-15 20:40 UTC

Told
:   2026-11-08 20:48 UTC

### Patches

- [xe#318](https://github.com/xeprotocol/xe/pull/318) open by arturbarszcz78
  docs(activations,api): align feature gating examples and claims with code (fixes #272)

### History

- [290888](https://bounty.xe.network/log/290888) 2026-11-15 20:40 UTC proposal.adopted
- [290887](https://bounty.xe.network/log/290887) 2026-11-15 20:40 UTC ticket.award
- [290444](https://bounty.xe.network/log/290444) 2026-11-15 20:02 UTC proposal.created
- [61318](https://bounty.xe.network/log/61318) 2026-11-10 00:12 UTC patch.linked
- [45557](https://bounty.xe.network/log/45557) 2026-11-08 20:49 UTC github.labels
- [45537](https://bounty.xe.network/log/45537) 2026-11-08 20:48 UTC reply.mirrored
- [45518](https://bounty.xe.network/log/45518) 2026-11-08 20:48 UTC reply.sent
- [45517](https://bounty.xe.network/log/45517) 2026-11-08 20:48 UTC proposal.adopted
- [45516](https://bounty.xe.network/log/45516) 2026-11-08 20:48 UTC proposal.adopted
- [45515](https://bounty.xe.network/log/45515) 2026-11-08 20:48 UTC ticket.status new → triaging
- [45514](https://bounty.xe.network/log/45514) 2026-11-08 20:48 UTC proposal.adopted
- [45513](https://bounty.xe.network/log/45513) 2026-11-08 20:48 UTC ticket.award

[Full history](https://bounty.xe.network/log?ref=XE-0689) · [JSON](https://bounty.xe.network/v1/tickets/XE-0689) · [markdown](https://bounty.xe.network/XE-0689.md)

### 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

1. 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".
2. 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).
3. 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.
4. 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

1. Clone https://github.com/xeprotocol/xe and confirm HEAD is 978785929bc17a2f4ab30c383e5fc9cf4d634512.
2. 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.
3. Read core/ledger.go around line 940 and observe the explicit lease\_renew case that bypasses the gating branch.
4. 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

**Joseph Denne**team2026-11-08 20:48 UTCgithub

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.

**rusdiwireng**2026-11-09 13:24 UTCgithub

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.
