feat/input-reader
6
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
94eec7831c |
refactor: .NET 11's API where it reads better, and why no C# 15 construct is used yet - the canary, the table, the dispatch trigger for CodeQL (D96) (beta.37 PR-3) (#380)
The owner asked for C# 15 in the release that moved the main line to .NET 11. The rule approved with the plan: a construct is used only where the build, CodeQL and Qodana all read it. Each of the four was written once, in a file of its own, and shown to each tool (draft pull request #377, closed unmerged; spike-notes section 29): - The compiler and every analyzer take collection expression arguments, closed hierarchies and labeled jumps; a union draws CA1815 from the SDK's own rules. - ReSharper's engine - InspectCode 2026.2.3.1, which Qodana 2026.2 runs, and 2026.3.0 - reads none: `closed` and `union` are not parsed, the other two are called preview features. On a gate of zero every file using one would be an error. - What CodeQL extracts of them is not established: a pull request's C# analysis is an overlay on main's database and prints no per-file result. So beta.37 takes API, not syntax: - sixteen char searches name their comparison through string.StartsWith/EndsWith/LastIndexOf(char, StringComparison), where they went through a span to satisfy .NET 10 and 11 alike; - AgentLauncher finds the Agent it started with Process.TryGetProcessById instead of a caught ArgumentException. Nothing changes in what the software does. codeql.yml takes workflow_dispatch, so a branch can have a full analysis. 13_CI_CD (C# 15 and the analyses), 20_OPEN_QUESTIONS (a new row, with what answers it), CLAUDE.md, the decisions index. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> |
||
|
|
a644dd873e |
ci(sonar): SonarCloud from CI - the sonarcloud job, SonarQube.Analysis.xml, the scanner as a local tool, the C++ through the compilation database; Dependabot cooldown, the NuGet audit, CodeQL reads the workflows (beta.29 PR-1) (#334)
The owner turned SonarCloud's Automatic Analysis off and set SONAR_TOKEN (2026-10-24) and asked for
the CI-based analysis with the newest scanner, run until its gate passed, and for Dependabot, the
audit and code scanning to be brought up to date (owner decision D68, replacing D67).
- ci.yml: a second job, sonarcloud, after check - SonarScanner for .NET 12.0.0 from
.config/dotnet-tools.json; begin -> its own `dotnet build` -> end. Its own build because the
scanner's targets turn TreatWarningsAsErrors off in the build they instrument. Advisory, not a
required check; sonar.qualitygate.wait makes a failed gate a red job. Runs for this repository's
pull requests (not a fork's, not Dependabot's - no secret) and for main: the organisation's plan
refuses any other branch ("not allowed to access data from non main branches"). Permissions per
job, none at workflow level (githubactions:S8264 on the first analysis).
- Coverage: build.ps1 collects "XPlat Code Coverage;Format=cobertura,opencover"; the job downloads
check's artifact. C# only: sonar.coverage.exclusions leaves the PowerShell tools and src/native,
which have no coverage report, out of the figures (SonarCloud counted build.ps1's 232 executable
lines as uncovered).
- C++: FrameLedger.Infrastructure.csproj names src/native's .cpp/.h as FlNativeSource items that
exist only while the scanner instruments the build; analysed with CMake's compilation database
(configure with CMAKE_CXX_SCAN_FOR_MODULES=OFF - the .modmap response files only a build writes
stopped CFamily - and fl_ac_floor_gen): 32 compilation units, all in full.
- SonarQube.Analysis.xml replaces .sonarcloud.properties; the version is the newest v* tag, so the
project's "Previous version" new code is everything since the last release; S8417 (src/native)
and csharpsquid:S6640 (Infrastructure, Shared) ignored where they apply by design;
sonar.cs.roslyn.ignoreIssues.
- Dependabot: a seven-day cooldown on version updates; the actions' minor and patch releases
grouped. It has never proposed a NuGet library update here (#66-#314: analyzers only) - beta.29
PR-2 makes the missed ones. Directory.Build.props: the NuGet audit written down (all, low).
codeql.yml: the actions language; superseded pull-request runs cancelled.
- Docs: 13_CI_CD (ci.yml, codeql.yml, SonarCloud rewritten with D67 kept as history and the first
analyses measured, Dependabot and the NuGet audit, the checklist), 12_BUILD, CLAUDE.md, HANDOFF's
D68 row, the wiki's Releasing page, CHANGELOG.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
||
|
|
6d10b3092e |
fix: what SonarCloud found that was real - Explorer by full path and quoted, the action pinned, two string reads bounded, module renamed, three C# smells (beta.24 PR-2) (#317)
- App: one Services/Explorer helper starts %WINDIR%\explorer.exe by full path and always quotes the path (S4036; three of five call sites passed it bare). Tests. - Workflows: ilammy/msvc-dev-cmd pinned to its v1.13.0 commit (S7637). - Native: FlGuardRulesFilePath returns wcsnlen(out, cap); the NVAPI bridge measures the driver's branch name with strnlen over its buffer (S5813); `module` renamed in the hook inventory and dllmain (S1669, rename only, no code change); fl-probe-hookprofile drops compound assignment on a volatile (S6191, deprecated in C++20). - PipeServer.RunAsync loops while not cancelled and ends cancelled (S2190); ProcessLauncher's unused static Start overload is removed (S3427); a launch's own session passes CancellationToken.None with its reason (S8949). - 13_CI_CD §SonarCloud: the 17 accepted S5813 sites with why each string is terminated; S3869 accepted (no SafeHandle overload from CsWin32 here). - Dependabot #314 (VS Threading Analyzers 18.12.1, Meziantou 3.0.307): the first-start view model's answer task (VSTHRD003) and one test fake's synchronous wait (VSTHRD002) are suppressed with their reasons; the whole solution builds with both the current and the bumped analyzers. Gate: ./build.ps1 check ALL GATES PASSED (312 s); 32/32 native tests. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
4cbcd1aee4 |
ci: move CodeQL action to v4
GitHub's own deprecation notice on the last run: CodeQL Action v3 is deprecated in December 2026. Cheap to do now, and CI verifies it on this PR rather than leaving it to fail later. Remaining Node 20 annotation is ilammy/msvc-dev-cmd@v1, which has no newer major. The runner forces it onto Node 24 and it works; nothing to do until upstream ships one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
628c63421d |
ci: clear the ambient Platform variable before every MSBuild invocation
CI caught this on its first run, from a source the local run could not reproduce — which is the whole argument for CI running the same script. Anything that sets up MSVC exports Platform=x64 for .vcxproj builds. vcvars64 does, and so does ilammy/msvc-dev-cmd. We have no vcxproj, and MSBuild reads the variable as a SOLUTION platform, so dotnet build fails with MSB4126 "solution configuration Release|x64 is invalid". I had already handled this — but only at the end of Import-MsvcEnvironment, which returns early when cl.exe is already on PATH. That early return is exactly the CI case, because the MSVC action runs before build.ps1 does. Locally the import path ran and cleared it; on CI it never got there. Same script, different environment, real difference. Moved the cleanup into its own function called unconditionally before the managed build. Verified by reproducing the CI condition locally: setting Platform=x64 before invoking build.ps1 now passes where it previously failed. Also bumped the actions past the Node 20 deprecation warning (checkout v4->v7, setup-dotnet v4->v6, cache v4->v6, upload-artifact v4->v7); versions checked against the releases API rather than guessed. The "no coverage files found" annotation should clear on its own — the tests never ran, because the build failed before them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
5b61a20482 |
build: scaffold the repository the docs assume
Takes the project from docs-only to a state where the P0 spike can begin.
Everything here was verified to run, not just written.
Managed
global.json pins the SDK band. Without it `dotnet --version` on this
machine resolved to an 11.0 preview, which silently changes analyzer
behaviour under TreatWarningsAsErrors and makes local and CI disagree
for reasons invisible in a diff. Not mentioned in any doc; added to
12_BUILD.
TargetFramework net10.0-windows10.0.22621.0 with
SupportedOSPlatformVersion 10.0.19045.0. The plan called for a 19041
target, but the SDK rejects SupportedOSPlatformVersion above
TargetPlatformVersion (NETSDK1135), and 19045 is not a targeting-pack
version — the packs are cut at 19041/20348/22000/22621/26100.
12_BUILD already requires the Windows 11 SDK >= 22621, so targeting it
costs nothing while CA1416 still enforces the 22H2 floor from NFR-8.
Solution is FrameLedger.slnx: the XML format is what `dotnet new sln`
produces on .NET 10, and it diffs far better than the classic format.
Six projects plus three test projects, wired to the dependency
direction CLAUDE.md specifies. Builds warning-free under
TreatWarningsAsErrors + AnalysisLevel=latest-all; the only analyzer
suppressions are three WPF codegen constraints, scoped to
src/FrameLedger.App and each explained in .editorconfig.
Pinned SQLitePCLRaw forward: Microsoft.Data.Sqlite 10.0.10 resolves
lib.e_sqlite3 2.1.11, which carries GHSA-2m69-gcr7-jv3q. The build
failed on it, correctly.
Pinned FluentAssertions to the 7.x line. 8.0.0 moved from Apache-2.0
to Xceed's Community Licence, which is not OSI and carries
field-of-use restrictions — exactly what 18_GPU_VENDOR_APIS's vendor
checklist rejects. Dependabot is configured not to major-bump it.
Native
fl_shm.h is the valuable artifact: the corrected four-region layout,
with static_asserts on every size and offset. Compile-verified — all
four structs are exactly 64 bytes with no implicit holes, and the
mapping is 512 KiB + 192 B of header. fl-layout-dump emits those
offsets as JSON for the C# mirror test to consume.
/guard:cf and -D_HAS_EXCEPTIONS=0 are deliberately NOT applied to the
Overlay target yet. Both are unresolved (20_OPEN_QUESTIONS H1, H3);
applying them now would mean meeting the problem as a crash in a real
game rather than as a decision.
Not compiled: this machine has no MSVC C++ workload, so the CMake
targets are unverified. The headers were checked with g++ instead.
Gates
build.ps1 check runs the nine gates, and CI runs that same script.
Gates skip loudly — the run ends "PASSED WITH N SKIPPED GATE(S)"
rather than a clean pass, because a gate that silently passes because
its tool is missing reads as "checked" when nothing was checked.
license-check and rules-validate are real, and were proven red-green
before being wired in: a planted IGCL header fails the licence gate,
and an emptied anticheat.modules list (or a dropped BattlEye entry, or
malformed JSON) fails the rules gate. A safety gate only ever observed
passing has not been tested.
Added a placeholder guard: any {{ token other than {{RELEASE_DATE}}
surviving in README.md or legal/*.md fails the build. Those documents
are displayed for acceptance under FR-11.
rules/detection-rules.json is seeded with a non-empty anticheat block.
An empty one is a fail-closed fixture, not a ship state.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|