Commit Graph
21 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 c9b0aab862 feat: DLSS 5 is named where the game ran its neural rendering (schema 0022, rules 2026.11.2, Privacy 2.14); Streamline headers re-vendored at v2.14.16 (D84) (beta.34 PR-3) (#358)
The owner, 2026-11-06: Hogwarts Legacy with Neural Rendering on loaded DLSS 5's runtime
(nvngx_dlssnr.dll 310.9.16.0, from the game's folder) and the session could say only "DLSS 5
runtime loaded". Then: check what changed in recent Streamline versions, fix it if needed.

- Streamline: the vendored closure was v2.12.0 byte for byte; v2.14.16 changes three of its
  eleven files (kFeatureDLSS_NR = 1004, the uplift buffer types 70-72, kStructVersion7, the
  version). Re-vendored byte for byte; README provenance, THIRD_PARTY_NOTICES row.
- Overlay (hook path): the slEvaluateFeature detour decodes kFeatureDLSS_NR into its own bit;
  RecordPresent sets FL_FEAT_SL_NEURAL_RENDERING (feature byte bit 7, an enumerator - no layout
  change) under the condition every Streamline fact shares; the evaluate row's family also claims
  FL_HOOK_SL_NEURAL_RENDERING (bit 12), published with the detour. Overhead: decode unchanged
  within noise (4.7 ns a call), +0.14..0.19 ns a present.
- Agent: Domain.Metrics.NeuralRendering.SharePct; sessions.dlss_nr_pct (schema 0022) only from a
  writer that published the family - an older Overlay's silence is never a measured 0 %.
  CensusNames records sl.dlss_nr.dll.
- Rules 2026.11.2: capability dlss_nr -> "Supports DLSS 5 Neural Rendering".
- App (D84): DLSS 5 heads the DLSS line where it ran ("DLSS 5 (neural rendering on 97.3% of
  rendered frames)"); its library listed with version and source; measured 0 -> "runtime loaded,
  not seen running"; nothing to tell -> "runtime loaded" as before. CSV basis/pct.
- CaptureHost dev census: a kFeatureDLSS_NR bucket.
- Privacy Policy 2.14 (neural-rendering libraries); the accuracy block's DLSS 5 sentence.
- Tests: native guard_test (the new harness mode through an injected Overlay; 0xF00D lights no NR
  fact; the token case's exact mask gains the family), NeuralRenderingTests, SessionAggregatorTests,
  DlssGenerationTests, DlssTextTests (a row shaped from session 132), LedgerDatabaseTests (0022),
  the repository round trip, the rules fixture, RuntimeModuleSourcesTests, SlCensusTests.
- Docs: 05_DETECTION, 06_DATA_MODEL, 17_HOOK_ENGINE, LIMITATIONS, guide/03, guide/10, the accuracy
  block, spike-notes 26 (+ owner-only item 30(a)'s decision table), HANDOFF (D84), CHANGELOG.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 08:39:42 +00:00
poli0981andClaude Opus 5.5 6ba6a41cea feat: games from the Xbox app and the Microsoft Store - the GDK library, a package root as an install-root boundary, the xbox platform rule, the game's own art; Privacy 2.13 (D77-D81) (beta.33 PR-1) (#351)
* docs(spike-notes): §25 - the Xbox/GDK titles' layout, read-only, and the launch probe's decision table, written before the run (D77) (beta.33 PR-1)

The owner's 11 GDK packages under C:\XboxGames and D:\xbox, read without launching anything: the .GamingRoot files,
MicrosoftGame.config / appxmanifest.xml, the WindowsApps junction chain, and the executables refusing FILE_READ_DATA
and FILE_EXECUTE to every process outside their package. Then the probe's method and the table that decides what each
outcome changes - committed before the probe runs, as the house rule asks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(spike-notes): §25's run - six GDK titles activated through their packages; the image paths, the chains, the tokens, the mitigations, and what a start by path really does (D77, D80) (beta.33 PR-1)

The image path and the loader's main-module path are both the Content spelling on every process of every chain; no
chain member the guard's rights cannot open; no fuzzy-fragment module; full trust, not an AppContainer, medium
integrity; none of the four mitigations. And CreateProcess by path is not error 5, as assumed: the package's launch
executable is replaced by an unpackaged gamelaunchhelper.exe that activates the package (the game is never the
caller's process nor its descendant), and an Unreal shipping executable runs outside its package. D80 stands on those
two measured grounds; the read-only claim is struck and dated in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat: games from the Xbox app and the Microsoft Store - the GDK library, a package root as an install-root boundary for the guard and detection, the xbox platform rule (root_file, rules 2026.11.1), the game's own art; Privacy 2.13 (D77-D81) (beta.33 PR-1)

The import gains a fifth store, `xbox`: each ready drive's .GamingRoot names the games folders, each
<Game>\Content\ holding MicrosoftGame.config beside appxmanifest.xml is a GDK package (read with DTDs prohibited),
and Windows' appmodel calls (PackageFamilyNameFromId, GetPackagesByPackageFamily) say whether it is installed for
this user. The record: the family name as the store id, Content as the install folder (the spelling the game's own
process reports, spike-notes section 25), the AUMID as the launch key; ExecutableLocator picks the process that
draws, never gamelaunchhelper.exe.

Safety: no install-root boundary matched the Xbox layout, so check 4 walked only an Unreal title's
Binaries\WinGDK. A GDK package root is now a boundary for InstallRoot and the native ResolveInstallRoot alike, asked
only where no store boundary matched (it can only widen the walk); GamesInstalled joins the native list; one case
list, tests/fixtures/install-roots/cases.txt, is read by Catch2 and xUnit both.

Detection: an `xbox` platform first in the array (a GDK FINAL FANTASY ships steam_api64.dll), decided by a new
root_file signal from the install root's own listing, so a deep walk that ran short cannot make it Unknown. Art: the
square logo and the splash image the package names, from inside the package root only. games.platform's vocabulary
gains xbox; the importer's fake repository now validates as the real one does. Privacy Policy 2.13 with the wording
approved with the plan; TRADEMARKS, 02_SPEC, 15_ROADMAP, 05/06/08/19/20, README, LIMITATIONS and the guide follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 05:10:52 +00:00
poli0981andClaude Opus 5.5 1070cd303f fix(guard): an anti-cheat beside the executable is found before anything is injected - check 4 walks the executable's own folder too; rules 2026.10.4 (beta.21 PR-1) (#301)
The owner's report of 2026-10-13: no anti-cheat found in Wuthering Waves
(Steam 3513350). Measured read-only on the owner's disk and in the Agent's log
(spike-notes section 19):

- The install root holds a launcher, Client\ and Engine\; the entry is
  Client\Binaries\Win64\Client-Win64-Shipping.exe, and Tencent's ACE sits
  beside it in Client\Binaries\Win64\AntiCheatExpert\ (ACE-BASE.sys,
  ACE-CORE.sys, ACE-Base64.dll, ACE-Service64.exe, ACE-Setup64.exe) - four
  levels under the root.
- Check 4 walked the install root only (ResolveInstallRoot, since
  2026-09-25), and WalkDir opens folders only while depth + 1 <
  kMaxPreScanDepth (3): a folder at the last level is named and never opened,
  SILENTLY - the walk reports kOk. The rules already named the folder; the
  walk never handed it to the matcher. The library pre-scan read the game
  clean three times, and the session of 2026-10-12 was hooked for 37 s until
  the 30 s re-scan met ACE-BASE.sys - a machine-wide finding, which turned
  nothing off.

Fixed:

- Check 4 walks the install root, then - when the executable lives below it -
  the executable's own folder (ScanGameFolders): same walk, same reach, its
  own 4096-entry budget, same matcher, same D33 tolerance and finding record.
  Sources::ImageDirectory names the executable's folder and the checks
  resolve the root from it (CheckStaticPreScan, CheckBlockedStoreId). Raising
  the reach was measured and rejected (spike-notes section 19): depth 4 still
  misses NTE's AntiCheatExpert\ (six levels down), depth 5 overruns 4096
  entries on three installed titles, which would refuse them. Across the
  owner's 83 Steam installs the second walk costs at most 103 entries and
  newly finds exactly those two folders.
- Rules 2026.10.4 (the bump is also what makes every game's pre-scan run
  again - the sweep re-scans only on a rules version or executable change):
  the five ACE-* files, ACE-CORE.sys (drivers), the ACE-BASE service, a
  modules row of its own for ACE-Base64.dll appended at the end (the
  Overlay's early-stop index), and Wuthering Waves' Steam id on the title
  list (owner decision D58). Notes within the schema's 300 characters.
- Comments that said the depth cap refuses (fl_prescan.h, guard_test.cpp)
  and docs that said so (19_SAFETY item 4, 05_DETECTION) are corrected in
  place; CLAUDE.md's D33 ".sys anywhere in the install tree" now says what
  check 4 reaches.

Tests: the fake lists a folder per directory and records every directory
check 4 walks; Wuthering Waves' layout refuses from the path and from the
pid; an executable at its root is walked once; an unfinished walk of the
executable's folder refuses; D33's tolerance and the .sys rule hold in the
second walk; and two REAL-filesystem cases - the real walk names Win64 from
the root and never opens it, the pre-scan over the real walk and store seam
finds AntiCheatExpert\ beside a nested executable and passes the same tree
without it; the real ImageDirectory names the executable's own folder.

Before/after on the owner's disk, read-only (FlStaticPreScanGame): the
installed beta.20 guard answers Allow for Wuthering Waves; this build answers
BlockedStoreId Anti-Cheat Expert. NTE, GF2 (NEP2.dll) and nine other Unreal
installs read as before.

Gate: ./build.ps1 ALL GATES PASSED (296 s); native 32/32. The owner's live
rules files were copied aside before the run and restored byte for byte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 19:51:38 +07:00
poli0981andClaude Opus 5.5 4ae563c97e feat(detection): the engine version of Ren'Py games, read from the engine's own version file (beta.20 PR-1) (#299)
The owner asked (2026-10-12, after beta.19's Unity, Godot and RPG Maker
versions) for the version of Ren'Py games. The renpy rule had no version
extractor.

Ren'Py ships its engine as Python beside the game's launcher, and
renpy/vc_version.py names its release: version = '8.5.0.25111603', beside
branch, nightly, official and version_name. Measured read-only on the
owner's one Ren'Py install, Bound Between Desks (Steam): 109 bytes, the
same number the game's log.txt printed at its last start; the launcher has
no version resource (spike-notes §18).

- Rules 2026.10.3: renpy -> {"type": "renpy_build"}; the schema's enum of
  code-decided extractors gains it. Every entry is read again once.
- Domain: RenPyBuildFacts + RenPyVersion.Decide keep MAJOR.MINOR.PATCH,
  as Ren'Py names its releases (the fourth number is the build), source
  renpy_vc_version; VersionExtractorType.RenPyBuild; the evaluator leaves
  it to the detector, as the other code-decided types.
- Application: IGameFileProbe.ReadRenPyBuildAsync; StaticGameDetector
  makes the one second read for a Ren'Py match.
- Infrastructure: RenPyBuildReader reads the first 4 KiB of
  renpy/vc_version.py beside the executable, its version line only.
- App: the game page says "Ren'Py 8.5.0" and that it was read from the
  engine's version file (en/vi/ja, ja marked review); a Ren'Py row whose
  file names no version says "Not found in the game's files".
- Privacy Policy 2.9: §4's list of the version marks an engine keeps in
  its own files names Ren'Py's (legal-drift-history). The Legal Gate shows
  it once at the next update.
- The accuracy block (ACCURACY, README, DISCLAIMER), LIMITATIONS,
  05_DETECTION §Engine version - Ren'Py, 06_DATA_MODEL, 08_UI, CHANGELOG.
- HANDOFF: owner-only item 15 struck, passed 2026-10-12 (the owner's
  report, and the Agent's log for the removal: one check at 18:04:00 took
  three session-less entries); the rules-reseed trap gains the backup the
  session made of the owner's two rules files.

Through the shipped pipeline (StaticGameDetector over GameFileProbe, read
only): Bound Between Desks renpy 8.5.0 renpy_vc_version in 79 ms; Dialoop,
Plethora of Bullets 2, A Doll's Locket and City of Bones read as before.

Tests: RenPyVersionTests (the measured value; the build dropped; shapes
that are not a version), EngineBuildReadersTests (the measured file beside
the launcher; no file, a version_name only, past the bounded head),
StaticGameDetectorTests (one read for the matched engine),
GameDetailViewModelTests and FormatsTests (the page's words).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 18:41:13 +07:00
poli0981andClaude Opus 5.5 a53ebee683 feat(detection): the engine version of Unity, Godot and RPG Maker games, read from their own files (beta.19 PR-3) (#294)
The owner's request of 2026-10-12. Rules 2026.10.1 gave: Unity's
pe_file_version stored UnityPlayer.dll's FileVersion string as it is
(2022.3.39.5118735 - the build number where the release letter belongs);
Godot's strings_regex scanned the executable's first 8 MiB while the
"Godot Engine v..." string sits 57-78 MB into both exports on the owner's
disk, so it never read one; both RPG Maker rules had version: null.

Measured read-only on 23 installs first (spike-notes section 17), then decided
in code as Unreal's is since beta.10:

- Rules 2026.10.2: unity_build, godot_build, rpgmaker_build - extractor types
  that take no parameter (the schema's enum beside unreal_build).
  StaticGameDetector makes one second read for the engine that matched;
  RuleEvaluator answers null for them as for unreal_build.
- Domain: UnityVersion (player ProductVersion, else the data file's header,
  else the player's numeric version), GodotVersion (a data pack's header,
  beside the executable or appended to it, else the executable's version
  while it is still Godot's; a zero patch dropped, as Godot names it),
  RpgMakerVersion (MZ/MV core-script header; the RGSS library Game.ini names
  -> XP/VX/VX Ace, its version or the one its name carries). New
  EngineVersionSource ids name the witness - and the maker.
- Infrastructure: UnityBuildReader, GodotBuildReader, RpgMakerBuildReader -
  version resources and at most a few kilobytes of any file; RPG Maker's files
  beside the executable or up to two folders above, as RpgMakerTitle looks.
- App: Formats.Engine(id, source) and EngineWithVersion - "RPG Maker MZ
  1.10.0", "RPG Maker VX Ace (RGSS 3.0.1)", "Unity 2022.3.39f1", "Godot 4.4.1"
  on the page, the subtitle and the card; the Engine version row says what
  each was read from, and "Not found in the game's files" once read. Strings
  en/vi/ja (ja marked review).
- Privacy Policy 2.8: section 4 names the version marks an engine keeps in its
  own files (the owner-approved wording), which also covers two reads that were
  never stated (UnityPlayer.dll's version, an RPG Maker title). The accuracy
  block, LIMITATIONS, 05_DETECTION, 06_DATA_MODEL, 08_UI and
  legal-drift-history say the same.

The shipped pipeline over the owner's installs (read-only): Unity 15 of 15,
Godot 2 of 2, RPG Maker 6 of 6, every one as measured; 24 ms to 4.1 s per
entry on the USB drive, nearly all of it the install's walk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 15:40:00 +07:00
poli0981andClaude Opus 5.5 63808a3821 docs: about a hundred statements the code contradicted, corrected in place with dated notes; a developer index; the Logs page reads the Agent's lines; a Settings switch that did nothing removed (D46, beta.12 PR-6) (#258)
Four audits read docs 01-20, HANDOFF, CLAUDE.md and FORKING against the
code. Every stale statement is struck and followed by a dated correction,
the repository's own convention (D46); history stays as it stood.

The largest classes: a rules feed that does not exist (05, 11, 13, 19, 02
FR-7.3, the rules file's own $comment, the rules workflow's header -
rules reach a user with a release); hooks that were never built (01's
diagram, 17's XeSS row and detour count, 03's fgEvaluations sources); the
in-game watchdog described as reading two numbers and sleeping (17; the
Disclaimer was fixed in PR-5); the unhook path and the vtable-swap advice
(17); L1 never pointed at the game's adapter (18); pre-release steps that
would bump VERSION (13, CHANGELOG header); the Legal Gate's row count (08);
the logging configuration of the two processes (10); a delta package never
published (11, 14); missing 0009/0013 migration entries and a duplicated
0002 paragraph (06); closed items still marked open, and S23-3 marked
deferred while the refusal UI shipped without it (20); the stale START HERE
(HANDOFF); the layout, tools and static-analysis lines (CLAUDE.md); three
names a fork must also change (FORKING). docs/README.md is a new index.

Code found by the same audits:
- LogTail.LevelOf read only the App's "[HH:mm:ss.fff LVL]" prefix, so the
  Logs page's Warning and Error filters showed no Agent line; the Agent
  writes Serilog's default template, a date first. Both are read, with a
  strict timestamp shape; the test that fed App-form lines into the fake
  Agent log now uses the real form.
- Settings' "Record games launched outside FrameLedger" wrote
  capture.background, which no Agent code read, and the App cannot start a
  game, so "off" could only mean recording nothing. The switch and its two
  strings (en/vi/ja) are removed; the key stays reserved, AgentReads false.
- Comments that said what is not so: the sparkline, the flyout,
  VulkanLayerRegistered "false by construction", two self-test counts, the
  sensor blobs' nominal Hz, SessionRowColumns' missing generator.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 01:29:49 +07:00
poli0981andClaude Opus 5.5 5ab297b7b7 feat(rules): three CrackProof titles on the anti-cheat title list - Umamusume, Heaven Burns Red, Madoka Magica Magia Exedra by Steam id (rules 2026.10.1, beta.11) (#247)
The owner asked for "a few" games protected by HyperTech's CrackProof, by Steam id where needed.
Three are listed, each on the evidence of its own Steam store page, which states "Uses Kernel
Level Anti-Cheat" and names CrackProof (read 2026-10-03):

- 3224770 Umamusume: Pretty Derby (Cygames)
- 1973710 Heaven Burns Red (WRIGHT FLYER STUDIOS / Key; the Steam app is the Japanese release)
- 2987800 Madoka Magica Magia Exedra (Aniplex)

ANOTHER EDEN (1252600) is named by a community list (AreWeAntiCheatYet) but its store page says
nothing of the kind, so it is left out.

Why a title list and not a family: a Proton log of Umamusume shows the driver loaded from
C:\Windows\System32 under a numbered name (usrdrv017864.sys, ValveSoftware/Proton#8853) - outside
the game's folder, so the .sys rule cannot see it before the first run, and no driver token
could name it. Steam ids only: no executable name was verified, and a guessed one is a false
refusal waiting for an unrelated game. A title-list finding is never excepted by the user-mode
exception.

- rules/detection-rules.json: blockedStoreIds +3 (family "CrackProof"), rulesVersion 2026.10.1 -
  every library entry is pre-scanned again once; the floor regenerates from the file.
- guard_test: the three ids refuse as BlockedStoreId naming CrackProof, from the floor.
- 19_SAFETY check 3 (counts, the evidence, why no executables) and a seed-table row like VAC's;
  20_OPEN_QUESTIONS S14's row; CHANGELOG.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 10:06:50 +07:00
poli0981andClaude Opus 5.5 32fdcf82f3 feat(detection): the exact Unreal Engine version from the shipping executable, and the witness it rests on (beta.10) (#241)
The owner asked for the exact Unreal Engine version on a game's page. The rule could not give one: it read only the
executable's ProductVersion string, which most shipping executables leave empty, and its pattern
`\+\+UE(4|5)\+Release-(\d+\.\d+)` had two capture groups of which the evaluator returns the first - so every Unreal
version ever stored was a bare "4" or "5".

Measured first, read-only, on the owner's ten installed Unreal titles: the numeric file version is the engine's in seven,
a studio's own in three; the engine's branch name (UTF-16 `++UE5+Release-5.1`) is in the bytes of five - in .rdata in
four, 290 MB into .code in Black Myth: Wukong's protected executable (whose .rdata is 8 KB).

- Domain: UnrealVersion.Decide weighs the two witnesses (branch + agreeing file version -> M.m.p; branch alone -> M.m;
  a file version that reads as an engine's where nothing says the studio replaced it -> M.m.p; else nothing), and
  EngineVersionSource names the rung. The ten measured titles are its test cases.
- Rules 2026.09.6: the unreal extractor is `unreal_build` (a fourth oneOf branch in the schema, no parameter);
  StaticGameDetector makes the second read for the one engine that matched, never the probe for every game.
- UnrealBuildReader: the version resource, then the branch name in .rdata (or the whole file, bounded at 1 GiB, when
  .rdata is under 1 MiB), 4 MB chunks with overlap so a cut name is never read short, cancellation between chunks.
  Through the shipped reader on the same ten files: every version as measured, 16 ms to 1.1 s each, 7.5 s for Black
  Myth on the owner's USB drive.
- Schema 0015: games.engine_version_source, written only with a version the row took; the old rule's bare "4"/"5"
  removed only where field_provenance says detected.
- rules-validate: a version pattern must compile and capture exactly one group (canary: the old pattern is red).
- App: the game page's Details say which witness an Unreal version rests on, or that none was found.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 22:14:49 +07:00
poli0981andClaude Opus 5.5 efcee1d08d feat: the game page says what the game's files say - x64 or x86, file and store versions, the DLSS/FSR/XeSS files it ships - and a 32-bit game's hooking cannot be turned on (#230)
Owner request 2026-09-25 (beta.8, item 3: game version, DLSS/FSR versions, 32/64-bit).

- Schema 0011: games.exe_machine / exe_file_version / exe_product_version /
  library_versions, written whole by the detection sweep (DetectionWrite). A NULL
  exe_machine is stale once, so every library entry is read under this build.
- PeImports.ReadArchitecture: the COFF machine and, for .NET, the CLR header's flags
  (Domain.Detection.ExecutableArchitecture: x64 | x86 | arm64 | arm | anycpu |
  anycpu32 | other | unknown) - an AnyCPU assembly carries an I386 machine and runs as
  64-bit unless it prefers or requires 32-bit.
- GameFileProbe: the files a capability rule names, with the numeric version of their
  VS_FIXEDFILEINFO (bounded at 48); RuleEvaluator.NamesFile shares the matcher.
- Known not hookable (x86, anycpu32, arm64, arm): SetHookEnabled answers
  Refused ExecutableNotX64 before anything is scanned or stamped; the sweep turns off
  hooking on a row enabled before this build (hook_autodisabled_reason); the page
  disables the switch with the reason and offers no re-enable. A switch that is on can
  still be turned off.
- App: a Details card (runs as, file/product version, store build labelled with its
  store, engine, shipped libraries), the subtitle says "Steam build 20374416", and the
  session summary lists the runtime libraries (runtime_modules, recorded since P2 and
  shown nowhere) against the copy the game ships.
- Rules 2026.09.5: fsr gains ffx_fsr3*.dll, xess gains libxess_dx11.dll (+ fixture).
- Docs: 05_DETECTION (what the files say about themselves), 06_DATA_MODEL (0011),
  07_IPC (ExecutableNotX64), 08_UI (Details, loaded libraries), HANDOFF traps, CHANGELOG.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 15:34:41 +00:00
poli0981andClaude Opus 5.5 79f21422a3 feat(guard): check 3 is live in both halves and seeded; any kernel driver in a game's folder is a finding; the pre-scan sees the install root (#228)
beta.8 PR-2, the owner's strictness decisions of 2026-09-25 (HANDOFF D30, D31).

- Check 3's store half: Sources::StoreIdentity reads the store's own metadata from the install root the guard
  derives itself - the Steam library's appmanifest_*.acf whose installdir is the game's folder, or a GOG
  goggame-<id>.info - so no caller hands in evidence (S3) and nothing is read from the game (rule 4). Matrix: listed
  refuses (BlockedStoreId); no store identity is not refused; unreadable store metadata refuses (PreScanFailed).
- rules 2026.09.4 seeds both per-title lists - 30 Steam app ids, 33 executables across nine families (VAC titles,
  Riot, Roblox, Blizzard, Call of Duty, NetEase, ACE, HoYoverse, EA) - and floors them like the families, so data
  can add a title and never remove one. kMaxTitleRules 64 -> 128 (the floor doubles the worst case). rules-validate
  refuses generic executable names, exact rules without .exe, and duplicates, and checks the 2x capacity.
- The kernel-driver rule: a *.sys file in the install tree that no files entry names is AntiCheatFile under
  "Kernel driver in the game folder". Code, not data; a named entry (randgrid.sys) keeps its own family.
- FlStaticPreScan(gameDirectory) -> FlStaticPreScanGame(exePath), and IAntiCheatGuard.PreScanGameDirectoryAsync ->
  PreScanGameAsync(executablePath): SetHookEnabled passed the exe's own folder and the guard scanned exactly that, so
  an Unreal title's root-level EasyAntiCheat folder was never seen by the enable-time scan. The guard now resolves
  the install root itself and runs check 3 there too. The port keeps four methods.

Tests: native fakes gain the store seam; new cases for the store matrix, the driver rule, the root resolution and
check 3 in the advisory scan; the real seam against a Steam library and a GOG folder built in %TEMP%; the floor
reproduction and the minimal-file test cover the title lists.
Docs: 19_SAFETY checks 3 and 4, the VAC row; 20_OPEN_QUESTIONS S14 closed and the S24 count; 05_DETECTION; HANDOFF
D30/D31 and traps; CHANGELOG.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 13:59:28 +00:00
poli0981andClaude Opus 5.5 80df94a934 feat(rules): the anti-cheat blocklist names twenty-two families through more signals; the guard holds 256 entries (#227)
The owner asked for the anti-cheat set to be as large and as strict as possible (beta.8, PR-1).

- rules 2026.09.3: 11 families / 19 entries / 30 values become 22 / 74 / 142. New: EA AntiCheat, Activision
  Ricochet (19_SAFETY's "no data yet" row), NetEase Anti-Cheat, NetEase Yidun, Nexon Game Security, TenProtect,
  AhnLab HackShield, EQU8, Anybrain, FredaikisAntiCheat, Roblox Hyperion; existing families gain drivers, services,
  folders and files (BEDaisy.sys, FACEIT.sys, ESEADriver, HoYoKProtect.sys, xhunter1, denuvo-anti-cheat.sys...).
  Every new token is documented, not measured, and its note says so. Services that run outside play are left out
  (EAAntiCheatService, PnkBstrA, Denuvo's updater). New modules rows are appended (early_stop_family is an index).
- kMaxFamilies 64 -> 256 (2 x 74 worst case); schema maxItems follows. Rules is 541,736 bytes, so it is reset in
  place (ResetRules) rather than assigned from a stack temporary: the Vulkan layer parses on a game's own thread.
  Native tests hold Rules on the heap.
- A generated fixture requires every seed value to match its own family in its own group; Ricochet's "no data"
  test asserts its data now; VAC's asserts no family entry fakes it.
- Measured: the Overlay's MatchesFloorModule goes from ~20 ns to ~60 ns per miss over the larger floor.

Docs: 19_SAFETY Blocklist seed (regenerated table, expansion note), 14_TESTING, 20_OPEN_QUESTIONS S5, CHANGELOG.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 13:38:11 +00:00
poli0981andClaude Opus 5.5 7756072af0 feat(rules): RE Engine and FromSoftware are detected; engines are shown by name (#222)
Items 2 and 3 of the owner's beta.6 list, checked on the owner's disk first.

- re_engine: `re_chunk_000.pak` beside the executable, the exact name (a
  glob without a star is the whole leaf, so a patch archive alone is not
  it). RESIDENT EVIL 2 and the Onimusha demo carry it.
- fromsoftware: a `*.bhd` AND a `*.bdt` sibling - DARK SOULS II
  (GameDataEbl), III (Data0-5), ELDEN RING (Data0-3) and Sekiro (Data1-5).
  The request said `.bht`; on disk it is `.bdt`. No `Game\` requirement:
  Sekiro has none, and "the parent folder is named X" is not a signal type.
- Both after the RPG Maker rules and before godot (whose *.pck also matches
  a loose Wwise bank). rulesVersion 2026.09.2, so every row re-detects.
  None of the other 80 Steam titles on the owner's disk has either marker.
- Fixtures engines/re_engine and engines/fromsoftware; the
  every_engine_marker canary carries both and still expects unity; its
  README said "four engines" while it held six.

The App shows engines by name (Formats.Engine: proper nouns, an unknown or
user-typed id passes through) on the card and the game page, where it
showed `rpgmaker_mv`; a test holds every shipped rule's id to its own name.
A hand-added executable whose name says nothing (Game.exe) is named from
RPG Maker's System.json gameTitle, else the nearest non-runtime folder
(GameTitleGuess + RpgMakerTitle), so HHW's swiftshader\Game.exe is "HELLO,
HELLO WORLD!" and not "Game". GameLibrary's misplaced doc comment fixed.

Engine detection never feeds the guard: ELDEN RING stays refused.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 03:17:34 +07:00
poli0981andClaude Fable 5.1 8e3a67a8a1 feat(rules): RPG Maker MV/MZ and XP/VX/VX Ace engine rules, rulesVersion 2026.09.1 (#189)
05_DETECTION marked both RPG Maker rows ⛔ "cannot be expressed in
schemaVersion 2". The MV/MZ reasoning wanted a nested group for nw.dll AND
(www/ OR package.json), but MV and MZ both ship package.json beside nw.dll
unconditionally — www/ is only where MV keeps its data — so
all: [nw.dll, package.json] is the whole signal. Measured on the owner's
Flower in Us (Steam) and a hand-extracted MV title: both engine=none before,
both rpgmaker_mv now; Godot, Ren'Py and the rest unchanged.

- rpgmaker_mv: all of nw.dll + package.json siblings, version null (the .js
  header needs a `from` that strings_regex lacks).
- rpgmaker_rgss "RPG Maker XP/VX/VX Ace": any of RGSS1*/RGSS2*/RGSS3*.dll or a
  *.rgssad/*.rgss2a/*.rgss3a archive, version null (which DLL matched is not a
  value any extractor produces) — one rule, the variant unnamed.
- Both after unity/unreal and before godot (an MV game has no .pck; a Godot
  game has no nw.dll).
- Fixtures engines/rpgmaker_mv, engines/rpgmaker_rgss; every_engine_marker
  gains nw.dll, package.json, RGSS301.dll and still expects unity.
- rulesVersion 2026.09.1: the sweep's cache key changes, so every game is
  re-detected on the Agent's next pass.
- Docs: 05_DETECTION §Engine signatures (the ⛔ note kept, struck), CHANGELOG.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 19:36:50 +07:00
poli0981andClaude Fable 5.1 42e15c9dbd feat(guard): the signer half -- "name fragment AND not signed by a known vendor", under a compiled-in bound; -SkipIntegration dropped from CI (§S19(b) row G1) (#136)
Since 2026-08-05 the guard refused FrameLedger's own test host on CI: a .NET host
loads System.Security.Cryptography.ProtectedData.dll, `protect` is a heuristic
fragment, and the signer conjunct was unwired. fl-probe-signer's three legs (dev box,
CI, the owner's adapters-disabled run) all read the same: the embedded signature
verifies offline with O=Microsoft Corporation in ~2-4 ms and no verdict changes
without a network. The owner chose the bound (option 1) on 2026-09-06.

- Sources::ModuleSignerOrganisation (fl_guard_sources.cpp, never fl_ac_rules.cpp):
  WinVerifyTrust WTD_CHOICE_FILE under WTD_REVOKE_NONE | WTD_CACHE_ONLY_URL_RETRIEVAL |
  WTD_SAFER_FLAG, then the signing certificate's subject O= -- fixed buffers, no
  allocation; kFailed for everything short of a verified, readable organisation.
- IsCompiledTrustedSigner: the five organisations compiled in; IsTrustedSigner now
  requires the rules file AND the binary, so a rules push can narrow and never widen.
- ModuleSinkFn: after the ours exemption, a fragment-matching module signed by a
  trusted organisation returns keep-looking (the load-order fail-open stays closed);
  the target is judged like its ancestors; everything else latches SuspiciousUnsigned.
- hook-harness --load PATH; fl_guard proves both directions against the real seams
  (the NuGet blocker allowed and the Overlay injected; our own unsigned Overlay under
  a `protect` name outside the guard's directory refused, by name) plus nine fake-seam
  cases (both lists, the target, kFailed, missing seam, pathless, load order, exact-hit
  precedence). The catalog half stays deferred with its rationale.
- ci.yml runs ./build.ps1 check with no switches: the nine Category=Integration cases
  are in the merge gate. The switch stays in build.ps1, loud.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-06 15:25:11 +07:00
poli0981andClaude Opus 5 09e450e15d feat(safety): four gates that could not fail, and the one I wrote could not either (#54)
MERGED OVER A RED SAFETY GATE, WITH THE OWNER'S APPROVAL RECORDED HERE.

`Rules / validate` failed with exactly one error and no others:

  Anti-cheat blocklist entries removed: heuristic/nameFragments/gameguard

That job exists so a blocklist removal is reviewed in public rather than waved
through. It was reviewed and approved by the repository owner on 2026-08-05, on
this evidence:

  - `guard` is a substring of `gameguard` and the match is a case-insensitive
    substring, so `guard` matched everything `gameguard` could, first. Zero
    coverage is lost BY CONSTRUCTION, not by estimate.
  - nProtect GameGuard additionally has its own named module family in the same
    file (GameGuard, npgg, GameMon, exact-prefix), so the fuzzy fragment was
    never its only route.
  - `rules-validate` now refuses any fragment that contains another, so the
    class cannot return and a future removal of `guard` reads as a removal
    instead of something `gameguard` appears to survive.

Recorded in the merge rather than only in a conversation, because the whole
point of the gate is that the reasoning is visible to whoever reads this later.
Note the gate is currently ADVISORY on `main` (§S23-2): it did not block, and
it should have had to.

---

S19(a), S19(d)'s residual, S23-5 and S29(d). Each closed by a MECHANISM rather
than by a correction, because three of the four were already corrections that had
gone stale.

1. `gameguard` COULD NEVER FIRE, and it is now impossible to add another that
   cannot. The heuristic match is a case-insensitive substring and `guard` is a
   substring of `gameguard`, so the shorter token always won first. Removed;
   rules-validate now fails when ANY nameFragment contains another, naming which
   one can never fire.

   DELETING A FRAGMENT IS NORMALLY A DETECTION REMOVAL IN A HARD GATE, and this
   is the one case where it removes nothing. Subsumption means BY CONSTRUCTION
   that every name `gameguard` could match, `guard` matches. Checked separately
   and not previously recorded anywhere: nProtect GameGuard also has its OWN
   NAMED MODULE FAMILY in the same file (GameGuard, npgg, GameMon, exact-prefix),
   so the fragment was redundant twice over. The standing objection -- three
   refuters rejected deleting a fragment -- applies in full to `protect` and not
   to this one, and spike-notes had both findings in one paragraph under a
   conclusion that was true of one of them.

   The hazard was always in the FUTURE, which is why "cosmetic" was the wrong
   word: with both entries present, someone removing `guard` leaves a list that
   still appears to cover nProtect. Now the list is minimal, so a removal reads
   as a removal.

   IT TRIPS rules-publish's REMOVAL CHECK. That is the gate working. It exists to
   make a blocklist removal reviewable, and this is one.

2. THE SCHEMA CANARY PROVED THE SCHEMA WAS NOT INERT, AND NOTHING MORE. It was
   {"schemaVersion":"not-a-number"}, which any schema still pinning schemaVersion
   rejects -- so deleting `minItems` from nameFragments left it passing, Test-Json
   passing, and the schema half of the heuristic floor gone.

   A second canary now carries nameFragments: [] and must be rejected. DERIVED
   FROM THE SHIPPED DOCUMENT -- parse, empty the array, re-serialise -- never
   hand-written: a hand-written canary is a second statement of the schema's shape
   and drifts from it, which is the defect the validator exists to catch. Mutating
   the real document makes the constraint under test the ONLY difference between
   the passing and the failing case.

   S19(d)'s STATED CONSEQUENCE WAS OVERSTATED and is corrected in place rather
   than repeated. "The CI floor silently ceases to exist" is not what would
   happen: gen-ac-floor.ps1 hard-errors on an empty list and runs as a CMake
   custom command, so the native BUILD fails. What was unguarded is the SCHEMA
   half -- a rules file with an empty list reaching a machine, where the
   compiled-in floor is what saves it. Narrower than written, and worth fixing on
   its own terms rather than on an inflated one.

3. THE SHIPPED detection-rules.json CARRIED A FOURTH STATEMENT OF THE GATE'S
   COMPOSITION, omitting the services tier -- the only one ever MEASURED firing on
   real anti-cheat -- in the one copy that reaches users. Closed the way S23-4
   closed the same class: by REMOVING the restatement rather than correcting it,
   with rules-validate failing if any $comment enumerates checks again.

   THAT RULE'S FIRST VERSION COULD NOT FIRE, and that is the finding worth the
   space. I scoped it to `anticheat.$comment`. The text it exists to catch lives
   in the TOP-LEVEL $comment. A check pointed at the wrong object -- this
   project's signature defect, committed inside the fix for it.

   ITS CANARY REPORTED GREEN TWICE BEFORE THE CAUSE WAS FOUND. The first time, a
   backtick inside a double-quoted PowerShell needle silently mangled the search
   string, so .Replace matched nothing, the file was unchanged, and the validator
   correctly passed -- a canary that never applied, reporting exactly what a
   working gate reports. Sixth time on this project that the verification harness
   was the broken thing; sixth time it reported success. The second run printed
   the mutated line before validating, which is what turned "the rule is fine"
   into "the rule is scoped wrong".

   It now walks EVERY $comment in the document AND FAILS IF IT FINDS NONE, because
   a walk that reports clean having looked nowhere is the same defect one layer
   up. Walking everything also means moving the text does not dodge the gate.

   The rewritten rule then went red on MY OWN replacement comment, which quoted
   the sentence it had removed in order to explain the removal. The rule was
   right; the comment was reworded to describe the list rather than reproduce it.

4. vklayer-blastradius.ps1 CASE 3 IS AN ASSERTION INSTEAD OF A PRINTOUT. It tests
   whether the Vulkan loader compares enable_environment's VALUE or merely its
   existence -- the difference between a stray `set FRAMELEDGER_ENABLE_VK_LAYER=0`
   doing nothing and it mapping FrameLedger into every Vulkan process on the
   machine, which 15_ROADMAP calls the highest blast radius in the spike. It
   printed in both branches and never touched $errors.

   BEING AN OBSERVATION WAS CORRECT WHILE THE ANSWER WAS UNKNOWN. The step existed
   to DISCOVER the loader's behaviour, and a discovery step that fails is just a
   step with an opinion. What was wrong is that the discovery was made on
   2026-08-02 against loader 1.4.357, recorded in spike-notes §2 as settled, and
   the step went on printing about it in green either way. When a measurement
   becomes a recorded fact, the step that produced it has to become the thing that
   defends it -- otherwise the fact stops being checked while a script that still
   mentions it reads as coverage.

   STILL OPEN and marked ◐ rather than ✅: the script writes HKCU and is excluded
   from build.ps1 and CI by design, so the assertion only fires when someone runs
   it by hand. Nothing reminds them, and a loader upgrade is exactly when it
   matters.

CANARIES, each proven RED at a named line and each recovered:

  RED  S19(a)   re-add gameguard    -> "'gameguard' can never fire - it contains 'guard'"
  RED  S19(d)   delete minItems     -> "the schema accepted an EMPTY nameFragments"
  RED  S23-5    restore the list    -> "rules.$comment enumerates the gate's composition"

S24 ledger recounted: nine items block exit criterion 2, down from twelve.

build.ps1 check, no switches: PASSED WITH 1 SKIPPED GATE(S) in 82s, 15/15 ctests,
160 managed tests, clang-format 22.1.3. The one skip is resx-audit, which does not
exist and says so.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-05 19:43:32 +07:00
poli0981andClaude Opus 5 ae2ea3409f fix(safety): a kernel anti-cheat was on the machine and every check said Allow (#31)
The guard had never been observed to refuse a real commercial anti-cheat. The
only blocklist positive ever recorded — EasyAntiCheat_EOS as an installed-but-
stopped service — was classified as a defect and deliberately narrowed away, so
"it can go red" rested on fixtures agreeing with themselves. Measured against
four real titles, unelevated, FlGuardEvaluate and FlStaticPreScan only. Nothing
was injected anywhere.

IT DOES GO RED. With a live Easy Anti-Cheat title, every target evaluates to
BlockedService / Easy Anti-Cheat / EasyAntiCheat_EOS — including a freshly
spawned, entirely unrelated process, because checks 2 and 2b do not depend on
the target. That is the correct fail-closed posture for a live anti-cheat driver
and it is now written down, because the signal names a game the user may not be
playing.

WHAT WAS MISSING WAS WORSE THAN WHAT WAS BROKEN.

  - Anti-Cheat Expert had NO family at all. ACE-BASE.sys and ACE-ADVT.sys sit
    under System32\drivers on this machine, the service AntiCheatExpert
    Protection is registered, and the title also ships its own kernel driver
    inside the game tree. Every check returned Allow.
  - Easy Anti-Cheat had no `drivers` row. EasyAntiCheat_EOSSys was measured
    RUNNING as a kernel driver and matched nothing in that group; the service
    check is what fired. A family reachable through one of five groups is one
    rename from being missed, and something else firing is precisely what makes
    that invisible.

Both families are now in the data and in 19_SAFETY's seed table. Sibling names
that are documented but were not observed here are marked unmeasured rather than
presented as evidence: a blocklist may over-cover and must never under-cover.

AND THE DATA ALONE CHANGED NOTHING, which is the sharper half. Adding
PGameProtectDriver_X64.sys made check 4 refuse when started from a
subdirectory — and still Allow from the INSTALL ROOT, where check 4 actually
runs. kMaxPreScanDepth was 2 and the driver sits at depth 2. Measured with a
control tree carrying a known blocklisted file at increasing depth:

    file at depth   old cap   new cap
        0           refuse    refuse
        1           refuse    refuse
        2           ALLOW     refuse
        3           allow     allow

So the blocklist row was coverage on paper — a row that cannot be reached from
where the scan begins.

The cap was measured BEFORE it moved, because kMaxPreScanEntries is a REFUSAL
and not a truncation: overrunning it does not scan less, it refuses the title.
Across 67 installed titles the worst case is 506 entries at the old reach and
729 at the new one, against a 4096 budget — 18%, 5.6x headroom. Re-run over all
67 afterwards: 65 Allow, exactly the two anti-cheat titles refused, and ZERO
PreScanFailed. Red and green on a real corpus rather than on fixtures.

RECORDED AS STILL OPEN, because a measurement that only reports what it found is
half a measurement:

  - A REAL VAC TITLE IS ALLOWED TODAY. CS2 measures Allow. VAC is neither a
    machine-wide driver nor a service; it is modules inside the game process,
    and that process denies module enumeration — EnumProcessModulesEx returns
    ERROR_ACCESS_DENIED even though OpenProcess succeeds. The route 19_SAFETY
    reserves for VAC is blockedStoreIds, i.e. check 3, still unwired (§S14).
  - CHECK 1 CANNOT SEE AN EAC-PROTECTED GAME. Same measurement. The one process
    in that title's tree whose modules are readable is the launcher, and the
    launcher carries nothing matching. The module tier has still never fired.
  - The new driver rows are data-complete and BEHAVIOURALLY UNTESTED: both
    families' drivers were Stopped during the window that would have exercised
    them, and the EAC session was caught by the service check first.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-04 22:51:57 +07:00
poli0981andClaude Opus 5 a4a2c6306e feat(rules): CryEngine and Source, landed after the gate that checks them (#16)
Two engine rows from 05_DETECTION's table that ARE expressible in schemaVersion
2, added deliberately AFTER PR #15's fixture-coverage gate so that adding them
had to exercise it.

It fired. With the rules in and no fixtures, rules-validate.ps1 refused:

  engines id 'cryengine' has no fixture under tests/fixtures/rules
  engines id 'source'    has no fixture under tests/fixtures/rules

That is the cheapest available proof that the gate is real rather than
decorative, and it is why these two rules were held back rather than landing
alongside it.

THEN CI CAUGHT SOMETHING THE LOCAL RUN STRUCTURALLY COULD NOT.

Source's fixture needs bin/engine.dll, because that is where a real Source
layout puts it. .gitignore's `[Bb]in/` swallowed it. The file existed on the
machine that wrote it, so the fixture passed locally and failed on a fresh
clone with "engine: null" -- and `git add -A` said nothing, because an ignored
file is not an untracked one. Three signals all read as fine and the artifact
was simply absent.

Fixed by a negation for the corpus tree, and guarded so it cannot recur
silently: rules-validate.ps1 now fails if any file under tests/fixtures/rules
is ignored-and-untracked, which is exactly the state that produces a test
passing only where it was written. Proven red with an untracked file under an
ignored path, green otherwise.

Source's is also the first `all` group in the corpus -- gameinfo.txt AND
bin/engine.dll -- which is worth having for its own sake: an evaluator that
treated `all` like `any` would still pass every other engine fixture.

TWO ROWS ARE NOW MARKED INEXPRESSIBLE rather than half-implemented, because a
rule that exists and never fires reads as coverage:

  * RPG Maker MV/MZ needs nw.dll AND (www/ OR package.json) -- a nested group,
    which signalGroup's maxProperties:1 forbids and its own $comment says is
    unsupported in v2. Its version is a header inside a sibling .js, and
    strings_regex carries no `from`, so it cannot be aimed at anything but the
    executable.
  * RPG Maker XP/VX/VXAce's signals ARE expressible (an `any` over the three
    RGSS prefixes) but its version is "which of them matched", an answer no
    extractor produces. Splitting it into three rules with version: null and the
    variant in the display name would work, and is a product decision about how
    the engine reads in the UI rather than a mechanical fill-in.

rulesVersion 2026.08.2. Parse budget 516/4096 tokens, up 41 from the two rules.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-03 11:56:33 +07:00
poli0981andClaude Opus 5 40282b0d07 fix(safety): the schema let through rules files the guard refuses (S17) (#12)
rules/detection-rules.schema.json and fl_ac_rules.h bounded the same things
with different numbers, and the schema was looser in every one of eight cases.
That is not a rejected entry: ReadFamily returns false, ParseRules returns
kMalformed, and 19_SAFETY turns an unparseable rules file into REFUSE -- for
every title on the machine. Rules ship as updatable data pushed to every
client and rules-validate.ps1 validated against the loose schema, so a
CI-green rules edit could have taken the product out in the field.

Proven both directions on one input: a 17-value family passes the old schema
(exit 0) while making ParseRules return kMalformed; under the calibrated
schema it fails.

The worst mismatch was shape, not size. blockedExecutables and blockedStoreIds
are arrays of objects in the schema and were read by ReadStringArray as bare
strings. The first entry anyone added would either overflow kMaxValueLen with
its JSON text and refuse the whole file, or fit and sit there unmatchable --
only the two empty arrays kept that theoretical. The parser now reads the
objects and keeps family and reason, because 19_SAFETY requires the UI to name
the check that fired and an exe name explains nothing on its own, and composes
store + id into the joined "steam:730" form fl_ac_rules.h always promised.

Two defects this turned up that are not the schema's fault:

  * A static_assert that could not fire on the change it existed to catch.
    fl_guard_abi.cpp pinned kRulesIncomplete == 16 to protect
    FlGuardReasonCount() == 17, but kRulesIncomplete was the LAST enumerator,
    so appending a Reason left it at 16, the assert passed, the exported count
    stayed stale, and the managed mirror iterated 0-16 and never compared the
    new value. Now derived from a Reason::kCount sentinel.

  * ReasonName's exhaustiveness was claimed in a comment and enforced by
    nothing. Omitting `default:` does not make MSVC object -- C4061/C4062 are
    off by default even at /W4, measured by appending an enumerator with no
    case and watching /W4 /WX build clean.

New ctest fl_rules_budget asserts what nothing asserted: that the rules file
we actually ship parses in the guard. Every case in guard_test.cpp parses an
inline fixture. Its boundary cases are generated from the header constants
rather than hand-copied, so the three places cannot drift again, and
rules-validate.ps1 reads the same thresholds back out by regex -- failing,
never skipping, when it cannot.

Measured on the shipped seed: 9,128 bytes, 475 of 8,192 jsmn tokens, of which
275 (58%) are $comment/engines/platforms/capabilities the guard never reads.
jsmn tokenises the whole file before it locates anticheat, so growing
detection data spends the safety gate's budget. Three independent
implementations agree on 475. With ~8x headroom the budget assertion will not
fire for a long time; the seed parse is what earns the test its place.

Gates proven red then green: the acValueList calibration (old bound green,
new bound red on the same file), the family total, the token budget, a
renamed header constant, a gutted header, an appended Reason with and without
a ReasonName case.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-03 08:07:08 +07:00
poli0981andClaude Opus 5 ba5355e2d4 spike(P0): fill spike-notes §1 and §2, and fix eight gates that could not fail (#5)
Fills docs/spike-notes.md §1 and §2 — the two P0 sections that were empty and
that §R1/§R2 had moved to the front of the spike. Everything else left in P0
needs a real game, and CLAUDE.md rule 2 puts all of that after the guard.

Every gate here was proven red before it was trusted: plant the violation,
watch it fail, revert, watch it pass.

MEASURED

  S1  EnumProcessModulesEx on a CREATE_SUSPENDED target does not return an
      empty list -- it FAILS with ERROR_PARTIAL_COPY. An error cannot be
      mistaken for a clean scan the way an empty success can, so the guard rule
      is "any failure means REFUSE".
  S7  LIST_MODULES_ALL is mandatory: on a live 32-bit target the default filter
      returned 7 of 15 modules AS A SUCCESS. Closed.
  H7  A later hooker saves OUR DETOUR as its original, so an unconditional
      vtable restore deletes their hook silently. Compare-and-restore now, with
      both halves asserted. Closed.
      NFR-1  A vtable detour costs 8.4 ns/present against a 1,000 ns budget.
      This bounds the mechanism, not the product.
      Signers  trustedSigners must match O=, not CN=. Every WHQL-signed binary,
      including the NVIDIA display driver, carries CN='Microsoft Windows
      Hardware Compatibility Publisher'.
  S2  enable_environment works and compares the variable's VALUE, not merely
      its existence. Vulkan Tier 1 becomes launch-mode-only.

THE FINDING THAT MATTERED MOST

Returning VK_ERROR_INITIALIZATION_FAILED from
vkNegotiateLoaderLayerInterfaceVersion -- the obvious way for a layer to say
"this process did not opt in, skip me" -- does NOT make loader 1.4.357 skip the
layer. It access-violates the application, every time. That design would have
crashed every Vulkan program on the machine outside our enable-list: a far
larger blast radius than the one §S2 exists to reduce, inflicted on programs
with nothing to do with FrameLedger. The layer now always accepts negotiation
and always forwards; the enable-list decides what we INTERCEPT, never whether
we LOAD.

EIGHT GATES THAT COULD NOT FAIL

The recurring defect fixed here is not a wrong check but a check incapable of
going red:

  - Check(true, "observation recorded") ended the H5 probe; ctest
    fl_proxy_swapchain was green by construction.
  - rules-publish.yml reported a deleted anti-cheat family with ::warning:: and
    exit 0. Deleting BattlEye passed CI. Its paths: filter also meant editing
    the schema or the validator never triggered it at all.
  - Two of the three imperative checks §S5 was CLOSED ON did not exist.
  - dotnet test --collect had emitted coverage since day one; nothing read it.
  - Coverlet reports an empty assembly as line-rate=1 -- 100% of nothing.
  - A CMake comment asserted "CI fails the build without VERSIONINFO" directly
    above a TODO to add it, with no .rc file anywhere in the repository.
  - The required-family floor unioned modules+drivers, so moving Riot Vanguard
    between groups satisfied it while the machine-wide driver gate lost its
    only entry.
  - Two false positives in the blast-radius test itself, which matched a
    manifest path and an availability listing rather than evidence the DLL was
    mapped.

AND ONE THAT CI CAUGHT

The A4 assertion "the Nt* route recovers more driver identities than
EnumDeviceDrivers" was unconditional, and went red on a GitHub runner for an
entirely correct reason: runners are elevated.

    unelevated (dev machine, the ADR-9 default)  266 drivers, 0 bases, 0 names
    elevated   (windows-latest)                  260 drivers, 260 bases, 260 names

EnumDeviceDrivers is not broken; it is broken FOR STANDARD USERS, which ADR-9
makes the default Agent configuration. Anyone testing the documented driver scan
while elevated sees a working call and concludes the fail-open is imaginary --
which is how it survived into a shipped document. The probe is now
elevation-aware and says which configuration it measured.

DECISIONS RECORDED

S13(a): the guard stays in the C++ FrameLedger.Injector, and owns the
chokepoint -- no clearance escapes, because the injection primitive has
internal linkage in the guard's own translation unit. A token that escapes can
be ignored; a symbol that does not exist cannot be called. Consequences tracked
as §S15. M9: the accuracy baseline does not exist, so a minimal static-hint
detector is added to P0 scope.

Closed: S3, S7, S8, S9, S10, S11, S12, H7, H8, M9, R1-R4. S2 and S4 partially.
New: §S14 (pre-injection check 3 is inert), §S15, §S16 (which process the guard
scans -- nobody had said).

NOT DONE, DELIBERATELY

§S2's second half (the in-layer blocklist scan; the layer intercepts nothing at
all today, and vkQueuePresentKHR is not hooked until it lands), §S13(c)
(quantifying early-init loss needs a title that loads a presentation runtime
lazily), and the AMD/Intel signer strings (no such hardware; untested by
decision and labelled as such).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-02 22:12:59 +07:00
poli0981 31825cfccd feat(safety): close S5, and fix a fail-open in the documented driver scan
The guard work turned up a defect in a shipped doc that matters more than
the feature it was blocking, so that leads.

FAIL-OPEN IN THE HARD GATE

19_SAFETY §Pre-injection checks item 2 specified EnumDeviceDrivers to
detect machine-wide anti-cheat drivers such as Riot Vanguard's vgk.sys.
Measured on Windows 11 26300 as a standard user — which is the DEFAULT
Agent configuration under ADR-9 — and reproduced independently:

  EnumDeviceDrivers  ok=True  count=258
  non-null base addresses: 0
  distinct names recoverable: 1  ->  ntoskrnl.exe

The call succeeds. It reports 258 drivers. It then yields no usable base
address for any of them, so exactly one name comes back. A guard built on
it reports "no anti-cheat driver present" on a machine running Vanguard.

That is a fail-open in a gate the project describes as hard, in the
configuration most users will run. 14_TESTING already insists an empty
module list must never read as clean; nobody applied the same rule to
drivers, and this is what that looks like.

Replacement, measured on the same unelevated session:
NtQuerySystemInformation(SystemModuleInformation) returns STATUS_SUCCESS,
258 modules, 258 distinct full driver paths with real third-party names.
Corroborate with OpenServiceW/QueryServiceStatusEx, which also
distinguishes absent (1060) from denied — a distinction the guard needs,
since denied must fail closed while absent must not.

Recorded with its caveats rather than as a clean win: the API is
documented-as-unsupported and RTL_PROCESS_MODULE_INFORMATION is
version-sensitive. My own probe mis-computed the path offset by two bytes
("INDOWS\system32\..."), which is precisely the class of error that has to
fail closed instead of silently matching nothing.

S5 — CLOSED

rules/detection-rules.schema.json (JSON Schema 2020-12) now fixes the
shape and rules-validate enforces it. The seed gained what the 19_SAFETY
blocklist table needed and the abbreviated shape in 05_DETECTION could
not express: directories, services, files, and a heuristic block.

Test-Json FAILS OPEN on a malformed schema — on PowerShell 7.6.4,
-Schema '{' returns $true while writing a parse error to the error
stream. A truncated schema file would make every rules file "valid",
including one with an empty blocklist. So the validator proves the schema
discriminates before trusting it: a canary document that must fail is
checked first, and if the canary passes we refuse rather than report
success. Verified all three ways — seed passes, canary rejected, emptied
anticheat.modules now fails at schema level with a precise pointer.

Two families are still unrepresented as DATA and the seed says so in its
own comment: Activision Ricochet (names unconfirmed) and Valve VAC (needs
blockedStoreIds). heuristic.trustedSigners is a guess, marked UNVERIFIED.

Guard implementation is deliberately NOT in this commit — it depends on
an architecture decision that contradicts shipped docs (19_SAFETY:29 puts
the guard in FrameLedger.Injector; the layering in CLAUDE.md and the
testability requirements both argue for Application). That is the owner's
call, not mine to make silently.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>


Also records the guard-placement, clearance-chokepoint and launch-mode
decisions as 20_OPEN_QUESTIONS S13 — they each contradict something
already written down, so they belong in the repo rather than only in a PR
description nobody reads again.
2026-08-02 19:53:17 +07:00
poli0981andClaude Opus 5 5b61a20482 build: scaffold the repository the docs assume
Takes the project from docs-only to a state where the P0 spike can begin.
Everything here was verified to run, not just written.

Managed
  global.json pins the SDK band. Without it `dotnet --version` on this
  machine resolved to an 11.0 preview, which silently changes analyzer
  behaviour under TreatWarningsAsErrors and makes local and CI disagree
  for reasons invisible in a diff. Not mentioned in any doc; added to
  12_BUILD.

  TargetFramework net10.0-windows10.0.22621.0 with
  SupportedOSPlatformVersion 10.0.19045.0. The plan called for a 19041
  target, but the SDK rejects SupportedOSPlatformVersion above
  TargetPlatformVersion (NETSDK1135), and 19045 is not a targeting-pack
  version — the packs are cut at 19041/20348/22000/22621/26100.
  12_BUILD already requires the Windows 11 SDK >= 22621, so targeting it
  costs nothing while CA1416 still enforces the 22H2 floor from NFR-8.

  Solution is FrameLedger.slnx: the XML format is what `dotnet new sln`
  produces on .NET 10, and it diffs far better than the classic format.

  Six projects plus three test projects, wired to the dependency
  direction CLAUDE.md specifies. Builds warning-free under
  TreatWarningsAsErrors + AnalysisLevel=latest-all; the only analyzer
  suppressions are three WPF codegen constraints, scoped to
  src/FrameLedger.App and each explained in .editorconfig.

  Pinned SQLitePCLRaw forward: Microsoft.Data.Sqlite 10.0.10 resolves
  lib.e_sqlite3 2.1.11, which carries GHSA-2m69-gcr7-jv3q. The build
  failed on it, correctly.

  Pinned FluentAssertions to the 7.x line. 8.0.0 moved from Apache-2.0
  to Xceed's Community Licence, which is not OSI and carries
  field-of-use restrictions — exactly what 18_GPU_VENDOR_APIS's vendor
  checklist rejects. Dependabot is configured not to major-bump it.

Native
  fl_shm.h is the valuable artifact: the corrected four-region layout,
  with static_asserts on every size and offset. Compile-verified — all
  four structs are exactly 64 bytes with no implicit holes, and the
  mapping is 512 KiB + 192 B of header. fl-layout-dump emits those
  offsets as JSON for the C# mirror test to consume.

  /guard:cf and -D_HAS_EXCEPTIONS=0 are deliberately NOT applied to the
  Overlay target yet. Both are unresolved (20_OPEN_QUESTIONS H1, H3);
  applying them now would mean meeting the problem as a crash in a real
  game rather than as a decision.

  Not compiled: this machine has no MSVC C++ workload, so the CMake
  targets are unverified. The headers were checked with g++ instead.

Gates
  build.ps1 check runs the nine gates, and CI runs that same script.
  Gates skip loudly — the run ends "PASSED WITH N SKIPPED GATE(S)"
  rather than a clean pass, because a gate that silently passes because
  its tool is missing reads as "checked" when nothing was checked.

  license-check and rules-validate are real, and were proven red-green
  before being wired in: a planted IGCL header fails the licence gate,
  and an emptied anticheat.modules list (or a dropped BattlEye entry, or
  malformed JSON) fails the rules gate. A safety gate only ever observed
  passing has not been tested.

  Added a placeholder guard: any {{ token other than {{RELEASE_DATE}}
  surviving in README.md or legal/*.md fails the build. Those documents
  are displayed for acceptance under FR-11.

  rules/detection-rules.json is seeded with a non-empty anticheat block.
  An empty one is a fail-closed fixture, not a ship state.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-02 17:38:39 +07:00