5.4 KiB
Outpost achievements
Revision 1 exposes 16 game-local achievements through the optional achievementDefinitions()
and achievements(data) exports of dist/wrapper.js. Types come from the published,
exact-pinned @boardgamers/protocol@0.11.0 /engine entry point (type-only imports).
No viewer changes or browser claims are involved. Icons are omitted so the platform can
use generic artwork; there are no third-party assets or viewer-bundle URLs.
Catalog
| ID | Name | Final-state condition |
|---|---|---|
colony-victor |
Colony Victor | Sole first place |
head-to-head |
Head to Head | Sole first place with two original seats |
crowded-frontier |
Crowded Frontier | Sole first place with at least five original seats |
kicker-victor |
Kicker Victor | Sole first place with options.kicker === true |
sealed-bid-victor |
Sealed Bid Victor | Sole first place with options.fastBid === true |
seventy-five-points |
Victory Point Milestone | At least 75 VP, the normal victory target |
water-megaplex |
Water Megaplex | At least four manned water factories |
titanium-megaplex |
Titanium Megaplex | At least four manned titanium factories |
chemical-megaplex |
Chemical Megaplex | At least four manned new chemicals factories |
diversified-industry |
Diversified Industry | At least one manned factory of each of the five types |
research-campus |
Research Campus | Scientists, Laboratory, and a manned research factory |
automated-colony |
Automated Colony | Robots upgrade and at least one robot |
established-outpost |
Established Outpost | Outpost upgrade |
orbital-network |
Orbital Network | Space Station, Planetary Cruiser, and Moon Base |
lunar-colony |
Lunar Colony | Moon Base |
self-sustaining-colony |
Self-Sustaining Colony | Ecoplants and Nodule |
Only the first five require victory. Factory thresholds of four correspond to the actual Mega production rule; they do not claim a Mega card was taken. All ownership and operation conditions describe the final position, not historical purchases or production. The 75-VP check uses engine scoring, including Kicker VP and only manned factory VP. IDs must never be repurposed; definition changes require a manifest revision bump.
Authority and eligibility
The hook accepts the server's JSON-serializable engine state, not a JSON string or a
client report. It is deterministic and does not mutate that state. It returns nothing
unless ended is true, phase is ended, round exceeds one (the wrapper's cancellation
boundary), and at least two seats exist. Dropped seats are omitted, including their feats.
Original seat count includes dropped and bot seats; it is not a claim about human opponents.
Outcomes use the existing final rankings: sole rank 1 is win, shared rank 1 is draw,
and other ranks are loss. Spending breaks purchase-order ties only, never final ties.
The remaining player can win after other seats drop, as in existing rankings. Engine
round-limit or stalled-economy completion uses the same rankings rather than inventing
new outcome rules. There is no supported solo game.
BGS is responsible for mapping seats to eligible human accounts, rejecting bots,
practice/analysis games and cancelled games, and invoking the hook only on authoritative
completed game data. Engine state has no account or bot identity and cannot enforce those
platform policies. Calling moveAI in a test does not turn a seat into a platform bot.
Neither a seed nor a final log entry is treated as an authentication credential.
Verification and release gate
src/achievements.spec.ts exercises games actually played to completion through the
engine (base two-player and five-player Kicker/sealed-bid), JSON round trips, outcomes,
non-mutation, fresh manifests, cancellation, dropped seats, ties and per-feat boundaries.
Constructed final positions are boundary tests, not claims that their logs reproduce them.
Run the complete pnpm check before committing or releasing.
This implementation is held on an isolated review branch. Before release:
- Obtain independent coordinator review, including the platform's human/account and authoritative-completion eligibility gates.
- Integrate the then-current canonical release branch without disturbing local work,
choose an unused engine patch version and rerun
pnpm check. - Follow
AGENTS.mdpublishing: pack the engine, upload to existing game version doc 1, and verifyengine.package.version. This is engine-only; no viewer upload is needed. - Verify platform ingestion of manifest revision 1 and eligible completed-game awards.
- Commit and push the released sources/version to the canonical release branch under the repository's delivery workflow, and verify its remote head.
No BGS upload, activation, or release-branch push is authorized before that review.