Mission abandonment and expiry
Accepted starter contracts can be abandoned through the native mission journal and expire at their saved deadline. Both use one retirement transaction: remove the contract and every item instance bound to it, then publish inventory changes and the native journal removal. Retirement grants no credits, XP or completion rewards. It frees the one-training-mission limit for the next assignment.
Completion shares the bound-item cleanup transaction but preserves its private world and occupants. It consumes the submitted objective and pays cash, then removes the active journal while retaining a completed assignment until the original deadline. Cleanup at that deadline evacuates occupants without sending an expired-contract notification for the completed journal. See return-item settlement for the native action, transaction and provisional lifetime policy.
Native request and reply
Original14.9.1 kkr.dll, SHA256
241b2e665dcd127399b7686cddda8a5b0876d9cde9b3af7a73940dd0b86ecaa7,
exports N3Msg_RemoveQuest at0x36021260. It constructs QuestIIR through
0x36080960 with the local character subject, action5, the selected quest identity
and a zero secondary identity. It has no character-life or terminal-range gate.
The reader0x36080a70 and writer0x36080ae0 carry DWORD version1, DWORD action
and two identities. The version constant at0x361c5058 is1; the secondary
identity global at0x362ea510 is zero.
Apply0x36080b30 resolves the character and calls0x3606c180. Action5 dispatches to0x3606be30, which removes the quest from native object/journal lists, refreshes the UI and destroys the quest object. The request also calls0x3601cb20 to send the local quest UI event0x2c. The server handles the owner-authenticated QuestIIR0x212c487a request and replies with the same action5 and quest identity. Malformed versions, actions, identity types, nonzero secondary identities, foreign contracts, stale sessions and clients still loading cannot retire it.
Expiry uses the distinct QuestEventIIR0x5f2e1b19: DWORD version1, quest identity, DWORD event1. Its registered factory0x36010220 constructs0x360c6b00; the native reader0x360c6b70 and writer0x360c6bd0 establish the field order, with version1 at0x361c91cc. Apply0x360c6c10 lacks a Ghidra function boundary, but decoded calls at0x360c6c49/0x360c6c50 and the maintained lifted body resolve the character's quest holder and call0x3606c060. That consumer activates the quest argument and distinguishes event1 ("Quest expired..") from event2 ("Mission accomplished!"). Expiry must not send completion event2.
Expiry reader/writer evidence is
ev_61c9e52c8bd23b82de9a7df8c98ee7662cb120be22b913f2eab8ef9e4d652225 and
ev_1a00dde46f203cbde2c7592e81add191bf1c46179f91abd70eaff375671d773d;
the version constant is
ev_40dc948f4e8ff4bb016729a51f37ece1d0b006ad182247b73f65b5d7ee64032a.
The expiry/completion consumer is
ev_9dedfeb8baf538c25f3c8042b20a1eecc931b24a9e56dc3c4e1cafd89fb19198.
The decoded Apply calls are
ev_fb426f67ee0e122c0d1a31239b65c9429ee67d33e8fb73d4f9b84503c914dbcc and
ev_4489436752dc5bed6b6d8b173ce8b94293d6599cddbf93c12d8f62a29acd3442.
REA evidence IDs:
- RemoveQuest:
ev_1b4e1d5708b0289c6ffd162b12cc87bf4448c736b0f04ca6800eb09dbe2a3ab4. - Constructor:
ev_51614f94a9d14d04ad94058b4d570d25bbdfafb22876b6fb10af6f536514db95. - Reader/writer:
ev_25279233a02cdc523a81c477a17e382d34face2de6ee71ba4ca1ef694c13bc02,ev_af959fa929bf52d45f56b126a7f79dc28ff4fad88f838c828f66e4a8c7fb0dba. - Apply/dispatch:
ev_7d8e204d21b3ebd2e211ab9bf294912bd87fcfa7dcfc19cee7d4c1e0efe30bcc,ev_b06b28b3d8e1b0225b3ba1cc16d78e828242a0e058d6847b9672cd9bc6871a47. - Removal consumer:
ev_0dcb94ee3268743da29926bd8938e0c94d230fef76f4acb7e67656ea72d983e5.
The complete evidence snapshot is retained in
local/mission-retirement/kkr-evidence.json.
Ownership and transaction boundaries
mission_keys binds actual instances, including any copies held by other
characters. Retirement removes only those IDs. Unrelated template28577 keys,
Blue Books, equipment, cash and XP remain intact. Inventory, bank, backpack,
reclaim, corpse and unassigned locations participate in the same transaction.
The original receipt tip explicitly says keys can enter reclaim after death;
death alone does not retire a mission.
Affected shop/player trade drafts are restored in native first-free order in the candidate inventory before removing their keys. Drafts are cleared only after commit. Late acceptance or cancellation cannot restore or sell a retired key. Open placement views receive their matching removal/update packets; reclaim snapshots keep stable indices. No live container aliases or client messages change before the transaction commits.
The expiry index contains accepted contracts rather than scanning all NPCs each tick. Checking a future deadline performs no database writes. A due retirement uses the same transaction even while its owner is offline. Startup retires already expired contracts before accepting clients. A failed write/commit preserves the pending contract for retry; successfully retired earlier entries still publish their updates if a subsequent expiry fails. Lost client output after commit cannot restore the durable contract or key.
Evidence limits and remaining work
Lifecycle tests cover native socket abandonment, malformed/foreign/stale requests, repeated and concurrent retirement, exact deadlines, offline/startup expiry and retries. Deletion fault injection covers items, placements, contracts and cascading key bindings, including ignored writes and deferred commit errors. Placement failures preserve live container aliases. Additional cases cover bank/backpack/reclaim views, corpse loot, offline holders, copied bindings, unassigned keys, draft trades and late trade packets, partial expiry batches, output failure, and abandonment by a dead owner away from a terminal. Concurrent generation, acceptance and abandonment/expiry pass the race detector.
GPU Chromium tests exercise native confirmation cancellation/acceptance,
ordinary key/journal/waypoint removal, acceptance of a subsequent assignment, saved
deadline expiry and cold recovery without the retired key/journal. Wire
validation corroborates both message hashes and the exact quest identities;
expiry reports "Quest expired.." through event1. Fixture funds are controlled,
not earned-income proof, and no completion reward is granted. Captures, exact
accounting and wire-validation.json are in local/mission-retirement/.
The final binary was also checked through both abandonment confirmation choices;
five controlled generation fees left level1/XP0 and zero credits. Only the owned
test character was removed afterward, with unrelated-row hashes and SQLite
foreign-key/integrity checks preserved.
The original expiry consumer kkr.dll!1006c060 removes the contract and reports
"Quest expired.." for event1, but emits no coordinate-removal notification
(ev_e034ea9e1e5bc92de71c0838e0c59e0568e7797ab06505793e6362876b3372a6).
Its event2 UI event0x2c is completion-specific: it reaches AFCM message0x13e,
ddr.dll!QuestViewModule_t::MissionCompletedMessage and command0x29. It is not a
generic waypoint-clear event and must not be sent for expiry.
All three original map modules register AFCM message0xaf for
RemoveMissionCoordsMessage. The local map's BBR sprite, planet map and bottom
bar compass each store just one uploaded identity; uploading another contract
replaces it. Original removal ignores the supplied identity in all three
consumers. The relevant original symbols/addresses are
bbr.dll!NewMapViewSprite_t::{SetWaypoint,RemoveWaypoint} at100abc70/100abcf0,
ddr.dll!PlanetMapModule_t::{UploadMissionCoordsMessage,RemoveMissionCoordsMessage}
at10081b40/10081bb0 and
ddr.dll!BottomBarModule_t::{UploadMissionCoordsMessage,RemoveMissionCoordsMessage}
at10083370/10083400. BBR retains the identity at sprite+c0/c4, the planet module
at globals100ef070/100ef074 and the compass at widget+14/18. Original replacement
uses identity0/0 to clear the previous marker explicitly.
The maintained client sends message0xaf with the expired identity to the three
registered module IDs0x0e,0x1c,0x1f after the existing local event1 notification.
Removal now checks both identity words
in all three consumers, preserving another mission's marker and the explicit
0/0 reset. This repairs the retained expiry UI defect without adding a server
completion event. It does not establish the original live server's complete
expiry notification sequence. Original evidence is retained in
local/mission-waypoint-expiry/{kkr,ddr,bbr}-evidence.json: KKR SHA256
a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0, DDR
3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883, BBR
28f196f650edbb1573fb874ccaf7746453d3e4a183e1d86db1d790c1c32ecc2c.
The three module constructor registrations at10056b30,100818f0,100830e0 are
retained separately in local/mission-waypoint-expiry/ddr-module-evidence.json.
The controlled regression TestBrowserMissionWaypointExpiry accepts two
contracts through production code, bypassing only the one-live-contract admission
limit, and advances their production expiry at controlled deadlines. Real journal
input uploads B; expiry A removes its key/journal entry while preserving B in all
three marker stores. Expiry B clears the stores and rendered white X. The exact
two wire events are version1/type56003/IDs2,3/event1; neither is completion2.
The original axe, three remaining credits, level1/XP0 and learned nanos survive
page replay and cold Go loading. This is fixture evidence, not earned progression
or proof of normal multiple-contract admission. The final test passed in 12.38s;
six clean traces, screenshots, accounting and SQLite checkpoint are retained in
local/mission-waypoint-expiry/20261103-162855/.
Native entry regressions cover all three recipient modules, matching and unrelated
identities/types, explicit0/0 reset, absent views, unknown quests, unchanged
completion routing and guest stack/register preservation. Both Linux memory
layouts and standalone WASM pass, as does the semantic snapshot regression.
The 21 related Go retirement/completion roots (106 results) and go vet ./server
also pass. The original expiry captures remain in
local/mission-retirement/event-expiry-*; the corrected-driver negative capture
at local/mission-waypoint-expiry/20261103-162338/ retains both real expiry events
and the stale B marker from the incorrect single-module routing.
One terminal-opening run aborted before generation/acceptance, with no useful stack retained by its initial recorder. The recorder now captures native stdout/stderr and error details. Five subsequent isolated cold terminal runs passed, but they do not establish a fix or identify the cause. The failed profile's last sampled BBR function is not a crash stack. This remains a P0 diagnostic follow-up in feature backlog. Successful retirement runs have no page exceptions; unattributed HTTP404 console messages also occur on successful runs. No adapter/runtime change is justified by the retained abort evidence.
Immediate bound-key deletion on abandonment is a provisional server policy.
The original client proves journal removal, but does not establish the original
server's abandonment key policy. The local AOWiki Missions page, touched in2021,
describes key disappearance on completion/expiry; this is later secondary
evidence. A January2002 player report also describes completion removing the
mission key and other mission items, without establishing abandonment behavior:
period report.
Do not treat these as proof for14.9.1 abandonment or copied-key edge cases.
Private interior allocation/entry, bound floor objectives and return-item cash settlement now share this lifecycle. Abandonment and deadline retirement remove remaining floor items and evacuate occupants atomically; collected books survive abandonment, while successful hand-in consumes its exact objective. Destination metadata and native key duplication remain open. The fixed narrative, rewards and48-hour duration remain provisional as documented in mission offers.