Skip to content

fix(#1818): keep finding ids on their stamped review threads - #1819

Merged
csoceanu merged 1 commit into
mainfrom
agent/1818-preserve-finding-ids
Nov 2, 2026
Merged

csoceanu merged 1 commit into
mainfrom
agent/1818-preserve-finding-ids

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Changes scripts/post-review.src.sh (and the regenerated scripts/post-review.sh) so a finding id stays with its own finding across re-reviews and never moves to a different one.

What was wrong

Two things in post-review's id assignment caused the problems seen on #1792:

  1. Shifted lines lost their id. Prior findings were matched only at their recorded line. When a finding moved, the only fallback was the one below. If the review was also closing the old id (f_522c..., closed as resolved_by_change with unrelated evidence), the same concern got a new id (f_6330...) and was posted again.
  2. Ids were copied by file and category alone. If exactly one open prior finding had the same file and category, its id was copied onto any row there. That is how f_2034... (actions: write on GITHUB_TOKEN) could end up on the separate project-reading token finding.

What changed

  • Stamped-thread map (GitHub only). post-review calls fullsend fetch-review-threads (the same fetch and <!-- finding:f_... --> stamp match that human-dismissal checks use) to get the current file and line of each stamped thread, resolved or not.
    • Only comments by the review bot count, so a stamp typed into a reply maps nothing.
    • An open prior id now matches a row of the same category at the line its thread is on now. A shifted finding keeps its id, and its old location is not carried as a second active entry.
    • If every thread for an id is outdated (GitHub cleared the line after a push changed it), the finding can't be located, so the row gets a new id.
    • An id with no stamped thread at all is still matched at its recorded line, as before.
    • If the fetch fails or comes back truncated, nothing is mapped (with a warning).
  • File-and-category copying removed. A different finding in the same file and category now gets a new id.
  • Resolving a concern that is still there. A row at an id's stamped thread keeps that id even if the review marks it resolved_by_change. The ledger records the id as open and logs a warning, instead of closing it and minting a duplicate. CURRENT_SETTLED_IDS (used by the legacy/reject hold) applies the same rule.
  • GitLab. No mapping was added. A row on a shifted line gets a new id (fail closed).

Model-supplied ids are handled as before: they are kept when they are open prior ids. I didn't add a location check for them, because a model that is off by a line would then create the duplicates this PR is meant to prevent. The projection markers on #1792 aren't visible from the public review bodies, so I couldn't confirm whether f_2034... was reused through the file-and-category fallback (now removed) or through an id the model supplied. If it was model-supplied, this PR does not cover that path.

Testing

scripts/post-review-test.sh: 451 passed, 0 failed. New or changed cases:

  1. projection-stamped-thread-line-shift-keeps-id: a stamped thread moved from line 202 to 218 keeps f_old.
  2. Same case, plus a posted-result check: only one active entry remains, at line 218.
  3. projection-stamped-thread-other-line-same-category-mints, projection-line-shift-without-stamped-thread-mints (replaces the old projection-copies-prior-id-across-line-shift, which asserted the removed behavior): a different finding in the same file and category does not inherit the id.
  4. gitlab-unmappable-thread-line-shift-mints: a GitLab row on a shifted line gets a new id.
  5. projection-stamped-thread-reclassified-keeps-id, projection-stamped-thread-keeps-other-dispositions: reclassified, resolved_by_change and dismissed_by_human stay on the right ids.
  6. projection-stamped-thread-resolve-unrelated-evidence-stays-open: resolving a mapped concern that is still there with unrelated evidence keeps the id open and creates no new id.

Two more cases cover an all-outdated stamped thread (gets a new id) and a forged stamp in a non-bot reply (maps nothing). Seven of the new or changed cases fail against the old post-review.sh.

Caveats

  • On GitHub re-reviews with open prior findings, this adds one more fetch-review-threads call. I didn't merge it with the human-dismissal fetch because the request limited changes to the post-review files, and that fetch is in scripts/lib/review-ops.lib.sh. For the same reason, the list of trusted review-bot logins is copied from forge_get_human_dismissals.
  • Checks that couldn't run here:
    • pre-commit couldn't fetch its hook repos (TLS error), so I ran the relevant hooks directly: shellcheck v0.10.0 with the repo's args, whitespace/EOF/line-ending checks, and lint-release-cases. scan-secrets stood in for gitleaks. All passed.
    • make lint (skillsaw) couldn't run because uvx isn't installed; no skills, agents or docs changed.
    • make check-bundle couldn't run because make can't spawn /bin/sh here. I regenerated the bundle with scripts/bundle-sh.sh; a fresh build matches the committed file byte for byte.

🤖 Generated with Claude Code


Closes #1818

Post-script verification

  • Branch is not main/master (agent/1818-preserve-finding-ids)
  • Secret scan passed (gitleaks — 16657d540187b16743c8693dc2ccc40366334430..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Final PR description secret scan passed (gitleaks — no-git)

@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Oct 28, 2026
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team October 28, 2026 10:10
@fullsend-ai-review

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Ended 10:12 AM UTC

Commit: b3d2340 · View workflow run →

Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment /fs-review to retry.

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:14 AM UTC · Completed 10:24 AM UTC

Commit: b3d2340 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.66

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Oct 28, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes are tightly scoped to three files with comprehensive test coverage matching the linked issue specifications.

Previous run

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes are tightly scoped to three files with comprehensive test coverage matching the linked issue specifications.

Previous run (2)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes are tightly scoped to three files with comprehensive test coverage matching the linked issue specifications.

Previous run (3)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes are tightly scoped to three files with comprehensive test coverage matching the linked issue specifications.

Previous run (4)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes are tightly scoped to three files with comprehensive test coverage exactly matching the linked issue specifications.

Previous run (5)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes are tightly scoped to three files with comprehensive test coverage matching the linked issue specifications.

Previous run (6)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes remain tightly scoped to three files with comprehensive test coverage matching the linked issue specifications.

Previous run (7)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes remain tightly scoped to three files with comprehensive test coverage matching the linked issue specifications.

Previous run (8)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes remain tightly scoped to three files with comprehensive test coverage matching the linked issue specifications.

Previous run (9)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes are tightly scoped to three files with comprehensive test coverage exactly matching the linked issue specifications.

Previous run (10)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Moderate risk: touches high-churn protected post-review scripts without a feature flag, but changes are tightly scoped to three files with comprehensive test coverage exactly matching the linked issue specifications.

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] scripts/post-review.src.sh — This PR modifies protected governance/infrastructure files: scripts/post-review.src.sh, scripts/post-review.sh, scripts/post-review-test.sh. It links issue review: preserve finding IDs across shifted lines and never reuse them for different findings #1818 and the description explains the rationale, but human approval is always required for protected-path changes regardless of context. No other findings were raised by the correctness, security, intent-coherence, style-conventions, or docs-currency reviewers.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOi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oYW5nZSJ9LHsiaWQiOiJmX2Y2M2RkYWM3ZGQ4YjAwY2YiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

Earlier findings

  • scripts/post-review.src.sh:351, logic-error — resolved: the at_place stamped-thread branch now also requires .category == $row.category (or a supported reclassification of that id) before a supplied id stays on a row; added in the latest commit with tests projection-supplied-id-at-stamped-thread-other-category-mints and projection-supplied-id-at-stamped-thread-reclassified-keeps-id.
Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtcmV2aWV3LnNyYy5zaCIsImlkIjoiZl83Nzk1ZGM4YzUwYzMzMmFlIiwibGluZSI6MzUxLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtcmV2aWV3LnNyYy5zaCIsImlkIjoiZl9mYTkwNzc3MWU3ZDc5ZDdiIiwibGluZSI6MzY5LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtcmV2aWV3LnNyYy5zaCIsImlkIjoiZl9mZjljOGE5OGQ1Y2JjYTM4IiwibGluZSI6MzcyLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWV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MtZXJyb3IiLCJmaWxlIjoic2NyaXB0cy9wb3N0LXJldmlldy5zcmMuc2giLCJpZCI6ImZfZjYzZGRhYzdkZDhiMDBjZiIsImxpbmUiOjI2MSwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl8wZDUwMjgzODg1ZDkxMGQ2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZjYzZGRhYzdkZDhiMDBjZiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2ZhOTA3NzcxZTdkNzlkN2IiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9mZjljOGE5OGQ1Y2JjYTM4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMzA0YmUxYjYzYjA5NjlhMSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzk4NDY3ZGI1ODhiZGMxZDAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9hMWJjZGQyYTUwZTM3NTEwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYzFjMWQxNGM1NzNhZjdmNiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

Low

  • [logic-error] scripts/post-review.src.sh:351 — The stamped-thread branch of at_place keeps a supplied id based only on the stamped thread's file and line. It does not compare category or require a supported reclassification. The recorded-coordinate fallback (lines 353-362) and the id-less copy path both require a category match, so the rules are inconsistent. If the model supplies prior id f_old (api-contract) on a logic-error row at f_old's stamped thread, the row keeps f_old. With an open disposition, the projection then overwrites the row with the prior category, and the new concern's category is lost. This is narrower than the base behavior, which kept any supplied open id anywhere.
    Remediation: In the stamped-location branch, require .category == $row.category or ($reclassified_ids | index($row.id)) != null, as the recorded-coordinate fallback does. Add tests for a supplied id at the stamped location with a different category (mint without reclassification, keep with it). Regenerate scripts/post-review.sh.

Earlier findings

  • scripts/post-review.src.sh:340, logic-error — resolved by change: the recorded-coordinate fallback now requires a matching category unless a supported reclassified disposition exists; new tests projection-supplied-id-at-recorded-place-other-category-unmapped-mints and ...-reclassified-unmapped-keeps-id.
  • scripts/post-review.src.sh:261, logic-error — resolved by change: LEFT-side stamped threads are kept in the map but give no usable line (side must be RIGHT or absent), and the tests cover supplied-id and id-less LEFT-side rows minting.
Previous run (4)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1yZXZpZXcuc3JjLnNoIiwiaWQiOiJmXzBkNTAyODM4ODVkOTEwZDYiLCJsaW5lIjozNDAsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoibG9naWMtZXJyb3IiLCJmaWxlIjoic2NyaXB0cy9wb3N0LXJldmlldy5zcmMuc2giLCJpZCI6ImZfZjYzZGRhYzdkZDhiMDBjZiIsImxpbmUiOjI2MSwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoibG9naWMtZXJyb3IiLCJmaWxlIjoic2NyaXB0cy9wb3N0LXJldmlldy5zcmMuc2giLCJpZCI6ImZfZmE5MDc3NzFlN2Q3OWQ3YiIsImxpbmUiOjM2OSwiYWN0aW9uYWJs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ibGluZSI6Mjg2LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmX2Y2M2RkYWM3ZGQ4YjAwY2YiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfZmE5MDc3NzFlN2Q3OWQ3YiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2ZmOWM4YTk4ZDVjYmNhMzgiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8zMDRiZTFiNjNiMDk2OWExIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfOTg0NjdkYjU4OGJkYzFkMCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2ExYmNkZDJhNTBlMzc1MTAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9jMWMxZDE0YzU3M2FmN2Y2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== -->

Review

Findings

Medium

  • [logic-error] scripts/post-review.src.sh:340 — The new unmapped-thread branch of at_place keeps a model-supplied prior id on any row at the prior finding's exact recorded file and line, without comparing category. With no stamped map (thread fetch failed or truncated, no trusted stamp, or GitLab), recorded coordinates do not establish identity after a push, so a different concern at the same file and line inherits the old id and its severity and category. This departs from issue review: preserve finding IDs across shifted lines and never reuse them for different findings #1818 ("If no existing stamped thread can be mapped, mint a new ID"; GitLab "fail closed by minting a new ID"). The latest push reverted an earlier commit that minted here and rewrote the tests to expect the id to be kept. The commit message argues minting would drop ids for unchanged findings, which is a design trade-off the issue does not authorize.
    Remediation: For anchored prior findings with no reliable stamped-thread mapping, mint a new id even when the model supplies the prior id at its recorded coordinates. Update the unmapped, fetch-failure, truncation and GitLab tests to assert this, and add a regression with a different concern at the same recorded location. If keeping ids at recorded coordinates is intended, get that authorized on the issue and require the same category as well as file and line.
  • [protected-path] scripts/post-review.src.sh — This PR modifies protected paths: scripts/post-review.src.sh, scripts/post-review.sh, scripts/post-review-test.sh. The PR links issue review: preserve finding IDs across shifted lines and never reuse them for different findings #1818 and explains the rationale, but human approval is always required for protected-path changes, regardless of context.

Low

  • [logic-error] scripts/post-review.src.sh:261 — Prior finding on the stamped-thread record construction ({id, path, line: ...} built from the thread's current line) is still open. This push did not touch that code.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (5)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtcmV2aWV3LnNyYy5zaCIsImlkIjoiZl9mNjNkZGFjN2RkOGIwMGNmIiwibGluZSI6MjYxLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtcmV2aWV3LnNyYy5zaCIsImlkIjoiZl9mYTkwNzc3MWU3ZDc5ZDdiIiwibGluZSI6MzY5LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtcmV2aWV3LnNyYy5zaCIsImlkIjoiZl9mZjljOGE5OGQ1Y2JjYTM4IiwibGluZSI6MzcyLCJhY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XMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9mZjljOGE5OGQ1Y2JjYTM4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMzA0YmUxYjYzYjA5NjlhMSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzk4NDY3ZGI1ODhiZGMxZDAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9hMWJjZGQyYTUwZTM3NTEwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== -->

Review

Findings

Medium

Low

  • [logic-error] scripts/post-review.src.sh:261 — The STAMPED_THREADS projection keeps {id, path, line} and drops the thread's diff side. A stamped thread on the LEFT (base) side would give its base-file line number to the id match against head-file lines. No bot LEFT-side comment is shown anywhere in the repo, and finding rows carry no side, so this is a defensive hardening gap, not a demonstrated bug.
    Remediation: Optional: skip threads whose side is present and not RIGHT when building STAMPED_THREADS, then regenerate scripts/post-review.sh.

Earlier findings

  • scripts/post-review.src.sh:286, fail-open, resolved: the rewritten stamped-thread map now requires truncated:false on the response and comments_truncated:false on every thread. It resets to an empty map on fetch or parse failure. Only trusted review-bot comments contribute stamps.
Previous run (6)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJmYWlsLW9wZW4iLCJmaWxlIjoic2NyaXB0cy9wb3N0LXJldmlldy5zcmMuc2giLCJpZCI6ImZfYzFjMWQxNGM1NzNhZjdmNiIsImxpbmUiOjI4NiwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6InNlY3VyaXR5In0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoibG9naWMtZXJyb3IiLCJmaWxlIjoic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kYjU4OGJkYzFkMCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2ExYmNkZDJhNTBlMzc1MTAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9mYTkwNzc3MWU3ZDc5ZDdiIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZmY5YzhhOThkNWNiY2EzOCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzMwNGJlMWI2M2IwOTY5YTEiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

Low

  • [fail-open] scripts/post-review.src.sh:286 — The stamped-thread identity map rejects a response only when the top-level truncated flag is not false. It never checks each thread's comments_truncated flag, so a response with truncated:false and a thread with comments_truncated:true still builds id-to-location mappings from a partial comment list. A trusted stamp hidden past the first comment page of another thread would leave an id with one visible location, so at_place keeps it where the full data would make it ambiguous and mint. The existing human-dismissal filter in the same script requires comments_truncated == false. Exploiting this needs a review-bot stamp in a reply beyond the first comment page, so it is unlikely.
    Remediation: Reject the map (or the thread) when comments_truncated is not explicitly false, add a regression case with truncated:false and comments_truncated:true, then run make script-build to regenerate scripts/post-review.sh.

Earlier findings

  • scripts/post-review.src.sh:359, logic-error, resolved — at_place now lets a supported reclassification of an unanchored prior id change category while requiring the same file; new PR-level and file-level category-change tests cover it.
  • scripts/post-review.src.sh:373, edge-case, resolved — an id stamped on several distinct live locations is now excluded from both supplied-id retention and automatic matching; new ambiguous-thread tests cover both paths.
Previous run (7)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6InNjcml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2M2IwOTY5YTEiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9hMWJjZGQyYTUwZTM3NTEwIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2ZhOTA3NzcxZTdkNzlkN2IiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9mZjljOGE5OGQ1Y2JjYTM4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== -->

Review

Findings

Medium

  • [logic-error] scripts/post-review.src.sh:359 — The new unanchored-finding branch of at_place also requires .category == $row.category, so it rejects legitimate category reclassifications. For example, a file-level high logic-error finding is re-emitted with its supplied prior id as a low incorrect-doc finding, with a supported reclassified disposition. It gets a new id because the categories differ. Ledger accounting then records reclassified-without-finding, carries the original high finding forward, and keeps blocking approval. The added tests only cover severity changes, not category changes.
    Remediation: Allow an explicitly supplied unanchored prior id to survive a supported category reclassification on the same file, and add file-level and PR-level regression tests for category changes.
  • [protected-path] scripts/post-review.src.sh — This PR modifies protected paths: scripts/post-review.src.sh, scripts/post-review.sh, and scripts/post-review-test.sh. It links issue review: preserve finding IDs across shifted lines and never reuse them for different findings #1818 and explains the rationale, but human approval is always required for protected-path changes, regardless of context.

Low

  • [edge-case] scripts/post-review.src.sh:373 — The ambiguous-thread concern is still present. Multiple distinct live locations stamped with the same prior id are all accepted as places for that id. With stamped threads at lines 218 and 240, a same-category row at either location inherits the id, and whichever row is processed first wins. The uniqueness check counts prior findings, not distinct thread locations, so it does not detect this ambiguity. This does not fail closed when the thread mapping is unreliable (see review: preserve finding IDs across shifted lines and never reuse them for different findings #1818, "mint a new id if a thread cannot be mapped reliably").
    Remediation: Treat multiple distinct live locations for one prior id as an ambiguous mapping and mint a new id instead of assigning it automatically. Add a regression test with conflicting stamped locations.

Earlier findings

  • scripts/post-review.src.sh:375, logic-error — resolved by change: at_place now keeps a supplied id on an unmapped PR-level or file-level prior record with the same file and category, covered by four new tests in scripts/post-review-test.sh.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (8)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1yZXZpZXcuc3JjLnNoIiwiaWQiOiJmXzMwNGJlMWI2M2IwOTY5YTEiLCJsaW5lIjozNzUsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiZWRnZS1jYXNlIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1yZXZpZXcuc3JjLnNoIiwiaWQiOiJmX2ExYmNkZDJhNTBlMzc1MTAiLCJsaW5lIjozNTgsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1yZXZpZXcuc3JjLnNoIiwiaWQiOiJmX2ZhOTA3NzcxZTdkNzlkN2IiLCJsaW5lIjozNjksImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1yZXZpZXcuc3JjLnNoIiwiaWQiOiJmX2ZmOWM4YTk4ZDVjYmNhMzgiLCJsaW5lIjozNzIsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl9mYTkwNzc3MWU3ZDc5ZDdiIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYTFiY2RkMmE1MGUzNzUxMCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl9mZjljOGE5OGQ1Y2JjYTM4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== -->

Review

Findings

Medium

  • [logic-error] scripts/post-review.src.sh:375 — Requiring at_place() for every supplied id breaks reclassification and re-emission of PR-level and file-level findings. Their places array is empty when the prior file or line is null/N/A or absent (lines 358-359), so a supplied open id, including one with a supported reclassified disposition, is reminted. The ledger then sees the reclassified id with no current finding and keeps the old severity. For example, reclassifying a high PR-level finding to low leaves the original high finding blocking approval and adds a second finding. A re-emitted open PR-level finding also gets a duplicate each re-review. This contradicts the code comment ("a reclassified id must stay on its row, so it is kept"). Only the anchored case is tested.
    Remediation: Keep an explicit supplied open id (including a reclassified one) when its prior record has no inline anchor and the row has the same file and category as that record, without restoring file/category-only copying for id-less rows. Add regression tests for PR-level and file-level reclassification (high to low) and for a re-emitted open PR-level finding, asserting the ledger status.
  • [protected-path] scripts/post-review.src.sh — This PR modifies protected paths: scripts/post-review.src.sh, scripts/post-review.sh and scripts/post-review-test.sh. The PR links review: preserve finding IDs across shifted lines and never reuse them for different findings #1818 and explains the rationale, but human approval is always required for protected-path changes, regardless of context.

Low

  • [edge-case] scripts/post-review.src.sh:358 — An unmapped open prior finding gets an empty places list unless it has both a non-null file and a numeric line, so a prior finding recorded without an anchor can never be matched to a current row. This code is unchanged by the latest push and is the root of the unanchored-finding gap in the medium finding above.
    Remediation: Handle unanchored prior findings explicitly, for example by matching on file and category when the prior record has no line.

Earlier findings

  • scripts/post-review.src.sh, logic-error — resolved. Supplied ids now require a matching file and line via at_place() instead of file membership alone.
  • scripts/post-review.src.sh, logic-error — resolved. Reserved ids for later rows are now filtered through at_place(), so a row in another file cannot reserve the correctly anchored finding's id.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (9)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1yZXZpZXcuc3JjLnNoIiwiaWQiOiJmX2ZhOTA3NzcxZTdkNzlkN2IiLCJsaW5lIjozNjksImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtcmV2aWV3LnNyYy5zaCIsImlkIjoiZl9hMWJjZGQyYTUwZTM3NTEwIiwibGluZSI6MzUyLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtcmV2aWV3LnNyYy5zaCIsImlkIjoiZl9mZjljOGE5OGQ1Y2JjYTM4IiwibGluZSI6MzcyLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfZmE5MDc3NzFlN2Q3OWQ3YiIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl9hMWJjZGQyYTUwZTM3NTEwIiwic3RhdHVzIjoib3BlbiJ9XX0= -->

Review

Findings

Medium

  • [logic-error] scripts/post-review.src.sh:369 — Supplied open ids still bypass the stamped location within the same file: the new check tests only file membership, so a different finding supplying an open prior id at another line of the same file (or when every stamped thread is outdated) keeps that id and the original finding drops out of the projection. This conflicts with review: preserve finding IDs across shifted lines and never reuse them for different findings #1818 (an id is never transferred to a different finding; unmappable → mint).
    Remediation: Validate supplied ids against the mapped finding location rather than file membership alone; mint when a stamped thread contradicts the supplied location or cannot be mapped. Add same-file wrong-location and outdated-thread tests.
  • [logic-error] scripts/post-review.src.sh:372 — The reservation pass does not apply the new supplied-id eligibility check. With f_old stamped at docs/p.md:218, a correctly anchored id-less row followed by a cross-file row supplying f_old: the later row reserves f_old, the anchored row mints, and the later row then fails the file check and mints too — the old entry is kept and a duplicate of the still-present finding is added.
    Remediation: Reserve only ids the later row is actually eligible to retain, using the same validation as supplied-id assignment. Add a regression test for this ordering.
  • [protected-path] scripts/post-review.src.sh — This PR modifies protected paths under scripts/ (post-review.src.sh, post-review.sh bundle, post-review-test.sh). The PR links review: preserve finding IDs across shifted lines and never reuse them for different findings #1818 and explains the rationale, but human approval is always required for protected-path changes, regardless of context.

Low

  • [edge-case] scripts/post-review.src.sh:352 — When the thread fetch fails, is truncated, or the forge is GitLab, the recorded file/line becomes the match place, so a different same-category finding at the old coordinates can inherit the id without verified thread location. Not covered by the new tests.
    Remediation: Do not infer identity from recorded coordinates when mapping is unavailable (or distinguish an explicit legacy fallback), and test fetch failure, truncation and GitLab at the old coordinates.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (10)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtcmV2aWV3LnNyYy5zaCIsImlkIjoiZl9mYTkwNzc3MWU3ZDc5ZDdiIiwibGluZSI6MzY0LCJhY3Rpb25hYmxlIjpmYWxzZX0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiZWRnZS1jYXNlIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1yZXZpZXcuc3JjLnNoIiwiaWQiOiJmX2ExYmNkZDJhNTBlMzc1MTAiLCJsaW5lIjozNDcsImFjdGlvbmFibGUiOmZhbHNlfV19 -->

Review

Findings

Medium

Low

  • [edge-case] scripts/post-review.src.sh:347 — When the stamped-thread fetch fails or is truncated, STAMPED_THREADS is []. Every prior finding then matches at its recorded file and line. GitLab always takes this path. If a finding shifted and a different same-category finding now sits on the old line, that finding inherits the old id. The exact-line match is unchanged from before this PR, and the file-and-category fallback is removed, so this is a narrow gap against the issue's "mint when the thread cannot be mapped reliably".
    Remediation: Optionally mint instead of matching at the recorded line when the mapping is unavailable, and add tests for a failed or truncated fetch.

fullsend-ai-review[bot]

This comment was marked as outdated.

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Oct 28, 2026
@csoceanu

Copy link
Copy Markdown
Contributor

/fs-fix Address unresolved findings from the latest review

@fullsend-ai-coder

fullsend-ai-coder Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 5:44 PM UTC · Completed 5:51 PM UTC

Commit: b3d2340 · View workflow run →

Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.34

fullsend-ai-coder Bot added a commit that referenced this pull request Oct 30, 2026
Mint a new id when a model-supplied open id lands on a row in a different
file than the id's stamped thread (or recorded file when unmapped), so an id
is not transferred to a different finding. A line the model is off by in the
right file still keeps the id. Regenerated post-review.sh and added tests.

Not changed: the protected-path finding is a human-approval merge gate, and
minting on an unavailable thread map would drop ids for unchanged findings
(including every GitLab finding).

Note: pre-commit could not fetch hook repos (TLS error); ran bash -n and
git diff --check directly. shellcheck is not installed here.

Addresses #1819

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 1 (human-triggered)

Closed the supplied-id gap with a file-level check, regenerated the bundle, and added tests. The full post-review test script passes. Declined the protected-path finding (merge gate, no content edit requested) and the optional mint-when-unmapped suggestion. Pre-commit could not fetch hook repos and shellcheck is not installed, so only bash -n and git diff --check ran.

Fixed (1):

  1. Model-supplied open ids are accepted without checking them against the stamped-thread mapping (scripts/post-review.src.sh): A supplied open id is now kept only when the row is in the file the id sits in (its stamped thread's file, else its recorded file). A row in another file mints a new id and the prior id stays open. A line the model is off by within the right file still keeps the id, so the duplicate-id tradeoff the PR describes is preserved. Regenerated scripts/post-review.sh and added three tests: other file with a stamped thread, other file with no thread, and off-by-line in the same file.

Disagreed (2):

  1. Protected-path change requires human approval: This is the mandatory merge-gate finding. It asks for human approval and prescribes no content edit, so nothing was changed for it.
  2. Mint instead of matching at the recorded line when the thread mapping is unavailable: The finding marks this optional. Matching at the recorded line is the only way GitLab (always unmapped) and a failed fetch keep ids for unchanged findings. Minting there would give every unchanged finding a new id on each re-review, which is worse than the narrow gap it closes.

Tests: passed

CI inspections (5):

  1. test (passing, success)
  2. script-test (passing, success)
  3. skillsaw (passing, success)
  4. commit-lint (passing, success)
  5. functional-tests-complete (unrelated, failure): The aggregate check failed while the gate and functional-test jobs it depends on were skipped. This looks like approval gating, not a defect in this diff. A maintainer can approve the gated run and rerun it; I did not rerun it.

Conflict update: skipped; strategy none; forge MERGEABLE; target main

Decision points

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ❌ Failure (provider "openai": no OpenAI credential: set FULLSEND_OPENAI_AUDIENCE, FULLSEND_OPENAI_IDENTITY_PROVIDER_ID and FULLSEND_OPENAI_SERVICE_ACCOUNT_ID (or inference.openai in config.yaml) for Workload Ide…) · Started 5:55 PM UTC · Completed 5:55 PM UTC

Commit: 0b5aade · View workflow run →

Effort: high

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ❌ Failure (provider "openai": no OpenAI credential: set FULLSEND_OPENAI_AUDIENCE, FULLSEND_OPENAI_IDENTITY_PROVIDER_ID and FULLSEND_OPENAI_SERVICE_ACCOUNT_ID (or inference.openai in config.yaml) for Workload Ide…) · Started 10:48 AM UTC · Completed 10:48 AM UTC

Commit: 0b5aade · View workflow run →

Effort: high

@csoceanu

csoceanu commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

/fs-review

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:54 AM UTC · Completed 11:04 AM UTC

Commit: 0b5aade · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.47

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot removed the requires-manual-review Review requires human judgment label Nov 1, 2026
@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 11:06 AM UTC · Completed 11:15 AM UTC

Commit: 0b5aade · View workflow run →

Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.50

fullsend-ai-coder Bot added a commit that referenced this pull request Nov 1, 2026
Validate a model-supplied open id against the finding's mapped place (its
stamped thread's file and line, else its recorded file and line) instead of
file membership alone. A row elsewhere in the file, or an id whose stamped
threads are all outdated, mints. The reservation pass for later rows uses
the same check, so a row that cannot keep an id no longer reserves it and
causes a duplicate. Regenerated post-review.sh; added same-file wrong-line,
off-by-one, outdated-thread and reservation-order tests.

Not changed: the protected-path finding is a human-approval merge gate, and
minting from recorded coordinates when no thread map exists would drop ids
for unchanged findings (including every GitLab finding).

Note: pre-commit could not fetch hook repos (TLS error); ran bash -n and
git diff --check directly. shellcheck is not installed here.
post-review-test.sh passes; bundle regenerated with scripts/bundle-sh.sh.

Addresses #1819

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 2 (bot-triggered)

Fixed both medium findings: supplied open ids and the reservation pass now require the row to be at a place the id sits (stamped thread file and line, else recorded file and line), otherwise a new id is minted. Declined the protected-path merge-gate finding (human approval needed) and the low finding on unmapped fallback (would churn ids for unchanged findings). post-review-test.sh passes. pre-commit could not fetch hook repos (TLS error), so bash -n and git diff --check were run directly; shellcheck is unavailable. One process note: the edit to post-review.src.sh was applied with a short Python script rather than the Write/Edit tool.

Fixed (2):

  1. Supplied open ids bypass the stamped location within the same file (scripts/post-review.src.sh): A model-supplied open id is now kept only when the row sits at a place the id sits: its stamped thread's file and line, else its recorded file and line. A row elsewhere in the same file, or an id whose stamped threads are all outdated, mints a new id. Regenerated the post-review.sh bundle and added same-file wrong-line, off-by-one, outdated-thread, and recorded-place tests.
  2. Reservation pass does not apply the supplied-id eligibility check (scripts/post-review.src.sh): Later rows now reserve a supplied open id only if they pass the same place check used for assignment, so a cross-file row can no longer reserve an id and cause a duplicate of the still-present finding. Added a regression test for that ordering.

Disagreed (2):

  1. Protected-path changes under scripts/ require human approval: This is the mandatory merge-gate finding: it asks for human approval and prescribes no content change, so there is nothing for the fix agent to edit.
  2. Do not infer identity from recorded coordinates when thread mapping is unavailable: Minting whenever no stamped-thread map exists would give every unchanged finding a new id on GitLab, and on GitHub after a failed or truncated fetch, which re-posts them as new. Recorded coordinates are the pre-existing exact-line behavior, and this PR already removed the looser file-and-category fallback. The issue's unmappable-GitLab requirement (a shifted line mints) is covered by an existing test. A human can decide whether to go stricter.

Tests: passed

CI inspections (7):

  1. Script tests / script-test (passing, success)
  2. CI / test (passing, success)
  3. CI / skillsaw (passing, success)
  4. CI / commit-lint (passing, success)
  5. Functional Tests / functional-tests-complete (passing, success)
  6. Behaviour Tests / behaviour (passing, success)
  7. DCO (passing, success)

Conflict update: skipped; strategy none; forge MERGEABLE; target main

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ❌ Failure (provider "openai": no OpenAI credential: set FULLSEND_OPENAI_AUDIENCE, FULLSEND_OPENAI_IDENTITY_PROVIDER_ID and FULLSEND_OPENAI_SERVICE_ACCOUNT_ID (or inference.openai in config.yaml) for Workload Ide…) · Started 11:17 AM UTC · Completed 11:17 AM UTC

Commit: ce74f79 · View workflow run →

Effort: high

fullsend-ai-coder Bot added a commit that referenced this pull request Nov 2, 2026
)

In at_place's stamped-thread branch, a supplied id now stays on a row only
when the row's category matches the prior finding's or the id has a
supported reclassified disposition, mirroring the recorded-coordinate
fallback. Add tests for a different category minting and for a supported
reclassification keeping the id. Regenerate post-review.sh.

Verification: pre-commit could not fetch hook repos (certificate failure);
whitespace and syntax checked directly. post-review-test.sh passes; other
suites with failures (yq missing, sandbox limits) fail identically on the
base commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 10 (human-triggered)

Implemented the requested category check in the stamped-thread branch of at_place, added the two requested tests, and regenerated post-review.sh. post-review-test.sh passes in full. Other suites that fail (missing yq, sandbox limits) fail identically on the base commit. Pre-commit could not fetch hook repos, so whitespace and bash syntax were checked directly.

Fixed (2):

  1. Stamped-thread branch of at_place keeps a supplied id regardless of category (scripts/post-review.src.sh): In the stamped-thread branch (fewer than two places) a supplied id now also requires the row category to equal the prior finding's category, or a supported reclassified disposition for that id, mirroring the recorded-coordinate fallback. Updated the adjacent comment to match and regenerated scripts/post-review.sh.
  2. Add tests for category handling at a stamped thread (scripts/post-review-test.sh): Added two cases: a supplied id at its stamped thread with a different category mints a new id and leaves the prior id open; the same with a supported reclassified disposition keeps the id.

Tests: passed

CI inspections (6):

  1. script-test (passing, success)
  2. test (passing, success)
  3. commit-lint (passing, success)
  4. skillsaw (passing, success)
  5. DCO (passing, success)
  6. functional-tests (review) (passing, success)

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:49 AM UTC · Completed 10:59 AM UTC

Commit: c5fdb71 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.71

@Benkapner Benkapner added the fullsend-no-fix Skip bot-triggered fix agent runs label Nov 2, 2026
@Benkapner
Benkapner marked this pull request as ready for review November 2, 2026 10:59
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Keep finding IDs on their stamped review threads

🐞 Bug fix 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Match open GitHub findings to trusted stamped threads so shifted findings retain their IDs.
• Remove file-and-category-only ID copying; mint IDs when a finding cannot be reliably located.
• Keep still-reported findings open despite resolution claims, with regression coverage for GitHub
 and GitLab.
Diagram

graph TD
  T["GitHub threads"] --> V{"Trusted location?"} -->|yes| M["ID matching"] --> O["Assigned findings"] --> L["Ledger status"]
  V -->|no| F["Fail closed"] --> M
  P["Prior ledger"] --> M
  R["Current findings"] --> M
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Share a review-thread snapshot with dismissal verification
  • ➕ Avoids a second GitHub thread fetch when both checks run.
  • ➕ Ensures both checks inspect the same thread snapshot.
  • ➖ Requires restructuring the existing dismissal helper and broadens this safety fix.
  • ➖ Couples two checks with different eligibility and completeness requirements.

Recommendation: Keep the scoped approach for this fix: it reuses established stamp and trust rules without changing dismissal verification. Consider a shared fetch abstraction separately if duplicate fetches become consequential.

Files changed (3) +656 / -65

Bug fix (2) +300 / -44
post-review.shApply thread-based ID matching in the generated script +150/-22

Apply thread-based ID matching in the generated script

• Regenerates the bundled post-review script with trusted GitHub thread mapping, location-constrained ID assignment, and removal of file-and-category-only copying. It also keeps still-reported findings open in ledger and settlement checks and emits a warning.

scripts/post-review.sh

post-review.src.shPreserve finding IDs at trusted thread locations +150/-22

Preserve finding IDs at trusted thread locations

• Uses stamped GitHub thread locations to match open prior IDs, while minting when a location cannot reliably establish identity; GitLab receives no thread map. Prevents a reported finding marked resolved from being settled or closed and warns about the conflict.

scripts/post-review.src.sh

Tests (1) +356 / -21
post-review-test.shCover stamped-thread ID matching and fail-closed cases +356/-21

Cover stamped-thread ID matching and fail-closed cases

• Adds regression cases for shifted and ambiguous threads, untrusted or outdated stamps, fetch failures, resolution conflicts, unanchored findings, and GitLab behavior. Updates existing cases to provide stamped threads when they expect an anchored prior ID to be retained.

scripts/post-review-test.sh

@fullsend-ai-review

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Ended 11:00 AM UTC

Commit: c5fdb71 · View workflow run →

This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🤖 Review · ❌ Terminated · Started 11:02 AM UTC · Ended 11:16 AM UTC

Commit: 0df1303 · View workflow run →

@qodo-code-review

qodo-code-review Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. File-level findings receive duplicate IDs ✓ Resolved
Description
at_place treats any stamped thread as a mapped location, even when the thread has no line,
preventing a supplied finding ID from matching its recorded coordinates. The fullsend CLI posts
out-of-hunk findings as stamped file-level comments with no line, so re-reviewing one mints a
replacement ID while its original ID remains open.
Code

scripts/post-review.src.sh[R379-380]

+             . + {mapped: true,
+                  places: [ $threads[] | select(.line != null) | {file: .path, line} ] | unique}
Relevance

●●● Strong

Mapped file-level threads have no usable place, blocking the intended recorded-coordinate fallback
and risking duplicate IDs.

PR-#1710

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The CLI converts out-of-hunk findings to file-level comments and stamps their IDs; the forge
contract assigns no line to threads without a diff position. The new mapping marks such an ID as
mapped while giving it no place, and the recorded-coordinate fallback requires it to be unmapped.

agents -> fullsend
scripts/post-review.src.sh[347-380]
External repo: fullsend-ai/fullsend, internal/cli/postreview.go [535-575]
External repo: fullsend-ai/fullsend, internal/forge/github/github.go [3865-3894]
External repo: fullsend-ai/fullsend, internal/forge/forge.go [663-678]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The fullsend CLI stamps file-level findings, but their threads have no line. Treating these threads as mapped-but-unusable prevents an unchanged finding from retaining its supplied ID.

## Fix Focus Areas
- scripts/post-review.src.sh[347-380]
- /cross_repos/fullsend/internal/cli/postreview.go[535-575]

## Recommended Fix
Distinguish stamped file-level threads from outdated or removed-line threads. Allow a supplied open ID for a file-level thread to match the prior recorded file, line, and category when those coordinates are unchanged; retain fail-closed behavior for genuinely outdated inline threads. Add a re-review test with a stamped, line-null file-level thread.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. CI warnings emit unsanitized finding IDs ✓ Resolved
Description
RESOLVED_STILL_REPORTED_IDS is interpolated directly into a ::warning:: command without passing
through a sanitizer. This value is assembled from finding identifiers and reaches the GitHub Actions
command parser whenever a finding is marked resolved_by_change while still reported, so it is an
unsanitized interpolation even though the current ID format narrows its characters.
Code

scripts/post-review.src.sh[R1352-1354]

+RESOLVED_STILL_REPORTED_IDS="$(jq -r '.resolved_still_reported | join(", ")' <<< "${LEDGER_REPORT}")"
+if [[ -n "${RESOLVED_STILL_REPORTED_IDS}" ]]; then
+  echo "::warning::Prior finding id(s) ${RESOLVED_STILL_REPORTED_IDS} marked resolved_by_change are still reported at their review thread; recorded as open"
Relevance

●● Moderate

Recommendation generated with fallback mode.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed source and regenerated script both add a GitHub Actions ::warning:: command whose
message directly contains RESOLVED_STILL_REPORTED_IDS; no sanitizer is applied at either
interpolation site.

scripts/post-review.src.sh[1352-1354]
scripts/post-review.sh[2190-2192]
Skill: code-review

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new `::warning::` workflow command interpolates `RESOLVED_STILL_REPORTED_IDS` without individually sanitizing the value for GitHub Actions command delimiters, encoded newlines, ANSI escapes, and control characters.

## Fix Focus Areas
- scripts/post-review.src.sh[1352-1354]
- scripts/post-review.sh[2190-2192]

## Recommended Fix
Apply the repository's standard workflow-command sanitizer to `RESOLVED_STILL_REPORTED_IDS` before interpolating it into the warning, and regenerate `scripts/post-review.sh` from the source script so both copies use the sanitized value.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

3. Unposted findings get a new id on every re-review 🐞 Bug ≡ Correctness
Description
The $exact copy for rows with no id now matches only .places, which come from stamped GitHub
threads. A prior finding with no stamped thread can therefore no longer keep its id, even when the
row is at its exact recorded file, line and category. A row that does supply the id is also reminted
as soon as its line moves. That covers findings filtered below the severity threshold, findings on
lines outside the diff that went into the review body, every GitLab review, and any GitHub run where
the thread fetch fails or one thread anywhere on the PR has truncated comments. In all of those
cases an unchanged finding gets a fresh id while the old id is carried forward as open. Both entries
then sit in the ledger, and the cycle repeats on each review: the same duplicate-ledger-entry
problem described in #1818, now reached through more paths.
Code

scripts/post-review.src.sh[R402-407]

+                     | select(.id as $pid | ($taken + $reserved) | index($pid) == null)
+                     | select(.category == $f.category)
+                     | select((.places | length) < 2)
+                     | select(($f.file | anchor_file) != null and ($f.line | anchor_line) != null)
+                     | select(any(.places[]; .file == ($f.file | anchor_file) and .line == ($f.line | anchor_line)))
+                   ]) as $exact
Relevance

● Weak

Finding IDs are tightly constrained, and similar extra sanitization of workflow notice fields was
rejected.

PR-#1588

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
$open_findings sets places: [] whenever an id has no stamped thread (lines 374-377). The new
$exact filter requires any(.places[]; ...), so such ids can never be copied. The old
$same_place/exact-line fallback that covered them was removed. Findings below the threshold are
dropped from the posted review (lines 646-656, RESULT_FILE becomes FILTERED_RESULT), so no inline
comment is ever stamped for them. The ledger, however, still reads the unfiltered findings (line
1307). The stamped map is also emptied on GitLab, on fetch failure, or if any single thread has
comments_truncated (line 256). The PR's own tests encode the result:
projection-id-less-row-at-recorded-place-unmapped-mints and
gitlab-thread-at-old-coordinates-mints expect 2 findings for one unchanged concern, and
projection-supplied-id-at-other-line-unmapped-mints remints a correctly supplied id after a line
shift.

scripts/post-review.src.sh[371-382]
scripts/post-review.src.sh[646-656]
scripts/post-review.src.sh[245-275]
scripts/post-review.src.sh[1307-1320]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Id assignment now copies a prior id onto a row with no id only through a stamped GitHub thread. Prior findings that never get a stamped thread (filtered below the severity threshold, on lines outside the diff, on GitLab, or when the thread fetch fails or is truncated) receive a new id on every re-review, even at their exact recorded location. The old id is still carried forward as open, so the ledger keeps a duplicate.

## Fix Focus Areas
- scripts/post-review.src.sh[401-407]
- scripts/post-review.src.sh[371-382]
- scripts/post-review.src.sh[255-256]
- scripts/post-review-test.sh[3051-3064]

## Recommended Fix
In the `$exact` candidate selection, also accept an open prior finding with `.mapped == false and .anchored` whose recorded file, line and category exactly match the row. This restores the old exact-location copy only for ids with no thread map; never restore the file-and-category-only fallback. Consider limiting the `comments_truncated` rejection to threads that carry a trusted stamp, so that one long human discussion does not disable mapping for the whole PR. Update the `*-unmapped-mints` and `gitlab-thread-at-old-coordinates-mints` tests so they expect the id to be kept at the exact recorded location. Then regenerate `scripts/post-review.sh`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #1792
✅ Compliance rules (platform): 55 rules
✅ Skills: 4 invoked
  code-review
  code-implementation
  pr-review
  docs-review
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/autonomy-analysis (sha: 46717359) — View relationship
  Explored: repo: fullsend-ai/fullsend (sha: ba79aa9d) — View relationship
Review mode: Auto: 🧠 Deep: Substantial shell/JQ logic spans GitHub, GitLab, ledger, and reconciliation paths.

Grey Divider

Tip of the day
💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread scripts/post-review.src.sh Resolved
Comment thread scripts/post-review.src.sh Resolved
@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:02 AM UTC · Completed 11:16 AM UTC

Commit: 0df1303 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.95

@Benkapner

Copy link
Copy Markdown
Member

/fs-fix Two fixes, nothing else.

  1. A stamped review thread with line null AND original_line null is a file-level comment (fullsend posts out-of-hunk findings this way), not evidence of where the finding sits. Exclude such threads when building STAMPED_THREADS so the id stays unmapped and the recorded-coordinate fallback applies (a supplied id at the exact recorded file, line and category keeps the id; id-less rows still mint). Outdated inline threads (original_line set, line null) and LEFT-side threads stay mapped-but-unusable and mint. Add tests: a supplied id at its recorded coordinates with a stamped file-level thread keeps the id; the same with an outdated inline thread still mints.

  2. Wrap RESOLVED_STILL_REPORTED_IDS in _gha_sanitize before the ::warning:: line, like the dimension-drop warning.

Regenerate post-review.sh and run the full post-review-test.sh suite.

@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ❌ Failure (running pre-script: exit status 1: Fix iteration 11 exceeds human cap of 10. The /fs-fix loop has run 11 times. Further attempts are blocked.) · Started 11:26 AM UTC · Completed 11:26 AM UTC

Commit: 0df1303 · View workflow run →

Effort: high

Re-reviews on #1792 gave an unchanged finding a new id after its line
moved, and moved an existing id onto a different finding. Id assignment
matched prior findings only at their recorded line, and otherwise copied
the one open prior id with the same file and category.

post-review now reads the review agent's stamped inline threads on
GitHub (the same fetch-review-threads call and finding stamp that
human-dismissal checks use; only review-bot comments count) and uses
them as the identity map for open prior ids:

- A stamped thread's current file and line are authoritative. A shifted
  finding keeps its id, and its old location is not carried as a second
  active entry. A supplied id is kept at its stamped thread only when
  the row's category matches or the id has a supported reclassified
  disposition.
- An id stamped on several distinct live locations, an id whose threads
  are all outdated, and a thread on the LEFT side of the diff are mapped
  but unusable: the row mints and the prior id stays open.
- A file-level thread (an out-of-hunk finding) has no line and never
  had one, so it is left out of the map.
- With no usable thread for an id, an explicitly supplied open prior id
  is kept only on a row at the prior finding's exact recorded file, line
  and category (a category change needs a supported reclassified
  disposition). Id-less rows never inherit an id from recorded
  coordinates. This keeps ids stable on GitLab and for findings whose
  inline comment could not be posted, and is an agreed deviation from
  the issue's "mint when unmappable" wording.
- PR-level and file-level prior findings keep a supplied id on a row
  with the same file and category, or any category under a supported
  reclassification.
- Copying an id because it is the only prior finding with that file and
  category is removed.
- The map is rejected when the thread list or any thread's comments are
  truncated. GitLab gets no map.

A finding at an id's stamped thread keeps that id even when the review
marks it resolved_by_change; the ledger records it open with a warning
instead of closing it and minting a duplicate.

Tests in scripts/post-review-test.sh cover line shifts, same-file
same-category rows, supplied ids at and away from their place, outdated,
ambiguous, LEFT-side and file-level threads, fetch failure and
truncation, GitLab, PR-level and file-level reclassification, and the
resolved-but-still-reported case. scripts/post-review.sh is regenerated
from the source and matches make check-bundle.

Closes #1818

Signed-off-by: Benjamin Kapner <bkapner@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:49 AM UTC · Completed 12:02 PM UTC

Commit: 2de650b · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.04

@Benkapner
Benkapner requested a review from rh-hemartin November 2, 2026 12:10

@rh-hemartin rh-hemartin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple of logic-error reviews from the bot, if those are OK to ignore, then we are good to go.

This branch was previously deployed

1 inactive deployment
dev — 2de650be Deployed Nov 2, 2026 by Benkapner via behaviour #1561
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fullsend-no-fix Skip bot-triggered fix agent runs needs-human Agent loop needs human intervention ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review: preserve finding IDs across shifted lines and never reuse them for different findings

3 participants