Q1No codegen steering
REFUSEBans _ReadWriteBarrier, #pragma optimize, #pragma intrinsic, #pragma function, volatile locals, and synthetic __declspec(noinline).
#pragma optimize("g", off)
volatile int tmp = x;int tmp = x;
Every byte-matching submission must compile cleanly to the original GoG 1.23 machine code and meet Project Aesir's C++ readability, provenance, and canonical header standards. Rules marked REFUSE reject submissions with zero strikes and an exact fix hint; rules marked FLAG accept the match and record tracked rework debt.
Bans _ReadWriteBarrier, #pragma optimize, #pragma intrinsic, #pragma function, volatile locals, and synthetic __declspec(noinline).
#pragma optimize("g", off)
volatile int tmp = x;int tmp = x;
Bans 32-bit inline __asm / _asm / __emit and hand-written .asm outside third_party/ and config/standards_exceptions.json.
__asm { mov eax, ecx }return value;
Bans Ghidra/decompiler artifacts: undefined1/2/4/8, CONCAT/SUB/ZEXT, param_N, uVar/iVar/pVar, hex stack locals (local_10), and synthetic in_EAX register parameters.
undefined4 FUN_00401000(int param_1, int in_EAX) { int local_10 = param_1; return local_10; }int ComputeBonus(int base_level) { int bonus = base_level; return bonus; }Bans raw pointer-offset arithmetic (*(int*)((char*)this + 0x48)) on types defined in shared headers (include/nwn2/).
int hp = *(int*)((char*)this + 0x48);
int hp = this->m_nCurrentHitPoints;
Bans private local redefinitions of structs/classes already published in shared headers (include/nwn2/).
struct CExoString { char* m_sString; unsigned int m_nBufferLength; };#include "nwn2/CExoString.h"
Within each binary_id, every function or global symbol name binds to exactly one RVA and is defined in one unit. Multiple alias names may share one RVA (ICF), never one name on two RVAs.
// Defining CNWSCreature::GetLevel at two different RVAs in nwn2main
// Distinct binary-scoped bindings: (nwn2main, sym)->rva1, (nwn2server, sym)->rva2
Canonical submissions must compile byte-exact inside their real translation unit without breaking any neighboring matched function.
// Standalone file that perturbs neighbor float pool when merged
// Canonical TU passing match_check.py --tu-manifest with 0 neighbor regressions
Translation units mirror original source files with a single compiler flag set per unit (same unit_flags island).
// Mixing vc71 FaceFX and vc8 gameplay functions in one TU
// Functions sharing one compiler island and flag set within <= 256 KB span
Symbol names carry provenance tags (RTTI, STRING, SWIG_EXPORT, TWIN, GUESS:high|medium|low); FUN_<addr> is accepted as rework debt.
void FUN_0051a040(); // no provenance
void CNWSCreature::UpdateCombatRound(); // provenance: RTTI
Bans AI model/tool/pipeline names (Claude, GPT, Opus, Gemini, DeepSeek), emails, local paths, and pack/checkpoint IDs in comments.
// Matched by Claude Opus from /home/user/scratch/pack_123
// Returns the modified attack bonus for the active weapon hand.
Must compile with zero warnings at /W3 and match repository formatting.
int f(unsigned x) { if (x < 0) return 0; }int f(unsigned x) { return (int)x; }Public open-source libraries (zlib, FreeType, libcurl, TinyXML, minizip/LZMA) live unmodified under third_party/ with checksums; game patches are reviewed diffs.
// Hand-pasting modified zlib inflate into src/nwn2main/
// Linking vendored third_party/zlib-1.2.3/inflate.c
Shared engine source should match sibling binaries (nwn2main, nwn2main_amdxp, nwn2server, NWN2RulesLib); bonus when identical, flagged when divergent.
// Matching only nwn2main when nwn2main_amdxp differs trivially
// Identical C++ matching both nwn2main (/arch:SSE2) and nwn2main_amdxp (x87)
Tracks redundant parens, forced statement order, cited library volatile, throw()/__declspec(nothrow) annotations, and hand-written compiler-generated helpers declared via // Q14:.
// Unexplained redundant temporaries
// Q14: VC8 register allocation requires explicit local copy before branch
Whenever a new YYYY-MM-DD.N contributor kit tightens a rule or introduces a new Header Wave,
the coordinator enforces a 24-hour strike-free grace window (grace_until = effective_at + 24h).
Submissions tripping newly tightened rules during the grace window return refused_standards
with counts_as_strike: false and grace_protected: true while keeping the active claim open.
Claims opened before effective_at automatically downgrade newly landed Q5 shared types to non-refusal flags.
Documented edge-case allowlists live in config/standards_exceptions.json.