7.7 KiB
Company deeds and shared recruitment
The Company copy now has an independent deed and roster. It reuses the agreed 5 / 25 / 50 member limits and recruitment price policy without reading a player's personal clan as its company.
Sources and authority
site_company_deedsrecords the registered founder as the initial owner once. Backfill preserves the company's establishment date, creates one audit event, consumes no key and does not change existing active/pending status.site_company_membersrecords actual membership. The current CEO is projected from the existing registry as an officer and counts once; changing CEO does not transfer the deed or leave a stale management grant.- Owner and current CEO manage recruitment and company identity/MOTD. Ordinary members may read their workspace and welcome message. Website staff ranks and external permission systems are not modified.
- A linked player can register one active Basic Company through Company CP. Registration, deed, initial membership and audit commit together and retry by instruction UUID. Existing staff registrations remain pending.
- COM applies the owner's one lifetime
company-foundingright in the existing organisation key transaction, changing Basic to Original/Keyed. It never grants Royal status, consumes CLAN rights, or recreates a used founding entitlement. - Basic Company banking is disabled through the existing bank authority filter. Old account history and funds are retained. A valid company charter unlocks the existing company bank entity and package activation; no account is auto-created.
Shared modules
membership-recruitment.mjs builds request and review statements for both Clan
and Company. Each domain supplies its current authority/version lock, capacity
guard and membership writes. The original Clan handler now calls this builder.
jarvis-request-domains.mjs provides the same private application attachments,
accepted/declined/filled event records and durable listing closure for both domains.
jarvis-clan-requests.mjs remains a compatibility entry point. Table identifiers
come only from the fixed internal domain catalogue.
Company adverts use company-recruitment definitions and company artwork in the
public Company jobs category. Apply/review dispatch is derived from the stored
listing kind; membership uses company records, never a clan row with the same ID.
The existing mailbox worker and idempotent send reference deliver decisions.
Basic adverts are free. Keyed/Royal adverts reserve 1000 + 25 × occupiedMembers
minor DM units from an authorised company current account, then settle to Tax at
the existing four-hour bank window. Publication/reservation/credits share the bank
transaction. The owner and any outside CEO count toward occupied places.
Routes and presentation
POST /api/companies/deeds: Basic registration.GET /api/companies/deeds/:id: authorised deed and real member roster.POST /api/companies/deeds/:id: confirmed COM upgrade.POST /api/companies/recruitment: domain request/review/withdraw/leave/remove handler.- Existing J.A.R.V.I.S. listing/application routes serve both recruitment domains.
Company CP registration and settings display the existing company deed artwork. Its dashboard/member page and public profile use the actual roster. Ordinary members can leave; management can remove ordinary members. The deed owner and current CEO are protected from these controls. Company navigation refreshes the workspace so post-acceptance rosters, counts and versions are current. The private codes register resolves used COM receipts to the company name and charter.
Boundaries
Political Houses remain protected, office-deed membership only. Company Royal appointment, claim/Home Block writes, transfer/subsidiary/conquest workflows and native forum roster synchronisation remain separate domain work. Board/Discord promotion delivery remains disabled until its destination adapters are connected; no promotion credits are spent while disabled. No game services are deployed.
Validation
Tests cover registration rollback/retry, one-use COM redemption, CEO/deed separation, roster/public privacy, Basic bank denial and keyed activation, private applications, capacity rollback, filled adverts, mailbox decisions, reserved fees and Tax posting. Browser checks exercise the actual Company CP from Basic registration through an accepted vacancy and COM upgrade, at desktop and mobile widths. The existing Clan acceptance/capacity and J.A.R.V.I.S. regressions remain in the same test suite.
Protected political House claims
The shared claim engine also accepts an explicit protected adapter. It does not grant ordinary clan membership or political authority.
- Private API:
/api/v1/protected-claims/overview?protectedId=<uuid>,/home-block(POST),/upgrades(GET/POST). protectedIdis the stablepoliticalOfficeId(office.key)UUID, exposed asclaimOrganisationIdby the private Politics workspace. The human office key remains the CP selector.- Every action verifies a single current officeholder, the applied and unrevoked system Royal staff key, and a linked Minecraft UUID. Office expiry removes claim management without transferring land into a personal clan.
- Registration accepts
{protectedId, worldKey, requestId, confirmed:true}. House offices are constrained to their existing homeworld. A second request cannot move the Home Block. The existing protected tariff is used unchanged. - Claim snapshots use
organisation_kind=protected,PBC_T0initially, and WorldGuard cuboid IDsdr_protected_<uuid-without-dashes>. Web development locations remain internal-source records; no game regions are written. - Upgrades reuse the existing cumulative quote, immediate reservation, replay checks and four-hour Tax settlement. Funding comes only from the existing authorised office
107civic account. No personal-account fallback is permitted. Offices without a configured civic funding mapping cannot purchase an upgrade. - Politics dashboard treasury and correspondence reuse existing bank and mail services. Their adapters do not create additional bank permissions or mailbox authority.
Verification includes a protected Home Block to maximum Royal upgrade, civic reservation without immediate Tax debit, homeworld rejection, expired office authority, revoked staff key, unrelated accounts and browser layouts at 1450/760/390 pixels.
Subsidiary founding is now connected at POST /api/companies/deeds/<parent-id> with action: create-subsidiary, current parent version, validated identity fields, a UUID requestId, and explicit confirmation. The current Keyed/Royal parent owner receives one parent-and-child-scoped COM-SUB key, which is applied atomically with the child deed and relation. Retrying the same instruction returns the same child. Basic parents, stale deeds, unrelated actors and conflicting references cannot create a subsidiary. The child starts Basic and retains its own accounts, membership cap and local owner.
Parent deed owners inherit management through the current registered company hierarchy, without becoming members or replacing the child owner. The shared adapters use this control for settings, claims, recruitment, bank authority and forum moderation. Control is recalculated when a parent deed changes; cycles and invalid parent owner membership fail closed. This is a company-to-company relation and does not create a clan/company transfer path. Purchases and conquest retain their recorded mailbox origin.
Political Houses retain automatic officeholder membership. Their J.A.R.V.I.S. screen does not permit recruitment advertisements to appoint officeholders; candidacy and decisions continue through the existing election service. Kit generation, new war/event rules and voluntary sale/conquest execution are separate feature work.

Staff