Skip to content

Conversation

@humanbeeng
Copy link
Contributor

  • Add FindingsPersister interface for caching/deduplicating explore results
  • Implement findings cache with similarity matching for query deduplication
  • Update Explore() to accept issueID for findings persistence
  • Enhance explore agent system prompt for comprehensive reports:
    • Strategy: encourage thorough exploration over efficiency
    • Token budget awareness (~60k tokens for medium thoroughness)
    • Output format: numbered sections, tables, code snippets
  • Wire FindingsPersister into orchestrator
  • Remove outdated token consumption specs

…reports

- Add FindingsPersister interface for caching/deduplicating explore results
- Implement findings cache with similarity matching for query deduplication
- Update Explore() to accept issueID for findings persistence
- Enhance explore agent system prompt for comprehensive reports:
  - Strategy: encourage thorough exploration over efficiency
  - Token budget awareness (~60k tokens for medium thoroughness)
  - Output format: numbered sections, tables, code snippets
- Wire FindingsPersister into orchestrator
- Remove outdated token consumption specs
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d2cad0603

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +173 to +175
issue.CodeFindings[i] = finding
_, err = p.issues.Upsert(ctx, issue)
return err

Choose a reason for hiding this comment

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

P2 Badge Avoid lost updates when explores persist findings

AddFinding reads the issue earlier in the same function and then writes the whole record back with Upsert. Because executeExploresParallel spawns multiple explore goroutines, two explores for the same issue can race: both read the same CodeFindings slice, append/replace in memory, and then the last Upsert overwrites the other’s changes. In that scenario one of the newly generated findings is silently dropped, which defeats caching/deduplication. Consider serializing writes per issue or adding an atomic append/merge method in the store (or an optimistic version check) to avoid last-write-wins loss.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants