Skip to content

feat(agent): stop suggesting a URL that already matches the field - #120

Merged
carhartlewis merged 3 commits into
mainfrom
lewis/agent-backfill-fixes
Aug 11, 2026
Merged

feat(agent): stop suggesting a URL that already matches the field#120
carhartlewis merged 3 commits into
mainfrom
lewis/agent-backfill-fixes

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Opened automatically when lewis/agent-backfill-fixes was pushed.

The title is written from the diff and rewritten as you push, because this is squashed onto main and the title becomes the commit subject and the changelog line. Retitle it yourself and it is yours — the automation stops touching it.


Summary by cubic

Stops duplicate profile URL suggestions by comparing canonical values (scheme, www, trailing slash, query, and Twitter→X alias are ignored). Also runs the blank-field sweep on the dispatch tick and makes releases ship by merging main into release via PRs.

  • Bug Fixes

    • Use canonicalValue in sameValue to compare URLs by address, not string.
    • Collapse duplicate proposals that resolve to the same canonical value.
    • Tests cover trailing slashes, www, scheme, queries, and twitter.comx.com.
  • Refactors

    • Run sweepBlankFacts from the dispatch schedule; remove the internal endpoint and BlankFactsService.
    • Update docs and backfill logs to match.
    • Release workflow now opens and merges a PR from main to release, satisfying the branch ruleset so tags actually ship.

Written for commit a239ad2. Summary will update on new commits.

Review in cubic

…ase`

Updated the release workflow to ensure that all merges into the `release` branch are done via pull requests, adhering to the established ruleset. This change prevents direct pushes that could lead to untracked releases and ensures that the release process is streamlined and error-free. The workflow now automatically creates and merges a pull request from `main` to `release` when a new tag is created, improving the reliability of the deployment process.
…ts into dispatch schedule

This commit deletes the BlankFactsService and its associated methods, moving the functionality to the dispatch schedule. The `sweepBlankFacts` function is now called directly within the dispatch process, ensuring that blank fields are filled automatically at regular intervals. Additionally, the API documentation has been updated to reflect these changes.
…pace normalization

This commit introduces the `canonicalValue` function to standardize URL comparisons by normalizing case, whitespace, and specific host aliases. The `sameValue` function is updated to utilize `canonicalValue`, ensuring that URLs are compared as addresses rather than strings. Additionally, integration tests are added to verify the behavior of these functions, including handling trailing slashes and different URL schemes. Documentation is updated to reflect these changes in value comparison logic.
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crm-agent Building Building Preview Aug 11, 2026 4:13am
crm-api Ready Ready Preview Aug 11, 2026 4:13am
crm-app Building Building Preview Aug 11, 2026 4:13am

Request Review

@carhartlewis
carhartlewis merged commit ed43055 into main Aug 11, 2026
4 of 6 checks passed
@carhartlewis
carhartlewis deleted the lewis/agent-backfill-fixes branch August 11, 2026 04:13
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.

1 participant