Commit Graph
3 Commits
Author SHA1 Message Date
poli0981andClaude Fable 5.2 1342979353 ci: Qodana - JetBrains' code analysis from a workflow of its own, and what its first run reported settled (D93) (#373)
* ci: Qodana - a workflow of its own from JetBrains' template, Qodana Community for .NET over FrameLedger.slnx (D93)

The first run: the linter in its Linux container, EnableWindowsTargeting passed
to it, no quality gate yet - what it builds and what it reports decides the rest.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* ci: Qodana's gate is zero problems, and the inspections this project argues with are off in .editorconfig, each with its reason (D93)

Pushed before the fixes on purpose: the run this starts has the settings and
none of the fixes, so it shows the gate failing on what is left.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix: what Qodana's first run reported, settled - about 400 fixes in 181 files, none changing behaviour; the documents (D93)

Redundant qualifiers, casts, using directives, nullable suppressions and unsafe
modifiers removed from the report's own positions; var for built-in types and
one-line block bodies brought to .editorconfig's style by dotnet format; every
XAML item template names its DataType and a binding that reached its page through
DataContext.ViewModel names the page's type; two unread fields, two overwritten
initialisers and an unused parameter removed; SpokenTextAutomationPeer no longer
assumes the base peer's name is a string.

docs/13_CI_CD.md §Qodana, CLAUDE.md, the wiki's workflow table, HANDOFF's
decisions index (D93) and the changelog entry.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 16:13:04 +00:00
poli0981andClaude Opus 5.5 ff949afc6f feat(legal): NOTICE with the GPLv3 section 7 additional terms, the licence header in every source file, and the documents for people who build, contribute or redistribute (D45, beta.12 PR-1) (#253)
- NOTICE: copyright, GPL-3.0-only, and three additional terms of the kinds section 7 permits - (b) preserve the
  notices and the attribution in the program's legal notices, (c) mark a modified version as different and do not
  call it "FrameLedger" alone, (e) no trademark rights in the name. Shipped as licenses\NOTICE.txt; release.yml
  refuses a published tree without it.
- Section 7 wants additional terms named in the source files: every first-party .cs .cpp .h .inl .ps1 .xaml file
  (1,053; src/native/third_party excluded) opens with the SPDX line and a pointer to NOTICE. tools/notice-check.ps1
  is the gate (six self-test cases, both directions; -Fix writes a missing header) and tools/resx-gen.ps1 generates
  the string accessors with the header.
- The native VERSIONINFO LegalCopyright said GPL-3.0-or-later; it now names the real licence.
- CONTRIBUTING.md, FORKING.md, CODE_OF_CONDUCT.md (Contributor Covenant 2.1 by reference), legal/TRADEMARKS.md.
- 12_BUILD gate list, CLAUDE.md layout and conventions.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:16:00 +07:00
poli0981andClaude Opus 5 dad3adbff6 feat(agent): the Agent host -- --serve (watcher -> orchestrator -> recorder), --console verbs, the consent grant (D4) and the kill switch as the gate's fourth input (D7) (P2 PR-F) (#150)
FrameLedger.Agent is a Generic Host now. Composition.AgentServices registers
every Application port to its one shipped Infrastructure adapter;
WatcherHostedService runs PartialRecovery first and then
Application.Watch.CaptureOrchestrator: one process snapshot per second
(ToolhelpProcessSnapshotSource), ProcessWatcher (exact normalised path, or
the file name when exactly one games row carries it -> StalePath, keyed on
the real path), ProcessTree (a child that started before its parent is a
reused pid), DescendantElection (the newest tracked descendant; a launcher's
consent does not extend to what it spawns), ONE session per game at a time
through the new ISessionRecorder port. The orchestrator decides nothing
about hooking: the recorder's loop reaches HookedCaptureGate as a console
verb does.

--console carries consent list|grant|revoke, capture, launch (with the
election after LaunchTargetExited / LaunchNoPresentationRuntime), recover,
sessions, db path, games add, killswitch on|off|status, and --data-dir under
--console only (decision D6). --diag, --install-task, --uninstall-task,
--register-vklayer, --unregister-vklayer answer "not implemented in P2",
exit 2. The surface is pinned by AgentCommandLineSurfaceTests.

D4: Agent --console consent grant shows OperatorDisclosure (moved to
Application.Consent; one text, an OperatorSurface for the first line and the
stamp), refuses redirected stdin, and records the new
ConsentProvenance.AgentConsoleOperator with the Agent's clock.
OperatorAcknowledgement carries its provenance; SqliteGameConsentStore
writes that name and refuses NotRecorded.

D7: FR-2.4 is HookRequest.FromConsent's fourth input --
AntiCheatRefusalReason.KillSwitchEngaged (27, added to the native reason
table so GuardMirrorTests holds), checked before consent is read. IKillSwitch
(Infrastructure.Settings.SettingsKillSwitch over settings.hooking.kill_switch)
is read by CaptureSession before the request and at every guard-scan
boundary, where an engaged switch publishes unhookRequested and ends the
session as KillSwitchEngaged (RefusedKillSwitch when refused up front).
ProcessLauncher(enableVulkanLayer: false) keeps the Vulkan layer off by never
setting FRAMELEDGER_ENABLE_VK_LAYER. A bounded --console capture --seconds N
lowers the discard threshold to N.

Tests: AgentEndToEndTests (Integration, in the gate) runs the shipped
FrameLedger.Agent.exe against hook-harness with a scratch ledger and reads
back ONE hooked sessions row -- the milestone's technical half -- plus the
kill-switch refusal with no ring in the target, consent grant refusing
redirected stdin, the unbuilt flags' exit 2. ProcessWatcherTests,
ProcessTreeAndElectionTests, CaptureOrchestratorTests,
ToolhelpProcessSnapshotSourceTests, SettingsKillSwitchTests, the gate's
kill-switch case, the loop's mid-session case, the store's provenance
round-trip; GameConsentRecordTests pins three provenance names.

Docs: 04_CAPTURE (watcher built, election, threading row), 12_BUILD (the
surface), 07_IPC (pipe is P3), 19_SAFETY (D4/D7 built), 20_OPEN_QUESTIONS
(S27 restated for PR-F, S24 answers, G Agent lifecycle), 01_ARCHITECTURE,
06_DATA_MODEL (third provenance, settings key), 15_ROADMAP (milestone's
technical half), CLAUDE.md, HANDOFF (D4/D7 built, two traps), CHANGELOG.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 08:43:06 +07:00