Compare commits

...
Author SHA1 Message Date
poli0981andClaude Fable 5.1 c922663a84 docs: beta.4's notes named a cause they had no evidence for - corrected against Windows' own event logs
The owner reported that the external USB drive holding the Steam library had a loose cable on 2026-09-21. The System
and Application logs agree: disk resets and paging errors on that drive from 20:42, two restarts of the PC (20:57,
21:02), start_protected_game.exe and GF2_Exilium.exe both ending 0xc0000006 (in-page I/O error).

Withdrawn: the [0.1.0-beta.4] Updating note said an install over a running Agent had half-replaced the folder and
caused three failed starts. Nothing was installed between those failures and the start that worked; they are
unexplained. Corrected in place, and HANDOFF says it was a guess that got published.

Explained: the GF2 SafetyUnhook at 21:45 coincides with that game crashing on the failing drive.

Unchanged, with the evidence stated: TargetUnreadable (Easy Anti-Cheat's log says "successfully loaded in-game" the
second the resolver found a process it could not open), the two App instances at 21:07, the English safety texts.
FrameLedger injected nothing into ELDEN RING in any run.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 23:13:58 +07:00
poli0981andClaude Fable 5.1 dd3bf3634f release: 0.1.0-beta.4 - the CHANGELOG section, the accuracy block re-dated, README's release lines, HANDOFF; a wrong date corrected (#213)
CHANGELOG: [Unreleased] becomes [0.1.0-beta.4] - 2026-09-21 with a user-facing summary and the update notes (quit the
App and end the Agent before installing; the Disclaimer moved to 2.4; no schema change). The accuracy block and its two
embedded copies name 0.1.0-beta.4. HANDOFF gains decision D21 (a process an anti-cheat driver protects is
TargetUnreadable and the bypass stops there - rule 3, not rule 2), four things found and NOT fixed, and three traps.

#212 dated its comments and docs 2026-09-22; it was written and merged on 2026-09-21. Fourteen files corrected, dates
only. VERSION stays 0.1.0.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 22:46:20 +07:00
poli0981andClaude Fable 5.1 a670c26b0e fix: one App per data folder; safety texts follow the UI language; the bypass page says what is true; a protected process is TargetUnreadable (#212)
All four from the owner's installed beta.3 (a screenshot of ELDEN RING's page under the guard bypass, and the day's logs).

Single instance. Nothing stopped a second App: the log shows two started 360 ms apart - two shells, two tray icons, a
second log file, both writing one ledger. Services.SingleInstance claims the data folder in Program.Main (named mutex +
named event keyed on a hash of the folder, after Velopack's hooks, before any window); a later start sets the event and
exits 0, and the first brings its window forward through ShellHost.Reveal. --diag never claims.

Language. FrameLedger.Shared's Strings was never given the UI culture and fell back to the thread's, which the App's
async start does not pass on to later dispatcher work: a Vietnamese UI showed the consent dialog, the refusal notices
and the whole guard-bypass card in English. App.ApplyCulture sets both families.

The page. Under a bypass it printed "Hooking is disabled for this game: ..." beside a hooking switch that was on. The
finding stays and reads "The guard found: ... You chose to bypass it for this game".

The result. With the bypass on, ELDEN RING under Easy Anti-Cheat produced no session and a toast reading
"InjectFailed: TargetAmbiguous". The anti-cheat's driver closes the game's process to other programs; the resolver
could read no candidate and called that ambiguous. It is SessionEndReason.TargetUnreadable now, classified as a
refusal, and reaches the user as a persistent notice saying nothing was injected or measured, that the bypass does not
change this, and that FrameLedger will not work around another product's protection (rule 3; nothing here attempts
to). The bypass disclosure says so before it is accepted (guard-bypass-dialog/2) and so does DISCLAIMER 2A (2.3 -> 2.4).
The refusal notices no longer say "there is no way to override this".

Also: the Agent's session log line names what the guard said when it was not a plain allow - a SafetyUnhook on the
owner's machine left no trace of which finding fired.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 22:19:39 +07:00
poli0981andClaude Fable 5.1 a10b281074 release: 0.1.0-beta.3 - the CHANGELOG section, the accuracy block re-dated, README's release lines, HANDOFF's decisions and traps (#211)
CHANGELOG: [Unreleased] becomes [0.1.0-beta.3] - 2026-09-21 with a user-facing summary and the update notes (schema 7;
the Legal Gate re-opens; a Steam row created for the wrong executable is not rewritten). The accuracy block
(legal/ACCURACY.md and its two embedded copies) is dated 2026-09-21, names 0.1.0-beta.3 and says "beta" where it said
"pre-alpha". README's install line names the three pre-releases. HANDOFF gains what no other file carries: decisions
D18-D20 (the one guard override and its fixed shape; the derived DLSS preset still not shown; the bug bundle does not
get the machine's hardware), what the owner still owes, and the traps this train paid for. VERSION stays 0.1.0.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 19:44:59 +07:00
31 changed files with 631 additions and 31 deletions

No files matched your search

+96
View File
@@ -27,6 +27,102 @@ under a `## [x.y.z] - date` heading in the same commit that bumps `VERSION`, the
## [Unreleased]
### Changed
- **`0.1.0-beta.4`'s notes named a cause they had no evidence for, and are corrected in place** (see its *Updating*
section). The owner reported afterwards that the external USB drive holding the Steam library had a loose cable that
evening. Windows' System and Application logs for 2026-09-21 agree and re-date the day's symptoms: disk resets and
paging errors on that drive from 20:42; `start_protected_game.exe` (20:56) and `GF2_Exilium.exe` (21:45) both
ended with `0xc0000006`, an in-page I/O error — the drive, not FrameLedger, and **FrameLedger had injected nothing
into ELDEN RING in any run**; the Agent's "executable unreadable" for all 46 titles and the two pipe timeouts at
21:12–21:13 sit inside a burst of 30 disk errors. **What the drive does NOT explain, and beta.4's fixes stand on:**
Easy Anti-Cheat's own log says "successfully loaded in-game" for ELDEN RING at 21:29:28, the second the resolver
found a process it could not open (`TargetUnreadable`); the two App instances started 360 ms apart at 21:07; the
English safety texts and the contradictory line are in the screenshot itself.
## [0.1.0-beta.4] - 2026-09-21
**The fourth pre-release: four faults found in the first day of `0.1.0-beta.3`.** The same unsigned installer: verify
its hash against `SHA256SUMS.txt`, then *More info → Run anyway*. What changed for a user:
- **Only one FrameLedger window now.** Starting the App while it is already running (a double-click, or the shortcut
while it sits in the tray) brings the running one forward instead of opening a second one with a second tray icon.
- **The safety texts follow your language.** In a Vietnamese UI the consent dialog, the refusal notices and the
guard-bypass card were English.
- **The guard bypass is honest about what it cannot do.** A game whose anti-cheat protects its process (ELDEN RING
under Easy Anti-Cheat is one) cannot be opened by any other program, so FrameLedger cannot measure it with or without
the bypass, and it will not try to get around that protection. beta.3 showed nothing at all in that case; this build
shows a notice that says so, the bypass warning says it before you accept, and the game page no longer says
"Hooking is disabled" beside a hooking switch that is on.
**Updating from `0.1.0-beta.3`:**
- Quit the App (tray icon → Exit) and end `FrameLedger.Agent.exe` before running the installer.
> **Corrected the same evening.** This bullet went on to say that on 2026-09-21 "an install over a running Agent left
> a half-replaced folder and the App failed to start three times". **That cause was a guess and the logs do not
> support it**: nothing was installed between the three failed starts (20:59–21:01, `Could not load …
> Microsoft.Data.Sqlite`) and the start that worked at 21:02. What Windows' own event log shows for that hour is a
> failing external USB drive (the owner's report: a loose cable) and two restarts of the PC at 20:57 and 21:02. The
> three failed starts are **unexplained**; the advice to stop the Agent before installing stands on its own.
- The Disclaimer moved to 2.4 (one paragraph about the bypass), so the Legal Gate opens once.
- No schema change. A bypass you already accepted stays on; the new warning text is shown the next time you turn one on.
### Fixed
- **A second App could be started beside the first.** Nothing enforced one instance: the owner's log of 2026-09-21
shows two started 360 ms apart from one double-click — two windows, two tray icons, a second log file, both writing
one ledger — and with "minimize to tray" on, every click on the shortcut made another. The App now claims its data
folder at start (`Services.SingleInstance`, a named mutex and event keyed on the folder); a later start hands over to
the running one, which brings its window forward, and exits. `--diag` still runs beside a running App.
- **A Vietnamese (or Japanese) UI showed the safety texts in English** — the consent dialog, the refusal notices, and
the whole guard-bypass card in beta.3's screenshot. `FrameLedger.Shared`'s string family was never given the UI
culture and fell back to the thread's, which the App's async start does not pass to later dispatcher work.
`App.ApplyCulture` sets both families now. (Japanese safety text is still the English by design, until reviewed.)
- **Under the guard bypass the game page said "Hooking is disabled for this game: …" beside a hooking switch that was
on.** The finding stays on the page and now reads "The guard found: … You chose to bypass it for this game".
- **With the bypass on, a game protected by a kernel anti-cheat produced nothing at all** — no session, and a toast
reading `InjectFailed: TargetAmbiguous`. Measured on the owner's ELDEN RING (Easy Anti-Cheat): the anti-cheat's
driver closes the game's process to other programs, the resolver could read no candidate, and it called that
"ambiguous". It is `TargetUnreadable` now, and it reaches the user as a persistent notice that says what happened,
that nothing was injected or measured, and that **the bypass does not change this and FrameLedger will not work
around another product's protection** (rule 3). The bypass disclosure says the same before it is accepted (its
version is `guard-bypass-dialog/2`), and so does `legal/DISCLAIMER.md` §2A (2.3 -> **2.4**, so the Legal Gate opens
once). The same reason covers a game running as administrator while the Agent does not.
- The refusal notices said "there is no way to override this"; they name the per-game bypass switch and whose risk it is.
### Changed
- The Agent's session log line names what the guard said when it was not a plain allow
(`…; guard=BlockedService/Easy Anti-Cheat/EasyAntiCheat_EOS`), and `started-under-bypass=` for a bypassed start. A
`SafetyUnhook` on the owner's machine left no trace of WHICH finding fired; the pipe event carried it and the log,
which is what survives, did not.
## [0.1.0-beta.3] - 2026-09-21
**The third pre-release.** The same unsigned installer as before: verify its hash against `SHA256SUMS.txt`, then
*More info → Run anyway*. What changed for a user:
- **The terms changed, so the Legal Gate opens once after the update.** They now say plainly that this is beta
software with bugs, that your PC must meet each game's own minimum requirements, and what the new guard bypass means.
- **CPU load, system memory and (when the Agent runs as administrator with PawnIO) CPU temperature are recorded**, and a
game's Trend tab can chart them, the GPU's load and power, VRAM and the ×FG factor across that game's sessions.
Settings ▸ System shows this PC as FrameLedger records it.
- **DLSS is named.** Titles that call DLSS directly read "Unknown upscaler"; they now read "DLSS (driver-reported)"
where the NVIDIA driver reports it — including sessions you already recorded.
- **A game imported from Steam could never hook** when the import picked a helper executable instead of the game
(GIRLS' FRONTLINE 2 was one). The import picks the game now, and the game page shows the executable and can change it.
- **The platform and engine tags were blank white boxes in the light theme.** Fixed.
- **New, off by default, per game: "Bypass the anti-cheat guard (at your own risk)".** Read its warning. Your account
can be permanently banned, and the developers accept no responsibility if you turn it on.
**Updating from `0.1.0-beta.2`:**
- Quit the App (tray icon → Exit) before installing, as before.
- On its first start the ledger migrates to schema 7 (the guard-bypass columns; nothing existing is rewritten).
- **A game an earlier Steam import created for the wrong executable is not rewritten.** Open it, check the path under
its name, and use *Change executable…* (hooking is turned off for it and must be enabled again), or remove it.
- Sessions recorded before this version keep N/A for CPU load, memory and CPU temperature: nothing measured them.
### Fixed
- **DLSS read "Unknown upscaler" on most titles while FSR was named.** Most DLSS titles call NGX directly, and no NGX
+4 -4
View File
@@ -5,8 +5,8 @@
> No telemetry. No accounts. All data stays on your machine.
<!-- accuracy-block:begin -->
> ⚠ **What FrameLedger actually measures today — 2026-09-17.** The software is pre-alpha; its latest
> **pre-release is `0.1.0-beta.2`** (2026-09-17), an unsigned installer built from that tag with its
> ⚠ **What FrameLedger actually measures today — 2026-09-21.** The software is a beta; its latest
> **pre-release is `0.1.0-beta.4`** (2026-09-21), an unsigned installer built from that tag with its
> checksums published beside it. The source holds the desktop app
> (library, store import, charts, settings) and the background Agent, which records a session when a
> game in the library runs, injects only into games you enabled and only past the safety guard (or,
@@ -138,7 +138,7 @@ Elevation is **optional — for everything.** Hooked capture is the normal path
## Install
> **The latest pre-release is `v0.1.0-beta.2` (2026-09-17); the first was `v0.1.0-beta.1` (2026-09-16).** They are pre-releases: read `CHANGELOG.md`'s section for the one you install — what it measures, what it does not yet, and how to update — before installing. A source build is `docs/12_BUILD.md`.
> **The latest pre-release is `v0.1.0-beta.4` (2026-09-21); before it `v0.1.0-beta.3` (2026-09-21), `v0.1.0-beta.2` (2026-09-17) and `v0.1.0-beta.1` (2026-09-16).** They are pre-releases: read `CHANGELOG.md`'s section for the one you install — what it measures, what it does not yet, and how to update — before installing. A source build is `docs/12_BUILD.md`.
1. Download the latest `FrameLedger.App-win-Setup.exe` from [Releases](https://github.com/poli0981/frameledger/releases). It installs into `%LOCALAPPDATA%\FrameLedger.App`; your data stays in `%LOCALAPPDATA%\FrameLedger`, and uninstalling asks before touching it.
2. SmartScreen may warn — releases are not code-signed (free, open-source project). Verify the SHA-256 checksum published with each release, then **More info → Run anyway**.
@@ -166,4 +166,4 @@ If you find a game with anti-cheat that FrameLedger fails to detect, please open
---
**Status:** pre-release (beta). Three tagged pre-releases so far; see `CHANGELOG.md` for what each one changed and the accuracy block at the top of this file for what is and is not measured. It is not feature-complete, it certainly still has bugs, and `legal/DISCLAIMER.md` §0 says what that means for you.
**Status:** pre-release (beta). Four tagged pre-releases so far; see `CHANGELOG.md` for what each one changed and the accuracy block at the top of this file for what is and is not measured. It is not feature-complete, it certainly still has bugs, and `legal/DISCLAIMER.md` §0 says what that means for you.
+1 -1
View File
@@ -163,7 +163,7 @@ All screens are `Page`s registered with the navigation page provider and navigat
> fields), **the row's executable path under the subtitle and Change executable… since 2026-09-21** (a store import
> guesses the executable and everything downstream is keyed on it; the pick re-points the row, which comes back
> hooking-off and unconsented like a new game, consent revoked over the pipe first, a block never cleared —
> `05_DETECTION` §Library import), **the guard-bypass switch since 2026-09-21** (`19_SAFETY` §The user's bypass, FR-2.7: a `CardControl` with a `OneWay` toggle under the hooking card, its body text, and — while it is on — a non-closable **Error** `InfoBar` saying so; ON opens `GuardBypassPrompt`, a `ContentDialog` whose Danger primary button is enabled only while the acknowledgement is ticked AND `BYPASS` is typed, `DefaultButton = Close`; OFF needs no dialog; the switch shows the ROW, never the click; a blocked row's hooking toggle becomes usable while the bypass is on and the block's text stays on the page; a session that started under it reads "· Guard bypassed: <family>" in the list's exit column and carries an Error `InfoBar` in its summary), **Supports** (from `capability_flags`; ~~empty until P4's scan writes it, and the card says so~~ **written by the Agent's detection sweep since P4 PR-1, 2026-09-14** — the rule ids as product names via `CapabilityNames`, "not scanned yet" only until the Agent's next tick) beside
> `05_DETECTION` §Library import), **one App per data folder since 2026-09-21** (`Services.SingleInstance`: a named mutex and a named event keyed on a hash of the data directory, claimed in `Program.Main` after Velopack's hooks and before any window; a later start sets the event and exits 0, and the first instance brings its window forward through `ShellHost.Reveal` — from the tray too. Nothing stopped a second App before: the owner's log shows two started 360 ms apart, two tray icons, a second log file. `--diag` never claims), **the guard-bypass switch since 2026-09-21** (`19_SAFETY` §The user's bypass, FR-2.7: a `CardControl` with a `OneWay` toggle under the hooking card, its body text, and — while it is on — a non-closable **Error** `InfoBar` saying so; ON opens `GuardBypassPrompt`, a `ContentDialog` whose Danger primary button is enabled only while the acknowledgement is ticked AND `BYPASS` is typed, `DefaultButton = Close`; OFF needs no dialog; the switch shows the ROW, never the click; a blocked row's hooking toggle becomes usable while the bypass is on and the block's text stays on the page — as "The guard found: … You chose to bypass it", not as "Hooking is disabled for this game", which is what beta.3 printed beside a hooking switch that was ON; a session that started under it reads "· Guard bypassed: <family>" in the list's exit column and carries an Error `InfoBar` in its summary), **Supports** (from `capability_flags`; ~~empty until P4's scan writes it, and the card says so~~ **written by the Agent's detection sweep since P4 PR-1, 2026-09-14** — the rule ids as product names via `CapabilityNames`, "not scanned yet" only until the Agent's next tick) beside
> **Last session measured** (upscaler · resolution, frame generation, the non-N/A chips — accent pills, from the
> hooks). Hooking: the toggle is `OneWay` from the row and its command runs `HookingConsent`; a refusal, a
> mismatch or a failure is a persistent `InfoBar` on the page (never a toast); a blocked row disables the
+7
View File
@@ -2,6 +2,13 @@
Languages: **en** (neutral/default) · **vi** · **ja**. Same `.resx` pattern as the rest of the poli0981 portfolio.
> **Both string families are given the UI culture explicitly (2026-09-21).** `App.ApplyCulture` sets `Strings.Culture`
> AND `FrameLedger.Shared.Strings.Culture`. The second was missing: the safety family fell back to the thread's
> `CurrentUICulture`, and a culture set inside the App's async start flows with that async context, not to the
> dispatcher's later operations — so on an English Windows a Vietnamese UI showed the consent dialog, the refusal
> notices and the guard-bypass card in English. A resource accessor that depends on which thread asks is the defect;
> `StringsTests.ApplyingTheUiLanguageSetsTheSafetyFamilyToo` holds it with the thread deliberately left English.
## Mechanics
- One `Strings.resx` (+ `Strings.vi.resx`, `Strings.ja.resx`) per assembly that has user-visible text (`App`, `Shared` for error codes). Access through a generated strongly-typed class; **no string literals in XAML/C# for user-visible text** (analyzer TODO: Meziantou MA0011/manual review in PR checklist). **As built (P3 PR-2, 2026-09-13):** the class is `Strings.Designer.cs`, written by `tools/resx-gen.ps1 -Resx <file>` and **committed** — not the SDK's `ResXFileCodeGenerator`, which the SDK-style WPF project does not run — with `Culture`, `ResourceManager`, `Keys`, and one property per key; the audit below fails when it is stale. The first family is `src/FrameLedger.App/Strings.resx` (65 keys); `Shared`'s arrives with PR-4's `Safety_*` text, because an empty family is what the audit refuses.
+13
View File
@@ -374,6 +374,19 @@ The list exists twice — `fl::guard::IsGuardJudgement` and `AntiCheatVerdict.Is
3. The App writes nothing. It sends `SetGuardBypass` (`07_IPC`); the Agent refuses any disclosure version but its own (`GuardBypassDisclosure.Version`), re-reads the executable, and stamps `games.guard_bypass_at` + `guard_bypass_disclosure_version` (schema 0007) through `IGuardBypassStore` — a port of its own, so nothing that can grant consent can by the same call overrule the guard.
4. It enables nothing. Hooking is still its own switch and its own FR-2.1 dialog; with the bypass recorded, `SetHookEnabled` still runs the pre-scan and **still writes the finding** (`hook_blocked_reason` stays on the row and stays true) and then stamps the consent beside it, answering `prescan: "bypassed"`.
**What it cannot do, measured on its first real use (2026-09-21, the owner, ELDEN RING under Easy Anti-Cheat).** A
kernel anti-cheat does not only detect a loaded DLL; its driver strips other processes' handles to the game. From the
Agent that looks like this: the watcher sees the process (its image path is readable with limited rights), and
`TargetResolver` cannot read its main module — every candidate exists and none can be opened. That is
`SessionEndReason.TargetUnreadable` since 2026-09-21 (it was reported as `TargetAmbiguous`, "more than one process is
running it", about one process; reached the user as a toast reading `InjectFailed: TargetAmbiguous`; and the one-second
session was discarded for being short — so with the bypass ON the whole visible result was nothing). **The bypass does
not change this and nothing will be built that does**: it overrules FrameLedger's own refusal, and a process another
product's driver has closed to us stays closed — opening it anyway would be defeating that product, which is rule 3,
not rule 2. The user now gets a persistent notice that says so (`Safety_Refused_TargetUnreadable`), the bypass
disclosure says it before they accept (`GuardBypassDisclosure.Version` is `/2` for that sentence), and
`legal/DISCLAIMER.md` §2A says it. The same reason covers a game that runs as administrator while the Agent does not.
**How it ends.** Turning the switch off (no dialog needed to restore the guard); turning hooking off (`RevokeAsync` clears it — the row returns to its safest state); the executable changing (`HookRequest.FromConsent` drops it on a fingerprint mismatch exactly as it drops consent, and *Change executable…* clears the columns).
**During a session.** `GuardSupervisor` still scans every 30 s and the tick still counts — the Overlay's own stop is fed by it. A scan that refuses on a *judgement* is kept (`LastVerdict`), counted (`JudgementsOverruled`) and does not unhook: it is the refusal the user overruled, re-discovered. A refusal that is not a judgement still unhooks.
+76
View File
@@ -1356,6 +1356,82 @@ charts (6) after Games (5) because the summary opens from the Sessions tab; Sett
- **D17 — `FL_MOCK`, if the owner wants it, is `--serve --mock` under `--data-dir` only** (D6's shape), so a
synthetic session can never land in the profile's ledger.
## 0.1.0-beta.3 (2026-09-21) — what it decided, and the traps it paid for
*PRs #204-#210. Status is where status lives (`CHANGELOG.md` `[0.1.0-beta.3]`); this is only what no other file carries.*
**Decisions (owner, 2026-09-21).**
- **D18 — the guard has one override, and its shape is fixed.** Per game, off by default, never global, a two-act
disclosure stamped by the Agent, overruling the guard's JUDGEMENT only, never changing HOW FrameLedger injects.
`19_SAFETY` §The user's bypass is the specification and CLAUDE.md rule 2 carries it as a rule. The owner chose this
over a global switch and over a variant that kept kernel-level families refused. **Do not widen it**: no settings key,
no CLI verb (`--console` has none on purpose), no rules-file field. A Vulkan title the guard refuses stays refused.
- **D19 — the DLSS preset derived from the render scale is STILL not shown.** `Domain.Metrics.UpscalerNames` names the
measured byte only; §7a's decision stands open. The driver-reported rung reached the App, identity only.
- **D20 — the bug bundle does not get the machine's hardware.** `sysinfo.json`'s keys are the issue link's prefill;
`--diag` and Settings ▸ System (with Copy) carry it instead.
**Owed by the owner after this release.** `20_OPEN_QUESTIONS` M10 (one elevated session with PawnIO beside a reference
tool decides whether `cpu_temp` stays); a look at the light theme's pills, the bypass dialog and Settings ▸ System in the
running App — no FrameLedger binary was run against the owner's data folder in the session that built them; the ja
review of `Safety_Bypass_*`, which ships as English until signed.
**Traps.**
- **xUnit.net v3 4.x defaults to Microsoft Testing Platform v2.** `build.ps1` is VSTest-shaped (collector, `results.trx`);
the projects reference `xunit.v3.mtp-off`. Moving to MTP is a `build.ps1` change, never a version bump.
- **4.0.1's scheduler found a race 3.2.2 never did**: test classes that WRITE the static `Strings.Culture` must share
`StringsCultureCollection`. A new App test that sets the culture and is not in it will fail one run in N.
- **A bash heredoc mangles apostrophes and `\\`, even quoted.** Every patch script in this session that carried C#
verbatim strings, `\n` escapes or prose with `'` was written with the Write tool and run by path.
- **A WPF page property named `System` does not compile** — the generated `.g.cs` resolves `System.` against it.
- **NSubstitute: never build a substitute inside another's `Returns(...)`** (`CouldNotSetReturnDueToNoLastCall`).
- **Branch protection requires an up-to-date branch.** A small PR merged in the middle of a train puts every open PR
`BEHIND`; `gh pr update-branch N` and a second CI cycle is the price. Merge the train in order and keep side PRs out.
- **`guard_test.cpp`'s native-log test slept a fixed 1500 ms** and was read between two lines on a loaded runner; it
polls now. Record a flake on the PR BEFORE `gh run rerun --failed` erases it.
## 0.1.0-beta.4 (2026-09-21) — four faults from beta.3's first day
*Status is `CHANGELOG.md` `[0.1.0-beta.4]`; this is what no other file carries.*
**Decision (D21).** A process an anti-cheat driver protects is `TargetUnreadable`, and **the bypass stops there**: D18's
override overrules FrameLedger's own guard; it is not, and may not become, a way past another product's protection.
Any proposal to "make the bypass work on EAC titles" is rule 3, not rule 2 — refuse it.
**Found and NOT fixed — each needs its own PR.**
- **A refused session is not recorded, though the notice says it is.** `Notice_Refused_Recording` ("the session is still
recorded — duration and hardware telemetry") is appended to every refusal, and `CaptureSession` returns at the
refusal: the run lasts about a second and `SessionFinalizer` discards it as under the minimum length. CLAUDE.md's
Tier 2 ("duration + sensors + the reason") has no producer for a refusal. The new `TargetUnreadable` notice does not
make the claim; the older refusals still do.
- **A released Overlay logs its build as `v0.1.0-beta.3-dirty`**: the CI checkout is dirty by the time CMake runs
`git describe`. Both sides of the handshake compile the same string, so nothing breaks; it is a release that calls
itself dirty.
- ~~**An install over a running Agent half-replaces the folder** (three failed starts, `Microsoft.Data.Sqlite` not
found).~~ **A GUESS, WITHDRAWN the same evening, and it had already been published in beta.4's notes.** Nothing was
installed between the failures (20:59–21:01) and the start that worked (21:02); the PC had been restarted at 20:57
and was again at 21:02 (System log 1074), and the owner's external USB drive was failing all evening. The three
failed starts are UNEXPLAINED. What is still true and still unbuilt: `Setup.exe` run by hand does not stop the Agent,
and only the CHANGELOG says to.
- **A GF2 session ended `SafetyUnhook` 35 s in (2026-09-21 21:45) and nothing recorded which finding fired.** ~~read it
the next time it happens before guessing~~ **Mostly explained by the owner's report:** the game is on the failing
drive, `GF2_Exilium.exe` crashed at 21:45:50 with `0xc0000006` (in-page I/O error, Application log 1000/1005, eleven
Ntfs errors in that minute), and the Agent saved the session at 21:45:52. The 30 s re-scan reads the game's directory
(check 4) and the process; either failing is a refusal by design, so a dying drive reads as a safety unhook. **Open:**
that row says `UnhookedSafety` about a game Windows says crashed — whether a crash witness should outrank the unhook
in `ExitStatusMapper` is a decision, not a bug fix. The log line's new `guard=` detail will say which check it was.
- **Read Windows' event logs before attributing a symptom** (`Get-WinEvent` System: disk 51/153, UASPStor 129, Ntfs;
Application: 1000/1005). On 2026-09-21 the first pass published one cause that was wrong and left one 'unknown' that
those two logs answered in a minute.
**Traps.**
- **`CultureInfo.CurrentUICulture` set inside an `async` start does not reach later dispatcher operations.** A resource
accessor with no explicit `Culture` follows whichever thread asks. Give every string family its culture explicitly.
- **`TargetResolver` counts a process it cannot read, and zero readable + some unreadable is not "ambiguous".** A test
against a real protected process exists (`csrss.exe`); it needs no fixture and runs elevated or not.
- **`Mutex` is thread-affine**: `SingleInstance` is claimed and disposed on `Main`'s thread; its tests are synchronous
on purpose.
## Owner-only — no PR can close these
1. **§S23-2 — branch protection.** `Rules / validate` is not a required status check on
+2 -2
View File
@@ -11,8 +11,8 @@
that changes what FrameLedger.Overlay or the capture host does; date the change.
HTML comments are not part of the block.
-->
> ⚠ **What FrameLedger actually measures today — 2026-09-17.** The software is pre-alpha; its latest
> **pre-release is `0.1.0-beta.2`** (2026-09-17), an unsigned installer built from that tag with its
> ⚠ **What FrameLedger actually measures today — 2026-09-21.** The software is a beta; its latest
> **pre-release is `0.1.0-beta.4`** (2026-09-21), an unsigned installer built from that tag with its
> checksums published beside it. The source holds the desktop app
> (library, store import, charts, settings) and the background Agent, which records a session when a
> game in the library runs, injects only into games you enabled and only past the safety guard (or,
+8 -3
View File
@@ -1,6 +1,6 @@
# FrameLedger — Disclaimer
**Version:** 2.3 · **Effective:** {{RELEASE_DATE}}
**Version:** 2.4 · **Effective:** {{RELEASE_DATE}}
> **How this document is kept true.** The statement of what FrameLedger measures (§4) is `legal/ACCURACY.md`,
> embedded here and in `README.md` and bound to its source by `tools/accuracy-check.ps1`, which fails the build when a
@@ -89,6 +89,11 @@ software** — that is, in exactly the situation §2 says can get an account ban
found is still recorded; they simply no longer stop the injection or the running session for that game. FrameLedger
still does nothing to hide itself: it loads under its real name and is fully visible to the anti-cheat.
**It does not make FrameLedger work everywhere.** Several anti-cheat systems protect the game's process so that no
other program can open it. FrameLedger cannot measure such a game with or without the bypass, it says so when that
happens, and it will never try to get around another product's protection. Turning the bypass on for such a game
gains you nothing and still marks your intent to load software into it.
You can turn it on only by accepting a warning inside the application, by **both** ticking a statement and typing a
word. **BY TURNING IT ON YOU ACCEPT THE ENTIRE RISK YOURSELF.** The developer and the contributors accept **no
responsibility and no liability whatsoever** for anything that happens on your side as a result — including, without
@@ -111,8 +116,8 @@ Software running inside another process can, in principle, destabilize it. Frame
Frame timing is derived from high-resolution timestamps taken at the moment the game presents each frame; upscaling, frame-generation and ray-tracing state are read from the parameters the game passes to those APIs. This is substantially more accurate than inferring settings from files on disk, but **no measurement is guaranteed to be exact**:
<!-- accuracy-block:begin -->
> ⚠ **What FrameLedger actually measures today — 2026-09-17.** The software is pre-alpha; its latest
> **pre-release is `0.1.0-beta.2`** (2026-09-17), an unsigned installer built from that tag with its
> ⚠ **What FrameLedger actually measures today — 2026-09-21.** The software is a beta; its latest
> **pre-release is `0.1.0-beta.4`** (2026-09-21), an unsigned installer built from that tag with its
> checksums published beside it. The source holds the desktop app
> (library, store import, charts, settings) and the background Agent, which records a session when a
> game in the library runs, injects only into games you enabled and only past the safety guard (or,
+1 -1
View File
@@ -276,7 +276,7 @@ internal sealed class ConsoleVerbs(IServiceProvider services, AgentPaths paths)
return result.Reason switch
{
SessionEndReason.TargetExited or SessionEndReason.Running => _exitOk,
SessionEndReason.TargetNotRunning or SessionEndReason.TargetAmbiguous
SessionEndReason.TargetNotRunning or SessionEndReason.TargetAmbiguous or SessionEndReason.TargetUnreadable
or SessionEndReason.TargetCannotBePinned or SessionEndReason.LaunchCannotStart => _exitTargetNotResolved,
SessionEndReason.AttachRefused => _exitAttachRefused,
SessionEndReason.SafetyUnhook or SessionEndReason.SupervisionLost or SessionEndReason.KillSwitchEngaged
+22
View File
@@ -51,6 +51,9 @@ public partial class App : System.Windows.Application
private static string CrashDumper => Path.Combine(AppContext.BaseDirectory, "FrameLedger.Agent.exe");
private IHost? _host;
/// <summary>This process's claim on the data folder (<see cref="SingleInstance"/>); null under <c>--diag</c> and in tests.</summary>
internal SingleInstance? Instance { get; init; }
private LedgerDatabase? _db;
private Task? _run;
@@ -100,6 +103,19 @@ public partial class App : System.Windows.Application
_host = BuildHost(_db, appearance, registered, closePolicy);
await _host.StartAsync().ConfigureAwait(true);
Log.Information("ui: started ({Version}), ledger {Ledger}", UiIdentity.Version, UiPaths.Database);
// A second start of the App hands over to this one: bring the window forward, from the tray too.
if (Instance is not null)
{
// Captured HERE, on the dispatcher: the event arrives on a thread-pool thread and is posted back.
IHost host = _host;
var ui = new UiThread();
Instance.RevealRequested += (_, _) => ui.Post(() =>
{
Log.Information("ui: another start handed over to this instance; revealing the window");
host.Services.GetRequiredService<ShellHost>().Reveal();
});
}
await WaitForStopRequestAsync(_host).ConfigureAwait(true);
}
catch (Exception ex) when (ex is not OutOfMemoryException)
@@ -225,6 +241,12 @@ public partial class App : System.Windows.Application
CultureInfo.DefaultThreadCurrentUICulture = culture;
CultureInfo.CurrentUICulture = culture;
Strings.Culture = culture;
// THE SAFETY FAMILY TOO (2026-09-21). FrameLedger.Shared's Strings had no culture of its own and fell back to the
// thread's - and CurrentUICulture set inside this async start does not reach the dispatcher's later operations,
// so on an English Windows a Vietnamese UI showed the consent dialog, the refusal notices and the guard-bypass
// card in English (the owner's screenshot, beta.3). An explicit culture does not depend on which thread asks.
Shared.Strings.Culture = culture;
}
private static IHost BuildHost(LedgerDatabase db, AppearanceSettings appearance, RegisteredSettings registered, WindowClosePolicy closePolicy)
+21 -3
View File
@@ -1,3 +1,4 @@
using FrameLedger.App.Services;
using FrameLedger.App.Update;
using Velopack;
@@ -16,8 +17,25 @@ internal static class Program
private static int Main()
{
VelopackHooks.Configure(VelopackApp.Build()).Run();
var app = new App();
app.InitializeComponent();
return app.Run();
// One App per data folder (2026-09-21): a second start hands over to the first and exits. --diag opens no window
// and must work beside a running App, so it never claims.
SingleInstance? single = null;
try
{
if (!DiagReport.Requested(Environment.GetCommandLineArgs())
&& SingleInstance.TryClaim(SingleInstance.KeyOf(UiPaths.DataDirectory), out single) == SingleInstance.Claim.AnotherInstanceIsRunning)
{
return 0;
}
var app = new App { Instance = single };
app.InitializeComponent();
return app.Run();
}
finally
{
single?.Dispose();
}
}
}
+10 -1
View File
@@ -45,7 +45,11 @@ public sealed class SafetyNotices : IDisposable
case IpcMessageType.CaptureRefused when IpcCodec.Payload<CaptureRefusedEvent>(envelope) is { } refused:
return new SafetyNotice(SafetyNoticeKind.Refused,
string.Format(CultureInfo.CurrentCulture, Strings.Notice_Refused_Title_Format, refused.GameName ?? Strings.Common_NotAvailable),
RefusalText(refused.Reason, refused.Family, refused.Signal) + " " + Strings.Notice_Refused_Recording, now);
// "The session is still recorded" is not said about a process that could not be opened: that run ends at once
// and is discarded for being short, so the sentence would be false there (2026-09-21).
string.Equals(refused.Reason, "TargetUnreadable", StringComparison.Ordinal)
? RefusalText(refused.Reason, refused.Family, refused.Signal)
: RefusalText(refused.Reason, refused.Family, refused.Signal) + " " + Strings.Notice_Refused_Recording, now);
case IpcMessageType.SafetyUnhook when IpcCodec.Payload<SafetyUnhookEvent>(envelope) is { } unhooked:
return new SafetyNotice(SafetyNoticeKind.Unhooked, Strings.Notice_Unhooked_Title,
string.Format(CultureInfo.CurrentCulture, Shared.Strings.Safety_Unhooked_Format, unhooked.Family ?? unhooked.Signal ?? Strings.Common_NotAvailable), now);
@@ -64,6 +68,11 @@ public sealed class SafetyNotices : IDisposable
return Shared.Strings.Safety_Refused_CouldNotVerify;
}
if (string.Equals(reason, "TargetUnreadable", StringComparison.Ordinal))
{
return Shared.Strings.Safety_Refused_TargetUnreadable;
}
string? named = family ?? signal;
return named is null
? Shared.Strings.Safety_Refused_Unnamed
@@ -0,0 +1,146 @@
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace FrameLedger.App.Services;
/// <summary>
/// One App per data folder per Windows session (2026-09-21). Until this existed nothing stopped a second App: the
/// owner's log of 2026-09-21 shows two started 360 ms apart from one double-click — two shells, two tray icons, a
/// second log file (<c>ui-…_001.log</c>, because the first held the day's), both writing one ledger — and with
/// "minimize to tray" on, every click on the shortcut of an App that was already running made another.
/// </summary>
/// <remarks>
/// <para>
/// The first instance owns a named mutex and listens on a named event; a later one finds the mutex taken, sets the
/// event and exits, and the first brings its window forward (<see cref="ShellHost.Reveal"/>). Both names carry a hash
/// of the data directory, so an App pointed at another folder is its own instance — the same key the Agent's
/// one-per-data-folder rule uses (#201).
/// </para>
/// <para>
/// <c>Local\</c> on purpose: another Windows session is another desktop, and its user cannot be shown this window.
/// An instance started as administrator creates objects a standard-user instance may not open; that is still "an
/// instance is running", so every failure to open is answered as <see cref="Claim.AnotherInstanceIsRunning"/> —
/// the second App never starts just because it could not say so.
/// </para>
/// <para>
/// <c>--diag</c> never claims: it opens no window and must work beside a running App (<c>10_LOGGING</c>). Velopack's
/// lifecycle hooks run before this and exit the process on their own.
/// </para>
/// </remarks>
public sealed class SingleInstance : IDisposable
{
private readonly Mutex _mutex;
private readonly EventWaitHandle _reveal;
private readonly RegisteredWaitHandle _registration;
private bool _disposed;
private SingleInstance(Mutex mutex, EventWaitHandle reveal)
{
_mutex = mutex;
_reveal = reveal;
_registration = ThreadPool.RegisterWaitForSingleObject(reveal, (_, timedOut) =>
{
if (!timedOut)
{
RevealRequested?.Invoke(this, EventArgs.Empty);
}
}, null, Timeout.Infinite, executeOnlyOnce: false);
}
/// <summary>Raised on a thread-pool thread when another instance was started and handed over; the App marshals it.</summary>
public event EventHandler? RevealRequested;
/// <summary>What a start found.</summary>
public enum Claim
{
/// <summary>This is the instance; keep the returned object alive for the process's life.</summary>
Acquired,
/// <summary>Another instance owns the data folder; it was asked to show itself where that was possible.</summary>
AnotherInstanceIsRunning,
}
/// <summary>The object names for a data directory: a hash, because a path is not a legal kernel object name.</summary>
public static string KeyOf(string dataDirectory)
{
ArgumentException.ThrowIfNullOrWhiteSpace(dataDirectory);
byte[] hash = SHA256.HashData(Encoding.UTF8.GetBytes(dataDirectory.TrimEnd('\\', '/').ToUpperInvariant()));
return Convert.ToHexString(hash, 0, 8);
}
/// <summary>Claims the data folder, or tells the instance that already has it to show itself.</summary>
public static Claim TryClaim(string key, out SingleInstance? instance)
{
ArgumentException.ThrowIfNullOrWhiteSpace(key);
instance = null;
string mutexName = @"Local\FrameLedger.App." + key;
string eventName = @"Local\FrameLedger.App.Reveal." + key;
Mutex? mutex = null;
try
{
mutex = new Mutex(initiallyOwned: true, mutexName, out bool createdNew);
if (!createdNew)
{
mutex.Dispose();
SignalExisting(eventName);
return Claim.AnotherInstanceIsRunning;
}
var reveal = new EventWaitHandle(initialState: false, EventResetMode.AutoReset, eventName);
instance = new SingleInstance(mutex, reveal);
mutex = null;
return Claim.Acquired;
}
catch (Exception ex) when (ex is UnauthorizedAccessException or WaitHandleCannotBeOpenedException or IOException)
{
// The name exists and is not ours to open: an instance started as administrator. It is running.
return Claim.AnotherInstanceIsRunning;
}
finally
{
mutex?.Dispose();
}
}
public void Dispose()
{
if (_disposed)
{
return;
}
_disposed = true;
_ = _registration.Unregister(null);
_reveal.Dispose();
try
{
_mutex.ReleaseMutex();
}
catch (ApplicationException)
{
// Disposed on a thread other than the one that claimed it: the handle closing below releases it all the same.
}
_mutex.Dispose();
}
private static void SignalExisting(string eventName)
{
try
{
if (EventWaitHandle.TryOpenExisting(eventName, out EventWaitHandle? existing))
{
using (existing)
{
_ = existing.Set();
}
}
}
catch (Exception ex) when (ex is UnauthorizedAccessException or IOException)
{
// It is running and cannot be told; this process still must not become a second App.
}
}
}
@@ -625,7 +625,13 @@ public sealed partial class GameDetailViewModel : ObservableObject
// not refused, so the toggle works and the block's text stays on the page beside it.
HookToggleEnabled = (!blocked || GuardBypassOn) && !Busy;
HookStatusText = row.HookEnabled ? Strings.GameDetail_Hooking_On : Strings.GameDetail_Hooking_Off;
BlockedText = blocked ? string.Format(CultureInfo.CurrentCulture, Shared.Strings.Safety_Blocked_Toggle_Format, row.HookBlockedReason ?? row.HookPrescanState) : null;
// "Hooking is disabled for this game" beside a hooking switch that is ON was the beta.3 page under a bypass. The
// finding stays on the page - it is still true - and says what happened to it.
BlockedText = !blocked
? null
: string.Format(CultureInfo.CurrentCulture,
GuardBypassOn ? Shared.Strings.Safety_Bypass_Found_Overruled_Format : Shared.Strings.Safety_Blocked_Toggle_Format,
row.HookBlockedReason ?? row.HookPrescanState);
AutoDisabledText = row.HookAutoDisabledReason is { Length: > 0 } reason && !row.HookEnabled
? string.Format(CultureInfo.CurrentCulture, Shared.Strings.Safety_AutoDisabled_Format, reason)
: null;
@@ -142,4 +142,24 @@ public enum SessionEndReason
/// unhooked from here — <c>exit_status</c> is <c>normal</c>, and the row is stored like any other.
/// </summary>
StoppedByUser,
/// <summary>
/// The game IS running and its process cannot be opened: every candidate of that name refused to be read, and none
/// could be identified (2026-09-21). Two ordinary causes: an anti-cheat's kernel driver protects the process
/// (ELDEN RING under Easy Anti-Cheat, the owner's log of 2026-09-21), or the game runs as administrator and the
/// Agent does not. Nothing was injected, and nothing can be.
/// </summary>
/// <remarks>
/// <para>
/// It was reported as <see cref="TargetAmbiguous"/> until this existed — "more than one process is running it" about
/// a single process — and reached the user as a toast reading <c>InjectFailed: TargetAmbiguous</c>, while the
/// one-second session was discarded for being short. With the guard bypass on, that was the whole visible result.
/// </para>
/// <para>
/// <b>The guard bypass does not change it, and nothing will be built that does.</b> The bypass overrules
/// FrameLedger's own refusal; a process another product's driver has closed to us stays closed, and opening it
/// anyway would be defeating that product — CLAUDE.md rule 3.
/// </para>
/// </remarks>
TargetUnreadable,
}
@@ -37,7 +37,10 @@ public static class RecordedSessionEvents
public static Kind Classify(SessionEndReason reason) => reason switch
{
SessionEndReason.RefusedByGuard or SessionEndReason.RefusedPreviouslyBlocked
or SessionEndReason.PreScanCouldNotVerify or SessionEndReason.RefusedKillSwitch => Kind.Refused,
or SessionEndReason.PreScanCouldNotVerify or SessionEndReason.RefusedKillSwitch
// A persistent notice that says why, not a toast with a code: the user enabled hooking (perhaps the bypass
// too), started the game and would otherwise see nothing at all.
or SessionEndReason.TargetUnreadable => Kind.Refused,
SessionEndReason.SafetyUnhook => Kind.SafetyUnhook,
SessionEndReason.SupervisionLost or SessionEndReason.WriterSelfDisabled or SessionEndReason.WriterStoppedBlocklisted
or SessionEndReason.WriterNeverInstalledHooks or SessionEndReason.SupervisionFaulted
@@ -278,7 +278,24 @@ public sealed class CaptureOrchestrator
}
private void Report(RecordedSession r) =>
_log($"session {r.SessionGuid:N}: {r.Outcome.Reason}; {r.Finalize.Status} (tier {(int)r.Row.Tier}, exit={r.ExitStatus}, frames={r.Row.FrameCount})");
_log($"session {r.SessionGuid:N}: {r.Outcome.Reason}; {r.Finalize.Status} (tier {(int)r.Row.Tier}, exit={r.ExitStatus}, frames={r.Row.FrameCount}){GuardDetail(r.Outcome)}");
/// <summary>
/// What the guard said, when it said anything but a plain allow (2026-09-21). A SafetyUnhook on the owner's machine
/// left "SafetyUnhook; Saved" in this log and nothing about WHICH finding fired; the pipe event carried it and the
/// log is what survives.
/// </summary>
private static string GuardDetail(CaptureOutcome o)
{
Domain.AntiCheat.AntiCheatVerdict v = o.Verdict;
if (v.Reason == Domain.AntiCheat.AntiCheatRefusalReason.Allow && o.StartedUnderBypass is null)
{
return string.Empty;
}
string text = $"; guard={v.Reason}" + (v.Family.Length > 0 ? "/" + v.Family : string.Empty) + (v.Signal.Length > 0 ? "/" + v.Signal : string.Empty);
return o.StartedUnderBypass is { } under ? text + $"; started-under-bypass={under.Family}/{under.Signal}" : text;
}
private RecordRequest Attach(string normalisedExePath, string? gameName, Guid? sessionGuid, CancellationToken stop)
{
+1 -1
View File
@@ -253,7 +253,7 @@ internal static class Program
{
SessionEndReason.TargetExited => _exitOk,
SessionEndReason.Running => _exitOk,
SessionEndReason.TargetNotRunning or SessionEndReason.TargetAmbiguous
SessionEndReason.TargetNotRunning or SessionEndReason.TargetAmbiguous or SessionEndReason.TargetUnreadable
or SessionEndReason.TargetCannotBePinned or SessionEndReason.LaunchCannotStart => _exitTargetNotResolved,
SessionEndReason.AttachRefused => _exitAttachRefused,
SessionEndReason.SafetyUnhook or SessionEndReason.SupervisionLost
@@ -53,7 +53,9 @@ public sealed class TargetResolver : ITargetResolver
if (matches.Count == 0)
{
reason = unreadable > 0 ? SessionEndReason.TargetAmbiguous : SessionEndReason.TargetNotRunning;
// Candidates exist and NONE could be read: not an ambiguity between processes, a process closed to us
// (protected by an anti-cheat driver, or elevated). It used to be reported as TargetAmbiguous.
reason = unreadable > 0 ? SessionEndReason.TargetUnreadable : SessionEndReason.TargetNotRunning;
return null;
}
@@ -13,7 +13,9 @@ namespace FrameLedger.Shared.Safety;
/// </remarks>
public static class GuardBypassDisclosure
{
public const string Version = "guard-bypass-dialog/1";
// /2 (2026-09-21): the text now says what the bypass CANNOT do - a process an anti-cheat driver protects stays
// closed to FrameLedger, and nothing will be built to open it. A row stamped /1 keeps its bypass: that text was accepted.
public const string Version = "guard-bypass-dialog/2";
/// <summary>
/// What the user must type, exactly, before the dialog's primary button enables. Not localised on purpose: it is
+6
View File
@@ -33,6 +33,7 @@ public static class Strings
nameof(Safety_Bypass_Failed_Format),
nameof(Safety_Bypass_Found_Format),
nameof(Safety_Bypass_Found_Nothing),
nameof(Safety_Bypass_Found_Overruled_Format),
nameof(Safety_Bypass_Intro),
nameof(Safety_Bypass_KeepGuard),
nameof(Safety_Bypass_Liability),
@@ -61,6 +62,7 @@ public static class Strings
nameof(Safety_RecordWithoutMeasuring),
nameof(Safety_Refused_CouldNotVerify),
nameof(Safety_Refused_Named_Format),
nameof(Safety_Refused_TargetUnreadable),
nameof(Safety_Refused_Unnamed),
nameof(Safety_Unhooked_Format),
];
@@ -79,6 +81,8 @@ public static class Strings
public static string Safety_Bypass_Found_Nothing => ResourceManager.GetString(nameof(Safety_Bypass_Found_Nothing), Culture) ?? nameof(Safety_Bypass_Found_Nothing);
public static string Safety_Bypass_Found_Overruled_Format => ResourceManager.GetString(nameof(Safety_Bypass_Found_Overruled_Format), Culture) ?? nameof(Safety_Bypass_Found_Overruled_Format);
public static string Safety_Bypass_Intro => ResourceManager.GetString(nameof(Safety_Bypass_Intro), Culture) ?? nameof(Safety_Bypass_Intro);
public static string Safety_Bypass_KeepGuard => ResourceManager.GetString(nameof(Safety_Bypass_KeepGuard), Culture) ?? nameof(Safety_Bypass_KeepGuard);
@@ -135,6 +139,8 @@ public static class Strings
public static string Safety_Refused_Named_Format => ResourceManager.GetString(nameof(Safety_Refused_Named_Format), Culture) ?? nameof(Safety_Refused_Named_Format);
public static string Safety_Refused_TargetUnreadable => ResourceManager.GetString(nameof(Safety_Refused_TargetUnreadable), Culture) ?? nameof(Safety_Refused_TargetUnreadable);
public static string Safety_Refused_Unnamed => ResourceManager.GetString(nameof(Safety_Refused_Unnamed), Culture) ?? nameof(Safety_Refused_Unnamed);
public static string Safety_Unhooked_Format => ResourceManager.GetString(nameof(Safety_Unhooked_Format), Culture) ?? nameof(Safety_Unhooked_Format);
+5 -3
View File
@@ -27,15 +27,15 @@
<data name="Safety_Consent_VersionMismatch" xml:space="preserve"><value>This app and the capture agent carry different versions of this consent text. Nothing was enabled. Restart both, then try again.</value><comment>safety: human review required</comment></data>
<data name="Safety_RecordWithoutMeasuring" xml:space="preserve"><value>Record this session without measuring it</value><comment>safety: human review required</comment></data>
<data name="Safety_Refused_CouldNotVerify" xml:space="preserve"><value>FrameLedger could not verify this game's files for anti-cheat, so hooking stays off. It will check again when the game's files or the detection rules change.</value><comment>safety: human review required</comment></data>
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>{0} was detected in this game ({1}). FrameLedger will not inject into it, and there is no way to override this.</value><comment>safety: human review required</comment></data>
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>An anti-cheat or anti-tamper module was detected in this game. FrameLedger will not inject into it, and there is no way to override this.</value><comment>safety: human review required</comment></data>
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>{0} was detected in this game ({1}). FrameLedger will not inject into it. The only way past this is that game's own guard-bypass switch, which is off by default and entirely at your own risk.</value><comment>safety: human review required</comment></data>
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>An anti-cheat or anti-tamper module was detected in this game. FrameLedger will not inject into it. The only way past this is that game's own guard-bypass switch, which is off by default and entirely at your own risk.</value><comment>safety: human review required</comment></data>
<data name="Safety_Unhooked_Format" xml:space="preserve"><value>Capture stopped: {0} was detected while the game was running. FrameLedger unhooked and will not inject into this game again until you enable it again.</value><comment>safety: human review required</comment></data>
<data name="Safety_Bypass_Title_Format" xml:space="preserve">
<value>Bypass the anti-cheat guard for {0}?</value>
<comment>safety: human review required</comment>
</data>
<data name="Safety_Bypass_Intro" xml:space="preserve">
<value>FrameLedger refuses to inject into a game where it detects anti-cheat or anti-tamper software. This switch overrules that refusal for this one game. It is OFF by default, it applies to no other game, and you can turn it off again at any time.</value>
<value>FrameLedger refuses to inject into a game where it detects anti-cheat or anti-tamper software. This switch overrules that refusal for this one game. It is OFF by default, it applies to no other game, and you can turn it off again at any time. It cannot make FrameLedger work where an anti-cheat protects the game's process from being opened: such a game stays unmeasured, FrameLedger will not work around that protection, and you would carry the ban risk for nothing.</value>
<comment>safety: human review required</comment>
</data>
<data name="Safety_Bypass_Found_Format" xml:space="preserve">
@@ -98,4 +98,6 @@
<value>The bypass was not changed: {0}</value>
<comment>safety: human review required</comment>
</data>
<data name="Safety_Bypass_Found_Overruled_Format" xml:space="preserve"><value>The guard found: {0}. You chose to bypass it for this game, so hooking is allowed here at your own risk.</value><comment>safety: human review required</comment></data>
<data name="Safety_Refused_TargetUnreadable" xml:space="preserve"><value>The game is running, but Windows would not let FrameLedger open its process: it is protected by an anti-cheat driver, or it runs as administrator while FrameLedger does not. Nothing was injected and this run was not measured. The guard bypass does not change this, and FrameLedger will not work around another product's protection.</value><comment>safety: human review required</comment></data>
</root>
+5 -3
View File
@@ -30,14 +30,14 @@
<data name="Safety_Consent_VersionMismatch" xml:space="preserve"><value>This app and the capture agent carry different versions of this consent text. Nothing was enabled. Restart both, then try again.</value></data>
<data name="Safety_RecordWithoutMeasuring" xml:space="preserve"><value>Record this session without measuring it</value></data>
<data name="Safety_Refused_CouldNotVerify" xml:space="preserve"><value>FrameLedger could not verify this game's files for anti-cheat, so hooking stays off. It will check again when the game's files or the detection rules change.</value></data>
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>{0} was detected in this game ({1}). FrameLedger will not inject into it, and there is no way to override this.</value></data>
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>An anti-cheat or anti-tamper module was detected in this game. FrameLedger will not inject into it, and there is no way to override this.</value></data>
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>{0} was detected in this game ({1}). FrameLedger will not inject into it. The only way past this is that game's own guard-bypass switch, which is off by default and entirely at your own risk.</value></data>
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>An anti-cheat or anti-tamper module was detected in this game. FrameLedger will not inject into it. The only way past this is that game's own guard-bypass switch, which is off by default and entirely at your own risk.</value></data>
<data name="Safety_Unhooked_Format" xml:space="preserve"><value>Capture stopped: {0} was detected while the game was running. FrameLedger unhooked and will not inject into this game again until you enable it again.</value></data>
<data name="Safety_Bypass_Title_Format" xml:space="preserve">
<value>Bypass the anti-cheat guard for {0}?</value>
</data>
<data name="Safety_Bypass_Intro" xml:space="preserve">
<value>FrameLedger refuses to inject into a game where it detects anti-cheat or anti-tamper software. This switch overrules that refusal for this one game. It is OFF by default, it applies to no other game, and you can turn it off again at any time.</value>
<value>FrameLedger refuses to inject into a game where it detects anti-cheat or anti-tamper software. This switch overrules that refusal for this one game. It is OFF by default, it applies to no other game, and you can turn it off again at any time. It cannot make FrameLedger work where an anti-cheat protects the game's process from being opened: such a game stays unmeasured, FrameLedger will not work around that protection, and you would carry the ban risk for nothing.</value>
</data>
<data name="Safety_Bypass_Found_Format" xml:space="preserve">
<value>What the guard found for this game: {0}</value>
@@ -84,4 +84,6 @@
<data name="Safety_Bypass_Failed_Format" xml:space="preserve">
<value>The bypass was not changed: {0}</value>
</data>
<data name="Safety_Bypass_Found_Overruled_Format" xml:space="preserve"><value>The guard found: {0}. You chose to bypass it for this game, so hooking is allowed here at your own risk.</value></data>
<data name="Safety_Refused_TargetUnreadable" xml:space="preserve"><value>The game is running, but Windows would not let FrameLedger open its process: it is protected by an anti-cheat driver, or it runs as administrator while FrameLedger does not. Nothing was injected and this run was not measured. The guard bypass does not change this, and FrameLedger will not work around another product's protection.</value></data>
</root>
+5 -3
View File
@@ -26,14 +26,14 @@
<data name="Safety_Consent_VersionMismatch" xml:space="preserve"><value>Ứng dụng này và capture agent mang hai phiên bản khác nhau của văn bản đồng ý này. Chưa bật gì cả. Hãy khởi động lại cả hai rồi thử lại.</value></data>
<data name="Safety_RecordWithoutMeasuring" xml:space="preserve"><value>Ghi phiên này mà không đo</value></data>
<data name="Safety_Refused_CouldNotVerify" xml:space="preserve"><value>FrameLedger không thể kiểm tra các tệp của game này về anti-cheat, nên hooking vẫn tắt. Nó sẽ kiểm tra lại khi tệp của game hoặc bộ quy tắc phát hiện thay đổi.</value></data>
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>Đã phát hiện {0} trong game này ({1}). FrameLedger sẽ không inject vào game này, và không có cách nào để bỏ qua điều đó.</value></data>
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>Đã phát hiện một mô-đun anti-cheat hoặc anti-tamper trong game này. FrameLedger sẽ không inject vào game này, và không có cách nào để bỏ qua điều đó.</value></data>
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>Đã phát hiện {0} trong game này ({1}). FrameLedger sẽ không inject vào game này. Cách duy nhất để vượt qua là công tắc "Bỏ qua Guard" của riêng game đó, mặc định tắt và bạn hoàn toàn tự chịu rủi ro.</value></data>
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>Đã phát hiện một mô-đun anti-cheat hoặc anti-tamper trong game này. FrameLedger sẽ không inject vào game này. Cách duy nhất để vượt qua là công tắc "Bỏ qua Guard" của riêng game đó, mặc định tắt và bạn hoàn toàn tự chịu rủi ro.</value></data>
<data name="Safety_Unhooked_Format" xml:space="preserve"><value>Đã dừng thu thập: phát hiện {0} khi game đang chạy. FrameLedger đã gỡ hook và sẽ không inject vào game này nữa cho đến khi bạn bật lại.</value></data>
<data name="Safety_Bypass_Title_Format" xml:space="preserve">
<value>Bỏ qua Guard chống gian lận cho {0}?</value>
</data>
<data name="Safety_Bypass_Intro" xml:space="preserve">
<value>FrameLedger từ chối inject vào game mà nó phát hiện có phần mềm chống gian lận (anti-cheat) hoặc chống can thiệp (anti-tamper). Công tắc này bỏ qua sự từ chối đó cho riêng game này. Mặc định là TẮT, không áp dụng cho game nào khác, và bạn có thể tắt lại bất cứ lúc nào.</value>
<value>FrameLedger từ chối inject vào game mà nó phát hiện có phần mềm chống gian lận (anti-cheat) hoặc chống can thiệp (anti-tamper). Công tắc này bỏ qua sự từ chối đó cho riêng game này. Mặc định là TẮT, không áp dụng cho game nào khác, và bạn có thể tắt lại bất cứ lúc nào. Nó không thể khiến FrameLedger hoạt động ở nơi anti-cheat bảo vệ tiến trình game không cho mở: game như vậy vẫn không đo được, FrameLedger sẽ không tìm cách vượt qua cơ chế bảo vệ đó, và bạn sẽ chịu rủi ro bị khoá tài khoản mà không được gì.</value>
</data>
<data name="Safety_Bypass_Found_Format" xml:space="preserve">
<value>Guard đã phát hiện ở game này: {0}</value>
@@ -80,4 +80,6 @@
<data name="Safety_Bypass_Failed_Format" xml:space="preserve">
<value>Chế độ bỏ qua không thay đổi: {0}</value>
</data>
<data name="Safety_Bypass_Found_Overruled_Format" xml:space="preserve"><value>Guard đã phát hiện: {0}. Bạn đã chọn bỏ qua cho game này, nên hooking được phép ở đây và bạn tự chịu rủi ro.</value></data>
<data name="Safety_Refused_TargetUnreadable" xml:space="preserve"><value>Game đang chạy, nhưng Windows không cho FrameLedger mở tiến trình của nó: tiến trình được driver anti-cheat bảo vệ, hoặc game chạy với quyền quản trị còn FrameLedger thì không. Không có gì được inject và lần chạy này không được đo. Chế độ bỏ qua Guard không thay đổi điều này, và FrameLedger sẽ không tìm cách vượt qua cơ chế bảo vệ của sản phẩm khác.</value></data>
</root>
@@ -447,6 +447,10 @@ public sealed class GameDetailViewModelTests
vm.GuardBypassOn.Should().BeTrue();
vm.HookToggleEnabled.Should().BeTrue("under the bypass enabling is no longer refused, so the toggle works");
vm.BlockedText.Should().NotBeNull("the block stays on the page: the finding is still true");
vm.BlockedText.Should().Contain("Easy Anti-Cheat");
vm.BlockedText.Should().NotStartWith(Shared.Strings.Safety_Blocked_Toggle_Format.Split('{')[0],
"beta.3 said 'Hooking is disabled for this game' beside a hooking switch that was ON");
vm.BlockedText.Should().StartWith(Shared.Strings.Safety_Bypass_Found_Overruled_Format.Split('{')[0]);
vm.ToggleGuardBypassCommand.Execute(null);
Task pending = vm.Pending;
@@ -115,7 +115,7 @@ public sealed class HookingConsentTests
HookingConsentResult refused = await consent.EnableAsync(7, "Title", Ct);
refused.Outcome.Should().Be(HookingConsentOutcome.Refused);
refused.Refusal!.Signal.Should().Be("EasyAntiCheat_EOS.dll");
refused.RefusalText().Should().Contain("eac").And.Contain("EasyAntiCheat_EOS.dll").And.Contain("no way to override");
refused.RefusalText().Should().Contain("eac").And.Contain("EasyAntiCheat_EOS.dll").And.Contain("guard-bypass switch", "the refusal names the one way past it, and whose risk that is (2026-09-21; it said \"no way to override\" until the bypass existed)");
agent.Answer = static _ => Ack(IpcMessageType.Refused, new RefusedAck(7, "PreScanCouldNotVerify", null, null));
(await consent.EnableAsync(7, "Title", Ct)).RefusalText().Should().Be(Shared.Strings.Safety_Refused_CouldNotVerify);
@@ -29,6 +29,29 @@ public sealed class SafetyNoticesTests
strip.Shown.Should().BeEmpty("never a toast, never a snackbar");
}
/// <summary>
/// 2026-09-21: a game whose process an anti-cheat driver protects (ELDEN RING under EAC, with the guard bypass on)
/// reached the user as a toast reading "InjectFailed: TargetAmbiguous" and no session. It is a persistent notice that
/// says why and that the bypass does not change it - and it does NOT claim the session is still recorded, because
/// that run ends at once and is discarded.
/// </summary>
[Fact]
public void AProcessThatCannotBeOpenedIsAPersistentNoticeThatSaysWhyAndPromisesNoRecording()
{
var link = new FakeAgentLink();
var strip = new RecordingStrip();
using var notices = new SafetyNotices(link, strip);
link.Raise(IpcMessageType.CaptureRefused, new CaptureRefusedEvent(7, "ELDEN RING", "TargetUnreadable", null, null));
SafetyNotice notice = notices.Items.Should().ContainSingle().Subject;
notice.Kind.Should().Be(SafetyNoticeKind.Refused);
notice.Title.Should().Contain("ELDEN RING");
notice.Body.Should().Be(Shared.Strings.Safety_Refused_TargetUnreadable);
notice.Body.Should().NotContain(Strings.Notice_Refused_Recording);
strip.Shown.Should().BeEmpty("never a toast");
}
[Fact]
public void ACouldNotVerifyRefusalUsesItsOwnSentence()
{
@@ -0,0 +1,69 @@
using FluentAssertions;
using FrameLedger.App.Services;
namespace FrameLedger.App.Tests;
/// <summary>
/// One App per data folder (2026-09-21): the owner's log showed two started 360 ms apart, each with a shell and a tray
/// icon. The first claim wins; a later one is told so, asks the first to show itself, and must not start; and the
/// claim ends with the process that holds it.
/// </summary>
public sealed class SingleInstanceTests
{
private static string UniqueKey() => SingleInstance.KeyOf(@"C:\fl-tests\" + Guid.NewGuid().ToString("N"));
[Fact]
public void TheFirstStartClaimsTheFolderAndALaterOneHandsOverAndIsRefused()
{
string key = UniqueKey();
SingleInstance.TryClaim(key, out SingleInstance? first).Should().Be(SingleInstance.Claim.Acquired);
using (first)
{
first.Should().NotBeNull();
using var revealed = new ManualResetEventSlim(false);
first!.RevealRequested += (_, _) => revealed.Set();
SingleInstance.Claim later = SingleInstance.TryClaim(key, out SingleInstance? second);
using (second)
{
later.Should().Be(SingleInstance.Claim.AnotherInstanceIsRunning);
second.Should().BeNull("the second start gets nothing to hold: it exits");
}
revealed.Wait(TimeSpan.FromSeconds(5), TestContext.Current.CancellationToken).Should().BeTrue("the running instance is asked to bring its window forward");
// And again: the event is not one-shot, because the user can click the shortcut any number of times.
revealed.Reset();
SingleInstance.Claim third = SingleInstance.TryClaim(key, out SingleInstance? none);
none?.Dispose();
third.Should().Be(SingleInstance.Claim.AnotherInstanceIsRunning);
revealed.Wait(TimeSpan.FromSeconds(5), TestContext.Current.CancellationToken).Should().BeTrue();
}
}
[Fact]
public void TheClaimEndsWithItsHolderAndAnotherFolderIsAnotherInstance()
{
string key = UniqueKey();
SingleInstance.TryClaim(key, out SingleInstance? first).Should().Be(SingleInstance.Claim.Acquired);
first!.Dispose();
first.Dispose();
SingleInstance.TryClaim(key, out SingleInstance? again).Should().Be(SingleInstance.Claim.Acquired, "the App that held it has exited");
using (again)
{
SingleInstance.TryClaim(UniqueKey(), out SingleInstance? elsewhere).Should().Be(SingleInstance.Claim.Acquired, "an App pointed at another data folder is its own instance");
elsewhere!.Dispose();
}
}
[Fact]
public void TheKeyIsTheFolderWhateverItsCaseOrTrailingSeparator()
{
string key = SingleInstance.KeyOf(@"C:\Users\someone\AppData\Local\FrameLedger");
SingleInstance.KeyOf(@"c:\users\SOMEONE\appdata\local\frameledger\").Should().Be(key);
SingleInstance.KeyOf(@"C:\Users\someone\AppData\Local\Other").Should().NotBe(key);
key.Should().MatchRegex("^[0-9A-F]{16}$", "a path is not a legal kernel object name; a hash is");
}
}
@@ -64,6 +64,38 @@ public sealed class StringsTests
}
}
/// <summary>
/// The owner's beta.3 screenshot: a Vietnamese UI whose guard-bypass card, consent dialog and refusal notices were
/// English. FrameLedger.Shared's Strings had no culture of its own, and the thread culture set during the async
/// start does not reach the dispatcher's later operations. <c>ApplyCulture</c> sets BOTH families explicitly.
/// </summary>
[Fact]
public void ApplyingTheUiLanguageSetsTheSafetyFamilyToo()
{
CultureInfo? app = Strings.Culture;
CultureInfo? safety = Shared.Strings.Culture;
CultureInfo thread = CultureInfo.CurrentUICulture;
CultureInfo? threadDefault = CultureInfo.DefaultThreadCurrentUICulture;
try
{
App.ApplyCulture("vi");
// The thread's culture is put back to English ON PURPOSE: the explicit culture must not depend on it.
CultureInfo.CurrentUICulture = CultureInfo.GetCultureInfo("en");
Shared.Strings.Culture.Should().Be(CultureInfo.GetCultureInfo("vi"));
Shared.Strings.Safety_Bypass_Toggle_Label.Should().StartWith("Bỏ qua Guard");
Shared.Strings.Safety_Blocked_Toggle_Format.Should().StartWith("Hooking bị vô hiệu hoá");
Strings.Nav_Settings.Should().Be("Cài đặt");
}
finally
{
Strings.Culture = app;
Shared.Strings.Culture = safety;
CultureInfo.CurrentUICulture = thread;
CultureInfo.DefaultThreadCurrentUICulture = threadDefault;
}
}
private static string RepoRoot()
{
string? dir = AppContext.BaseDirectory;
@@ -33,6 +33,7 @@ public sealed class RecordedSessionEventsTests
[InlineData(SessionEndReason.AttachRefused, RecordedSessionEvents.Kind.AttachError)]
[InlineData(SessionEndReason.LaunchCannotStart, RecordedSessionEvents.Kind.TargetError)]
[InlineData(SessionEndReason.TargetAmbiguous, RecordedSessionEvents.Kind.TargetError)]
[InlineData(SessionEndReason.TargetUnreadable, RecordedSessionEvents.Kind.Refused)]
[InlineData(SessionEndReason.TargetNotRunning, RecordedSessionEvents.Kind.TargetError)]
[InlineData(SessionEndReason.TargetExited, RecordedSessionEvents.Kind.None)]
[InlineData(SessionEndReason.RefusedHookNotEnabled, RecordedSessionEvents.Kind.None)]
@@ -99,6 +99,23 @@ public sealed class TargetResolverTests : IDisposable
return new TargetResolver().Resolve(ExecutableIdentity.Normalise(_exe), out reason);
}
/// <summary>
/// 2026-09-21, against a real process Windows will not let anybody open: <c>csrss.exe</c> is a protected process, which
/// is what a game under a kernel anti-cheat looks like from here (ELDEN RING under Easy Anti-Cheat, the owner's log).
/// Every candidate of the name exists and none can be read. That is NOT "more than one process is running it" - the
/// answer this gave until now - and no pid comes back, so nothing is ever injected on a guess.
/// </summary>
[Fact]
public void AProcessThatCannotBeOpenedIsUnreadableNotAmbiguousAndIsNeverPicked()
{
string csrss = Path.Combine(Environment.SystemDirectory, "csrss.exe");
int? pid = new TargetResolver().Resolve(ExecutableIdentity.Normalise(csrss), out SessionEndReason reason);
pid.Should().BeNull();
reason.Should().Be(SessionEndReason.TargetUnreadable);
}
[Fact]
public void OneInstanceResolves()
{