HEADER v3, primary аккаунты и подтверждения

This commit is contained in:
AidarKC
2026-11-27 12:29:24 +03:00
parent f9e7c4ef94
commit ae430e84c7
89 changed files with 1201 additions and 1596 deletions
+6 -6
View File
@@ -237,12 +237,12 @@ Effective relation priority is `close_friend > friend > contact > none`. Effecti
### Voting rules
- new `80` requires the actor to have `account_role=primary`;
- `80` cannot be added to a target with `account_role=non_voting`;
- new `70` requires actor `account_role=primary` and `shine=shining` (legacy `shine=yes` is normalized to `shining`);
- `70` cannot be added to a target with `shine=not_interested`;
- a `non_voting` target may still receive `70` if its shine status allows it;
- old raw `70/80` remain in `connections_state`, but are excluded from effective lists/counts while either side is ineligible. They become effective again automatically if statuses permit later.
- New `80` requires two distinct Primary accounts (canonical signed HEADER V3, `accountType=1` on both sides).
- New `70` requires the same pair; the actor must additionally be `shine=shining` (legacy `shine=yes` is normalized), and the target must not be `shine=not_interested`.
- Alternative, V1/V2 and missing HEADER do not qualify. Self-confirmation does not qualify, regardless of letter case.
- Withdrawal (`81/71`) may remove historical declarations; it is not a new confirmation. Ordinary friendship/contact and reactions remain available to everyone.
- Archive import/replay preserves signed history without checking the current voting rights at import time. Effective graph lists, profile lists and counts all use `shine_can_confirm_primary(actor,target)` / `shine_can_confirm_shine(actor,target)`. Historical ineligible declarations remain in raw history but do not count. A change of the canonical projection or shine status may affect effective confirmations.
- The declared previous accounts do not change anyone's rights or counts. No personhood analyzer is implemented yet.
### `ListContacts` additions (v18)