The bytes decide whether code is right; these rules decide whether it is acceptable. A submission must pass both. refuse = not accepted even when the bytes match; flag = accepted, counted as debt on the public quality board and worth less credit until cleared.
No _ReadWriteBarrier, #pragma optimize, #pragma intrinsic or #pragma function, no volatile on local variables, and no __declspec(noinline) on helpers the game does not have.
Not this: volatile int n = count; _ReadWriteBarrier();
This: int n = count;
Fix: Write the code the way the original author would have; if the bytes only match with steering, flag the function for a header or unit fix instead.
Checked by: local lint, server, pull request check
No inline assembly (x64 MSVC has none) and no hand-written .asm outside third_party/ and the published exception list.
Not this: __asm int 3
This: __debugbreak();
Fix: Use the compiler intrinsic or plain C++.
Checked by: local lint, server, pull request check
No undefined1/2/4/8 types, CONCAT/SUB/ZEXT macros, param_N, uVar/iVar/pVar names, decompiler stack names (local_ with a hex offset such as local_10, local_1c or local_c; in_ with a register such as in_EAX) or raw stack offsets. Ordinary names that only look similar (local_face, in_out_count) are fine.
Not this: undefined8 uVar1 = *(undefined8 *)(param_1 + 0x10);
This: NiNode* parent = node->parent;
Fix: Use the shared types and give every parameter and local a real name.
Checked by: local lint, server, pull request check
No member access through pointer arithmetic on a type the shared headers know. Where the header does not know the field yet, it is accepted but flagged until the field is added.
Not this: *(int*)((char*)this + 0x48)
This: this->refCount
Fix: Use the field from include/; if it is missing, propose it as a header change.
Checked by: local lint, server, header registry
No private redefinition of a type the shared headers (include/) define. Types and fields come from include/; new ones arrive through a header change. While the shared headers are being built, a private type for a class include/ does not define yet is accepted but flagged, and moves into include/ when it lands.
Not this: struct MyActor { char pad[0x48]; int hp; };
This: #include "Actor.h"
Fix: Include the shared header; request the type or field with a header change.
Checked by: local lint, server (declaration registry)
Every function or global name binds to exactly one address and is defined in exactly one unit.
Not this: Two units each defining g_dataHandler, or one name bound to two addresses.
This: One definition, extern declarations elsewhere.
Fix: Use the registry's existing name for that address, or rename.
Checked by: local check (f4check), server (symbol registry), nightly link
A function counts only once it compiles byte-exact inside its real unit, together with every function already in that unit.
Not this: Matches alone, breaks its neighbours.
This: Matches in the unit's full build.
Fix: The refusal names the neighbour that changed; adjust shared declarations, not the neighbour.
Checked by: server (in-file check)
Units follow the original source files, not address windows. One compiler flag set per unit; a different flag set needs a recorded proof.
Not this: A function placed in a unit it does not belong to.
This: The function in the unit the unit map gives.
Fix: Use the unit named in the claim; propose a unit-map change with evidence if it is wrong.
Checked by: server (unit map)
Names come from an allowed source with a provenance tag: RTTI, strings in the executable, public modding-community facts, Fallout 3 or New Vegas twins, or a reasoned name. FUN_ placeholders are accepted but flagged.
Not this: FUN_140a12b30
This: BGSInventoryList::FindItem // src: STRING "FindItem"
Fix: Name it and add the provenance tag.
Checked by: local check (f4check), server
No model, tool or pipeline names (Claude, GPT-5, Opus 5.5, ...), internal paths, e-mail addresses, pack or checkpoint ids in comments. Ordinary English is fine (a magnum opus, the context pack).
Not this: // written by <model> in <tool>, checkpoint chk_1234
This: // Clamps the radius to the cell's bounds.
Fix: Describe the code, not how it was produced.
Checked by: local lint, server, pull request check
No compiler warnings at /W3 in the submitted code, and the repository's clang-format style. Neither changes the bytes.
Not this: warning C4244
This: No warnings.
Fix: Fix the warning with the right types; run clang-format.
Checked by: local lint, server, pull request check
Library code with a public source (zlib 1.2.7, libpng 1.5.13, ...) lives unmodified in third_party/ with checksums; game-side changes are reviewed diffs.
Not this: zlib's inflate pasted into a game unit.
This: third_party/zlib-1.2.7/inflate.c
Fix: Point the unit at the vendored file.
Checked by: server (layout check)
Where another build of the same code exists, the same source should also match there. A bonus when it holds; flagged when it does not.
Not this: Matches one build only through shaping.
This: Matches both builds unchanged.
Fix: Prefer the plain form that matches both.
Checked by: nightly
Redundant parentheses or a meaning-preserving statement order that is needed for the bytes stays allowed, but each case is counted and may be cleaned up later.
Not this: ((a)) + ((b))
This: a + b
Fix: Remove it if the bytes still match.
Checked by: local lint
A changed rule applies to new claims; open claims finish under the version they were issued with (the pack records it).