Skip to content

Character overview and user management

Status: in progress, 2026-12-04. Steps 1 (Users, Audit log) and 2 (account overview, first cut) are built. Follows coalition steps 1–5; the setup wizard stays last.

Why

Nexus today is closer to a check-in system: it knows who a pilot is, which State they get, and whether their token works. The character page (/pilot/<id>) shows one-line summaries. Leaders can't browse a pilot's assets, wallet or mail. Admins have no way to find an account and act on it.

The Alliance Auth test install on this machine shows what corps expect. It runs AA 5.6, CorpTools, AFAT, Reporter, Pilot Stats, Contacts and the OIDC provider. It holds 4 audited characters, 6,000 assets, 1,800 notifications and 380 mails.

What Alliance Auth + CorpTools offers (reference)

Account audit (CorpTools), per account with a character switcher:

Area Pages
Characters Status (per-section update times), Corp history, Asset overview, Asset list (search, drill into containers), Clones and implants, Roles, Mercenary dens / operations
Interactions Contacts, Notifications, Mail (read a message), Activity map
Finances Wallet journal, Wallet activity (who ISK moved to and from), Contracts with items, Market orders, Loyalty points
Industry Mining ledger
Skills Skill list, queue, SP history graph, doctrine skill checks (can this pilot fly fit X)
At a glance Assets by type, activities, ratting counts, activity heatmap, faction warfare

Leader tooling: account list with filters, such as age, time in corp, highest SP, current ship, home station, jump clones, assets, PvE ISK and update freshness.

Reporter (background checks, can be ported): flags per account, each rated High, Medium or Low, with Discord alerts and a digest. The flags: - hostile corp history, current hostile membership, corp hopping - hostile standings, contacts and mail - AWOX kills, flying with hostiles - ISK or contracts with unregistered characters, fresh-character counterparties - donor bursts, liquidation followed by outflow - characters not audited or with stale data

AA core user management: each user's main, State, groups and services. Admins can change a user's groups, see group join history, notifications and announcements.

What Nexus has and lacks

Nexus today Gap
Character page Summary cards per category No detail lists: assets, journal, mail, contracts, orders, notifications, skill list by group, clones
Account view Alts sidebar No account-wide totals (SP, ISK, assets, ships across all characters)
Data kept One JSON summary per section Need stored rows to search and filter (assets, journal, mail headers)
Leader list Members & compliance No filters on age, SP, ship, location, time in corp
User admin None Can't find an account, see everything about it, or act on it
Background checks 7 compliance checks No red flags from history, ISK flow, contacts, kills
Audit log Written, not readable No viewer

Proposal

A. Account overview (/pilot/<id> becomes /account/<id>/…)

One page per account, with a character switcher ("All characters" plus each character). The left rail holds tabs and the header keeps today's portrait, corp, alliance, age and security.

Tab Content Data
Overview Totals across characters: SP, ISK, assets value, ships, last login, where each character is; recent kills; flags existing summaries + new
Skills Skills by group with levels, queue with finish times, SP history, "can fly" doctrine checks (later, with Doctrines) skills, skillqueue, history table
Clones Home, jump clones with implants, last jump clones, implants
Assets Search by item, group by location, drill into ships and containers, ships list character_assets table
Wallet Balance, journal (paged), transactions, who ISK moved to/from wallet_journal, wallet_transactions
Market & contracts Open and recent orders, contracts with items market_orders, contracts, contract_items
Mail Headers (paged); reading a message is a separate, audited action mail_headers, bodies fetched on demand
Notifications In-game notifications (structure attacks, war decs, and so on) notifications
Contacts Contacts and standings character_contacts
Kills Kills and losses with ship, system and value killmails
History Corp history, State and group changes from the audit log public data + audit

Rules: - Each tab follows the category switches. Switched-off data is not fetched, and stored rows are deleted, as now. - Leaders only reach accounts whose main is in a unit they lead, as now. - Opening an account is audit-logged. So is opening a mail body or exporting a list. - Lists are paged at 50 with search, as the rest of the site. - Retention: detail rows are replaced on each sweep. Journal, mail headers and killmails keep 180 days.

B. User management (Admin → Users)

  • Directory: every account, searchable by any character name. Filters: State, group, corp, alliance, token problems, Discord linked, last seen, created.
  • Account panel:
  • main and alts, State and why (which rule matched)
  • groups (add or remove, with history)
  • Discord link
  • sessions (sign out everywhere)
  • tokens (status, scopes)
  • audit trail for this account
  • Actions, each audit-logged:
  • change the main
  • add or remove from groups
  • re-check State now
  • re-sync Discord
  • sign out all sessions
  • superadmin on or off (superadmins only)
  • Permission: admin.users.manage (new); admin.users.view for read-only.

Blacklisting is not part of user management; it goes in with Reporter and HR (section C).

C. Leader filters and background checks (port of Reporter)

  • Members filters: character age, time in corp, SP range, current ship, location or home, last login, and "has character outside".
  • Background checks: a port of Reporter (aa-reporter 0.17.1), not a rewrite. Reporter is about 7,500 lines of Python. Its parts map onto Nexus like this:
Reporter Nexus
checks/ (registry, Check base, character and user contexts) Rust Check trait with the same names, reading Nexus tables instead of CorpTools
Checks: watched_contacts, contract_with_unregistered, fresh_character, shared_corp_history, counterparty_corp_cluster, corp_hopping, hostile_corp_history, audit_health, hostile_standings, hostile_mail, hostile_membership, awox_kill, hostile_fleet, isk_with_unregistered, donor_burst, liquidation_then_outflow Same checks, same severities, same thresholds
engine/ (report, describe, patterns): the plain-English report Report on the account overview and a "Report" tab; flags in Members
blacklists, lists, parties, lookups Hostile and watch lists on Admin, filled from negative standings plus manual entries
evidence Each finding links to the rows behind it (journal entry, contract, kill, mail header)
alerts (Discord webhook, digest, new-user notice) Discord alerts through the existing Discord settings
api_ct (CorpTools reader), api_fats (AFAT reader) Not needed: Nexus reads its own tables. Fleet checks wait for Fleets & PAPs

The checks need the detail tables from section A (journal, contracts, kills, contacts, mail headers, corp history), so the port comes after A. Applicants: Reporter also audits applicants, which lines up with the HR recruitment queue. - Blacklist: see Decisions.

D. Audit log viewer (Admin → Audit log)

Filter by actor, target, action and date. Paged. Leaders see entries for accounts they lead.

Suggested order

  1. B. User management plus D. Audit log viewer. Smallest, and it turns Nexus into a management system right away.
  2. A. Account overview, first cut: Overview, Skills, Clones, Assets, Wallet. These need the new detail tables and sweeps.
  3. A. continued: Market and contracts, Mail, Notifications, Contacts, Kills, History.
  4. C. Members filters and the Reporter port (checks, report, lists, then Discord alerts).

Decisions (2026-12-04)

  • Mail: leaders may read mail bodies. Each opened message is audit-logged.
  • Retention: journal, transactions, mail, notifications and killmails are kept for 180 days.
  • Reporter: ported from aa-reporter v0.17.1 and built into Nexus. The detection rules are not in the public repository (see crates/core-api/src/reporter/checks.rs).
  • Blacklisting (what was called "locking") goes in with Reporter and HR, and joins Reporter's own blacklist (BlacklistEntry: alliance Google Sheet, corp blacklist, restriction levels). A blacklisted account is signed out, gets no State, loses groups and Discord roles, and its characters stay blocked on any new account (by owner hash, so a sold character is released).
  • Reporter's rules carry over:
  • The test-data CSVs hold real players' data. They never enter this repository.
  • Detection logic stays out of public places. The Nexus repository is private (checked 2026-12-04). If it ever goes public, the checks must move to a private module first.