On Sunday night the stewards agree that a lap time needs a correction. On Monday a code change is ready to handle that kind of correction. The reviewer’s job is to decide whether the change gives the right people control of the result and keeps the public board accurate throughout the process. Start with one race result and write down what each person should be able to do to it.
Write down who can change a result
Put the league rule in the pull request. In one league, a driver might submit a time for their own entry, an assigned steward might propose a correction, and a second steward might approve it. A league that uses a different process should write down its own roles and conditions. Include the event, the applicable scoring rule, the simulator build and the way times are displayed. Use test records and invented driver names in the review.
The OWASP authorization guide recommends validating permissions on every request. For the leaderboard, ask the developer and the steward to agree on the same answers before either signs off:
- Driver. Which entry can the driver submit for, and when does the submission window close?
- Assigned steward. Which events can this person manage, and which decisions can they propose?
- Approving steward. Who can make a proposed change official? Can the same person propose and approve it?
- Season owner. Who can reopen a closed event? What decision is recorded before corrections resume?
Use those answers for every route that can change a result, including any staff import or bulk editor changed by the pull request. Review any mismatch with the league steward who owns the scoring rule.
Follow a correction from request to publication
Consider a fictional time trial with a published lap of 1:42.610. Its rules call for a 0.250-second penalty, which the steward omitted when posting the original result. The code change is supposed to let one assigned steward propose the correction and a different assigned steward approve it. Put three expected states in the review:
- Before the request. The public board shows 1:42.610. The private record identifies the original result and the event.
- While the request is pending. The private queue shows the proposed 1:42.860, the reason and the proposing steward. Drivers still see 1:42.610 in the standings.
- After approval. The public row shows 1:42.860 and indicates that the result was revised. The private record preserves the old and new values, the reason and the approving steward. The public ranking uses the revised time.
Include a rejection in the same review. Under these example rules, the board keeps the original time and the private request records the rejection. Check the duplicate decision too. If the approving steward submits the same approval twice, expect one revision in the history.
Suppose the preview shows 1:42.860 while the request is still pending. Hold the change even if the final number is correct. Ask the developer to preserve the current public row until approval, then check the pending, approved and rejected views again. The review now has an observable condition for merge.
Turn a scanner finding into a review comment
Start with the revision under review. Copy the finding’s reference into the pull request, check the file against that revision and identify which part of the leaderboard uses it. A finding in a scoring path and one in an example file can call for different owners and different deadlines.
A finding from a code vulnerability scanner gives the reviewer a place to start. Topscan’s SAST documentation lists a file and line for each finding. Add the league rule beside that location so the maintainer can see both the flagged code and the expected behavior.
For this pull request, a useful comment could read, “Result correction handler, current revision. Check that only a second steward assigned to this event can approve the pending correction. Show the expected public row and private decision record for that case.” Keep any exception attached to the reviewed revision. If the line has moved, find the current code path before recording a decision about it.
Decide what has to pass before merge
Require the changed scoring rule and the changed software behavior to pass review. The OWASP authorization guide recommends unit and integration tests for authorization logic. In this example, use a unit test for the club’s decision rule and an integration test to check what the board and private queue show after the decision. Give the fixture a named simulator build and event so another volunteer can run the same cases when the rule changes.
- Allow the ordinary case. A driver submits during the open window, and an authorized steward can use the correction workflow for that event.
- Require the right approver. The pending request remains pending when the proposer tries to approve it. A second assigned steward can complete the review.
- Preserve the history. Approval changes the public row once. Rejection leaves the published result in place, with the reason available to the assigned stewards.
- Check the closed state. Under this league’s rules, a closed event accepts no new correction until the authorized owner reopens it.
Ask a steward to confirm the expected outcomes and a maintainer to review the changed code and test results. If a separate finding can be deferred, record its owner, the reason and the next review date. Hold the merge when the changed correction path fails any agreed case.
Frequently asked questions
What should a second lap submission do? Write down the league rule before reviewing that path. Choose whether a second valid attempt can replace the first automatically or requires a steward’s decision. Include the expected record and public time for the second submission.
Should a simulator build change share the same review? Identify which event rules and recorded results the new build affects. If the scoring comparison depends on the build, keep fixtures for the eligible versions and give the reviewer a separate decision about how to handle existing times.
Who should handle a correction after results are final? Ask the season owner to apply the league’s reopening policy. Use a test case for a closed race and record who can reopen it, who can approve a correction and what appears on the board when it closes again.
What if source analysis comes back clean? Complete the agreed result and correction cases. Bring the steward in if the expected behavior is still unclear. A clean report can go in the review record alongside the league’s own acceptance evidence.
Keep the decision with the release
A useful sign-off fits in a few lines. Record the reviewed revision, the event rule, the names of the reviewers and the cases that passed. For this example, the sign-off should say that the board held 1:42.610 until a second assigned steward approved the change and published 1:42.860 exactly once. Give the next maintainer the location of the private decision record so they can follow a dispute without reconstructing the review from chat.