| Messenger |
command and query buses; a rate-limited reviewer retries after getRetryAfter() through RecoverableExceptionInterface::getRetryDelay(); the failure transport means blocked. Built: the two buses command.bus and query.bus, the typed handler attributes AsCommandHandler and AsQueryHandler, the async Doctrine transport that carries one message per reviewer of a round (its table from the migrations, auto_setup off, redeliver_timeout above the reviewer hold), RecoverableMessageHandlingException with a retry delay for a message that finds its reviewer held by a live worker, ReviewerRateLimited (retry delay from getRetryAfter()), JudgeLimited (the same for the judge call of a round), EscalationLimited (forceRetry on, Messenger 8.1, for the escalation review’s busy account or rate limit; a transient failure gets its own retries from the #[AsMessageMiddleware] BoundTransientEscalationFailures, which counts them in its own stamp and asks the async transport’s retry strategy for the bound and the delay, and adds the failure stamp on receipt to an escalation queued without it), and the failed failure transport with BlockReviewerOfFailedMessage and, for a judging that fails for good, the DispatchOnFailureStamp (Messenger 8.2) of JudgeRound carrying RecordFailedJudging, which the #[AsMessageMiddleware] (Messenger 8.2) StampFailureOfEarlierJudging adds on receipt to a judging queued without it, and for an escalation review parked for good the DispatchOnFailureStamp of EscalateRecurringP1 carrying RecordFailedEscalation; the retry strategy’s max_delay caps the wait of a retry without its own delay at one minute; the first query handler, VerdictsOfRoundHandler, reads a round’s verdicts with their standing; the image runs messenger:consume workers with --memory-limit and --time-limit, stopped on SIGTERM after the current message (pcntl) |
in progress |
T9 (#14, part #271), config/packages/messenger.yaml, src/Core/Platform/Contract/AsCommandHandler.php, src/Core/Platform/Contract/AsQueryHandler.php; T9 (#14, part #240), src/Core/Review/UseCase/RunReviewRound/; T9 (#14, part #241), src/Core/Review/UseCase/RunReviewRound/ReviewerRateLimited.php, src/Core/Review/UseCase/RunReviewRound/BlockReviewerOfFailedMessage.php; T11 (#16), src/Core/Review/UseCase/ReadVerdicts/; T12 (#17, part #446), src/Core/Review/UseCase/JudgeRound/; T12 (#17, part #460), src/Core/Review/UseCase/JudgeRound/QueueJudgingOfCompletedRound.php; T61 (#1759, part #3286), src/Core/Review/UseCase/EscalateRecurringP1/; T22 (#28, part #690), docker/entrypoint.sh |
ResetInterface and kernel.reset |
every stateful service resets between requests in worker mode and between messages in consumers; a PHPStan rule enforces it |
in progress |
T36 (#67), config/gates/src/PhpStan/StatefulServiceResetRule.php; T13 (#18), src/Plugin/LocalGitForge/UseCase/ReviewChange/CleanupOnStop.php; T29 (#29), tests/Application/WorkerModeTest.php and, for the Symfony AI services (part #771), tests/Application/SymfonyAiResetTest.php |
| Scheduler |
the watcher tick (#[AsSchedule], one RecurringMessage per project, every minute), run in the image by its own messenger:consume scheduler_watcher process; use_messenger_routing: true sends a scheduled message through the Messenger routing of its class, and the tick, which has none, stays in that process; usage probes, deadlines and the weekly branch cleanup are planned |
in progress |
T38 (#490), src/Core/Watcher/UseCase/WatchPullRequests/WatcherSchedule.php; T22 (#28, part #690), docker/entrypoint.sh; #1900, config/packages/scheduler.yaml; T14 (#19), T30 (#24) |
| Workflow |
state machine of a review round and of each reviewer, with its Graphviz diagram; both machines are declared with the 8.2 attributes (AsWorkflow on the class, Transition on its constants, repeated for a transition that leaves two places, names taken from the RoundTransition, RoundState, ReviewerTransition and ReviewerState enums) and their diagrams are generated by workflow:dump; a completed-transition listener (AsCompletedListener) queues the judge of a completed round, and another queues the publication of a judged round’s verdict |
in progress |
T9 (#14, part #240), src/Core/Review/Domain/, docs/architecture/review-round.dot; T12 (#17, part #446), src/Core/Review/UseCase/JudgeRound/QueueJudgingOfCompletedRound.php; #1251 (part #1319), src/Core/Review/UseCase/PublishVerdict/QueuePublicationOfJudgedRound.php; #1849 (parts #2712 and #2713), src/Core/Review/Infrastructure/ReviewRoundStateMachine.php, src/Core/Review/Infrastructure/ReviewerStateMachine.php, docs/architecture/review-round-machine.dot, docs/architecture/reviewer-machine.dot |
Twig (symfony/twig-bundle) |
server-rendered dashboard pages, auto-escaped, in one app shell (rail, top bar with the search field, the project filter and the theme toggle, and the closed search overlay beside the shell) with three inline scripts on every page, the theme script, the shell script and the module script that imports the danger button script, the search overlay script and the finding highlight script by their asset() addresses, and one more script, the import map of Turbo and Stimulus, on the project list, the review list and the review page whenever the live-update hub can authorize a listener for them, and on the components page; the shared components as templates for include() and embed, the search results as a fragment of those components for the overlay to show, and the glossary explanations and the project filter’s projects as Twig functions declared with #[AsTwigFunction] |
in progress |
T20 (#26, parts #511, #512 and #513), src/Core/Dashboard/, templates/dashboard/; #1101 (part #1108), templates/dashboard/base.html.twig; #1101 (part #1109), templates/dashboard/components/, src/Core/Dashboard/Infrastructure/GlossaryExplanations.php; #1101 (part #1110), templates/dashboard/components.html.twig; #1194 (part #1198), templates/dashboard/base.html.twig; #1194 (part #1199), src/Core/Dashboard/Infrastructure/FilterProjects.php; #1260, templates/dashboard/base.html.twig, src/Core/Dashboard/Infrastructure/LivePageRendering.php; #1102 (part #1196), templates/dashboard/base.html.twig, assets/arm.js; #1408 (part #1413), templates/dashboard/base.html.twig, templates/dashboard/_search_results.html.twig, templates/dashboard/components/search_group.html.twig; #1534 (part #1551), templates/dashboard/base.html.twig |
| Lock (Semaphore) |
caps parallel calls per vendor account, held on the provider that answers the review, a substitute included (file locks, since the other store needs Redis) |
in progress |
T9 (#14, part #241), T14 (#19, part #415), src/Plugin/SymfonyAiVendor/Infrastructure/VendorAccountLimit.php, src/Plugin/SymfonyAiVendor/Infrastructure/SymfonyAiVendor.php |
| Lock |
one listing of a project’s open pull requests at a time, one look at a pull request at a time from the stale check to the round start, one outage notice of an account at a time, one publication of a round’s progress at a time and one publication of a reviewer-for-loop round’s verdict at a time from the read of the comments to the status post, all tried without waiting; one verdict publication of a project’s change at a time, from the read of the round’s state through the forge write, tried without waiting and brought back by Messenger as a recoverable failure (file lock); one publication of a round’s session summary at a time, tried without waiting by a tool call and waited for by the judged state, so nothing follows it; one publication of the board’s headline at a time for the install, tried without waiting, the holder reading the board again after it lets go; one write of a GitHub installation’s rate-limit pause at a time, waited for, so a shorter pause never replaces a longer one; one take of a project’s GitHub listing of the tick below its installation’s reserve at a time, tried without waiting; one seed of the demo’s sample project at a time, waited for; one journey alarm at a time from its lookup of the open task to its create or edit, waited for (file lock); one run of a job at a time, held from before its container exists until it is removed, tried without waiting, and a free lock marks an orphaned job container for removal (file lock, which ends with its process); one hand-back outcome of a task at a time, from the read of the task’s last hand-back line to the append of the new one, waited for (file lock); one live update at a time from its publish to its capture line while the demo’s live-update capture runs, waited for, so the capture keeps the order the hub received; one demo replay or removal of the demo project at a time: a replay from the check that the demo project is flagged as a replay and the ledger holds none of the recording’s rounds through its last append or published update, tried without waiting and without a lease, and a removal from the check of the flag through the removal of the flag, tried without waiting; one cooldown write of a pinned router provider at a time, from the read of the running window’s end to the write of the later end, waited for (file lock), so an earlier end from an answer that arrived late never replaces a later one; one record of a project’s main boot result read from the store at a time, from the board read to the ledger append, tried without waiting; one raise of the watchdog’s owner cards at a time, from the read of the cards already raised to the last append, waited for, so two guards that read main at once raise one card per violation; one clear of a watchdog owner card at a time, keyed by the card id, from the read of the standing card to the append of its clear, tried without waiting, so of two parallel clears one appends and the other is refused; one exclusive store lock for each save or lease of the dependency snapshot store, waited for, and a shared read pin for each leased snapshot (acquireRead()), held while a check mounts it, tried without waiting, which an eviction must take exclusively (file lock); one install of a dependency snapshot key at a time, from the install folder’s first touch to its removal, tried without waiting, so a second check of the same key installs itself (file lock) |
in progress |
T23 (#30, part #765), src/Core/Review/UseCase/SeedSampleProject/SeedSampleProjectCommand.php; T38 (#488, #490), src/Core/Watcher/UseCase/FindChangedPullRequests/FindChangedPullRequests.php, src/Core/Watcher/UseCase/WatchPullRequests/HeadLocks.php; T40 (#520), src/Core/Budget/Infrastructure/DoctrineOutageNotices.php; T21 (#27, part #583), src/Core/Review/UseCase/RunReviewRound/LiveRoundProgress.php; T18 (#674, #675), src/Plugin/GitHubForge/Infrastructure/RateLimitReadings.php, src/Plugin/GitHubForge/Infrastructure/BudgetReserve.php; #1220, tests/Journeys/Support/JourneyAlarm.php; #1251 (part #1319), src/Plugin/GitHubForge/Infrastructure/VerdictLocks.php; T44 (#1291), src/Core/Job/Infrastructure/JobLocks.php; #1534 (part #1550), src/Core/Dashboard/Infrastructure/MercureRoundUpdates.php; T50 (#332, part #1579), src/Core/HandBack/UseCase/CheckHandBack/HandBackRoutes.php; T58 (#340, part #1855), src/Core/Review/UseCase/PublishVerdict/ChangePublications.php; #2056 (part of #1944), src/Core/Dashboard/Infrastructure/CapturingLiveUpdates.php; #1942 (part #2107), src/Core/Dashboard/Infrastructure/LiveBoardHeadline.php; #2302 (part of #2077) and #2373 (part of #2303), src/Core/Dashboard/UseCase/ReplayDemo/ReplaysRecording.php; #2078 (part of #2057), src/Core/Dashboard/UseCase/RemoveDemoProject/RemoveDemoProjectCommand.php; #2832 (part of #2824), src/Core/Ai/Infrastructure/PinnedProviderCooldownWindows.php; #2022 (part #2726), src/Core/Watcher/UseCase/WatchPullRequests/BootResults.php; T63 (#1690, part #345), src/Core/Watchdog/UseCase/GuardMain/GuardMain.php, src/Core/Watchdog/UseCase/ClearHalt/ClearHalt.php; #2931 (part of #2621), src/Core/HandBack/Infrastructure/DependencySnapshots.php; #2622 (part 3 of #1203), src/Core/HandBack/UseCase/RunCheckJob/DependencyJobs.php |
| RateLimiter |
per-account cooldown windows aligned to the vendor’s reset: a fixed_window of one call anchored (anchor_at) at the reset, in a cache pool every worker shares, with Lock around each window |
in progress |
T14 (#19, part #414), src/Core/Ai/Infrastructure/AccountCooldownWindows.php, config/packages/cache.yaml |
| Webhook and RemoteEvent |
a GitHub RequestParser that checks the signature and turns events into RemoteEvents (optional, last) |
planned |
T32 (#60) |
| HttpClient |
RetryableHttpClient and scoped clients for GitHub. Built: the installation token exchange through HttpClientInterface; the pull request reads, the review post and a reviewer-for-loop verdict’s comment and commit status through the scoped client github.client with retry_failed (RetryableHttpClient), each write with the per-request max_retries: 0 so it is sent once; the retried codes are Symfony’s defaults without 429 (dropped connections still retried) because the forge raises a 429 as a rate limit; all tested with MockHttpClient. The Docker Engine API over its Unix socket (bindto, curl client) for job containers, tested against a MockHttpClient callback that plays the engine. The connectivity check’s bare HEAD probes with per-request timeout and max_duration, where any status counts as an answer and only a transport error as a failure, tested with MockHttpClient |
in progress |
T18 (#23, #540, #541, #674); T37 (#485), config/packages/framework.yaml, src/Plugin/GitHubForge/Infrastructure/GitHubForge.php, src/Plugin/GitHubForge/Infrastructure/InstallationTokenMinter.php; T44 (#1291), src/Core/Job/Infrastructure/DockerEngine.php; #1251 (part #1319); #2678 (part #2837), src/Core/Outage/Infrastructure/HttpsProbe.php |
| Mercure and Turbo (Symfony UX) |
Turbo Streams over FrankenPHP’s built-in hub. Built: symfony/mercure-bundle (HubInterface) publishes reviewer progress and round state as Turbo Stream markup, and the board’s headline on the shell topic whenever a reviewer starts or a round changes; a reviewer asked again uses Turbo’s update action, so the retry’s text replaces the failed try’s in the live log; the app shell prints one turbo_stream_from() for the shell topic dashboard/shell plus, on the review page’s main view and its Full record, every unjudged round, mercure() adds the same subscriber grants on every page (the shell topic and the urlpattern review/rounds/:round), and Turbo comes from the import map; the newest round’s judged update replaces the main view’s owl card, removes its state block with Turbo’s remove action and puts in the To fix cards, so an open main view ends as a reload shows it; every page stays complete without the hub (#584, #1260) |
in progress |
T21 (#27, parts #583 and #584), config/packages/mercure.yaml, templates/dashboard/base.html.twig, templates/dashboard/review.html.twig, src/Core/Dashboard/Infrastructure/MercureRoundUpdates.php, templates/dashboard/stream/; #1260, src/Core/Dashboard/Infrastructure/LivePageRendering.php; #1942 (part #2107), src/Core/Dashboard/Infrastructure/LiveBoardHeadline.php; #2334 (part #2337), templates/dashboard/stream/reviewer_asked_again.stream.html.twig; #3328 (part #3360), templates/dashboard/stream/round_judged.stream.html.twig |
AssetMapper and Asset (symfony/asset-mapper, symfony/asset) |
the dashboard’s design tokens, base styles, component and shell styles, logos and self-hosted fonts, linked with asset() and versioned, with the font URLs in the CSS rewritten, and the search overlay script and the finding highlight script, imported by their versioned asset() addresses; served by the asset server in dev and test, compiled into the image |
in progress |
#1101 (parts #1108 and #1109), assets/styles/, assets/fonts/, templates/dashboard/base.html.twig; #1194 (part #1198), assets/images/; #1408 (part #1413), assets/search.js; #1534 (part #1551), assets/finding-highlight.js |
| Stimulus (Symfony UX) |
toast hides a toast after a while; connection, on the shell, finds its line, marker and the elapsed times’ drop times through targets, shows them when a live connection drops, disables the POST forms’ submit buttons meanwhile and retries every 5 s; chart, on each Trends chart, shows a bar’s tooltip (value first) on hover and keyboard focus through a target and action parameters, and hides it once neither holds it (leaving or blurring a bar keeps its tooltip while the other trigger still holds it) or on Escape anywhere on the page; the theme toggle is part of the shell script of the layout, and a danger button’s second click, the search overlay, the highlight of a session summary’s finding id, a board column’s fold, a crowded board column’s Show more, a phone banner’s toggle and a command’s Copy button are handled by the plain modules assets/arm.js, assets/search.js, assets/finding-highlight.js, assets/column-fold.js, assets/column-more.js, assets/banner-toggle.js and assets/copy-command.js, not controllers, because a page without live updates loads no import map, except the Trends page and the components page, which always load it (the Trends charts’ chart controller starts from it) |
in progress |
#1101 (part #1109), assets/controllers/toast_controller.js; #1101 (part #1110), templates/dashboard/components.html.twig; #1194 (part #1198), templates/dashboard/base.html.twig; #1224 (part #1228), assets/controllers/connection_controller.js, templates/dashboard/components/connection.html.twig; #1224 (part #1229), templates/dashboard/components/meta.html.twig; #1102 (part #1196), assets/arm.js; #1408 (part #1413), assets/search.js; #1534 (part #1551), assets/finding-highlight.js; #1466 (part #1470), assets/column-fold.js; #1468 (part #1791), assets/column-more.js; #1699 (part #1754), assets/banner-toggle.js; #2631 (part #2798), templates/dashboard/base.html.twig, assets/copy-command.js; #2863 (part #2934), assets/controllers/chart_controller.js, templates/dashboard/trends.html.twig |
| Console |
8.1 input mapping; CommandTester assertions (assertCommandIsSuccessful()); signal handling (SignalableCommandInterface) removes the review snapshot on SIGINT and SIGTERM; ConsoleLogger prints the outage notices of a budget replay between its decisions |
in progress |
T2 (#7, part #47), src/Core/Ledger/UseCase/ReadEvents/ReadEventsCommand.php; T6 (#11, part #59), src/Plugin/LocalGitForge/UseCase/SummarizeChange/SummarizeChangeCommand.php; T13 (#18), src/Plugin/LocalGitForge/UseCase/ReviewChange/ReviewChangeCommand.php, tests/Plugin/LocalGitForge/ReviewChangeCommandTest.php; T40 (#520), src/Core/Budget/UseCase/ReplayDay/ReplayDayCommand.php |
| Uid |
UUIDv7 ids for ledger events and findings |
in progress |
T2 (#7, part #46), src/Core/Ledger/Infrastructure/DoctrineLedger.php |
DependencyInjection #[AutowireCallable] |
the reviewer gets its per-review toolbox as a closure over ReviewerMcpToolboxFactory::create() |
in progress |
T7 (#12), src/Core/Review/Infrastructure/ReviewerAgent.php |
DependencyInjection service decoration (decoration_on_invalid: ignore, #[AutowireDecorated]) |
no longer used by the application: the project mode guard that decorated the forge writes went with the shadow mode, so the container’s forge writes are the GitHub forge itself; only the test container still decorates services (the logger and the live-update hub) |
done |
reviewer for the loop (#1251, parts #1318 and #1319), #1433 (part #1478), #1434, config/services.yaml |
| DependencyInjection env var processor |
postgresql_server_version gives a PostgreSQL DATABASE_URL a server version and leaves other engines to detect theirs |
in progress |
T3 (#8), src/Core/Platform/Infrastructure/PostgreSqlServerVersion.php |
| Clock |
time only through ClockInterface, enforced by a gate; a MockClock runs the budget replay’s scripted day through the real stores and guard; ClockInterface::sleep() waits 10 and then 30 seconds between the attempts of a read-only network git call, proven with a clock that records each sleep and never waits; ClockInterface::sleep() paces a demo replay’s ledger rows and captured live updates at their recorded gaps divided by the factor, proven with a MockClock, a ledger that stamps each append with the clock’s moment and a publisher that notes the clock’s moment at each publish |
in progress |
config/gates/phpstan.neon; T40 (#520), src/Core/Budget/UseCase/ReplayDay/RolledBackReplay.php; T46 (#1315, part #1355), src/Core/Git/Contract/NetworkGit.php; #2302 (part of #2077) and #2373 (part of #2303), src/Core/Dashboard/UseCase/ReplayDemo/ReplaysRecording.php |
| Validator |
checks typed verdicts from structured output |
in progress |
T1 (#5), src/Core/Review/Contract/VerdictParser.php, src/Core/Review/Contract/Verdict.php, src/Plugin/SymfonyAiVendor/Infrastructure/SymfonyAiVendor.php; T5 (#10, part #98) |
Serializer (ALLOW_EXTRA_ATTRIBUTES, REQUIRE_ALL_PROPERTIES, JsonDecode::ASSOCIATIVE) |
maps a verdict strictly: no unknown and no left-out fields, no object as a list |
in progress |
T1 (#5), src/Core/Review/Infrastructure/StrictVerdictConverter.php |
Serializer, named stored serializer with a snake_case name converter |
stored verdicts and findings are written and read back through one configured serializer; the usage, account cooldown and round ledger payloads are written through typed readonly payload classes, and the Review module and the Dashboard read the round ledger and usage rows back through them, a row written before a key existed reading with a default constructor argument (built; the watcher’s lines are not typed yet); intakt:review --format=json is written from a typed ReviewOutput whose act list rows are the findings themselves, and intakt:vendor:probe normalizes a typed ProbeUsage |
in progress |
T1 (#5), #756, config/packages/framework.yaml, src/Core/Review/UseCase/RunReviewRound/StoredFindings.php, src/Core/Review/UseCase/RunReviewRound/ReviewerMoves.php, src/Core/Review/UseCase/ReadRound/RoundFindingsResource.php (#768); #876, src/Plugin/SymfonyAiVendor/Infrastructure/UsageLedger.php, src/Core/Ai/Infrastructure/AccountCooldownWindows.php; #877, src/Core/Review/UseCase/RunReviewRound/RoundLedger.php; #956, src/Core/Ledger/Contract/LedgerPayloads.php; #957, src/Core/Dashboard/Infrastructure/RoundPayloads.php; #758, src/Plugin/LocalGitForge/UseCase/ReviewChange/ReviewOutput.php, src/Plugin/SymfonyAiVendor/UseCase/ProbeProviders/ProbeUsage.php |
| Security |
a voter decides which MCP tools may write; the access_token authenticator checks the owner’s bearer token and, on the review server, a round’s signed credential; the CSRF token manager guards the dashboard’s start button (CsrfTokenManagerInterface, csrf_token() in Twig) |
in progress |
T15 (#20, parts #508 and #510), src/Core/Mcp/Infrastructure/ToolAccessVoter.php, src/Core/Mcp/Infrastructure/OwnerTokenHandler.php; T20 (#26, part #513), src/Core/Dashboard/UseCase/StartReview/StartReviewController.php; T16 (#21, part #578), src/Core/Review/UseCase/ServeReviewTools/ReviewCredential.php, config/packages/security.yaml |
| Process |
the local git forge; every git call hardened, in the forge and in the gates; one PHPUnit or script run per upstream reproduction, with a timeout; the gitleaks scan of a review text before the GitHub forge posts it, the text on standard input; the gitleaks scan of every object a hand-back bundle adds and of the pull request text the build returned, each on standard input, with a timeout; the hardened git calls that build the demo’s sample repository; the tests gate’s queue of PHPUnit runs, one process per test file in each worker, with a timeout, and stop() of every running process at the queue’s overall limit; read-only network git calls with a timeout per attempt, where a timeout, a signal or a call that cannot start is retried like a failed exit and named without the command line; the watchdog’s hardened git reads of main and the ssh-keygen -Y verify check of each commit’s SSH signature against the owner’s keys, the payload on standard input, with one timeout for every call |
in progress |
T23 (#30, part #765), src/Core/Review/UseCase/SeedSampleProject/SampleRepository.php; #641 (part #657), config/gates/src/ProcessQueue.php; T6 (#11, part #58), src/Plugin/LocalGitForge/Infrastructure/LocalGitForge.php; T6 (#11, part #124), src/Core/Git/Contract/HardenedGit.php, config/gates/src/HardenedGitCall.php; T26 (#33), src/Core/Upstream/Infrastructure/ReproductionRunner.php; T18 (#23, #541), src/Plugin/GitHubForge/Infrastructure/SecretScan.php; T50 (#332, parts #1578 and #1579), src/Core/HandBack/UseCase/CheckHandBack/BundleSecretScan.php; T46 (#1315, part #1355), src/Core/Git/Contract/NetworkGit.php; T63 (#2914, part #2970), src/Core/Watchdog/Infrastructure/MainHistory.php |
| Runtime: FrankenPHP worker mode |
decided: one booted kernel for the HTTP side through FrankenPhpWorkerRunner |
done |
decision 17 in docs/design/06-decisions.md |
| Runtime: worker mode in the image, no state leaks |
the image runs worker mode; a test proves nothing leaks between requests |
in progress |
T22 (#28, part #703), bin/instance boots the app worker when frankenphp is on the PATH; T29 (#29), tests/Application/WorkerModeTest.php, tests/Application/SymfonyAiResetTest.php |
DependencyInjection #[AutowireIterator] with indexAttribute and Messenger MessageCountAwareInterface |
the status read model counts the messages waiting in each Messenger transport, the transports collected by their messenger.receiver tag and named by its alias, so a stopped consumer shows as messages piling up instead of as no status |
in progress |
T68 (#350, part #1700), src/Core/Dashboard/Infrastructure/MessageQueues.php |
Console #[Option] on a backed enum parameter of an invokable command |
intakt:status --format=json takes its format as the enum StatusFormat, so the Console resolves the value and refuses any format the enum does not list before the command runs |
in progress |
T68 (#350, part #1701), src/Core/Dashboard/UseCase/ShowStatus/ShowStatusCommand.php |
DependencyInjection lazy arguments (#[Lazy]) |
the push gate gets the GitHub comment reader as a lazy object, so a head that needs no owner approval is decided on an install without GitHub settings |
in progress |
T55 (#337, part #1621), src/Plugin/GitHubForge/UseCase/ApprovePush/PushGate.php |
Serializer, a normalizer tagged for one named serializer (serializer.normalizer with serializer: stored) and #[Ignore] |
a finding’s merged ids stay out of the schema the reviewer is asked to fill and out of its answer, yet are written and read back in stored JSON |
in progress |
#1812 (part #1819), src/Core/Review/Infrastructure/StoredFindingNormalizer.php |
Messenger ListableReceiverInterface on the failure transport |
intakt:review reads the judging failure recorded in the ledger (judging_failed, written by the handler of the RecordFailedJudging message that the judging’s DispatchOnFailureStamp carries) or, when that message could not be dispatched, lists the messages parked in the failed transport with all(), which hands nothing out, and stops waiting as blocked with the reason “the judging failed” |
in progress |
T13 (#18, part #1857), src/Core/Review/UseCase/JudgeRound/FailedJudgings.php |
| Filesystem |
the demo’s live-update capture appends each update to one file (appendToFile()), intakt:demo:record reads it (readFile()) and writes the recording through a temporary file renamed into place (dumpFile()), and intakt:demo:replay reads the recording (readFile()) |
in progress |
#2056 (part of #1944), src/Core/Dashboard/Infrastructure/CapturingLiveUpdates.php, src/Core/Dashboard/UseCase/RecordDemo/RecordDemoCommand.php; #2302 (part of #2077), src/Core/Dashboard/UseCase/ReplayDemo/ReplayDemoCommand.php |
DependencyInjection lazy services (lazy: true) |
the expected GitHub App installation is a lazy service, so the forge and the verdict publication are built on an install without GitHub App settings (the demo) and the settings are parsed only when a call first reaches GitHub |
in progress |
#2156 (part #2162), config/services.yaml |
| Symfony 8.2 |
the Symfony components and bundles are required at ^8.2; 8.2 is a beta until 8.2.0 is released, so minimum-stability is beta and the lock holds 8.2.0-BETA2 under the owner’s cooldown exception |
in progress |
#1886 (part 3 of #1842), composer.json, composer.lock |
HttpKernel error controller (framework.error_controller) |
a dashboard form refused by its CSRF token or its round number (FormIsRefused, a BadRequestHttpException) shows its own plain sentence and how to retry on the error page, while every other 4xx keeps the generic line |
done |
#3521, src/Core/Dashboard/UseCase/ShowError/ShowErrorController.php |
Filesystem mkdir, tempnam, chmod, appendToFile, remove |
a checked provider key is written to a new file with mode 0600 and hard-linked to var/data/provider-key.json, which fails when anything is at the path (a symbolic link there, dangling or not, is refused first), so the key is never readable by others, a link there is never written through and a kept key is never replaced |
done |
#2257, #2258, #2330, src/Core/Ai/Infrastructure/KeptProviderKeyFile.php |
DependencyInjection EnvVarLoaderInterface (container.env_var_loader) and #[AsTaggedItem(priority: -100)] |
the kept provider key is served as ANTHROPIC_API_KEY, OPENAI_API_KEY or HF_TOKEN only for a name the environment lacks, and its loader ranks below the secrets vault’s, so a value in .env.local or the vault wins and the key needs no copy of the env processor’s order; a kept Hugging Face token is also served as the two OPENAI_COMPATIBLE_* variables only when neither is set in the environment or by another env loader, which it gets through #[AutowireIterator('container.env_var_loader')], so the token never goes to an endpoint set in the vault |
done |
#2257, #2331, #2232, src/Core/Ai/Infrastructure/KeptProviderKeyVariables.php |
HttpFoundation JsonResponse::fromJsonString() |
the dashboard’s /status endpoint answers the status read model’s JSON as it was encoded, so the endpoint and intakt:status give the same bytes without a second encoding |
in progress |
T68 (#350, part #1702), src/Core/Dashboard/UseCase/ShowStatus/ShowStatusController.php |
Messenger 8.2 bus option unwrap_exceptions |
command.bus throws the failing handler’s own exception to the code that dispatched the command instead of HandlerFailedException, so the dashboard’s start of a review and the review command catch a refusal such as RoundNotNext by its type; query.bus and the workers still get HandlerFailedException |
in progress |
#2696 (part #1847), config/packages/messenger.yaml |
Messenger DispatchOnFailureStamp and ChainStamp (Messenger 8.2) |
DispatchOnFailureStamp: QueueJudgingOfCompletedRound dispatches JudgeRound with it, carrying RecordFailedJudging, and the middleware StampFailureOfEarlierJudging adds it to a judging queued without it; a judging that fails for good after the async retries dispatches that message instead of being parked in the failed transport, RecordFailedJudgingHandler appends the ledger event judging_failed, and the status read model, the dashboard and intakt:status show the round as failed from that event (StoredRoundEndings reads the record through FailedJudgings, which still also counts a judging parked before the stamp; last_outcomes entries carry end: judging_failed). ChainStamp: not used, because it dispatches the next message only after the handler returned, outside the judging’s transaction, so a worker stopping in between would lose the publication; the judge transition queues PublishVerdict with the judge record instead |
in progress |
T13 (#18, part #1848: #2700, #2701), src/Core/Review/UseCase/JudgeRound/QueueJudgingOfCompletedRound.php, src/Core/Review/UseCase/JudgeRound/StampFailureOfEarlierJudging.php, src/Core/Review/UseCase/ReviewChange/StoredRoundEndings.php, src/Core/Dashboard/UseCase/ShowStatus/ProjectStatuses.php |
AssetMapper import map integrity and minimum release age (8.2, importmap_integrity_algorithms, minimum_release_age) |
every module of the dashboard’s import map carries a sha384 integrity hash of the file Intakt serves, so the browser refuses changed bytes; importmap:update holds back a JavaScript package version younger than 3 days, the same period as the Composer cooldown |
done |
#2702 (part 1 of #1851), config/packages/asset_mapper.yaml, tests/Application/ImportMapPolicyTest.php |
Messenger 8.2 bus option messages (allowed messages per bus) |
command.bus accepts only CommandMessage and query.bus only QueryMessage (the platform module’s marker interfaces), so a query dispatched on the command bus or a command on the query bus is refused with InvalidArgumentException before any handler runs; a message received from a transport (it carries a ReceivedStamp) bypasses this check, as Messenger documents |
in progress |
#2881 (part #2697), config/packages/messenger.yaml |
| Profiler |
saved profiles in dev, and in test only for a test that calls enableProfiler(), absent from prod; only the db, messenger, time and memory collectors are registered (a compiler pass removes every other data_collector tag) and a decorated profiler.storage saves no query string or client address, so a profile holds no secret |
in progress |
#2721 (part #3010), config/packages/framework.yaml, src/Core/Server/Infrastructure/ProfileOnlyRequestMeasuresPass.php, src/Core/Server/Infrastructure/PathOnlyProfilerStorage.php |
Messenger 8.2 messenger:consume --concurrency |
the journey support starts one messenger:consume async --concurrency=<n> consumer with the options the image’s entrypoint gives its async consumer, signals it, times its end and tells its workers from processes that reused their PIDs; the concurrent journey that runs it is planned (#2723 part 2), and the image’s consumers still handle one message at a time per process, since a concurrency above 1 needs amphp/parallel, which Intakt does not install yet |
in progress |
#2723 (part #3018), tests/Journeys/Support/ConsumerProcess.php |
| EventDispatcher listener order (8.2) |
the before and after arguments of #[AsEventListener] order the listener that blocks the reviewer of a failed message: after Messenger’s retry listener, which decides willRetry(), and before the listener that parks the message in the failure transport, with no priority of its own; a test reads the order from the container |
in progress |
#2698 (part #3066), src/Core/Review/UseCase/RunReviewRound/BlockReviewerOfFailedMessage.php, tests/Core/Review/UseCase/RunReviewRound/FailedMessageListenerOrderTest.php |
Trial of the HttpKernel 8.2 #[Lock] controller attribute |
tried for the dashboard’s “Start round N” and “Stop this reviewer” presses, and not used: its listener takes the lock on kernel.controller, before the controller checks the form token and looks the round up in the ledger, so a forged or made-up post would leave a lock file. The two presses share one lock per review through the Lock component’s LockFactory on the existing FlockStore instead (RoundLock, key dashboard-review- and the id of the review’s first round, not the round in the address), taken only after both checks, tried without waiting and released on the main request’s kernel.finish_request; a press that finds the review busy does nothing and says so (“Another press for this review is still running, so nothing was started.” or “… so nothing was stopped.”); the round-wide stop does not take it |
done |
#2703 (parts #3021, #3022), src/Core/Dashboard/Infrastructure/RoundLock.php |
Messenger 8.2 test assertions (MessengerAssertionsTrait) |
the tests that read the async queue right after a dispatch or a request, before any worker runs, use assertQueuedMessageCount() and getQueuedMessages(); tests that read what was sent after a worker drained the queue keep reading getSent(), because the helpers read only what is still queued |
done |
#3067 (part #2698), tests/Core/Dashboard/UseCase/ProjectFilterLiveUpdatesTest.php, tests/Core/Dashboard/UseCase/PlayDemo/PlayDemoControllerTest.php |
Messenger 8.2 worker option stop_when_empty |
the tests that run a real Worker until the queue is drained pass the option to Worker::run() instead of a stop listener (StopWorkerOnMessageLimitListener or an idle WorkerRunningEvent listener) |
done |
#3067 (part #2698), tests/Core/Review/UseCase/RunReviewRound/FailedMessageTest.php, tests/Application/DemoReviewLogTest.php |
Console ConsoleEvents::ERROR and ConsoleEvents::TERMINATE listeners (ConsoleErrorEvent::setExitCode(), stopPropagation()) |
intakt:watchdog:check and intakt:watchdog:guard exit with 2 also when the Console itself refuses their usage (an option without its value, a missing argument, an unknown option), so a caller tells refused input from a violation or a failed read (1); a refused run stops both events before the Console’s ErrorListener logs its command line, which may hold an unchecked --owner-key value |
in progress |
T63 (#1790, part #1689; #1690, part #345), src/Core/Watchdog/Infrastructure/ExitInvalidOnRefusedUsage.php |
Lock per finding key, not waited for, with Messenger’s RecoverableMessageHandlingException |
one escalation review of a recurring P1 per finding key at a time; a second delivery of the key finds the lock held, throws EscalationBusy and is brought back by the retry strategy, then reuses the verdict the first one kept |
in progress |
T61 (#3302, part #1759), src/Core/Review/UseCase/EscalateRecurringP1/EscalateRecurringP1Handler.php |
Messenger ListableReceiverInterface::all($limit) on the failure transport |
each poll of one round by intakt:review and the review page lists at most 500 parked messages with all(500), so parked publications do not make every poll read the whole transport; the recurring P1 settlement, which runs once per judging and has no upper wait, still lists the whole transport with all() |
in progress |
#3405 (part 1 of #1969), src/Core/Review/UseCase/JudgeRound/FailedJudgings.php |
| Mercure and Turbo Streams |
a refused demo Play publishes a fixed sentence to the box of its own Play on /demo, so the person who pressed Play reads the reason instead of only the log |
done |
#3521, src/Core/Dashboard/UseCase/PlayDemo/PlayDemoRunHandler.php |
Messenger ListableReceiverInterface::all($limit) on the failure transport, once per dashboard read |
the board, status and review pages take one RoundEndingLookup per ledger read, which lists at most 500 parked messages with all(500) once, and only when an unjudged round has no judging_failed record in the ledger, instead of once for every unjudged round |
in progress |
#3538 (part 1 of #2047), src/Core/Review/UseCase/ReviewChange/StoredRoundEndingLookup.php |
Lock LockFactory::createLock() as the start order of build runs |
intakt:build:task reads the issue and records its task row under a lock of the task taken without waiting (a run that finds it held fails at its task step), so the ledger order of the runs’ first rows is the order they started and the task page needs neither the clock nor a sortable run id |
in progress |
#3538 (part 1 of #2047), src/Core/Build/UseCase/BuildTask/BuildTask.php |