Skip to content

Round 2 responses and verification — FLT-359

This worktree contains the round-2 implementation. No commit/push, real service call, secrets, fleet wiring or user configuration changes were performed. Approvals:Enabled remains false by default. This is not an enablement approval.

Executor and ledger findings

  • FIX 2–3 / Gronktayvius red-team replay High / general ledger Medium: Removed .spent, clock.last and file-lock clock implementations. The executor now depends on IExecutorApprovalLedger; only its verified path calls the commit operation. SqliteApprovalLedger uses repository migration 001-approval-ledger.sql, schema version 1, JTI primary key, action hash, challenge IDs, distinct person IDs, assigned roles and consumption timestamp. Explicit trusted provisioning is required; missing database, row, clock, malformed audit values or unsupported version deny. SQLite BEGIN IMMEDIATE serializes writers across connections/processes with a bounded busy timeout. Clock sampling occurs inside that writer transaction.
  • Transactional effect scope: Consumption and insertion of the exact bound action into the durable effects queue commit together. A forced effect-insertion failure rolls consumption back. Approved means queued, not a reusable authorization bit. This slice does not implement remote effect dispatch. External dispatch requires an executor with idempotency/recovery keyed by JTI; no distributed atomicity is claimed.
  • Executor ownership: Explicit initialization requires an empty dedicated directory and restricts its Windows DACL to the executor identity (Unix owner-only mode). It does not silently repair or recreate an existing ledger. The agent executable does not initialize or use this database. Cross-identity deployment isolation and Linux behavior still require deployment/CI validation; local Windows tests exercise actual DACL application and native SQLite. No ownership privilege is requested.
  • FIX 6 / Jenny A2 High 1: Required roles are matched to distinct people first; additional enrolled roles can fill remaining quorum slots. Added Owner-only, Owner+QaSigner+UxSigner, Owner+TeamMember, and duplicate-person/role tests.
  • Jenny A2 High 2: Atomic TryObserveAsync is used by both consumers; the SQLite implementation samples after acquiring its write transaction. Sixteen concurrent clock observations all succeed; rollback fails closed. Sixteen concurrent executor consumes produce exactly one Approved and fifteen Denied, with one queued effect.
  • Jenny A2 Medium 3: Validate configured roles before union with mandatory roles: empty, duplicate and undefined role sets fail closed. Mandatory roles cannot be removed.
  • Jenny A2 cancellation / Jenny D2: Caller cancellation propagates and never commits. Added expected-hash substitution, tampered action, failed clock persistence, empty and unknown evidence, and zero provider/ledger call assertions.
  • Jenny D3 and backend gaps: Added mixed Approved/Pending, unavailable, invalid and denied quorum cases; they do not consume and can retry. Duplicate/excessive evidence rejects before provider fan-out. A secondary enrolled factor is accepted. Sequential replay, expiry before/during fetch and distinct-role constraints remain covered. Multi-process stress is unverified; the concurrent test uses separate SQLite connections from sixteen thread-pool workers, not sixteen OS processes.
  • Integration review: Snapshot caller-owned action recipients and evidence before async verification. The ledger independently snapshots inputs and inserts the exact serialized action it hashes. A mutation-during-fetch regression covers substitution. Dispose native connections on constructor/schema errors; corrupt-database cleanup is tested.

Remaining review responses

The following sections reproduce each lane's responses, including every Medium item accepted, superseded, or explicitly outstanding. Tests/configs missing from the Gronktayvius prompts are the instructed false positive; no missing-test claim is repeated.

CLI, CI and enablement responses — round 2

  • FIX 1 / Gronktayvius red-team High 1: request/status/verify now always exit nonzero, including Pending and Approved. Every approval operation labels output ADVISORY ONLY. Status and verify explicitly say not actionable. Tests enumerate every decision and repeat verify without consuming.
  • FIX 2 / red-team High 2: agent verify is a dry run (consume: false). Program.Main has no provider, notifier, credentials or replay wiring. Executor consumption is handled by the root's ledger changes.
  • FIX 5 / Gronktayvius High / red-team Medium: agent executable reads only Approvals:Enabled; removed Twilio credential and SMTP configuration loading completely. Enabled mode remains configuration-incomplete because no executor channel is implemented. Trusted adapter and credentials belong only to an executor. Runbook records challenge-only permissions and live-doc verification prerequisite.
  • Jenny A2 Medium 4: obsolete doctor/SMTP validation path removed with agent notification configuration. Enabled doctor cannot report complete; no invalid port can silently fall back because CLI no longer accepts SMTP configuration. Default disabled path is inert.
  • Jenny A2 cancellation Medium: CLI propagates caller cancellation and checks it before work.
  • Jenny B High 2: removed global Approvals__Enabled override from CI; build/test now run Windows and Linux. Config-entry tests prove unset defaults disabled and only Enabled is read.
  • FIX 7 / Gronktayvius test/CI findings: existing tests/configs were omitted from review prompt; that absence finding is ignored as instructed. Committed tool manifest pins Stryker.NET 4.16.0. All four configs already break at 60; retained. CI fails if TRX is absent, zero tests are discovered, tests fail or none execute. Dependency scan includes transitive packages; High/Critical findings, scan process failure, malformed report and reported scan problems fail CI.
  • Jenny B Medium 6: agree supply-chain pinning and floating remote Semgrep rules need hardening. Stryker version is now pinned. Action commit SHA/container digest provenance and Semgrep registry compatibility remain unverified; no network calls were used to obtain them, and no guessed hashes or reduced replacement ruleset were installed. This portion remains outstanding before enablement/release.
  • README, enable runbook and mobile contract now describe single verifier-built Details.Message, default limit 256 needing live-doc verification, captured full-effect phone payload gate, executor-only challenge credentials, protected SQLite state and transactional local outbox. External-effect dispatch/recovery is explicitly not implemented by the ledger alone.

Actual Stryker receipts

Hidden background invocations from tests/Forge.Approvals.Tests used installed 4.16.0:

dotnet-stryker --config-file stryker-config.json --skip-version-check --verbosity trace
dotnet-stryker --config-file stryker-twilio.json --skip-version-check --verbosity trace
dotnet-stryker --config-file stryker-notify.json --skip-version-check --verbosity trace
dotnet-stryker --config-file stryker-cli.json --skip-version-check --verbosity trace

Each log begins with:

Unhandled exception. NuGet.Configuration.NuGetConfigurationException: Failed to read NuGet.Config due to unauthorized access. Path: 'C:\Users\fives\AppData\Roaming\NuGet\NuGet.Config'.
 ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\fives\AppData\Roaming\NuGet\NuGet.Config' is denied.

Each log ends with:

   at Stryker.CLI.Program.Main(String[] args) in /_/src/Stryker.CLI/Stryker.CLI/Program.cs:line 27
   at Stryker.CLI.Program.<Main>(String[] args)
exit=-532462766

Files: artifacts/r2-stryker-core.log, artifacts/r2-stryker-twilio.log, artifacts/r2-stryker-notify.log, artifacts/r2-stryker-cli.log. All fail during startup, before Buildalyzer analysis. Therefore the original "Failed to analyze project builds" root cause and all four mutation scores remain unverified. No permission bypass, user configuration edit or speculative solution-path change was made. Clahadore must rerun all gates outside this blocker.

CI policy smoke receipts (synthetic inputs, not producer contract verification)

Invoked ci/Assert-TestResults.ps1 and ci/Assert-DependencyScan.ps1 on local synthetic counter/advisory data. Actual output:

Test gate passed: 2 discovered tests across 1 result files.
Expected rejection: Test gate failed: zero discovered tests in tests.trx.
Dependency gate passed: no High or Critical advisories in completed report.
Expected rejection: Dependency gate failed: fixture 1.0 High.
Expected rejection: Dependency gate failed: fixture 1.0 Critical.

These prove policy branches only. A verbatim vulnerability-report producer fixture, live advisory retrieval, scanner runs, CI execution and branch protection remain unverified. PowerShell is used for CI command/output orchestration; product changes remain C#. No commits, pushes, secrets, external configuration writes or live calls.

Compiled CLI usage receipt

Ran built src/Forge.Approvals.Cli/bin/Debug/net10.0/forge-approve.dll through hidden dotnet child processes with Approvals__Enabled removed from the child environment, then set to true. Actual artifacts/r2-cli-usage.log output:

command=forge-approve doctor; Approvals__Enabled=<unset>; exit=0
approvals disabled; configuration incomplete
command=forge-approve request; Approvals__Enabled=<unset>; exit=10
ADVISORY ONLY: this command never authorizes an effect; only the executor can consume approval.
disabled
command=forge-approve status; Approvals__Enabled=<unset>; exit=10
ADVISORY ONLY: this command never authorizes an effect; only the executor can consume approval.
disabled
command=forge-approve verify; Approvals__Enabled=<unset>; exit=10
ADVISORY ONLY: this command never authorizes an effect; only the executor can consume approval.
approvals disabled
command=forge-approve doctor; Approvals__Enabled=true; exit=1
approvals enabled; configuration incomplete
command=forge-approve request; Approvals__Enabled=true; exit=1
ADVISORY ONLY: this command never authorizes an effect; only the executor can consume approval.
ProviderUnavailable
command=forge-approve status; Approvals__Enabled=true; exit=1
ADVISORY ONLY: this command never authorizes an effect; only the executor can consume approval.
ProviderUnavailable
command=forge-approve verify; Approvals__Enabled=true; exit=1
ADVISORY ONLY: this command never authorizes an effect; only the executor can consume approval.
ProviderUnavailable

Twilio/Notify ProjectReferences were also removed from the CLI project; the final build/test gate must run after that project-file edit.

Round 2 responses: core models and notifications

  • Cedric P2; fix item 8: Accepted. NotifyPersistedAsync recognizes a dispatcher with independent channel deadlines. FileNotificationOutbox gives each channel its own bounded token and WaitAsync, observes abandoned task faults, and continues after a channel timeout. The regression enters through NotifyPersistedAsync with an uncooperative hung first channel and verifies the second channel runs.
  • Jenny B High 1: Accepted. Normalize executable path and require a local Windows drive path; reject forward/mixed UNC and device paths. Pin working directory to the executable directory. Child environment contains no inherited values; on Windows only SystemRoot from the Windows special folder is seeded. Fake-runner tests assert the working directory and environment count. Actual installed Pavlok network behavior remains unverified; no real process or network notification was sent.
  • Jenny B Medium 5; fix item 9: Accepted. Process-tree kill is best-effort without replacing the original exception. Process runner, notifier and outbox check caller cancellation at entry. Outbox rethrows caller cancellation and stops before the next channel. SMTP honors the supplied token instead of imposing its own ten-second deadline. Email handles its own timeout, bounds subject slicing before allocation and preserves surrogate boundaries. OS-level child-exit/kill race remains unverified because no live process fixture was launched.
  • Jenny A1 High 2: Accepted. Raw escaped JSON string/property tokens are checked for paired surrogate escapes before materialization. Numeric overflow produces JsonException. Tests cover lone high/low surrogates, property names, mismatched pairs, valid pairs, literal escaped backslashes and 1e400.
  • Jenny A1 Medium 3: Accepted. Malformed requests/action/lifetime return Invalid before recording clock state where determinable. Pre-epoch dates are rejected. Caller cancellation propagates from request/evaluate/notify. Notification late faults are observed. Gate uses atomic IApprovalClock.TryObserveAsync; durable implementation overrides sampling inside its transaction. The interface default preserves existing in-memory test adapters.
  • Jenny A1 Medium 4: Accepted. Digests require lowercase hex; negative decimal zero is rejected; non-null target labels/recipients cannot be blank, recipient collections cannot be empty, and Spend requires positive amount plus currency. ActionTarget equality and hash include recipient sequence values. Regression tests cover each condition.
  • Jenny A1 backend consume requests: Superseded by required executor-only consumption. Gate evaluates advisory state repeatedly and never calls IReplayStore, even when the legacy consume argument is true. Updated regression asserts zero replay calls. Executor ledger concurrency belongs to the executor tests.
  • Jenny B backend outbox requirements: Added 16 concurrent notifications asserting one dispatch, pre-cancelled no-reservation and mid-loop cancellation assertions. Tests use synthetic in-memory channels and repository-local temporary state only.

Verification

Focused test commands and their real logs are notify-models-test*.log / .err beside this file. Initial test compilation exposed deleted legacy clock/replay references in NotificationPersistenceTests, now replaced by a test-local clock. The second run compiled all four product projects but encountered concurrent executor-test work (ReadQueuedEffect missing). Final run result is recorded below after integration.

Round 2 responses — Twilio adapter

  • Fix-round item 4 / Gronktayvius red team display High: Replaced agent summary plus chunked canonical fields with one verifier-built Details.Message. It contains kind, exact effect binding, canonical target, ticket, command SHA-256, then the short human label. There are no supplementary fields to concatenate. The adapter refuses an oversized message before transport. MessageCharacterLimit defaults to a conservative 256; this is needs live-doc verification, not a claimed provider limit. The label has an independent 80-character ceiling. An echoed summary alone cannot authorize.
  • Fix-round item 5 / Gronktayvius general credentials High / red team credentials Medium / Jenny B3: Removed AuthToken, ApiKeySid, ApiKeySecret and agent configuration binding from the adapter options. Executor-only configuration takes ChallengeCredential:KeySid and ChallengeCredential:Secret; legacy account/key settings are explicitly rejected. There is no account-token fallback. This is an executor configuration contract, not evidence of actual Twilio permissions. Provision a restricted key permitting only challenge creation/read as needed, never entity/factor enrollment or mutation. Twilio restricted-key scope names and actual enforcement need live-doc verification plus a negative permission check before enablement. No credentials were provisioned or used.
  • Jenny A1.1: Executor factory requires a trusted registry and independently supplied service pin, resolves the configured person ID, and rejects unregistered factors/service mismatch. Validates VA/YF/SK SID shapes. Account SID configuration is removed, so AC validation is unnecessary. Partial challenge credentials never complete. Null configuration delegate/registry are rejected.
  • Jenny B4: Caller challenge IDs must be YC plus exactly 32 hexadecimal characters before any transport call. Service/entity/factor response pins cannot be blank. Invalid labels and hashes fail before transport. HTTP 400/404 map to Invalid; auth/rate-limit/server/transport failures map to ProviderUnavailable. Responses use headers-first transport and a 64-KiB read ceiling, including unknown-length streams. Public parsing also imposes the ceiling.
  • Jenny B5 (Twilio portion): Explicit bounded request deadline; caller cancellation propagates; internal timeout remains ProviderUnavailable. Caller cancellation is checked before transport, even on configuration/validation paths.
  • Jenny D1: Added traversal/query/fragment/dot/empty ID cases asserting zero handler calls; POST and GET both assert exact target URI and per-request Basic auth. Tests assert HttpClient.DefaultRequestHeaders.Authorization stays unset. Fake credentials are literal offline placeholders.
  • Jenny D4: Added 400/404/401/403/408/429/500/503, malformed/empty/HTML responses, response limit, transport exception, internal timeout, pre-cancelled caller and mid-flight cancellation coverage. All HTTP tests use an in-memory HttpMessageHandler; no network is contacted.
  • Jenny D5: Chunk splitting is eliminated with the single-message design; action labels remain printable ASCII, so non-BMP labels cannot enter an approval. Added exact configured message-limit and limit-minus-one tests, extra echoed fields rejection, future expiration mismatch and nested duplicate actionHash rejection. Existing verbatim producer fixture remains unchanged and explicitly cannot authorize Forge. Derived positive fixtures are labeled as such; no live payload is invented or claimed.

Verification

Initial targeted test attempt stopped on another lane's in-progress Core ledger API compile error; this was not a Twilio result. Final targeted results are recorded in twilio-test-final.log and .err; see final handoff for actual output. Live Twilio/device display, provider permissions, scope names, service limits and end-to-end integration remain unverified. Keep approvals disabled until the runbook's captured device payload proves the full effect is visible.

Final integrated receipts (supersedes intermediate lane runs)

Command: dotnet build --no-restore -warnaserror

Build succeeded.
    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:04.97
BUILD_EXIT=0

Command: dotnet test --no-restore --logger "trx;LogFileName=r2.trx" --results-directory artifacts/r2-results (The required plain dotnet test --no-restore was also run successfully before adding six malformed-ledger cases; this final run includes those cases.)

A total of 1 test files matched the specified pattern.
Passed!  - Failed:     0, Passed:   209, Skipped:     0, Total:   209, Duration: 2 s - Forge.Approvals.Tests.dll (net10.0)
TEST_EXIT=0

Command: ./ci/Assert-TestResults.ps1 -ResultsDirectory artifacts/r2-results

Test gate passed: 209 discovered tests across 1 result files.

git diff --check returned exit 0 with no whitespace findings. Full logs: artifacts/r2-root-build.log, artifacts/r2-root-test.log, artifacts/r2-test-count.log; real test producer payload: artifacts/r2-results/r2.trx.

Outstanding: FIX item 7 is not fully verified: all four mutation runs fail before analysis on sandbox-denied user NuGet configuration. Original Buildalyzer root cause and mutation scores are unresolved. CI execution, live vulnerability scan and its verbatim producer contract fixture, immutable Action/container/ruleset pins, live Twilio scopes/display, actual Pavlok/OS-kill races, Linux/multi-process stress and cross-identity deployment remain unverified. No executor transport or external-effect dispatch is implemented; enabled CLI intentionally reports incomplete. Clahadore must rerun the gates and resolve these before enablement. No commit or push was made.