Compare commits

...
3 Commits
Author SHA1 Message Date
poli0981andClaude Fable 5.2 b7d655078c release: 0.1.0-beta.38 - its changelog file (the App opens web and mail links only; Qodana Ultimate in two reports), HANDOFF's beta.38 section with the next work - the owner's "Thông số nâng cao" - owner-only item 36, the release lines (Qodana PR-3) (#386)
The documents of 0.1.0-beta.38, cut from [Unreleased] as it stood:

- docs/changelog/0.1.0-beta.38.md: what the release is for its user - one hardening, the link opener refusing
  anything but http, https and mailto, and nothing else seen, recorded or measured changing - then the entries of
  #384 and #385, moved verbatim. CHANGELOG.md's [Unreleased] is empty and the table has its row.
- The release lines: README, legal/ACCURACY.md and its two copies, LIMITATIONS.md, ACCESSIBILITY.md.
- docs/HANDOFF.md: START HERE is beta.38's. It opens with the NEXT work, in the owner's own words (2026-11-11, sent
  while this session was running): a setting "Thông số nâng cao" with a navigation item of its own, showing all the
  Streamline, NVAPI and PawnIO headers can give - recorded, not designed: it starts with a plan. Then what this
  session left open: LogNoteW (dead code in the Overlay, the owner's call), this release's own facts, the Qodana
  licence, C# 15's constructs, the resting alpha line. Owner-only item 36.
- docs/handoff/history/0.1.0-beta.37.md: the START HERE it replaces, moved whole - the plan's three parts, D94-D100.

No code changes. The legal texts keep their versions; the ledger stays at schema 22 and the rules at 2026.11.2. No
alpha follows: the alpha line rests (D98).

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 02:41:59 +00:00
poli0981andClaude Fable 5.2 4fbc14e698 ci: Qodana reads the C++ as a second report - a Visual Studio solution CMake writes, the job native, fifty-four .editorconfig lines each with its reason, eleven small fixes, nothing changed in code loaded into a game (Qodana PR-2, D99/D100) (#385)
The second of two pull requests. Qodana for .NET - whose C++ is ReSharper C++ - is the only linter of JetBrains' that
can read this code: it is MSVC-only, and qodana-cpp and qodana-clang are Linux images. It reads C++ through a Visual
Studio solution, and src/native is a CMake tree, so the job has CMake write one.

The job
- src/native/CMakePresets.json: the preset x64-vs-analysis (generator "Visual Studio 18 2026", tests and tools on).
  Nothing ships from it, and the gate and the release never use it.
- qodana-native.yaml: the solution, RelWithDebInfo and x64; the build tree, third_party, the vendor stubs and a
  compiled shader left out by path; a gate of zero.
- qodana.yml: the job `native` - configure, build the one target whose output is a header (the blocklist floor), then
  the action with --config qodana-native.yaml. Its own results folder, cache keys, artifact (qodana-report-native)
  and Qodana Cloud project (frameledger-cpp, QODANA_TOKEN_NATIVE). No comment and no annotations: the pull request's
  are the managed job's. Advisory.

What its first run reported, and what was done (docs/13_CI_CD.md, section Qodana)
- 4,695 problems, 4,040 of them hints (off, as on the managed side). Of the 655 left, 494 are distinct: a file
  compiled into three targets is reported three times.
- Off in .editorconfig, each with its reason - every clang-tidy check and clang diagnostic the engine runs has a key
  of ReSharper's, so no .clang-tidy file is added:
  278 a choice this code made (struct padding, MSVC's keywords, a function pointer got by name cast to its type,
      "can be const / constexpr / static", an #include of what the file uses);
   53 a newer idiom proposed for working code;
   25 the engine misreading std::atomic_ref, zero-initialised API structures and tests of constexpr functions;
   25 fields nothing names in structures Windows defines (four files);
   19 %lu with NvU32 in one probe - unsigned int only under clang, the linter's compiler;
   78 what a probe or a test does on purpose (tools and tests);
    7 in code loaded into a game, kept as it is.
- Fixed, 11, none changing what a shipped binary does: std::size for four hand-written array lengths; two
  multiplications done in a narrower type than their result (a constant in the guard's sources, a test); two unused
  member functions, an unused type alias and two unused includes in the tests and the probes.

Code loaded into a game - the Overlay, the Vulkan layer, the shared-memory headers, the guard's rule matcher - is not
changed (D100: there only a defect is fixed, and the report found none). One thing there is not as it should be and
is RECORDED, not removed: dllmain.cpp's LogNoteW, which nothing calls. .editorconfig leaves that one file unread for
an unused function, in a section that says to remove it with the function; whether it goes is the owner's call
(HANDOFF).

"Zero" proved to mean "analysed": a branch that put back three of the things fixed here was reported with exactly
those three, by the inspections that had found them (run 42942390715).

Runs on this branch: 42942068024 (one problem left: LogNoteW), 42943094415 (none).

Docs: 13_CI_CD (the native report), 12_BUILD (the preset), CLAUDE.md (the layout, the C++ conventions), HANDOFF,
wiki/Releasing, CHANGELOG.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 02:27:27 +00:00
poli0981andClaude Fable 5.2 7cd933f62d ci: Qodana for .NET on the Ultimate licence reads the managed code - native on Windows, hints off, every process start read, ShellUrlOpener opens web and mail links only (Qodana PR-1, D99/D100) (#384)
The owner took an Ultimate licence for the Qodana Cloud organisation and asked for Qodana over every language. This is
the first of two pull requests: the existing job moves to Qodana for .NET (Rider's engine) and what it reports over the
managed code is settled. The C++ is the next one's, as a second report.

The job
- qodana.yaml: linter qodana-dotnet, withinDocker false (native mode on the job's Windows runner, the SDK from
  global.json; no container, no EnableWindowsTargeting, no bootstrap line). Everything a run needs is in the file.
- qodana.yml: the job is `managed` (Qodana (managed)), on windows-latest - checkout, setup-dotnet, the NuGet cache
  restored, dotnet build -c Release, then the action pinned by commit. Still advisory, still a gate of zero.

What its first run reported, and what was done (docs/13_CI_CD.md, section Qodana, has each)
- 3,953 problems, 3,607 of them hints - the level an editor offers without underlining anything; the Community linter
  never reported them. Hints are off as a severity (one group in qodana.yaml). 347 left.
- 271: a vi or ja value equal to the English one - off in .editorconfig for .resx (names, units, format strings).
- 23 + 10: two Markdown inspections (table padding; anchors computed otherwise than GitHub does) off in qodana.yaml;
  the application manifest's XML ignored for XmlHighlighting.
- 6 in PrimaryDisplay.cs are the linter's own fault (an internal assertion, in its log); two inspections are excluded
  for that file, and the file is as it was.
- 1 fixed: a test expression that carried a clause its first half implied.
- 36 from JetBrains' security rules: 35 process starts and 1 SQL text. Each was read - what it starts, where the path
  and the arguments come from (a table in the docs). None takes a value from outside the PC, except the game the user
  added. One place was hardened: ShellUrlOpener now refuses any address that is not http, https or mailto itself,
  where it trusted each caller to have checked (ShellUrlOpenerTests).
  The rules stay on. A rule's own id is honoured nowhere - a profile entry's `ignore`, an `exclude` path and
  `enabled: false` were each tried in a run of its own and every result stood: the OpenGrep plugin reports every rule
  through one inspection, OpenGrepInspection, and hands its server every rule file whatever the profile says. That
  inspection does take a path, so the eleven files of src the results were read in, and tests, are listed under its
  name in qodana.yaml: a new file that starts a process is reported.
- ProcessStartSitesTests, in the gate, is the same tripwire where a merge is blocked: it sweeps src for every way a
  process is started here - Process.Start, a ProcessStartInfo, CreateProcessWithTokenW, the logon task's
  registration - and fails on a file that has not been read and listed.

Also: ShmDrainIntegrationTests' drain under supervision supervises at least twice whatever the first drain holds. On
a busy machine the first scan was slow enough for fifty presents to be waiting, the loop ended after one evaluation,
and the test failed its own "supervised more than once" (once, in a local gate of this change).

Where an inspection is switched off (D100, amending D93's "never in qodana.yaml"): in the place the engine that raised
it reads - one of ReSharper's in .editorconfig, what has no key there in qodana.yaml.

Docs: 13_CI_CD (section Qodana rewritten above D93's account, which is kept as history), CLAUDE.md (the rule, the
layout), HANDOFF (D99, D100, this part's section, and the facts of the two releases of 2026-11-11: v0.1.0-beta.37 and
v0.1.0-alpha.4), wiki/Releasing, CHANGELOG.

Shipped code: ShellUrlOpener.cs alone. No link the App could open before stops opening.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 02:14:04 +00:00
29 changed files with 1109 additions and 160 deletions

No files matched your search

+151 -4
View File
@@ -59,10 +59,12 @@ dotnet_diagnostic.MA0011.severity = warning
# and GenerateDocumentationFile is on for the shipping ones.
dotnet_diagnostic.CS1591.severity = suggestion
# --- ReSharper inspections: what Qodana reads (docs/13_CI_CD.md §Qodana, D93) ---
# Qodana Community for .NET is ReSharper's InspectCode, and InspectCode reads these keys - so does Rider or ReSharper
# in the editor, which is why they are here and not in qodana.yaml: the same list everywhere. An inspection is off
# only where it argues with a choice this project made; each line says which. Everything else it reports is fixed.
# --- ReSharper inspections: what Qodana reads (docs/13_CI_CD.md §Qodana, D93 and D100) ---
# Qodana's linters run ReSharper's engine - Qodana for .NET since 2026-11-11, the Community linter before it - and the
# engine reads these keys; so does Rider or ReSharper in the editor, which is why they are here and not in
# qodana.yaml: the same list everywhere. An inspection is off only where it argues with a choice this project made;
# each line says which. Everything else it reports is fixed. (What is NOT ReSharper's - a whole severity, the
# IntelliJ platform's Markdown and XML inspections, JetBrains' security rules - has no key here and is in qodana.yaml.)
[*.{cs,xaml}]
# The compiler's missing-XML-comment warning, already a suggestion above (CS1591): InspectCode reports suggestions.
resharper_c_sharp_warnings_cs1591_highlighting = none
@@ -147,6 +149,12 @@ resharper_redundant_empty_switch_section_highlighting = none
# A binding path through a null yields no value, and the template shows nothing: that is the design.
resharper_xaml_possible_null_reference_exception_highlighting = none
[*.resx]
# A vi or ja value that equals the English one is deliberate: product and technology names, units and format strings
# are not translated, and a ja safety string is the English verbatim until a reviewer signs it (docs/09_I18N.md;
# tools/resx-audit.ps1 holds that rule). 271 results on Qodana for .NET's first run.
resharper_overridden_with_same_value_highlighting = none
[src/FrameLedger.App/**.cs]
# WPF codegen constraints, not style choices. The generated App.g.cs and
# *.g.cs partials declare these types public, so making them internal is a
@@ -176,3 +184,142 @@ resharper_collection_never_updated_local_highlighting = none
resharper_unused_method_return_value_local_highlighting = none
resharper_redundant_assignment_highlighting = none
resharper_return_type_can_be_not_nullable_highlighting = none
# --- ReSharper C++ inspections: what Qodana's native report reads (docs/13_CI_CD.md §Qodana, D99 and D100) ---
# The native report runs ReSharper's C++ engine, and with it the clang-tidy checks and clang diagnostics that engine
# bundles (the keys that say clang_tidy). The native code is built by MSVC alone, with /W4 /WX; what clang says about
# code it never compiles is read here as advice. An inspection is off only where it argues with a choice this project
# made, and each line says which; everything else the report found was fixed.
[src/native/**.{cpp,h,inl}]
# Where the compiler pads a struct. Information, not a fault: the layouts that matter are asserted (static_assert on
# sizes and offsets in fl_shm.h, and the mirror test against fl-layout-dump).
resharper_cpp_clang_tidy_clang_diagnostic_padded_highlighting = none
# MSVC's own keywords - __try/__except (rule 5's guard around every hook body), __declspec, __stdcall. This code is
# built by MSVC and by nothing else.
resharper_cpp_clang_tidy_clang_diagnostic_language_extension_token_highlighting = none
# A function looked up by name - GetProcAddress, vkGetInstanceProcAddr, a vtable slot - comes back as a pointer to
# another function type and is cast to its real one: that is the API. Through void* is how the cast says it is meant.
resharper_cpp_clang_tidy_clang_diagnostic_cast_function_type_strict_highlighting = none
resharper_cpp_clang_tidy_bugprone_casting_through_void_highlighting = none
# Memory read as something else - a COM object as its vtable, a relay's bytes as an address - says reinterpret_cast,
# also where static_cast from void* would compile.
resharper_cpp_reinterpret_cast_from_void_ptr_highlighting = none
# It proposes std::cmp_less for a comparison whose sides differ in sign. The comparisons it found cast one side
# explicitly, and the compiler's own sign warnings (C4018, C4388, C4389) are errors in this build.
resharper_cpp_clang_tidy_modernize_use_integer_sign_comparison_highlighting = none
# A `default:` under a switch that names every enumerator is deliberate: a value outside the enumeration - a corrupt
# one, a future one - takes the refusing arm instead of falling out of the switch.
resharper_cpp_clang_tidy_clang_diagnostic_covered_switch_default_highlighting = none
# "Not eliding copy on return": a verdict returned from a const local is copied. It is a few words wide.
resharper_cpp_clang_tidy_clang_diagnostic_nrvo_highlighting = none
# A type that owns a handle deletes its copies or declares none; the moves are then not generated either, which is
# what is wanted. Four more `= delete` lines would say nothing the destructor did not.
resharper_cpp_clang_tidy_cppcoreguidelines_special_member_functions_highlighting = none
# An enumeration zero-initialised (`D3D_FEATURE_LEVEL got{}`) is an out parameter cleared before the call that fills it.
resharper_cpp_clang_tidy_bugprone_invalid_enum_default_initialization_highlighting = none
# An enumeration's width is part of a layout or of the atomic word it is stored in, not a size to be minimised.
resharper_cpp_clang_tidy_performance_enum_size_highlighting = none
# "Possibly unused #include": a file that calls std::memset includes <cstring>, also when <windows.h> already brought
# it in. What it reported was of that kind, or a header named again inside a conditional block, but for two that
# nothing used; those were removed.
resharper_cpp_unused_include_directive_highlighting = none
# A function another file calls by a declaration of its own (the harness's Hold* functions), an entry point the
# loader calls by name (DllMain), a placeholder a target links: "can be made static" reads one file.
resharper_cpp_use_internal_linkage_highlighting = none
# "Can be made const": a parameter or a method through which the code acts on a device, a ring or a handle is not
# const because the type system would allow it; and a local that is already const gains nothing from constexpr - for a
# std::string it would hold only while the text fits the small-string buffer.
resharper_cpp_parameter_may_be_const_ptr_or_ref_highlighting = none
resharper_cpp_member_function_may_be_const_highlighting = none
resharper_cpp_variable_can_be_made_constexpr_highlighting = none
# THE ENGINE MISREADS THESE. (1) `std::atomic_ref<T>{x}.fetch_or(bit)` is reported as an expression without side
# effects; the side effect is the call. (2) A Win32, D3D12 or ffx-api structure is zero-initialised and then filled
# field by field - the reserved fields must stay zero - and is handed to the API by its address or its header's: the
# engine reports the initialiser as always rewritten and the fields as assigned and never used. (3) A test of a
# constexpr function (`Check(F(a) == b && G(a) == c, ...)`) has the engine evaluate it and call one side redundant.
resharper_cpp_expression_without_side_effects_highlighting = none
resharper_cpp_initialized_value_is_always_rewritten_highlighting = none
resharper_cpp_assigned_value_is_never_used_highlighting = none
resharper_cpp_redundant_boolean_expression_argument_highlighting = none
# Proposals to restate working code in a newer idiom - a range-for, std::ranges, any_of, starts_with, std::min, a raw
# string, an if with an initialiser, emplace_back. The native code is written to be read beside the hook path: an
# index and a plain loop, the same in the guard, its tests and the probes.
resharper_cpp_clang_tidy_modernize_loop_convert_highlighting = none
resharper_cpp_clang_tidy_modernize_use_ranges_highlighting = none
resharper_cpp_use_range_algorithm_highlighting = none
resharper_cpp_clang_tidy_readability_use_anyofallof_highlighting = none
resharper_cpp_clang_tidy_modernize_use_starts_ends_with_highlighting = none
resharper_cpp_clang_tidy_readability_use_std_min_max_highlighting = none
resharper_cpp_clang_tidy_modernize_raw_string_literal_highlighting = none
resharper_cpp_clang_tidy_modernize_use_emplace_highlighting = none
resharper_cpp_clang_tidy_modernize_return_braced_init_list_highlighting = none
resharper_cpp_use_associative_contains_highlighting = none
resharper_cpp_too_wide_scope_highlighting = none
resharper_cpp_if_can_be_replaced_by_constexpr_if_highlighting = none
# A structure Windows defines and this SDK's headers do not give (RTL_PROCESS_MODULE_INFORMATION,
# PROCESS_MEMORY_COUNTERS_EX2), and a test's stand-in for a Vulkan dispatchable object, are declared field for field:
# the fields nothing names are what puts the others at their offsets.
[src/native/{FrameLedger.Injector/src/fl_guard_sources.cpp,FrameLedger.ProcessStats/src/fl_process_stats.cpp,tools/fl-probe-guard/main.cpp,tests/vklayer_test.cpp}]
resharper_cpp_declarator_never_used_highlighting = none
# The linter's compiler, not the build's: NVAPI's header makes NvU32 `unsigned int` under clang and `unsigned long`
# under MSVC, which is the compiler that builds this probe - and `%lu` is right for it.
[src/native/tools/fl-probe-nvapi/main.cpp]
resharper_cpp_clang_tidy_clang_diagnostic_format_highlighting = none
# --- the probes, the harness and the tests ---
[src/native/{tools,tests}/**.{cpp,h}]
# printf, fprintf, fputs, fclose: a probe prints what it found and a test prints why it failed; neither has anything
# to do about a failed write to its own console.
resharper_cpp_clang_tidy_cert_err33_c_highlighting = none
# atoi on the harness's own arguments, which its tests write: a number that does not parse is 0, and the run that
# asked for it fails on its own assertion.
resharper_cpp_clang_tidy_bugprone_unchecked_string_to_number_conversion_highlighting = none
# A printf-shaped helper (`Note(fmt, ...)`): the attribute clang proposes is not MSVC's, and a parameter pack would
# be a second implementation of printf.
resharper_cpp_clang_tidy_modernize_avoid_variadic_functions_highlighting = none
resharper_cpp_clang_tidy_clang_diagnostic_missing_format_attribute_highlighting = none
# `&pointer` handed to an API that takes `void*` (ReadProcessMemory, a memcpy of a vtable slot, a Streamline array of
# constants): the conversion is the call's own.
resharper_cpp_clang_tidy_bugprone_multi_level_implicit_pointer_conversion_highlighting = none
# A test builds a handle or an address from a number, on purpose: a fake one, or one read from another process.
resharper_cpp_clang_tidy_performance_no_int_to_ptr_highlighting = none
# A macro that pastes its argument into a name (FL_DEV(vkGetDeviceQueue)) cannot put it in parentheses.
resharper_cpp_clang_tidy_bugprone_macro_parentheses_highlighting = none
# A test's fixture: a global with a std::string in it, a memcpy into a byte buffer that is not a string, two strings
# added in an assertion's message.
resharper_cpp_clang_tidy_bugprone_throwing_static_initialization_highlighting = none
resharper_cpp_clang_tidy_bugprone_not_null_terminated_result_highlighting = none
resharper_cpp_clang_tidy_performance_inefficient_string_concatenation_highlighting = none
# layout_test checks facts the compiler already knows - a constant's length, a bit-field's range - at run time, so
# that a failure prints which one: the branch that cannot be taken is the test passing.
resharper_cpp_unreachable_code_highlighting = none
resharper_cpp_clang_tidy_clang_diagnostic_unreachable_code_highlighting = none
resharper_cpp_clang_tidy_clang_diagnostic_tautological_value_range_compare_highlighting = none
# --- CODE LOADED INTO A GAME: the Overlay, the Vulkan layer, the shared-memory headers ---
# D100: here only a defect is fixed, in a pull request of its own with the hook's overhead measured (rule 5,
# 14_TESTING §Hook overhead). The report found none. What it did say about these files, each kept as it is:
[src/native/{FrameLedger.Overlay,FrameLedger.VkLayer,FrameLedger.Shm}/**.{cpp,h,inl}]
# Arms with the same body are different cases, each with its own comment saying why it reads as it does.
resharper_cpp_clang_tidy_bugprone_branch_clone_highlighting = none
# MinHook's MH_ALL_HOOKS is NULL, by its header.
resharper_cpp_zero_constant_can_be_replaced_with_nullptr_highlighting = none
# Kept on purpose, each with its reason beside it in dllmain.cpp: a retired enumerator whose bit must not be reused;
# slSetTag, deprecated by a header whose replacement no measured module exports.
resharper_cpp_enumerator_never_used_highlighting = none
resharper_cpp_clang_tidy_clang_diagnostic_deprecated_declarations_highlighting = none
# DEAD CODE, FOUND AND NOT REMOVED: nothing calls dllmain.cpp's LogNoteW. D100 changes code loaded into a game for
# a defect only, so taking it out is the owner's to order (HANDOFF, the native report's section) and not this
# report's to do. Until then this one file is not read for an unused function. Remove this section with it.
[src/native/FrameLedger.Overlay/src/dllmain.cpp]
resharper_cpp_declarator_never_used_highlighting = none
resharper_cpp_clang_tidy_clang_diagnostic_unused_function_highlighting = none
# The guard's rule matcher, which the Overlay compiles too. ResolveTolerance clears its out parameter with memset, as
# ResetRules does: a Tolerance is flags with default member initialisers, which is all "non-trivially default
# constructible" means here, and zero is what those initialisers say.
[src/native/FrameLedger.Injector/{src/fl_ac_rules.cpp,include/fl_ac_rules.h}]
resharper_cpp_clang_tidy_bugprone_raw_memory_call_on_non_trivial_type_highlighting = none
+117 -21
View File
@@ -1,28 +1,31 @@
# Qodana (owner decision D93, 2026-11-10; docs/13_CI_CD.md §Qodana).
# Qodana (owner decisions D93, 2026-11-10, and D99, 2026-11-11; docs/13_CI_CD.md §Qodana).
#
# JetBrains' template for the Qodana Scan action, changed where FrameLedger differs
# and each change said here:
#
# - The linter is Qodana Community for .NET (qodana.yaml names it and says why): a
# Linux container, which is why this job alone runs on ubuntu-latest in a
# Windows-only project. EnableWindowsTargeting lets the .NET SDK there build and
# load projects whose target is Windows; it is passed to the container rather than
# written into Directory.Build.props, because no build of the product is meant to
# run anywhere but Windows.
# - The action is pinned to a commit (v2026.2.2, the newest; the template names
# v2026.1), as every action that is not GitHub's own is here.
# - The linter is Qodana for .NET (Rider's engine) in NATIVE mode, on a Windows
# runner: the projects target Windows, and the linter then builds and loads them
# with the SDK this job installs from global.json - no container, and no
# EnableWindowsTargeting. qodana.yaml names the linter and the mode; nothing is
# passed as an action argument. (Until beta.37 this was the Community linter in a
# Linux container, the one Linux job this repository had.)
# - The action is pinned to a commit, as every action that is not GitHub's own is
# here.
# - Permissions are the ones the job uses: it reads the repository, writes a check
# run with the annotations and one comment on the pull request. The template's
# `contents: write` is for pushing quick-fixes, which this job never does.
# - A workflow of its own, as JetBrains advises, and ADVISORY: `main`'s required
# contexts stay `check` and the two `analyze` jobs. A problem Qodana finds, or a
# Qodana Cloud outage, is a red job beside a green `check`, never a blocked merge.
# contexts stay `check` and the two `analyze` jobs. A problem Qodana finds, a
# Qodana Cloud outage or a lapsed licence is a red job beside a green `check`,
# never a blocked merge.
# - Two jobs, two reports (D99): `managed` reads the solution - the C#, the XAML and
# what Rider's plugins read around it - and reports to the Qodana Cloud project
# `frameledger`; `native` reads the C++ of src/native through a Visual Studio
# solution CMake generates for it, with settings of its own (qodana-native.yaml),
# and reports to `frameledger-cpp`. Neither reads what the other does. The pull
# request's comment and annotations are the managed job's alone.
# - `main` only: the `alpha` branch is main's source under another release line
# (docs/13_CI_CD.md §The alpha line), and main's is what is analysed.
# - INTERIM since beta.37 (D94, 2026-11-11): main builds on .NET 11, which the
# linter's image does not carry (SDKs 8 to 10), so qodana.yaml's `bootstrap`
# installs the SDK global.json names into the container first. The Ultimate
# linter's pull request replaces this job with one on Windows.
name: Qodana
@@ -40,7 +43,8 @@ concurrency:
cancel-in-progress: true
jobs:
qodana:
managed:
name: Qodana (managed)
# A pull request from this repository, or a push or a dispatch. QODANA_TOKEN
# reaches neither a fork's pull request nor Dependabot's, and their token cannot
# write the check run or the comment.
@@ -48,7 +52,7 @@ jobs:
github.event_name != 'pull_request' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]')
runs-on: ubuntu-latest
runs-on: windows-latest
timeout-minutes: 60
permissions:
contents: read
@@ -64,19 +68,111 @@ jobs:
# A full history is required for pull request analysis.
fetch-depth: 0
# Native mode runs the linter in this job's environment, so the SDK it loads
# the projects with is this one. No MSVC step here on purpose: it exports
# Platform=x64, which MSBuild reads as a solution platform (build.ps1's
# Clear-VcxprojPlatform).
- name: Set up .NET
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
# Restored only: `check` saves this cache, under the same key.
- name: Restore the NuGet cache
uses: actions/cache/restore@v6
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/Directory.Packages.props', 'global.json') }}
restore-keys: nuget-${{ runner.os }}-
# Built before it is inspected: a build that fails is then one red step with
# the compiler's own message, not a report of thousands of unresolved symbols.
# The native DLLs are absent here, so the .targets that copy them warn and the
# build goes on, as on a fresh clone.
- name: Build what the linter loads
shell: pwsh
run: |
dotnet build FrameLedger.slnx -c Release
if ($LASTEXITCODE -ne 0) { throw 'the build failed' }
# pr-mode false: the whole solution every time, so a pull request and `main`
# are judged by the same list. upload-result: the SARIF and the linter's log
# as an artifact of the run, for a reader with no Qodana Cloud account.
# Caches are saved from `main` only (a pull request reads them): one per
# branch would crowd the repository's cache quota, which NuGet's share.
# Caches are saved from `main` only (a pull request reads them), under keys of
# this job's own: one per branch would crowd the repository's cache quota,
# which NuGet's share.
- name: Qodana Scan
uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
with:
pr-mode: false
upload-result: true
artifact-name: qodana-report
cache-default-branch-only: true
env-vars-to-linter: EnableWindowsTargeting
primary-cache-key: qodana-managed-${{ github.ref_name }}-${{ github.sha }}
additional-cache-key: qodana-managed-main
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
QODANA_ENDPOINT: 'https://qodana.cloud'
EnableWindowsTargeting: 'true'
native:
name: Qodana (native)
# The same condition as `managed`, for the same reason: QODANA_TOKEN_NATIVE
# reaches neither a fork's pull request nor Dependabot's.
if: >-
github.event_name != 'pull_request' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]')
runs-on: windows-latest
timeout-minutes: 60
# No annotations and no comment from this job (below), so it writes nothing.
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
# global.json sits above the solution, and the linter resolves it.
- name: Set up .NET
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
# The Visual Studio generator finds the toolset itself: no MSVC step. Configure
# fetches MinHook, Catch2 and jsmn into the build tree, as the gate's does.
- name: Generate the solution and the one generated header
shell: pwsh
working-directory: src/native
run: |
cmake --version
cmake --preset x64-vs-analysis
if ($LASTEXITCODE -ne 0) { throw 'cmake configure failed' }
cmake --build --preset x64-vs-analysis --target fl_ac_floor_gen
if ($LASTEXITCODE -ne 0) { throw 'generating the blocklist floor failed' }
if (-not (Test-Path ../../build/native/x64-vs-analysis/FrameLedgerNative.slnx)) {
Get-ChildItem ../../build/native/x64-vs-analysis -Filter 'FrameLedgerNative.*' | ForEach-Object { Write-Host $_.Name }
throw 'CMake did not write FrameLedgerNative.slnx (qodana-native.yaml names it)'
}
# A report of its own: its own settings file, results folder, artifact, cache
# keys and Qodana Cloud project. The pull request's comment and annotations are
# the managed job's; a second job of the same linter would overwrite them.
- name: Qodana Scan
uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
with:
args: --config qodana-native.yaml
results-dir: ${{ runner.temp }}/qodana-native/results
cache-dir: ${{ runner.temp }}/qodana-native/caches
pr-mode: false
upload-result: true
artifact-name: qodana-report-native
cache-default-branch-only: true
primary-cache-key: qodana-native-${{ github.ref_name }}-${{ github.sha }}
additional-cache-key: qodana-native-main
post-pr-comment: false
use-annotations: false
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_NATIVE }}
QODANA_ENDPOINT: 'https://qodana.cloud'
+1 -1
View File
@@ -9,7 +9,7 @@ barrier. It is written for the person who has just met one; the details for deve
FrameLedger is a desktop program: its own window, its dialogs, its document windows, the icon by the clock and the
notices Windows shows for it. It draws nothing inside a game, so it cannot make a game itself any easier to use.
*Beta software: this page describes version 0.1.0-beta.37. In the app: Help ▸ Accessibility.*
*Beta software: this page describes version 0.1.0-beta.38. In the app: Help ▸ Accessibility.*
## What FrameLedger aims for
+1
View File
@@ -41,6 +41,7 @@ Newest first. Each file holds that release's section exactly as it stood here.
| Version | Date | Notes |
|---|---|---|
| `0.1.0-beta.38` | 2026-11-11 | [`docs/changelog/0.1.0-beta.38.md`](docs/changelog/0.1.0-beta.38.md) |
| `0.1.0-alpha.4` | 2026-11-11 | [`docs/changelog/0.1.0-alpha.4.md`](docs/changelog/0.1.0-alpha.4.md) |
| `0.1.0-beta.37` | 2026-11-11 | [`docs/changelog/0.1.0-beta.37.md`](docs/changelog/0.1.0-beta.37.md) |
| `0.1.0-beta.36` | 2026-11-10 | [`docs/changelog/0.1.0-beta.36.md`](docs/changelog/0.1.0-beta.36.md) |
+8 -5
View File
@@ -73,9 +73,12 @@ RELEASE_LINE # `main`, or `alpha` on the alpha branch (D73, 20
build.ps1 # the quality gate; CI runs this identical script
SonarQube.Analysis.xml # SonarCloud's settings for ci.yml's sonarcloud job (D68, 2026-10-25; it replaced
.config/dotnet-tools.json # .sonarcloud.properties) and the scanner it runs — 13_CI_CD §SonarCloud
qodana.yaml # Qodana's settings for .github/workflows/qodana.yml (D93, 2026-11-10): the linter, the
# solution, a gate of zero problems; the inspections' severities are .editorconfig's
# resharper_* keys — 13_CI_CD §Qodana
qodana-native.yaml # the same for the native job: the C++ of src/native, through the Visual Studio solution
# CMake writes for it (preset x64-vs-analysis), a report of its own (D99)
qodana.yaml # Qodana's settings for the managed job of .github/workflows/qodana.yml (D93; Qodana for
# .NET on the Ultimate licence since 2026-11-11, D99): the linter, the solution, a gate
# of zero problems, and what is switched off that .editorconfig has no key for —
# ReSharper's inspections are .editorconfig's resharper_* keys (D100) — 13_CI_CD §Qodana
src/
native/
FrameLedger.Overlay/ # C++20 DLL injected into the game (hooks + ring writer + optional overlay)
@@ -178,9 +181,9 @@ Dependency direction: `App/Agent → Application → Domain`; **`Application →
## Coding conventions
**C# —** `Nullable enable`, `TreatWarningsAsErrors`, `AnalysisLevel latest-all`, file-scoped namespaces, Roslynator + Meziantou + VS Threading analyzers, `dotnet format` clean. Qodana Community for .NET (ReSharper's inspections) reads the C# and the XAML in an advisory workflow of its own, with a gate of zero problems *(since 2026-11-10, D93 — `13_CI_CD` §Qodana)*: fix what it reports, or switch the inspection off in `.editorconfig` with the reason beside it — never in `qodana.yaml`, never without one. Async suffixed `Async`, `ConfigureAwait(false)` off the UI. All user-visible strings from `.resx`. Timestamps UTC (unix-ms in SQLite); QPC ticks only inside the capture pipeline.
**C# —** `Nullable enable`, `TreatWarningsAsErrors`, `AnalysisLevel latest-all`, file-scoped namespaces, Roslynator + Meziantou + VS Threading analyzers, `dotnet format` clean. Qodana reads the C# and the XAML in an advisory workflow of its own, with a gate of zero problems *(since 2026-11-10, D93; Qodana for .NET on the Ultimate licence since 2026-11-11, D99 — `13_CI_CD` §Qodana)*: fix what it reports, or switch the inspection off with the reason on the line above, **in the place the engine that raised it reads** *(D100)* — one of ReSharper's (C#, XAML, `.resx`, the C++) in `.editorconfig`; what has no key there (the hints as a severity, the Markdown and XML inspections, the files JetBrains' security rules were read in) in `qodana.yaml` — never anywhere else, never without a reason. A new file that starts a process fails `ProcessStartSitesTests`, and Qodana's security rule reports it: read what it starts and where the path and the arguments come from, then list it in the test, in `qodana.yaml` and in `13_CI_CD` §Qodana. Async suffixed `Async`, `ConfigureAwait(false)` off the UI. All user-visible strings from `.resx`. Timestamps UTC (unix-ms in SQLite); QPC ticks only inside the capture pipeline.
**C++ —** `clang-format` (LLVM base, 4-space, 120 col) enforced in CI. No STL containers that allocate in hook paths. No `std::mutex` in hook paths. `-D_HAS_EXCEPTIONS=0` in the Overlay target. Every hook entry point wrapped per the `FL_HOOK_GUARD` macro (`17_HOOK_ENGINE`). Static analysis: ~~`/analyze` + clang-tidy (`bugprone-*`, `cert-*`, `concurrency-*`)~~ CodeQL (`codeql.yml`, a required check); `/analyze` and clang-tidy are not configured *(corrected 2026-10-04)*. SonarCloud analyses the C++ too, from CMake's compilation database, in `ci.yml`'s advisory `sonarcloud` job *(since 2026-10-25, D68 — `13_CI_CD` §SonarCloud)*.
**C++ —** `clang-format` (LLVM base, 4-space, 120 col) enforced in CI. No STL containers that allocate in hook paths. No `std::mutex` in hook paths. `-D_HAS_EXCEPTIONS=0` in the Overlay target. Every hook entry point wrapped per the `FL_HOOK_GUARD` macro (`17_HOOK_ENGINE`). Static analysis: ~~`/analyze` + clang-tidy (`bugprone-*`, `cert-*`, `concurrency-*`)~~ CodeQL (`codeql.yml`, a required check); `/analyze` and clang-tidy are not configured *(corrected 2026-10-04)*. SonarCloud analyses the C++ too, from CMake's compilation database, in `ci.yml`'s advisory `sonarcloud` job *(since 2026-10-25, D68 — `13_CI_CD` §SonarCloud)*. Qodana reads it as well, in a report of its own *(since 2026-11-11, D99: ReSharper's C++ inspections and the clang-tidy checks they run, advisory, a gate of zero — `13_CI_CD` §Qodana)*: fix what it reports, or switch the inspection off in `.editorconfig` with the reason above it; **in code loaded into a game only a defect is fixed**, in a pull request of its own with the overhead measured *(D100)*.
**Licence header —** every first-party source file (`.cs .cpp .h .inl .ps1 .xaml`) opens with two comment lines, `SPDX-License-Identifier: GPL-3.0-only` and `Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE` (beta.12, owner decision D45). GPLv3 §7 requires additional terms to be named in the source files, and `NOTICE` holds them — (b) preserve the notices, (c) mark modified versions, (e) no trademark rights in the name. `tools/notice-check.ps1` is a `build.ps1` gate; `-Fix` writes a missing header. `src/native/third_party/` is excluded.
+1 -1
View File
@@ -5,7 +5,7 @@ hooking on for — and reading the graphics calls the game makes. That is why it
resolution, the upscaler, frame generation and ray tracing apart. It is also where its limits come from. This
page lists them in plain words; each item links to the document that has the details.
*Beta software: this page describes version 0.1.0-beta.37.*
*Beta software: this page describes version 0.1.0-beta.38.*
## Games it will not measure
+2 -2
View File
@@ -13,7 +13,7 @@ app too (Help ▸ User guide, Help ▸ Limitations, Help ▸ Accessibility), and
<!-- accuracy-block:begin -->
> ⚠ **What FrameLedger actually measures today — 2026-11-06.** The software is a beta; its latest
> **beta is `0.1.0-beta.37`** (2026-11-11), an unsigned installer built from that tag with its
> **beta is `0.1.0-beta.38`** (2026-11-11), an unsigned installer built from that tag with its
> checksums published beside it (alphas — experimental builds that try a newer .NET — are published apart). 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 (unless you switched its recording off), injects only into games you enabled
@@ -178,7 +178,7 @@ Elevation is **optional — for everything.** Hooked capture is the normal path
## Install
> **The latest beta is `v0.1.0-beta.37` (2026-11-11); before it `v0.1.0-beta.36` (2026-11-10), `v0.1.0-beta.35` (2026-11-09), `v0.1.0-beta.34` (2026-11-06), `v0.1.0-beta.33` (2026-11-03), `v0.1.0-beta.32` (2026-10-31), `v0.1.0-beta.31` (2026-10-26), `v0.1.0-beta.30` (2026-10-26), `v0.1.0-beta.29` (2026-10-25), `v0.1.0-beta.28` (2026-10-20), `v0.1.0-beta.27` (2026-10-20), `v0.1.0-beta.26` (2026-10-19), `v0.1.0-beta.25` (2026-10-19), `v0.1.0-beta.24` (2026-10-19), `v0.1.0-beta.23` (2026-10-14), `v0.1.0-beta.22` (2026-10-13), `v0.1.0-beta.21` (2026-10-13), `v0.1.0-beta.20` (2026-10-12), `v0.1.0-beta.19` (2026-10-12), `v0.1.0-beta.18` (2026-10-07), `v0.1.0-beta.17` (2026-10-07), `v0.1.0-beta.16` (2026-10-06), `v0.1.0-beta.15` (2026-10-06), `v0.1.0-beta.14` (2026-10-06), `v0.1.0-beta.13` (2026-10-04), `v0.1.0-beta.12` (2026-10-04), `v0.1.0-beta.11` (2026-10-03), `v0.1.0-beta.10` (2026-09-28), `v0.1.0-beta.9` (2026-09-26), `v0.1.0-beta.8` (2026-09-25), `v0.1.0-beta.7` (2026-09-23), `v0.1.0-beta.6` (2026-09-23), `v0.1.0-beta.5` (2026-09-22), `v0.1.0-beta.4` (2026-09-21), `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 the notes of the one you install — `CHANGELOG.md` links each release's own file under `docs/changelog/` — for what it measures, what it does not yet, and how to update, before installing. A source build is `docs/12_BUILD.md`.
> **The latest beta is `v0.1.0-beta.38` (2026-11-11); before it `v0.1.0-beta.37` (2026-11-11), `v0.1.0-beta.36` (2026-11-10), `v0.1.0-beta.35` (2026-11-09), `v0.1.0-beta.34` (2026-11-06), `v0.1.0-beta.33` (2026-11-03), `v0.1.0-beta.32` (2026-10-31), `v0.1.0-beta.31` (2026-10-26), `v0.1.0-beta.30` (2026-10-26), `v0.1.0-beta.29` (2026-10-25), `v0.1.0-beta.28` (2026-10-20), `v0.1.0-beta.27` (2026-10-20), `v0.1.0-beta.26` (2026-10-19), `v0.1.0-beta.25` (2026-10-19), `v0.1.0-beta.24` (2026-10-19), `v0.1.0-beta.23` (2026-10-14), `v0.1.0-beta.22` (2026-10-13), `v0.1.0-beta.21` (2026-10-13), `v0.1.0-beta.20` (2026-10-12), `v0.1.0-beta.19` (2026-10-12), `v0.1.0-beta.18` (2026-10-07), `v0.1.0-beta.17` (2026-10-07), `v0.1.0-beta.16` (2026-10-06), `v0.1.0-beta.15` (2026-10-06), `v0.1.0-beta.14` (2026-10-06), `v0.1.0-beta.13` (2026-10-04), `v0.1.0-beta.12` (2026-10-04), `v0.1.0-beta.11` (2026-10-03), `v0.1.0-beta.10` (2026-09-28), `v0.1.0-beta.9` (2026-09-26), `v0.1.0-beta.8` (2026-09-25), `v0.1.0-beta.7` (2026-09-23), `v0.1.0-beta.6` (2026-09-23), `v0.1.0-beta.5` (2026-09-22), `v0.1.0-beta.4` (2026-09-21), `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 the notes of the one you install — `CHANGELOG.md` links each release's own file under `docs/changelog/` — for 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**.
+5
View File
@@ -20,6 +20,11 @@ cmake --preset x64-release
cmake --build --preset x64-release
```
A third preset, **`x64-vs-analysis`** *(2026-11-11)*, builds nothing that ships: it has CMake write a Visual Studio
solution (`build/native/x64-vs-analysis/FrameLedgerNative.slnx`, generator "Visual Studio 18 2026", tests and tools
on) for Qodana's native report, which reads C++ through a solution (`13_CI_CD` §Qodana). It needs Visual Studio 18;
the gate and the release never use it.
Targets:
- `FrameLedger.Overlay` → `FrameLedger.Overlay.dll`
- `FrameLedger.VkLayer` → `FrameLedger.VkLayer.dll` + `VkLayer_FRAMELEDGER_overlay.json`
+186 -6
View File
@@ -124,11 +124,14 @@ FrameLedger uses the **`poli0981/.github` ops repo** where its templates fit, an
read `net10.0`; and for a construct it has not met, a pull request's run is not the evidence — a
`workflow_dispatch` on the branch is, §C# 15 and the analyses.)*
### `qodana.yml` — push to `main`, pull requests into `main`, `workflow_dispatch` · **repo-local, built 2026-11-10 (D93)**
- One job, `qodana`, on `ubuntu-latest` — the only Linux job in this repository, because the linter is a Linux
container: `JetBrains/qodana-action` (pinned to `v2026.2.2`'s commit; Dependabot moves the pin) runs Qodana Community
for .NET over `FrameLedger.slnx` with `qodana.yaml`'s settings. §Qodana below says what it reads, what was changed
from JetBrains' template and where an inspection is switched off.
### `qodana.yml` — push to `main`, pull requests into `main`, `workflow_dispatch` · **repo-local, built 2026-11-10 (D93); Qodana for .NET since 2026-11-11 (D99)**
- ~~One job, `qodana`, on `ubuntu-latest` — the only Linux job in this repository, because the linter is a Linux
container~~ Two jobs, on `windows-latest`, each a report of its own: **`native`** (*Qodana (native)*) has CMake
write a Visual Studio solution and reads the C++ of `src/native` with `qodana-native.yaml`'s settings; and
`managed` (*Qodana (managed)*): `JetBrains/qodana-action` (pinned to
`v2026.2.2`'s commit; Dependabot moves the pin) runs **Qodana for .NET** in native mode over `FrameLedger.slnx`
with `qodana.yaml`'s settings, after a `dotnet build`. No job here runs on Linux any more. §Qodana below says what
it reads, what was changed from JetBrains' template and where an inspection is switched off.
- **Advisory, with a gate of zero problems:** one problem turns the job red; it is not a required context.
- `permissions: contents: read, checks: write, pull-requests: write` — the annotations and the one comment; granted to
the job, the workflow grants none.
@@ -487,7 +490,184 @@ on `src/FrameLedger.Infrastructure/**/*` and `src/FrameLedger.Shared/**/*`, so n
stop reappearing on pull requests. *(Since D68 the `S8417` and `S6640` rows are `SonarQube.Analysis.xml`'s, in the
repository; `S6232`'s are not — a union read outside `LARGE_INTEGER` would be a finding — and its 24 stay marked.)*
## Qodana — `qodana.yml`, a workflow of its own (owner decision D93, 2026-11-10)
## Qodana — `qodana.yml`, a workflow of its own (owner decisions D93, 2026-11-10; D99 and D100, 2026-11-11)
**Since 2026-11-11 the linter is Qodana for .NET, on the Ultimate licence (D99).** The owner took an Ultimate licence for
the Qodana Cloud organisation and asked for Qodana over every language. So the linter is **Qodana for .NET**
(`qodana-dotnet`: Rider's engine) where it was the Community one, in **native mode** on a Windows runner: no container,
the projects built and loaded with the SDK the job installs from `global.json`, and no `EnableWindowsTargeting`.
`qodana.yaml` names the linter and the mode (`withinDocker: false`); nothing is an action argument, so `qodana scan` on
a developer's PC reads the same file. The job is `managed` — *Qodana (managed)* in a pull request's checks: checkout,
`setup-dotnet`, the NuGet cache restored, `dotnet build -c Release` first — so that a build that fails is one red step
with the compiler's own message, not a report of unresolved symbols — then the action, pinned by commit. No MSVC step,
on purpose: it exports `Platform=x64`, which MSBuild reads as a solution platform. The linter's log says what the token
bought: "Qodana license plan: Ultimate", and the Qodana Cloud project it is linked to (`frameledger`). Still advisory,
still a gate of zero, still `main` and its pull requests alone. From here down to *As it was built* is the job as it
is; below that is D93's own account, which is now history.
**Two reports (D99).** Asked how to gather the C# and the C++, the owner chose two reports from the start, and made a
second Qodana Cloud project (`frameledger-cpp`, the `QODANA_TOKEN_NATIVE` secret). The managed report leaves
`src/native` out; the native one (*The native report*, below) reads nothing else, so every file is in exactly one.
**What is read, and by what.**
| What | Read by | |
|---|---|---|
| The C#, XAML and `.resx` of the thirteen projects | `managed` | ReSharper's engine, as under D93 |
| Markdown and XML around the solution | `managed` | the IntelliJ platform's own inspections — 23 and 10 results on the first run |
| JetBrains' security rules over the C# — pattern rules for a process start, an SQL text and the like | `managed` | new with this linter (its OpenGrep plugin) — 36 results on the first run, every one read; the files they were read in are listed in `qodana.yaml`, so a new one is reported |
| The C++ of `src/native` | `native` | ReSharper's C++ engine and the clang-tidy checks it bundles, over a Visual Studio solution CMake writes for it |
| JSON and YAML, the workflows among them | nothing reported | whether the profile inspects them and found nothing, or does not inspect them, was not established; CodeQL's `actions` language reads the workflows |
| PowerShell (`build.ps1`, `tools/`), CMake files, the HLSL shader | no linter of JetBrains' reads them here | SonarCloud reads the PowerShell |
**The first runs on this linter, and what was done (2026-11-11).** Run 42923079119 — the job with no settings beyond the
solution: **3,953 problems** in 92 inspections, and 3,607 of them **hints**: the lowest level an IDE has, which the
editor offers without underlining anything (this linter files them as `TYPO`, Qodana as *Low*). Meziantou's "name the
parameter" 1,084 times, a trailing comma 979, a XAML binding whose `DataContext` the engine cannot know 414, the MVVM
Toolkit's partial-property proposal 224, "invert `if`" 114 — and every other Roslyn analyzer message below the level
this build makes an error. **Hints are off as a severity**, one group in `qodana.yaml` (`severity:TYPO`): the Community
linter never reported them, and D93's rule is about warnings and suggestions. With that, run 42928814104: **347**.
| What | n | Done |
|---|---|---|
| `OverriddenWithSameValue` — a vi or ja value equal to the English one | 271 | off in `.editorconfig` (`[*.resx]`): product and technology names, units and format strings are not translated, and a ja safety string is the English verbatim until a reviewer signs it |
| `csharp_injection_rule-CommandInjection` — a process started with something that is not a literal | 35 | **read, one by one** (below): 11 places in `src`, 24 in tests; one place was hardened. The rule stays on, and the files read are left out of the plugin's inspection by path in `qodana.yaml` (*How the security rules are scoped*, below), so a new file that starts a process is reported |
| `MarkdownIncorrectTableFormatting` | 20 | off in `qodana.yaml`: Rider wants columns padded to one width; these tables are written to be diffed |
| `XmlHighlighting` in `src/FrameLedger.App/app.manifest` | 10 | that file ignored for that inspection: the linter has no schema for a Windows application manifest |
| `UnusedVariable.Compiler` and `RedundantUsingDirective` in `PrimaryDisplay.cs` | 6 | **the linter's own fault**, and the file is left as it is: resolving `PInvoke.EnumDisplaySettings(null, …)` — the `null`-to-`PCWSTR` conversion — the engine of this linter's build (QDNET-262.12299) fails an internal assertion (`IsStandardImplicitConversionFromExpression(conversion.Kind)`, in its `backend.log`), loses the method, and reports its three locals and the file's three usings as unused. The compiler builds the file with warnings as errors, and InspectCode 2026.2.3.1 and 2026.3.0 report nothing in it. Those two inspections are excluded for that one file in `qodana.yaml`, to be removed when a linter build reads it |
| `MarkdownUnresolvedHeaderReference` | 3 | off in `qodana.yaml`: all three resolve on GitHub, whose anchor rule the linter does not follow (`#display-mode--both-tiers-beta10`) |
| `csharp_injection_rule-SQLInjection` | 1 | the same: the one place assigns a constant command text and binds every value as a parameter, as every statement in this repository does; its file is listed with the others |
| `RedundantBoolCompare`, in a test | 1 | fixed — the expression also carried a clause its first half implied |
With those settled, run 42940926340 (2026-11-11, this pull request's branch, the whole solution): **no problem
reported** — the gate's zero, on this linter.
**How the security rules are scoped — by the plugin's one inspection, not by a rule.** Every result of the
OpenGrep plugin's several hundred rules is produced by one inspection, `OpenGrepInspection`; a rule's own id
(`csharp_injection_rule-CommandInjection`) is in the report and is honoured nowhere. Three runs measured it — a
profile entry's `ignore` (42932842462), an `exclude` path under the rule's id (42935752891), `enabled: false`
on the rule (42938295264): all 36 results stood each time, and the linter's log shows why — the plugin hands its
server every rule file whatever the profile says. What the plugin's inspection does honour is a path: an
`exclude` entry named `OpenGrepInspection` (its scopes are in the report's `log/effective.profile.xml`). So the
eleven files of `src` the results were read in, and `tests`, are listed there — and in the run above the
inspection was performed on 943 files, where it had been 1,308, and reported nothing: it is on, and it reads
what is not listed. The price is stated in `qodana.yaml`: a listed file is left out of **all** of the plugin's
rules, not only the one that fired. The plugin is also most of the job's time — about six of its fifteen
minutes.
**A second tripwire, in the gate: `ProcessStartSitesTests`.** Qodana is advisory, and its rule is a pattern for
`Process.Start`. The test sweeps `src` for every way a process is started here — `Process.Start`, a
`ProcessStartInfo`, `CreateProcessWithTokenW` through CsWin32, and the registration of the logon task — and fails
on a file that is not in its list, until that file has been read and listed. `Startup/UnelevatedProcess`, which
the rule never saw, is in it.
**Every place that starts a process, as read on 2026-11-11.** The rule is a pattern, not a data flow: it reports any
`Process.Start` whose argument is not a literal. What matters at each is what is started and where its path and
arguments come from.
| Place | What it starts | Where the path and the arguments come from |
|---|---|---|
| `App/Services/AgentLauncher` | `FrameLedger.Agent.exe` | the file beside the App (`AppContext.BaseDirectory`); arguments the App builds (`--serve`, the data folder) |
| `App/Services/AgentTool` | the same Agent, with one maintenance flag | a constant at each of its two callers (`--install-task`, the Settings page's flags) |
| `Infrastructure/Startup/AgentElevation` | the Agent, elevated (`runas`) | the Agent's own path; `--serve --for-user <this user's SID>` |
| `Infrastructure/Startup/LogonTask` | nothing itself — it registers the logon task, whose action Windows starts at sign-in | the Agent's path and constant arguments (`--serve`), into a Task Scheduler definition for this user, at the lowest privileges |
| `Infrastructure/Diagnostics/CrashDumpWriter` | this process's own executable, as the dumper | `Environment.ProcessPath`; an `ArgumentList`, no shell |
| `Infrastructure/Capture/ProcessLauncher` | the game | the executable the user added and enabled hooking for, and the launch arguments the user wrote for it; no shell |
| `App/Services/ShellStarter` | a game, directly or through its store (`steam://…`, `explorer.exe shell:AppsFolder\<AUMID>`) | the launch `GamePlayer` resolves from the record of a game the user added (D59, D80) |
| `App/Services/Explorer` | `explorer.exe` on a folder or a file | a quoted path of FrameLedger's own: the data folder, the logs, a bug report's zip, the licences folder |
| `App/Services/ShellUrlOpener` | the browser or the mail client | the project's own pages, or a Markdown link `MarkdownLinks` has already held to `http`, `https` and `mailto`. **Hardened here**: the opener now refuses any other scheme itself (`ShellUrlOpenerTests`) — the shell runs whatever it is handed, and a `file:` address is a program |
| `App/ViewModels/SettingsViewModel` | the browser | one constant address |
| `Infrastructure/Startup/UnelevatedProcess` | the Agent or a game with the shell's token, from an elevated process (`CreateProcessWithTokenW`) | its two callers above, `AgentLauncher` and `ProcessLauncher` — not a `Process.Start`, so the rule did not see it; the sweep does |
None takes a value from outside the PC or from a file FrameLedger did not write, except the game's own path and
arguments — which starting the game the user chose is.
**The native report — `qodana-native.yaml`, the job `native` (D99, 2026-11-11).** The C++ of `src/native`, read by
the same linter — Qodana for .NET, whose C++ is ReSharper C++ — in native mode on a Windows runner. It is the only
linter of JetBrains' that can: the native layer is MSVC-only, and the two C/C++ linters (`qodana-cpp`,
`qodana-clang`) are Linux images. It reads C++ through a Visual Studio solution, and `src/native` is a CMake tree, so
the job has CMake write one first: the preset **`x64-vs-analysis`** (generator "Visual Studio 18 2026", tests and
tools on) puts `FrameLedgerNative.slnx` under `build/native/x64-vs-analysis`, and the job builds from it the one
target whose output is a header (`fl_ac_floor_gen`, the blocklist floor). Nothing else is compiled, and nothing from
that tree ships. Then the action, with `--config qodana-native.yaml`: the solution, `RelWithDebInfo` and `x64` — the
flags the shipped binaries are built with — and, left out by path, what is not FrameLedger's code (the build tree,
`third_party`, the vendor stubs, a compiled shader as a byte array). Its own results folder, cache keys and artifact
(`qodana-report-native`), and the Qodana Cloud project `frameledger-cpp` through `QODANA_TOKEN_NATIVE`. It posts no
comment and no annotations — a second job of the same linter would overwrite the managed job's — so its result is the
job's own status and its report. Advisory, and a gate of zero, like the other.
**What it runs** is ReSharper's C++ inspections and, through them, the clang-tidy checks and clang diagnostics that
engine bundles. clang never builds this code — MSVC does, with `/W4 /WX` — so what clang says is read as advice. Every
one of them has a key in `.editorconfig` (`resharper_cpp_…_highlighting`; a clang-tidy check's is
`resharper_cpp_clang_tidy_<check>_highlighting`), so D100's rule holds without a second file: no `.clang-tidy`.
**Its first runs, and what was done.** Run 42923079119: **4,695 problems**, 4,040 of them hints, which are off as on
the managed side. Run 42928814104: **655** — **494 distinct**, because a source file compiled into three targets is
reported three times.
| What | distinct | Done |
|---|---|---|
| A choice this code made, off for the native tree: where the compiler pads a struct (46); MSVC's own keywords, `__try` among them (54); a function pointer got by name cast to its real type, through `void*` (55); `reinterpret_cast` where memory is read as something else (5); `std::cmp_less` proposed for comparisons that already cast (20); a `default:` under a full enum switch (3); a copied verdict (4); the moves of a type that owns a handle (11); a zeroed out-parameter enum (8); an enum's width (5); "can be made const / constexpr / static" (52); "possibly unused `#include`" (15) | 278 | off in `.editorconfig`, each with its reason. Of the fifteen includes two were unused and were removed; the others are a file including what it uses although another header already brings it |
| A newer idiom proposed for working code — a range-for, `std::ranges`, `any_of`, `starts_with`, a raw string, an `if` with an initialiser | 53 | off: the native code is written to be read beside the hook path, an index and a plain loop |
| **The engine misreading**: `std::atomic_ref<T>::fetch_or` as an expression without side effects (7); a Win32, D3D12 or ffx-api structure zero-initialised and then filled field by field as "always rewritten" and "assigned, never used" (15); a test of a `constexpr` function as a redundant argument (3) | 25 | off, with what the engine gets wrong written beside the keys |
| Fields nothing names, in a structure Windows defines and the SDK's headers do not give (`RTL_PROCESS_MODULE_INFORMATION`, `PROCESS_MEMORY_COUNTERS_EX2`) and in a test's stand-in for a Vulkan object | 25 | off for those four files: the fields are what puts the others at their offsets |
| `%lu` with an `NvU32`, in `fl-probe-nvapi` | 19 | off for that file: NVAPI's header makes `NvU32` an `unsigned int` under clang and an `unsigned long` under MSVC — the linter's compiler, not the build's |
| The probes, the harness and the tests: an unchecked `printf` (35), `atoi` on the harness's own arguments (20), a `&pointer` handed to a `void*` parameter (7), a printf-shaped helper (4), a fake handle built from a number (4), a test's fixtures (4), `layout_test`'s run-time checks of compile-time facts (3), a macro that pastes a name (1) | 78 | off for `tools` and `tests` |
| Code loaded into a game (below) | 7 | kept as it is, off for those files; one of them is dead code, recorded for the owner |
| **Fixed**: `sizeof(a) / sizeof(a[0])` → `std::size(a)` (4); a multiplication done in a narrower type than the one it is stored in or compared with (2: a constant in the guard's sources, a test); a member function, and a type alias, nothing used (3) | 9 | in the code; none changes what a shipped binary does |
With those settled, run 42942068024 — the first with these settings — reported **one** problem: `LogNoteW`, now by
ReSharper's own inspection where clang's had said it before (below). And run 42943094415 (2026-11-11, this pull
request's branch): **no problem reported** — the gate's zero, in the native report too.
**Code loaded into a game — the Overlay, the Vulkan layer, the shared-memory headers, the guard's rule matcher.**
D100: there only a defect is fixed, in a pull request of its own with the hook's overhead measured (rule 5,
`14_TESTING` §Hook overhead), and a proposal about style is not acted on. About a quarter of the 655 results were in
those files; nearly all of them are the tree-wide kinds above. **The report found no defect there.** What is
particular to them, read and kept: two `if` chains whose arms have the same body and are different cases, each with
its comment (`dllmain.cpp`); MinHook's `MH_ALL_HOOKS`, which is `NULL` by its header; a retired enumerator kept so
that its bit is not reused; `slSetTag`, deprecated by a header whose replacement no measured module exports;
`ResolveTolerance` clearing its out-parameter with `memset`, as `ResetRules` does — a `Tolerance` is flags whose
default initialisers are zero. And one thing that is not as it should be: **`LogNoteW` in `dllmain.cpp`, which nothing
calls** — dead code. It is not a defect, so D100 leaves its removal to the owner (HANDOFF); until then that one file
is not read for an unused function (`.editorconfig` says so, in a section to be removed with it).
**"Zero" has to mean "analysed".** A report with no problem cannot tell a clean tree from one the linter did not
read. So the settings were proved on a branch that puts back three of the things fixed here — the unused alias, the
unused member function, the narrow multiplication. Run 42942390715 reported exactly those three, each by the
inspection that had found it the first time (`CppTypeAliasNeverUsed` in `tools/fl-probe-interposer/main.cpp`;
`clang-diagnostic-unused-member-function` and `bugprone-implicit-widening-of-multiplication-result` in
`tests/ring_test.cpp`), and `LogNoteW`, and nothing else. The branch was deleted. Do the same before trusting a
zero after a change to the preset, the settings or the linter's version.
**What it does not read.** CMake files and PowerShell have no inspection in this linter (SonarCloud reads the
PowerShell); the HLSL shader and the `.def` file are not C++. CodeQL (`analyze (cpp, manual)`, a required check) and
SonarCloud go on reading the C++ as before: this is a third reader, and the only one of the three that is ReSharper's.
**Where an inspection is switched off: by the engine that raised it (D100, amending D93's "never in `qodana.yaml`").**
What Qodana reports is fixed, unless the inspection argues with a choice this project made; then it is off, with the
reason on the line above — in the place the engine that raised it reads:
- **ReSharper's** — the C#, the XAML, the `.resx`, and the C++ of the native report with the clang-tidy checks it
runs — in **`.editorconfig`** (`resharper_*_highlighting`), where Rider and ReSharper in the editor read it too:
sixty-four keys for the managed code, fifty-four lines for the C++, some of them for a folder or a file alone.
- **What has no key there** — in **`qodana.yaml`**: a whole severity (the hints) and the IntelliJ platform's Markdown
and XML inspections under `profile.inspections`; under `exclude`, by inspection and path, the files JetBrains'
security rules were read in and a file the linter itself fails on.
- **What is not FrameLedger's code** is left out by path (`exclude`): `SonarQube.Analysis.xml`'s list, for its reasons.
**What it does not use, and what happens if the licence lapses.** Quick-fixes (the linter would push commits — the job
has no `contents: write`, and a change nobody read is not wanted), code coverage in Qodana (the gate's coverage and
SonarCloud's already read the same reports) and FlexInspect are Ultimate features this job leaves alone. Without a
valid licence the linter does not start, so the job is red — advisory, never a blocked merge; the way back is
`linter: qodana-cdnet` with the job on `ubuntu-latest`, as it ran until beta.37.
**Running it on a developer's PC.** `qodana scan` in the repository root reads `qodana.yaml`, downloads the linter and
needs the project's token in `QODANA_TOKEN` — the Ultimate linter checks the licence. Without a token, InspectCode
still gives ReSharper's part (*As it was built*, below), with `--toolset-path` at the 11.0 SDK's `MSBuild.dll`; the
Markdown, XML and security results are the Rider linter's alone.
**As it was built — the Community linter, 2026-11-10 to beta.37 (D93).** Kept as written; where it says *is*, read *was*.
**D93 — Qodana reads the C# and the XAML from CI.** The owner made the project on Qodana Cloud, set the `QODANA_TOKEN`
secret (2026-11-10) and asked for Qodana in CI from the workflow JetBrains gives, changed where it had to be, with what
+59 -84
View File
@@ -76,6 +76,7 @@ owner-only items stay below; the history of every train, the passed owner-only i
| `§beta.34` | [`handoff/history/0.1.0-beta.34.md`](handoff/history/0.1.0-beta.34.md) |
| `§beta.35` | [`handoff/history/0.1.0-beta.35.md`](handoff/history/0.1.0-beta.35.md) |
| `§beta.36` | [`handoff/history/0.1.0-beta.36.md`](handoff/history/0.1.0-beta.36.md) |
| `§beta.37` | [`handoff/history/0.1.0-beta.37.md`](handoff/history/0.1.0-beta.37.md) |
| `§Owner-only`, an open item | [§Owner-only](#owner-only--no-pr-can-close-these) below |
| `§Owner-only`, a passed item (3, 12, 14–19) | [`handoff/owner-only-passed.md`](handoff/owner-only-passed.md) |
| `§Traps`, `§Two corrections carried forward` | [`handoff/traps.md`](handoff/traps.md) |
@@ -83,100 +84,63 @@ owner-only items stay below; the history of every train, the passed owner-only i
---
## **START HERE** — 2026-11-11, 0.1.0-beta.37: the main line on .NET 11, what an alpha is now, and why no C# 15 yet
## **START HERE** — 2026-11-11, 0.1.0-beta.38: Qodana Ultimate in two reports — and the next work is the owner's "Thông số nâng cao"
*Status is `docs/changelog/0.1.0-beta.37.md`; this is what no other file carries.* The owner, with two screenshots — a
Qodana Ultimate licence in the JetBrains console, and the Qodana Cloud project's setup page: "Bạn có thể bắt đầu với phiên
cải tiến cho .net 11 và set up cho qodana cho tất cả ngôn ngữ (gói ultimate) nhé." The session D92 had left for after
.NET 11's release (2026-11-10), and Qodana for every language on the Ultimate licence. One plan, approved whole, in
three parts: **beta.37** (#376 the move, #379 what an alpha is, #380 .NET 11's API and the C# 15 finding, and this
release) → **alpha.4** → **Qodana Ultimate in two reports**. This section is the first part; the other two follow it on
`main` the same way.
*Status is `docs/changelog/0.1.0-beta.38.md`; this is what no other file carries.* This release closes the plan of
2026-11-11 — **beta.37** → **alpha.4** → **Qodana Ultimate in two reports**. The plan was one session's, and its START
HERE was moved whole: all three parts, the decisions D94–D100, the choices and the traps are
[`handoff/history/0.1.0-beta.37.md`](handoff/history/0.1.0-beta.37.md) — the two Qodana sections are its last two.
#384 moved the managed job to Qodana for .NET and settled what it reports; #385 added the C++ as a second report; this
release ships the one change to shipped code that came of it: the App's link opener refuses anything but a web or a
mail address.
**Decisions (asked while planning, do not re-ask):**
### NEXT — the owner's request of 2026-11-11, for the session(s) after this one
- **D94 — the main line moves to .NET 11 now.** Asked whether the betas move or only alpha.4 — with
`20_OPEN_QUESTIONS` §G's table quoted: two alphas on the released runtime and an owner's run of a hooked title first —
the owner chose "Chuyển main sang .NET 11 ngay". Condition (a) of that table was **set aside, not met**;
`12_BUILD` §The main line's .NET says what stood in for it, and owner-only item 34 is the run it asked for.
- **D95 — Windows 10 22H2 is not blocked, and is stated as untested and unsupported** ("Vẫn chạy, ghi rõ không được hỗ
trợ"). NFR-8 is amended; a processor needs SSE4.2 and POPCNT.
- **D96 — C# 15 in the same release** ("Áp dụng cả C# 15 ngay trong beta.37"). The plan narrowed it in writing, and was
approved with that: a construct only where the build, CodeQL and Qodana all read it.
- **D97 — all three legal texts reworded** ("Sửa cả ba văn bản"): EULA 1.7, Disclaimer 2.14, Alpha notice 1.1. Their
text was in the plan and approved with it.
- **D98 — alpha.4, then the alpha line rests** until a newer .NET has a preview ("alpha.4 rồi nghỉ tới .NET 12
Preview").
- **The order**: beta.37 → alpha.4 first, Qodana after; and Qodana in **two reports from the start** (the third part's
decision, D99).
Sent while this session was still running, and recorded here as it was written:
**Choices made here:**
> "Xong phiên này, bạn cập nhật (những) phiên tiếp theo với các phiên bản về Setting "Thông số nâng cao" hoặc tương tự
> và hiển thị tại 1 navigation riêng, khai thác số liệu, dữ liệu, biểu đồ mức tối đa, toản bộ mà các header `.h` của
> Streamline và NVAPI hoặc pawnIO có thể sử dụng và hiển thị nhé."
- **No C# 15 construct is used, although the owner asked for them.** The rule decided it, not a preference:
ReSharper's engine, which Qodana runs, reads none of the four (`13_CI_CD` §C# 15 and the analyses, `spike-notes`
§29). Unions would not have been the form in any case — the SDK's own CA1815 asks every union to hand-write its
equality, and the shapes that wanted one are closed record hierarchies. What the release takes is API.
- **.NET 11's `IHost.RunAsync` is accepted, not wrapped**: a failed background service now ends the Agent through its
crash report. A catch there would hide a fault, and could not reproduce .NET 10's exit exactly either.
- **A resting alpha says so in the build, not only in its notes**: the anti-cheat list reaches a user only inside a
release, so an alpha nobody updates carries an ageing one. `FlAlphaLineRests` is stamped on both lines; the `alpha`
branch sets it to false when it next tries a .NET.
- **"A prerelease .NET" is said only by a build that runs on one**, read from the runtime's own description — the next
preview alpha says it again with no change to the code.
- **`release.yml` names the .NET 10 runtime `vpk` needs**, rather than relying on the hosted image carrying one.
- **The Community Qodana job was kept alive across the move** by installing the SDK into its container — an interim;
the Ultimate linter replaces the job in the third part.
- **The 2026-10-31 forms stay where they read as well** (`json.AsSpan().TrimStart().StartsWith('[')` avoids a string):
.NET 11's `char` overloads replaced a span only where the span was there for .NET 10's sake.
That is: once this session is done, the following session or sessions — and their versions — are about a setting
called *"Thông số nâng cao"* (advanced metrics) or similar, shown in **a navigation item of its own**, that exploits
to the maximum the numbers, the data and the charts that the `.h` headers of **Streamline** and **NVAPI**, or
**PawnIO**, make available.
**Measured on the way** (`spike-notes` §28 and §29): the gate on SDK 11.0.100 — two analyzer sites beyond RC3's
twenty-one, both in tests written after the last alpha; `IHost.RunAsync` rethrowing, observed for the first time; the
first delta across two runtime majors (372 of 443 files patched, 72.6 MB on the rehearsal); `main`'s first full CodeQL
C# analysis on `net11.0` (1,221 of 1,221 files, the same 23 unresolved `Windows.Win32` types as on .NET 10); the
SonarScanner 12.0.0 on the 11.0 runtime; InspectCode 2026.2.3.1 and 2026.3.0 against each C# 15 construct.
**Nothing of it was designed or begun here.** It is a new task, and it starts the way every train does — a plan, with
the owner's decisions asked while planning. What follows is this session's reading, not the owner's words:
**Traps met on the way:**
- **An inventory comes first, from the headers in the tree**: `src/native/third_party/streamline`, `nvapi`,
`fidelityfx`; and what LibreHardwareMonitorLib reads through PawnIO (CPU and board sensors — optional, elevated
only). For each item: what it is, and **where it can be read from** — the Agent's own process (NVAPI through
`FrameLedger.NvapiBridge`, LibreHardwareMonitor) or only inside the game, through a hook (Streamline).
- **Anything read inside a game is a hook**, and the rules that govern hooks are not this feature's to bend: rules 4
and 5, `17_HOOK_ENGINE` §Hook inventory, the overhead stated, the open S-series of `20_OPEN_QUESTIONS`; the
anti-cheat guard and rule 2 untouched. Rule 6 governs any frame rate it shows beside frame generation, rule 7 any
Yes/No it shows, and rule 8 says it calls nothing on the network.
- **Questions that are the owner's**: on or off by default; what is stored in the ledger (a schema change, the size
of a session) and what is shown live only; what a PC without an NVIDIA card shows (N/A, never a guess); whether
the page asks for the elevation PawnIO needs; how many releases, and in what order.
- **What a new page owes**: strings in `en`, `vi`, `ja`; `ACCESSIBILITY.md` §For contributors for the page and each
chart; `LIMITATIONS.md` and the guide; `08_UI`.
- **A pull request's CodeQL C# run is an overlay analysis**: it extracts the changed files on top of `main`'s cached
database, and its "scanned N out of N" is `main`'s baseline. #376 wrote "CodeQL reads `net11.0` whole" from one and
was corrected, dated, two pull requests later with `main`'s own run. For anything the extractor has not met, dispatch
`codeql.yml` on the branch (it takes `workflow_dispatch` since #380).
- **`ShmDrainIntegrationTests.TheGuardInjectsTheOverlayAndTheReaderDrainsRealFrames` failed once on the dev box** —
"our own harness must not start matching the blocklist mid-run": the guard's re-scan refused the harness in one gate
run of five. The class passed three times in a row straight after and no guard code had changed; not looked into.
- **A wiki page names no version** (`wiki-check`): "since 0.1.0-alpha.4" in `wiki/Releasing.md` was red. The guide's
pages may.
- **The runner queue**: with three workflows per pull request and a probe's pull request open beside the train,
`check` waited about 25 minutes for a runner. Cancel a probe's runs once it has told what it can.
- **A Bash heredoc halves the backslashes** of an inline Python regex — write the script with the Write tool.
- **`x.Should().NotBeNull(); x!.Member`**: ReSharper reads the `!` as redundant (Qodana's one finding on #376) and the
compiler wants it. Keep the value the assertion needs, not the object.
- **CA2025** on a lambda that captures a `using` variable in a test: await inside a `try`, assert after.
- **A local gate reseeds `%LOCALAPPDATA%\FrameLedger\rules`** while the owner's installed copy runs beside it: the
files were hashed before and after every gate (identical each time — the repository's rules were the installed ones).
### Left open by this session
**Owner-only:** item 34 — beta.37 on real hardware, a hooked session on .NET 11.0.0, and Windows 10 if a PC with it is
at hand.
### 0.1.0-alpha.4 — the fourth alpha, the same day, and the last for now (D98)
`alpha` takes main at this pull request — `v0.1.0-beta.37` and these notes, no other change — by a merge commit. **This
sync is not like the three before it**: main now holds what the switch held (`global.json`, the TFM, the three
packages, `legal/licenses/nuget/`, the *Transitive* row), so every switch file conflicts, and each is resolved by
taking main's — the branch's RC3 lines go, `RELEASE_LINE` stays `alpha`, and `git diff --name-only origin/main` on the
merged tree must print that one name. Its gate must pass on `alpha` before the pull request is merged by hand (the
branch has no auto-merge); the release runs from the signed tag `v0.1.0-alpha.4` on `alpha`, with its delta from
alpha.3. Its notes are `docs/changelog/0.1.0-alpha.4.md`: the warning, and that it is the last alpha for now.
- **After it the line rests** (`12_BUILD` §The alpha line): no sync follows a beta and no alpha is cut until a newer
.NET has a preview. `FlAlphaLineRests` in `Directory.Build.props` says so to the build; the next trial sets it to
`false` on `alpha` with the rest of the switch.
- **What a resting alpha costs its user** is in its notes, the guide and its banner: no update, the anti-cheat list
included; and once ten betas have followed it, a copy of alpha.3 or older no longer finds alpha.4 (Velopack reads
the newest ten releases).
**Owner-only:** item 35 — the fourth alpha on real hardware, and the beta installed over it.
- **`LogNoteW`** (`src/native/FrameLedger.Overlay/src/dllmain.cpp`): a function nothing calls, found by the native
report and **not removed** — D100 changes code loaded into a game for a defect only, and dead code is not one. The
owner says whether it goes (owner-only item 36 (d)); `.editorconfig` has a section, naming it, that goes with it.
- **This release's own facts** — the tag's run, the digests, the delta — are not in any file yet: the release is cut
after this text. Record them in the next pull request, as beta.37's and alpha.4's were in #384. What is known
before the tag: the rehearsal on the release branch (run 42944533749) made a delta from beta.37 of 727,036
bytes — "Delta processed 0452 files. 0022 patched, 0430 unchanged, 0000 new, 0000 removed".
- **The Qodana licence** is read from the job's log (*Qodana license plan: Ultimate*, and the day the subscription is
active until). When it lapses both jobs are red and advisory; `qodana.yaml`'s first comment is the way back.
- **C# 15's constructs** wait for a ReSharper engine that reads them (`20_OPEN_QUESTIONS` §G, the row added with
beta.37): the linter is now Qodana for .NET, whose engine is the same one — re-run the canary (`spike-notes` §29)
when the action's pin moves.
- **The alpha line rests** (D98). No sync and no alpha follow this release.
**Owner-only:** item 36 — beta.38 on real hardware, the links, the two Qodana Cloud projects, and `LogNoteW`.
## Owner-only — no PR can close these
@@ -450,6 +414,15 @@ alpha.3. Its notes are `docs/changelog/0.1.0-alpha.4.md`: the warning, and that
experimental-build warning — and Help ▸ About reads *Alpha build — runs on .NET 11.0.0*, with no "prerelease".
(d) **Then install beta.37 over it**: the installer asks to replace it; the beta opens the ledger, shows no Alpha
notice, and its update channel is no longer locked.
36. **beta.38, and the two Qodana reports** (D99, D100). (a) **The update from beta.37**: Help ▸ Check for updates
offers beta.38 — a small download — and *Restart to update* installs it; no terms window. (b) **Links still open**:
the documentation from the Help menu, a document's page on GitHub from its window, a link inside the user guide
and inside the update notes, and the source link in Help ▸ About each open in the browser, as before. (c) **Qodana Cloud**: the projects `frameledger` and
`frameledger-cpp` each show a report from `main` with no problem. A job's log says *Qodana license plan: Ultimate*
and the day the subscription is active until; when it lapses both jobs go red — advisory, never a blocked merge —
and `qodana.yaml` says the way back. (d) **`LogNoteW`**: the Overlay has one function nothing calls
(`src/native/FrameLedger.Overlay/src/dllmain.cpp`). Say whether it is removed — a pull request of its own, eleven
lines — or kept; either way the `.editorconfig` section that names it is then removed or reworded.
**Answered 2026-08-05, do not re-ask:** remove `gameguard` and keep `guard` (approved
over a red `Rules` gate, with the reasoning recorded in the merge commit); vendor NVAPI
headers **and** `amd64/nvapi64.lib`; Windows 11 is the **measurement scope** only —
@@ -562,6 +535,8 @@ Where each owner decision is recorded — the file and its section, and a label
| D96 | [`13_CI_CD.md`](13_CI_CD.md) §C# 15 and the analyses | C# 15 on the main line from beta.37, a construct only where the build, CodeQL and Qodana read it — none of the four yet (Qodana's engine reads none, 2026-11-11), so beta.37 takes .NET 11's API and no syntax; no preview feature |
| D97 | [`../legal/ALPHA_NOTICE.md`](../legal/ALPHA_NOTICE.md) | an alpha is "a beta's source built to try a newer version of .NET, at times a prerelease one": EULA 1.7, Disclaimer 2.14 (with a paragraph on Windows and the processor), Alpha notice 1.1, approved with the plan; the App says "a prerelease .NET" only where the runtime is one |
| D98 | [`12_BUILD.md`](12_BUILD.md) §The alpha line | alpha.4 is beta.37's source on .NET 11.0.0, and then the alpha line rests until a newer .NET has a preview; a resting alpha tells its user to install the beta |
| D99 | [`13_CI_CD.md`](13_CI_CD.md) §Qodana | Qodana for .NET on the Ultimate licence, in two reports from the start: the managed code to the Qodana Cloud project `frameledger`, the C++ to `frameledger-cpp` |
| D100 | [`13_CI_CD.md`](13_CI_CD.md) §Qodana | an inspection is switched off where the engine that raised it reads — ReSharper's in `.editorconfig`, the rest in `qodana.yaml` (amends D93); hints are off as a severity; in code loaded into a game only defects are fixed |
---
+69
View File
@@ -0,0 +1,69 @@
<!-- Moved from CHANGELOG.md's [Unreleased] when 0.1.0-beta.38 was cut, 2026-11-11 (D66). CHANGELOG.md lists every release. -->
## [0.1.0-beta.38] - 2026-11-11
**The thirty-eighth pre-release: the App opens web and mail links only.** One small hardening, and nothing else you
see, record or measure changes. The one place in the App that hands a link to Windows now refuses any address that is
not `http`, `https` or `mailto`, where it trusted each caller to have checked — Windows runs whatever it is handed, and
a `file:` address is a program. Every link the App shows already was one of those three, so no link you could click
before stops working. The rest of this release is for developers: Qodana — JetBrains' code analysis — now reads the C#
with its Rider-based linter and, as a second report, the C++. The same unsigned installer: verify its hash against
`SHA256SUMS.txt`, then *More info → Run anyway*.
**Updating from `0.1.0-beta.37`:** Help ▸ Check for updates, then *Restart to update* with no game running. The legal
texts keep their versions, so nothing is shown for you to accept; the ledger stays at schema 22 and the detection rules
at `2026.11.2`. Nothing about capture or measurement changes: the code FrameLedger loads into a game is
0.1.0-beta.37's, line for line.
**No alpha follows this release**: the alpha line rests (`guide/11-alpha-builds.md`).
### Changed
- **Every place that starts a process was read, and the App now opens web and mail links only.** JetBrains' rule for
"a process started with something that is not a literal" reported 35 places — 11 in the product, 24 in tests. Each
was read: what it starts, and where the path and the arguments come from (the table in `docs/13_CI_CD.md` §Qodana).
None takes a value from outside the PC or from a file FrameLedger did not write, except the path and arguments of
the game the user added. One was hardened: `ShellUrlOpener` — what opens a link in the browser or the mail client —
now refuses any address that is not `http`, `https` or `mailto` itself, where it trusted each caller to have
checked; the shell runs whatever it is handed, and a `file:` address is a program. Every caller already passed one
of the project's own pages or a link held to those schemes, so no link you could click before stops working. The
rule stays on: the files its results were read in are listed in `qodana.yaml`, so a new file that starts a
process is reported — by path on the plugin's one inspection, since a rule's own id is honoured nowhere (three
runs measured it). And a test of the repository's own, `ProcessStartSitesTests`, in the gate, fails on a new file
that starts a process, or registers a scheduled task, until it has been read and listed.
- **Qodana for .NET, on the Ultimate licence, reads the managed code** (developers only; owner decisions D99 and D100).
The owner took an Ultimate licence for the Qodana Cloud organisation and asked for Qodana over every language. The
job — `managed`, *Qodana (managed)* in a pull request's checks — now runs Qodana for .NET (Rider's engine) in native
mode on a Windows runner, after a `dotnet build`, where the Community linter ran in a Linux container. Besides the
C#, the XAML and the `.resx` it reads the Markdown and XML around the solution, and JetBrains' security rules read
the C#. Its first run reported 3,953 problems, 3,607 of them **hints** — the level an editor offers without
underlining anything, which the Community linter never reported; hints are off as a severity. Of the 347 left: a vi
or ja string equal to the English one (271) is off in `.editorconfig` for `.resx` files — names, units and format
strings are not translated; two Markdown inspections (table padding, and anchors computed otherwise than GitHub
does) and the application manifest's XML are off in `qodana.yaml`; six results in `PrimaryDisplay.cs` are the
linter's own fault (an internal assertion, in its log) and are excluded for that file; one test expression was
simplified. The gate stays zero problems and the job stays advisory. An inspection is now switched off **where the
engine that raised it reads** — one of ReSharper's in `.editorconfig`, what has no key there in `qodana.yaml` — which
amends D93's "never in `qodana.yaml`" (`docs/13_CI_CD.md` §Qodana). The C++ goes to a second report, the next pull
request's.
- **Qodana reads the C++ too, as a second report** (developers only; owner decision D99). The job `native` has CMake
write a Visual Studio solution for `src/native` (the preset `x64-vs-analysis`; nothing ships from it) and runs
Qodana for .NET over it — ReSharper's C++ inspections and the clang-tidy checks they bundle — with settings of its
own (`qodana-native.yaml`), reporting to a Qodana Cloud project of its own. Its first run reported 4,695 problems,
4,040 of them hints; of the 655 left, 494 are distinct (a file compiled into three targets is reported three
times). Nearly all of them are not faults, and `.editorconfig` now says why in fifty-four lines, each with its
reason: clang's opinion of code that only MSVC builds (`__try`, a function pointer got by name, struct padding);
the engine misreading `std::atomic_ref`, zero-initialised API structures and tests of `constexpr` functions;
proposals to restate working code in a newer idiom; and what a probe or a test does on purpose. Eleven things
were fixed, none changing what a shipped binary does: `std::size` for four hand-written array lengths, two
multiplications done in a narrower type than their result, two unused member functions, an unused type alias, two
unused includes. **In code loaded into a game nothing was changed**: the report found no defect there, and what it
did say about those files is listed in `docs/13_CI_CD.md` §Qodana — among it one function in the Overlay that
nothing calls (`LogNoteW`), which is recorded for the owner and not removed (D100). The gate is zero problems and the job is advisory, like the other.
### Fixed
- **A test that failed on a busy machine** (developers only). `ShmDrainIntegrationTests`' drain under supervision
ended after one guard evaluation whenever the first scan was slow enough for fifty presents to be waiting, and
then failed its own "supervised more than once"; the loop now supervises at least twice whatever the first
drain holds.
+205
View File
@@ -0,0 +1,205 @@
# HANDOFF history — 0.1.0-beta.37
*Moved verbatim from `docs/HANDOFF.md` when 0.1.0-beta.38 was cut, 2026-11-11 (owner decision D66); `docs/HANDOFF.md` §How this file is split lists every part. Nothing below was edited, so its "below" and "above" mean HANDOFF.md as it stood then.*
## **START HERE** — 2026-11-11, 0.1.0-beta.37: the main line on .NET 11, what an alpha is now, and why no C# 15 yet
*Status is `docs/changelog/0.1.0-beta.37.md`; this is what no other file carries.* The owner, with two screenshots — a
Qodana Ultimate licence in the JetBrains console, and the Qodana Cloud project's setup page: "Bạn có thể bắt đầu với phiên
cải tiến cho .net 11 và set up cho qodana cho tất cả ngôn ngữ (gói ultimate) nhé." The session D92 had left for after
.NET 11's release (2026-11-10), and Qodana for every language on the Ultimate licence. One plan, approved whole, in
three parts: **beta.37** (#376 the move, #379 what an alpha is, #380 .NET 11's API and the C# 15 finding, and this
release) → **alpha.4** → **Qodana Ultimate in two reports**. This section is the first part; the other two follow it on
`main` the same way.
**Decisions (asked while planning, do not re-ask):**
- **D94 — the main line moves to .NET 11 now.** Asked whether the betas move or only alpha.4 — with
`20_OPEN_QUESTIONS` §G's table quoted: two alphas on the released runtime and an owner's run of a hooked title first —
the owner chose "Chuyển main sang .NET 11 ngay". Condition (a) of that table was **set aside, not met**;
`12_BUILD` §The main line's .NET says what stood in for it, and owner-only item 34 is the run it asked for.
- **D95 — Windows 10 22H2 is not blocked, and is stated as untested and unsupported** ("Vẫn chạy, ghi rõ không được hỗ
trợ"). NFR-8 is amended; a processor needs SSE4.2 and POPCNT.
- **D96 — C# 15 in the same release** ("Áp dụng cả C# 15 ngay trong beta.37"). The plan narrowed it in writing, and was
approved with that: a construct only where the build, CodeQL and Qodana all read it.
- **D97 — all three legal texts reworded** ("Sửa cả ba văn bản"): EULA 1.7, Disclaimer 2.14, Alpha notice 1.1. Their
text was in the plan and approved with it.
- **D98 — alpha.4, then the alpha line rests** until a newer .NET has a preview ("alpha.4 rồi nghỉ tới .NET 12
Preview").
- **The order**: beta.37 → alpha.4 first, Qodana after; and Qodana in **two reports from the start** (the third part's
decision, D99).
**Choices made here:**
- **No C# 15 construct is used, although the owner asked for them.** The rule decided it, not a preference:
ReSharper's engine, which Qodana runs, reads none of the four (`13_CI_CD` §C# 15 and the analyses, `spike-notes`
§29). Unions would not have been the form in any case — the SDK's own CA1815 asks every union to hand-write its
equality, and the shapes that wanted one are closed record hierarchies. What the release takes is API.
- **.NET 11's `IHost.RunAsync` is accepted, not wrapped**: a failed background service now ends the Agent through its
crash report. A catch there would hide a fault, and could not reproduce .NET 10's exit exactly either.
- **A resting alpha says so in the build, not only in its notes**: the anti-cheat list reaches a user only inside a
release, so an alpha nobody updates carries an ageing one. `FlAlphaLineRests` is stamped on both lines; the `alpha`
branch sets it to false when it next tries a .NET.
- **"A prerelease .NET" is said only by a build that runs on one**, read from the runtime's own description — the next
preview alpha says it again with no change to the code.
- **`release.yml` names the .NET 10 runtime `vpk` needs**, rather than relying on the hosted image carrying one.
- **The Community Qodana job was kept alive across the move** by installing the SDK into its container — an interim;
the Ultimate linter replaces the job in the third part.
- **The 2026-10-31 forms stay where they read as well** (`json.AsSpan().TrimStart().StartsWith('[')` avoids a string):
.NET 11's `char` overloads replaced a span only where the span was there for .NET 10's sake.
**Measured on the way** (`spike-notes` §28 and §29): the gate on SDK 11.0.100 — two analyzer sites beyond RC3's
twenty-one, both in tests written after the last alpha; `IHost.RunAsync` rethrowing, observed for the first time; the
first delta across two runtime majors (372 of 443 files patched, 72.6 MB on the rehearsal); `main`'s first full CodeQL
C# analysis on `net11.0` (1,221 of 1,221 files, the same 23 unresolved `Windows.Win32` types as on .NET 10); the
SonarScanner 12.0.0 on the 11.0 runtime; InspectCode 2026.2.3.1 and 2026.3.0 against each C# 15 construct.
**Traps met on the way:**
- **A pull request's CodeQL C# run is an overlay analysis**: it extracts the changed files on top of `main`'s cached
database, and its "scanned N out of N" is `main`'s baseline. #376 wrote "CodeQL reads `net11.0` whole" from one and
was corrected, dated, two pull requests later with `main`'s own run. For anything the extractor has not met, dispatch
`codeql.yml` on the branch (it takes `workflow_dispatch` since #380).
- **`ShmDrainIntegrationTests.TheGuardInjectsTheOverlayAndTheReaderDrainsRealFrames` failed once on the dev box** —
"our own harness must not start matching the blocklist mid-run": the guard's re-scan refused the harness in one gate
run of five. The class passed three times in a row straight after and no guard code had changed; not looked into.
- **A wiki page names no version** (`wiki-check`): "since 0.1.0-alpha.4" in `wiki/Releasing.md` was red. The guide's
pages may.
- **The runner queue**: with three workflows per pull request and a probe's pull request open beside the train,
`check` waited about 25 minutes for a runner. Cancel a probe's runs once it has told what it can.
- **A Bash heredoc halves the backslashes** of an inline Python regex — write the script with the Write tool.
- **`x.Should().NotBeNull(); x!.Member`**: ReSharper reads the `!` as redundant (Qodana's one finding on #376) and the
compiler wants it. Keep the value the assertion needs, not the object.
- **CA2025** on a lambda that captures a `using` variable in a test: await inside a `try`, assert after.
- **A local gate reseeds `%LOCALAPPDATA%\FrameLedger\rules`** while the owner's installed copy runs beside it: the
files were hashed before and after every gate (identical each time — the repository's rules were the installed ones).
**The release (the tag, 2026-11-11).** Rehearsed first (`release.yml` dispatched on the release branch, run
42926539241), then the signed tag `v0.1.0-beta.37` on `1a7fbf3`: run 42930394186, published 2026-11-11T00:36:54Z.
Eight assets, the seven listed in `SHA256SUMS.txt` equal to the digests GitHub computed; `FL_BUILD_ID v0.1.0-beta.37`
in the shipped natives. The delta across two major runtimes exists — the stop condition the plan had named: "Delta
processed 0443 files. 0373 patched, 0070 unchanged, 0009 new, 0017 removed", 72,681,960 bytes beside a full package of
110,325,368. The wiki was published by its own run (42932792575).
**Owner-only:** item 34 — beta.37 on real hardware, a hooked session on .NET 11.0.0, and Windows 10 if a PC with it is
at hand.
### 0.1.0-alpha.4 — the fourth alpha, the same day, and the last for now (D98)
`alpha` takes main at this pull request — `v0.1.0-beta.37` and these notes, no other change — by a merge commit. **This
sync is not like the three before it**: main now holds what the switch held (`global.json`, the TFM, the three
packages, `legal/licenses/nuget/`, the *Transitive* row), so every switch file conflicts, and each is resolved by
taking main's — the branch's RC3 lines go, `RELEASE_LINE` stays `alpha`, and `git diff --name-only origin/main` on the
merged tree must print that one name. Its gate must pass on `alpha` before the pull request is merged by hand (the
branch has no auto-merge); the release runs from the signed tag `v0.1.0-alpha.4` on `alpha`, with its delta from
alpha.3. Its notes are `docs/changelog/0.1.0-alpha.4.md`: the warning, and that it is the last alpha for now.
- **After it the line rests** (`12_BUILD` §The alpha line): no sync follows a beta and no alpha is cut until a newer
.NET has a preview. `FlAlphaLineRests` in `Directory.Build.props` says so to the build; the next trial sets it to
`false` on `alpha` with the rest of the switch.
- **What a resting alpha costs its user** is in its notes, the guide and its banner: no update, the anti-cheat list
included; and once ten betas have followed it, a copy of alpha.3 or older no longer finds alpha.4 (Velopack reads
the newest ten releases).
**The sync and the release (2026-11-11).** #382 put the notes on main (`428b723`); #383 merged main into `alpha` by
hand (`134115b`): twenty-seven conflicts, every one resolved to main's side, and `git diff --name-only origin/main
origin/alpha` prints `RELEASE_LINE` alone. Rehearsed on `alpha` (run 42933603983: channel `alpha`, a delta from
alpha.3), then the signed tag `v0.1.0-alpha.4`: run 42935876535, published 2026-11-11T01:16:22Z as *FrameLedger
0.1.0-alpha.4 (experimental alpha)*, a pre-release. Eight assets, seven of seven digests equal; "Delta processed 0448
files. 0369 patched, 0079 unchanged, 0004 new, 0005 removed", 18,207,557 bytes; `FrameLedger.App-alpha-Setup.exe`,
`releases.alpha.json`; the wiki run skipped, as it does for an alpha.
- **One tag push started two release runs** (42935876535 and 42935878584, both `push`, created in the same second;
the tag was pushed once). `release.yml`'s concurrency group made the second wait for the first, and it then began
the whole build again. It was cancelled once the first had published: it could only have ended red, at
`gh release create` on a release that existed. If a tag ever shows two runs, let the first finish, verify the
release, then cancel the other.
**Owner-only:** item 35 — the fourth alpha on real hardware, and the beta installed over it.
### Qodana for .NET on the Ultimate licence — the managed report (D99, D100)
*Status is `docs/13_CI_CD.md` §Qodana and `CHANGELOG.md`; this is what no other file carries.* The third part of the
plan, in two pull requests: this one moves the existing job to Qodana for .NET (Rider's engine, native on a Windows
runner) and settles what it reports over the managed code; the next adds the C++ as a second report.
**Decisions:**
- **D99 — two reports from the start** ("Hai báo cáo ngay từ đầu"). The owner made a second Qodana Cloud project,
`frameledger-cpp`, and the secret `QODANA_TOKEN_NATIVE`; the managed report goes to `frameledger` with
`QODANA_TOKEN`. Both secrets are the owner's; no token was ever read or handled here.
- **D100 — where an inspection is switched off** (the plan's design, approved with it; it amends D93's "never in
`qodana.yaml`"): in the place the engine that raised it reads — one of ReSharper's in `.editorconfig`; what has no
key there in `qodana.yaml`. Hints are off as a severity. In code loaded into a game only defects are fixed.
**Choices made here:**
- **JetBrains' security rules stay on, scoped by path — which took four runs to find.** Every result was read first
(the table in `13_CI_CD` §Qodana), and one place hardened (`ShellUrlOpener` refuses anything but `http`, `https`
and `mailto`). Then the files read had to be told to the linter, and a rule's own id is honoured nowhere:
`ignore`, an `exclude` path and `enabled: false` each left all 36 results standing. The report's own
`log/effective.profile.xml` and `qodana_inspections_summary.csv` gave the answer — one inspection,
`OpenGrepInspection`, produces every rule's results, and it does take a path. Between the third run and the
fourth the rules were written as off, with a test in their place; the test stayed (`ProcessStartSitesTests`, in
the gate, and wider than the rule), the rules came back on.
- **`PrimaryDisplay.cs` was not changed to please the linter.** Its six results come from an internal assertion in
this linter's build (in the job's `backend.log`), not from the file; the first guess — that the engine misreads an
`unsafe` tuple — was wrong, and a rewrite made on it was reverted. Two inspections are excluded for that one file,
to be removed when a linter build reads it.
- **What the Ultimate licence offers and this job does not use**: quick-fixes (the job cannot push, on purpose), code
coverage in Qodana, FlexInspect. If the licence lapses the job is red and advisory; the way back is in `qodana.yaml`.
**Traps:**
- **A security rule's id is not an inspection.** The OpenGrep plugin's rules all report through
`OpenGrepInspection`; only that name works in `qodana.yaml`, and only by path. Read
`log/qodana_inspections_summary.csv` in the report artifact to see which inspection produced a result before
spending a run on a guess.
- **A report artifact is a zip inside the download, with backslash paths**: `unzip` extracts it and exits non-zero
on the warnings, so do not chain on its exit code.
- **A linter result can be the linter's fault**: read the job's log directory (the report artifact carries it) for an
`AssertionException` before changing the code it points at.
- **A Qodana run of the managed job takes fifteen to seventeen minutes**, most of it the scan; a pull request's own run
reads the whole solution (`pr-mode: false`), so there is no quick partial run to iterate on.
**Then:** the native report, in the pull request after it — the next section.
### Qodana — the native report: the C++ through a solution CMake writes (D99, D100)
*Status is `docs/13_CI_CD.md` §Qodana and `CHANGELOG.md`; this is what no other file carries.* The second pull request
of the third part: the job `native`, `qodana-native.yaml`, the preset `x64-vs-analysis`, fifty-four `.editorconfig`
lines for the C++ and eleven small fixes outside code loaded into a game.
**Choices made here:**
- **One linter for both reports.** Qodana for .NET is the only linter of JetBrains' that reads this C++ (MSVC-only;
`qodana-cpp` and `qodana-clang` are Linux images), and it wants a Visual Studio solution — so CMake writes one. The
generated solution is never built from, beyond the one header a build generates.
- **No `.clang-tidy` file.** The plan had expected one. Every clang-tidy check and clang diagnostic the engine runs
has an `.editorconfig` key of ReSharper's, so D100's "where the engine reads" is one file for all of the C++, and
the repository gains no clang-tidy configuration that a developer's editor would start obeying.
- **Most of what it reported is not a fault, and the settings say why, line by line**: clang's opinion of code only
MSVC builds; the engine misreading `atomic_ref`, zero-initialised API structures and constexpr tests; proposals of
a newer idiom. Eleven things were fixed. **In code loaded into a game nothing was changed**: no defect was found
there.
- **`LogNoteW` (`FrameLedger.Overlay/src/dllmain.cpp`) is dead code, and it is still there — the owner's call.**
Nothing calls it. D100 changes code loaded into a game for a defect only, and an unused function is not one, so
it was not removed on a linter's word; `.editorconfig` leaves that one file unread for an unused function, in a
section that says to remove it with the function. Removing it is eleven lines with no caller: a pull request of
its own, whose overhead statement is that the function was never reached.
- **"Possibly unused `#include`" is off, not obeyed.** Ten of the twelve reported outside the game are a file
including what it uses (`<cstring>` for `std::memset`) although `<windows.h>` already brought it; removing them
would have made the files depend on an accident.
**Traps:**
- **InspectCode cannot load the native solution on the owner's PC** (Visual Studio 18 Insiders' MSBuild crashes it,
2026.2.3.1 and 2026.3.0 alike), so C++ results are read from CI: dispatch `qodana.yml` on the branch, download
`qodana-report-native`, unzip the inner `qodana-report.zip`.
- **A file compiled into three targets is reported three times**: count distinct results (rule, file, line), not rows.
- **A shortened line is a clang-format change two lines away**: the gate's clang-format step failed on an alignment
that the edit above it had made possible. Run clang-format on every native file touched before the gate.
- **Do not switch branches while a gate runs** — a probe branch was made during a local native build, which changed
and restored two sources under it. Nothing came of it; the next gate was run on a still tree.
+1 -1
View File
@@ -12,7 +12,7 @@
HTML comments are not part of the block.
-->
> ⚠ **What FrameLedger actually measures today — 2026-11-06.** The software is a beta; its latest
> **beta is `0.1.0-beta.37`** (2026-11-11), an unsigned installer built from that tag with its
> **beta is `0.1.0-beta.38`** (2026-11-11), an unsigned installer built from that tag with its
> checksums published beside it (alphas — experimental builds that try a newer .NET — are published apart). 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 (unless you switched its recording off), injects only into games you enabled
+1 -1
View File
@@ -121,7 +121,7 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
<!-- accuracy-block:begin -->
> ⚠ **What FrameLedger actually measures today — 2026-11-06.** The software is a beta; its latest
> **beta is `0.1.0-beta.37`** (2026-11-11), an unsigned installer built from that tag with its
> **beta is `0.1.0-beta.38`** (2026-11-11), an unsigned installer built from that tag with its
> checksums published beside it (alphas — experimental builds that try a newer .NET — are published apart). 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 (unless you switched its recording off), injects only into games you enabled
+45
View File
@@ -0,0 +1,45 @@
# Qodana's settings for the `native` job of .github/workflows/qodana.yml (owner decision D99, 2026-11-11;
# docs/13_CI_CD.md §Qodana).
#
# The C++ of src/native, read by Qodana for .NET (qodana-dotnet: Rider's engine, whose C++ is ReSharper C++) in native
# mode on a Windows runner. That linter is the only one that can: the native layer is MSVC-only, and JetBrains' two
# C/C++ linters (qodana-cpp, qodana-clang) are Linux images. It reads C++ through a Visual Studio solution, and
# src/native is a CMake tree, so the job generates one first - the `x64-vs-analysis` preset - and builds from it only
# the one header a build generates (the blocklist floor). Nothing else is compiled.
#
# A report of its own, in a Qodana Cloud project of its own (`frameledger-cpp`, the QODANA_TOKEN_NATIVE secret): the
# managed report (qodana.yaml) leaves src/native out, so every file is in exactly one of the two.
version: "1.0"
linter: qodana-dotnet
withinDocker: false
profile:
base:
name: qodana.recommended
groups:
- groupId: Hints
groups:
- "severity:TYPO"
inspections:
- group: Hints
enabled: false
dotnet:
solution: build/native/x64-vs-analysis/FrameLedgerNative.slnx
# The flags the shipped binaries are built with (the x64-release preset's build type).
configuration: RelWithDebInfo
platform: x64
# What is not FrameLedger's code: what CMake generates and fetches (MinHook, Catch2, jsmn, the floor header), the
# vendored SDK headers, the fixtures that carry the vendors' names on purpose, a compiled shader as a byte array.
exclude:
- name: All
paths:
- build
- src/native/third_party
- src/native/tools/vendor-stubs
- src/native/tools/hook-harness/dxr_raygen_dxil.h
failureConditions:
severityThresholds:
any: 0
+99 -15
View File
@@ -1,29 +1,113 @@
# Qodana's settings for .github/workflows/qodana.yml (owner decision D93, 2026-11-10; docs/13_CI_CD.md §Qodana).
# Qodana's settings for the `managed` job of .github/workflows/qodana.yml (owner decisions D93, 2026-11-10, and D99,
# 2026-11-11; docs/13_CI_CD.md §Qodana).
#
# The linter is Qodana Community for .NET (ReSharper's InspectCode in a Linux container), and not Qodana for .NET
# (Rider): that one needs an Ultimate licence, and the Qodana Cloud organisation holds a 30-day trial, so a job
# built on it would turn red the day the trial ends. The Community linter runs under every licence.
# The linter is Qodana for .NET (qodana-dotnet: Rider's engine), in NATIVE mode - on the job's own Windows runner, with
# the .NET SDK global.json names, no container. It needs the Ultimate licence the Qodana Cloud organisation holds since
# 2026-11-10; the Community linter (qodana-cdnet, InspectCode in a Linux container) ran here until then, and is the way
# back if the subscription ever lapses - `linter: qodana-cdnet`, and the job on ubuntu-latest again.
#
# It analyses the C# of FrameLedger.slnx - and its XAML and .resx - and nothing native: src/native is a CMake
# tree no solution names, and it is MSVC-only, which no Linux container compiles. CodeQL and SonarCloud read the C++.
# It reads the solution's C#, XAML and .resx, and what Rider's own plugins read of the repository around it (Markdown,
# XML, and JetBrains' security rules over the C#). Not the C++: that is qodana-native.yaml's report, over the Visual
# Studio solution CMake generates, sent to a Qodana Cloud project of its own.
#
# The linter's image is the action's own version (the action pins the CLI, the CLI its image), so the one pin is the
# action's commit in the workflow.
# Everything a run needs to know is here and nothing is an action argument, so `qodana scan` on a developer's PC reads
# the same settings. The linter's version is the action's (the action pins the CLI, the CLI its linter), so the one pin
# is the action's commit in the workflow.
version: "1.0"
linter: qodana-cdnet
linter: qodana-dotnet
withinDocker: false
# INTERIM, from beta.37's move to .NET 11 (D94, 2026-11-11) until the Ultimate linter's pull request replaces this
# file: the linter's image carries the .NET SDKs 8 to 10, and main builds on 11. The SDK global.json names is installed
# into the container before the build, with the line JetBrains' page gives for an SDK the image lacks.
bootstrap: curl -fsSL https://dot.net/v1/dotnet-install.sh | bash -s -- --jsonfile /data/project/global.json -i /usr/share/dotnet
# WHERE AN INSPECTION IS SWITCHED OFF (docs/13_CI_CD.md §Qodana, CLAUDE.md §Coding conventions): one of ReSharper's -
# C#, XAML, .resx - in .editorconfig, where Rider reads it too. Here only what has no key there: a whole severity and
# the IntelliJ platform's own inspections (Markdown, XML) under `profile`; and, under `exclude` further down, the files
# JetBrains' security rules were read in, and one file the linter itself fails on. Each with its reason above it.
profile:
base:
name: qodana.recommended
groups:
# A HINT is what the editor offers without underlining anything (ReSharper's lowest level; this linter files it as
# TYPO, Qodana as Low): "invert if", "convert to LINQ", a trailing comma, and every Roslyn analyzer message below
# the level this build makes an error. The Community linter never reported them, and the rule D93 set is about
# warnings and suggestions. 3,607 of this job's first 3,953 results were hints (run 42923079119).
- groupId: Hints
groups:
- "severity:TYPO"
inspections:
- group: Hints
enabled: false
# Rider wants a table's columns padded to one width. The tables here are written to be diffed: a cell's text changes
# and its row alone moves.
- inspection: MarkdownIncorrectTableFormatting
enabled: false
# It computes a heading's anchor its own way; the documents are read on GitHub, whose anchors these links follow
# (`#display-mode--both-tiers-beta10` for "Display mode — both tiers (beta.10)"), and tools/wiki-build.ps1 checks
# the links of every page it publishes. All three it reported resolve on GitHub.
- inspection: MarkdownUnresolvedHeaderReference
enabled: false
# A Windows application manifest: the linter has no schema for urn:schemas-microsoft-com:asm.v1 and reports every
# element of the file as undeclared.
- inspection: XmlHighlighting
ignore:
- "src/FrameLedger.App/app.manifest"
dotnet:
solution: FrameLedger.slnx
configuration: Release
# What is not FrameLedger's code, or not code at all - SonarQube.Analysis.xml's list, for its reasons - and what the
# other report reads.
exclude:
- name: All
paths:
- src/native
- src/FrameLedger.App/Strings.Designer.cs
- tests/fixtures
- legal/licenses
- docs/vendor-exports.json
- src/FrameLedger.Infrastructure/Persistence/Migrations
- build
- out
# JETBRAINS' SECURITY RULES (the OpenGrep plugin: pattern rules, several hundred of them) stay on, and the files
# their results were READ in are listed here - so a new file that starts a process, or builds an SQL text, is
# reported. Two rules fired, 36 times, on 2026-11-11: "a process is started with something that is not a literal"
# (35) - and starting processes is part of what FrameLedger is: the Agent beside the App, the game the user added,
# Explorer on a folder, the browser on a link - and the same for an SQL text (1: a constant field, every value a
# parameter). docs/13_CI_CD.md §Qodana has each place, what it starts and where that comes from.
#
# The name is the PLUGIN'S ONE INSPECTION, not a rule's: every rule's result is produced by OpenGrepInspection, and
# a rule's own id is honoured nowhere - not by `ignore`, not by an `exclude` path, not by `enabled: false` (three
# runs, 42932842462, 42935752891 and 42938295264: all 36 stood each time; the server is handed every rule file
# whatever the profile says). So a file listed here is left out of ALL of the plugin's rules, which is the price.
# ProcessStartSitesTests, in the gate, names the same files and fails on a new one.
- name: OpenGrepInspection
paths:
- src/FrameLedger.App/Services/AgentLauncher.cs
- src/FrameLedger.App/Services/AgentTool.cs
- src/FrameLedger.App/Services/Explorer.cs
- src/FrameLedger.App/Services/ShellStarter.cs
- src/FrameLedger.App/Services/ShellUrlOpener.cs
- src/FrameLedger.App/ViewModels/SettingsViewModel.cs
- src/FrameLedger.Infrastructure/Capture/ProcessLauncher.cs
- src/FrameLedger.Infrastructure/Diagnostics/CrashDumpWriter.cs
- src/FrameLedger.Infrastructure/Startup/AgentElevation.cs
- src/FrameLedger.Infrastructure/Startup/LogonTask.cs
- src/FrameLedger.Infrastructure/Persistence/SqliteSessionRepository.cs
# The tests start what they test - the harness, the Agent, a process to hold a handle on (24 of the 35).
- tests
# THE LINTER'S OWN FAULT, not the file's: resolving `PInvoke.EnumDisplaySettings(null, ...)` - the `null` to PCWSTR
# conversion - the engine of this linter's build (QDNET-262.12299) fails an internal assertion
# ("IsStandardImplicitConversionFromExpression(conversion.Kind)", in its log), loses the method, and reports its
# three locals and the file's three usings as unused. The compiler builds it with warnings as errors, and
# InspectCode 2026.2.3.1 and 2026.3.0 report nothing there. To be removed when a linter build reads the file.
- name: UnusedVariable.Compiler
paths:
- src/FrameLedger.Infrastructure/Recording/PrimaryDisplay.cs
- name: RedundantUsingDirective
paths:
- src/FrameLedger.Infrastructure/Recording/PrimaryDisplay.cs
# The gate: no problem at all. What the linter reports is settled where it is found - fixed, or its inspection
# switched off in .editorconfig with the reason beside it (InspectCode reads its severities there, and so does
# Rider) - so a count above zero is something new.
# switched off with the reason beside it - so a count above zero is something new.
failureConditions:
severityThresholds:
any: 0
+19 -1
View File
@@ -6,12 +6,30 @@ using System.Diagnostics;
namespace FrameLedger.App.Services;
/// <summary><see cref="IUrlOpener"/> through the shell (<c>UseShellExecute</c>), the same launch every other link in the App makes; a refusal is logged, never thrown.</summary>
/// <summary>
/// <see cref="IUrlOpener"/> through the shell (<c>UseShellExecute</c>), the same launch every other link in the App makes; a
/// refusal is logged, never thrown. The shell runs whatever it is handed - a <c>file:</c> address is a program - so this
/// opens web and mail links only, and says so itself rather than trusting each caller to have checked (2026-11-11: every
/// caller passes one of the project's own pages or a link <c>MarkdownLinks</c> has already held to these schemes).
/// </summary>
public sealed class ShellUrlOpener : IUrlOpener
{
/// <summary>Whether <paramref name="url"/> is a link the shell may be handed: absolute, and <c>http</c>, <c>https</c> or <c>mailto</c>.</summary>
public static bool IsOpenable(Uri url)
{
ArgumentNullException.ThrowIfNull(url);
return url.IsAbsoluteUri && url.Scheme is "https" or "http" or "mailto";
}
public bool Open(Uri url)
{
ArgumentNullException.ThrowIfNull(url);
if (!IsOpenable(url))
{
Serilog.Log.Warning("ui: not opened - {Url} is neither a web nor a mail link", url);
return false;
}
try
{
using Process? _ = Process.Start(new ProcessStartInfo(url.AbsoluteUri) { UseShellExecute = true });
+14 -1
View File
@@ -25,11 +25,24 @@
"inherits": "x64-base",
"displayName": "x64 Release",
"cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" }
},
{
"name": "x64-vs-analysis",
"displayName": "x64, a Visual Studio solution for Qodana's native report (nothing is built from it but one generated header)",
"generator": "Visual Studio 18 2026",
"binaryDir": "${sourceDir}/../../build/native/${presetName}",
"architecture": { "value": "x64", "strategy": "set" },
"cacheVariables": {
"FL_BUILD_TESTS": "ON",
"FL_BUILD_TOOLS": "ON",
"CMAKE_CXX_SCAN_FOR_MODULES": "OFF"
}
}
],
"buildPresets": [
{ "name": "x64-debug", "configurePreset": "x64-debug" },
{ "name": "x64-release", "configurePreset": "x64-release" }
{ "name": "x64-release", "configurePreset": "x64-release" },
{ "name": "x64-vs-analysis", "configurePreset": "x64-vs-analysis", "configuration": "RelWithDebInfo" }
],
"testPresets": [
{
@@ -574,7 +574,7 @@ Collected EnumerateDirEntriesImpl(const wchar_t* dir, DirEntrySink sink, void* c
// Bounds, all REFUSALS rather than truncations, like check 4's: a Steam library whose manifests we could not all read
// is a library whose answer we do not know.
constexpr std::size_t kMaxSteamManifests = 4096;
constexpr std::size_t kMaxManifestBytes = 256 * 1024;
constexpr std::size_t kMaxManifestBytes = std::size_t{256} * 1024;
// The quoted value that follows `"key"` in Valve's KeyValues text, ASCII case-insensitive on the key, with the
// format's two escapes (\" and \\) undone. False when the key is absent or its value does not fit.
+3 -2
View File
@@ -12,6 +12,7 @@
#include <catch2/catch_test_macros.hpp>
#include <cstdio>
#include <cstring>
#include <iterator>
#include "fl_nvapi_bridge.h"
@@ -47,10 +48,10 @@ TEST_CASE("a wrong struct size is refused before anything is read", "[nvapi][abi
TEST_CASE("a path longer than NVAPI's string is refused, never truncated into another program's", "[nvapi][abi]") {
static uint16_t long_path[4096];
for (size_t i = 0; i + 1u < sizeof(long_path) / sizeof(long_path[0]); ++i) {
for (size_t i = 0; i + 1u < std::size(long_path); ++i) {
long_path[i] = u'a';
}
long_path[sizeof(long_path) / sizeof(long_path[0]) - 1u] = 0u;
long_path[std::size(long_path) - 1u] = 0u;
FlNvDriverProfileRead p{};
p.size = sizeof(FlNvDriverProfileRead);
CHECK(FlNvDriverProfile(long_path, nullptr, 0u, &p) == FL_NV_BAD_ARGUMENT);
+1 -3
View File
@@ -36,7 +36,6 @@
#include <algorithm>
#include <atomic>
#include <catch2/catch_test_macros.hpp>
#include <cstring>
#include <fl_ring.h>
#include <thread>
#include <vector>
@@ -54,7 +53,6 @@ struct Mapping {
explicit Mapping(std::uint32_t capacity) : bytes(FlShmSizeForCapacity(capacity), 0) {}
void* base() { return bytes.data(); }
const void* base() const { return bytes.data(); }
FlFrameRecord* slot(std::uint32_t i) {
return reinterpret_cast<FlFrameRecord*>(bytes.data() + FL_SHM_RING_OFFSET) + i;
}
@@ -163,7 +161,7 @@ TEST_CASE("seq is monotonic per slot and never reset across laps", "[ring]") {
}
// Slot 0 was written three times: 2, 4, 6.
CHECK(m.slot(0)->seq == 6u);
CHECK(m.writer()->writeIndex == kCap * 3);
CHECK(m.writer()->writeIndex == std::uint64_t{kCap} * 3);
}
TEST_CASE("a torn record is reported as a GAP, not silently skipped", "[ring]") {
@@ -269,7 +269,6 @@ bool RunControl(Gfx& g) {
using PFN_slInit = ::PFun_slInit*;
using PFN_slSetD3DDevice = ::PFun_slSetD3DDevice*;
using PFN_slIsFeatureLoaded = ::PFun_slIsFeatureLoaded*;
using PFN_slShutdown = ::PFun_slShutdown*;
using PFN_D3D12CreateDevice = HRESULT(WINAPI*)(IUnknown*, D3D_FEATURE_LEVEL, REFIID, void**);
struct Gfx12 {
@@ -71,7 +71,6 @@
#include <cstdarg>
#include <cstdio>
#include <cstring>
#include <iterator>
#include <string>
#include <vector>
@@ -342,8 +341,6 @@ struct NetCensus {
bool winhttp = false;
bool wininet = false;
bool dnsapi = false;
bool Any() const { return cryptnet || winhttp || wininet || dnsapi; }
};
NetCensus TakeCensus() {
+4 -4
View File
@@ -127,6 +127,7 @@
#include <atomic>
#include <cstdio>
#include <cstring>
#include <iterator>
#include <vector>
#include "dxr_raygen_dxil.h"
@@ -3065,7 +3066,7 @@ int main(int argc, char** argv) {
LateLoad& l = g_lateLoads[g_lateLoadCount];
l.delayMs = static_cast<DWORD>(std::atoi(argv[++i]));
const char* path = argv[++i];
MultiByteToWideChar(CP_ACP, 0, path, -1, l.path, static_cast<int>(sizeof(l.path) / sizeof(l.path[0])));
MultiByteToWideChar(CP_ACP, 0, path, -1, l.path, static_cast<int>(std::size(l.path)));
HANDLE t = CreateThread(nullptr, 0, &LateLoadThread, &l, 0, nullptr);
if (t != nullptr) {
CloseHandle(t);
@@ -3080,9 +3081,8 @@ int main(int argc, char** argv) {
// stays loaded for the life of the process so the scan sees it.
const char* path = argv[++i];
wchar_t wide[MAX_PATH * 2]{};
const int n =
MultiByteToWideChar(CP_ACP, 0, path, -1, wide, static_cast<int>(sizeof(wide) / sizeof(wide[0])));
HMODULE h = n > 0 ? LoadLibraryW(wide) : nullptr;
const int n = MultiByteToWideChar(CP_ACP, 0, path, -1, wide, static_cast<int>(std::size(wide)));
HMODULE h = n > 0 ? LoadLibraryW(wide) : nullptr;
std::printf(" --load %s -> %s\n", path, h != nullptr ? "loaded" : "FAILED");
if (h == nullptr) {
return 3;
@@ -0,0 +1,37 @@
// SPDX-License-Identifier: GPL-3.0-only
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
using FluentAssertions;
using FrameLedger.App.Services;
namespace FrameLedger.App.Tests;
/// <summary>
/// The shell runs what it is handed, so the opener hands it web and mail links only - and decides that itself, whoever
/// calls it (2026-11-11, from Qodana's rule on every place that starts a process). Only the refusals are exercised:
/// accepting one would open the tester's browser.
/// </summary>
public sealed class ShellUrlOpenerTests
{
[Theory]
[InlineData("https://github.com/poli0981/frameledger", true)]
[InlineData("http://example.org/", true)]
[InlineData("mailto:contact@example.org", true)]
[InlineData("file:///C:/Windows/System32/calc.exe", false)]
[InlineData(@"C:\Windows\System32\calc.exe", false)]
[InlineData("steam://rungameid/1", false)]
[InlineData("ms-settings:display", false)]
[InlineData("javascript:alert(1)", false)]
public void OnlyWebAndMailLinksMayReachTheShell(string address, bool openable) =>
ShellUrlOpener.IsOpenable(new Uri(address)).Should().Be(openable);
[Fact]
public void ARelativeAddressIsNotOpenable() =>
ShellUrlOpener.IsOpenable(new Uri("docs/08_UI.md", UriKind.Relative)).Should().BeFalse();
[Theory]
[InlineData("file:///C:/Windows/System32/calc.exe")]
[InlineData("ms-settings:display")]
public void OpenRefusesWithoutStartingAnything(string address) =>
new ShellUrlOpener().Open(new Uri(address)).Should().BeFalse();
}
@@ -0,0 +1,70 @@
// SPDX-License-Identifier: GPL-3.0-only
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
using FluentAssertions;
namespace FrameLedger.Infrastructure.Tests;
/// <summary>
/// Every file in <c>src</c> that starts a process — or, the logon task, has Windows start one — by name (2026-11-11,
/// <c>docs/13_CI_CD.md</c> §Qodana). Qodana's rule for it — JetBrains' <c>csharp_injection_rule-CommandInjection</c>,
/// any <c>Process.Start</c> whose argument is not a literal — reported ten of these; each was read, and its file is
/// listed in <c>qodana.yaml</c>. That rule is a pattern in an advisory job. This sweep is the same tripwire in the
/// gate, and wider: it also sees <c>CreateProcessWithTokenW</c> and the logon task. A new file that starts a process
/// fails here until someone has read what it starts and where the path and the arguments come from, and added it to
/// the list — and to <c>qodana.yaml</c> and the table in that section, where each of these is described.
/// </summary>
public sealed class ProcessStartSitesTests
{
/// <summary>Read on 2026-11-11: what each starts, and from where, is the table in <c>13_CI_CD</c> §Qodana.</summary>
private static readonly string[] _read =
[
"FrameLedger.App/Services/AgentLauncher.cs",
"FrameLedger.App/Services/AgentTool.cs",
"FrameLedger.App/Services/Explorer.cs",
"FrameLedger.App/Services/ShellStarter.cs",
"FrameLedger.App/Services/ShellUrlOpener.cs",
"FrameLedger.App/ViewModels/SettingsViewModel.cs",
"FrameLedger.Infrastructure/Capture/ProcessLauncher.cs",
"FrameLedger.Infrastructure/Diagnostics/CrashDumpWriter.cs",
"FrameLedger.Infrastructure/Startup/AgentElevation.cs",
"FrameLedger.Infrastructure/Startup/LogonTask.cs",
"FrameLedger.Infrastructure/Startup/UnelevatedProcess.cs",
];
private static string RepoRoot()
{
string? dir = AppContext.BaseDirectory;
while (dir is not null && !File.Exists(Path.Combine(dir, "FrameLedger.slnx")))
{
dir = Path.GetDirectoryName(dir);
}
return dir ?? throw new InvalidOperationException("FrameLedger.slnx not found above the test binary");
}
private static bool StartsAProcess(string file)
{
string text = File.ReadAllText(file);
return text.Contains("Process.Start(", StringComparison.Ordinal)
|| text.Contains("new ProcessStartInfo", StringComparison.Ordinal)
|| text.Contains("PInvoke.CreateProcess", StringComparison.Ordinal)
|| text.Contains("RegisterTaskDefinition(", StringComparison.Ordinal);
}
[Fact]
public void EveryFileThatStartsAProcessIsOneThatWasRead()
{
string src = Path.Combine(RepoRoot(), "src");
string obj = $"{Path.DirectorySeparatorChar}obj{Path.DirectorySeparatorChar}";
string bin = $"{Path.DirectorySeparatorChar}bin{Path.DirectorySeparatorChar}";
string[] found = [.. Directory.EnumerateFiles(src, "*.cs", SearchOption.AllDirectories)
.Where(f => !f.Contains(obj, StringComparison.Ordinal) && !f.Contains(bin, StringComparison.Ordinal))
.Where(StartsAProcess)
.Select(f => Path.GetRelativePath(src, f).Replace('\\', '/'))
.Order(StringComparer.Ordinal)];
found.Should().Equal(_read,
"a file that starts a process is read first - what it starts, and where the path and the arguments come from - and then listed here and in docs/13_CI_CD.md §Qodana");
}
}
@@ -211,7 +211,7 @@ public sealed class PartialSessionFileTests : IDisposable
}
p.Should().NotBeNull($"cut at {cut}");
p.Truncated.Should().Be(cut != whole.Length && boundaries.Contains(cut) == false || (cut != whole.Length && cut < whole.Length && !boundaries.Contains(cut)),
p.Truncated.Should().Be(cut != whole.Length && !boundaries.Contains(cut),
$"cut at {cut}: mid-chunk is truncated, on a boundary is not");
// Everything before the cut that was complete is present; nothing after it is.
int recordsExpected = complete >= 3 ? 3 : 0;
@@ -492,12 +492,18 @@ public sealed class ShmDrainIntegrationTests
/// one site, on the far side of a returned verdict — a timer-shaped tick is what
/// <c>fl_shm.h</c> spends sixteen lines forbidding, and a loop-owned counter here
/// would be one.
/// <para>
/// <b>It supervises at least twice, whatever the first drain holds</b> (2026-11-11). The floor alone
/// ended the loop after one evaluation whenever the first scan was slow enough for fifty presents to
/// be waiting — a busy machine — and the caller's "supervised more than once" then failed on a run
/// in which nothing was wrong (seen once in a local gate: <c>CompletedEvaluations</c> was 1).
/// </para>
/// </remarks>
private static async Task DrainUnderSupervisionAsync(ShmRingReader reader, GuardSupervisor supervisor,
int pid, FlFrameRecord[] buffer, IList<ulong> gaps, List<FlFrameRecord> records, int floor)
{
DateTimeOffset until = DateTimeOffset.UtcNow + TimeSpan.FromSeconds(10);
while (records.Count <= floor && DateTimeOffset.UtcNow < until)
while ((records.Count <= floor || supervisor.CompletedEvaluations < 2) && DateTimeOffset.UtcNow < until)
{
bool mayContinue = await supervisor.ScanOnceAsync(pid, TestContext.Current.CancellationToken)
.ConfigureAwait(false);
+1 -1
View File
@@ -8,7 +8,7 @@ The full documents are [`docs/13_CI_CD.md`](../docs/13_CI_CD.md) and [`docs/11_U
|---|---|---|
| `.github/workflows/ci.yml` | pushes to `main` and `alpha`, pull requests | `./build.ps1 check`, and on a pull request the changelog check; then, in a job of its own, the SonarCloud analysis with the gate's coverage (settings: `SonarQube.Analysis.xml`). |
| `.github/workflows/codeql.yml` | pushes and pull requests to `main`, weekly | CodeQL for C#, C++ and the workflows themselves. |
| `.github/workflows/qodana.yml` | pushes and pull requests to `main`; by hand | Qodana Community for .NET (ReSharper's inspections) over the C# and the XAML; fails on any problem, and blocks nothing (settings: `qodana.yaml`, and `.editorconfig` for the inspections). |
| `.github/workflows/qodana.yml` | pushes and pull requests to `main`; by hand | Qodana for .NET (Rider's engine, on the Ultimate licence) over the C# and the XAML, the Markdown and XML around them, and JetBrains' security rules over the C#; and, as a second report, the C++ of `src/native`; each fails on any problem, and blocks nothing (settings: `qodana.yaml`, and `.editorconfig` for the inspections). |
| `.github/workflows/rules-publish.yml` | a change to the detection rules or their validator | Fails when an anti-cheat entry is removed. |
| `.github/workflows/release.yml` | a pushed `v*` tag; by hand, a rehearsal | Builds, gates and publishes a release. |
| `.github/workflows/wiki.yml` | a successful release; by hand | Builds this wiki from `wiki/` and `guide/` and publishes it to the Wiki tab. |