Skip to content

feat(moteur): analyse d'offre + matching honnête + garde-fou provenance (THI-124) - #16

Merged
Tbeaumont79 merged 1 commit into
mainfrom
feat/moteur-matching
Jun 10, 2026
Merged

Tbeaumont79 merged 1 commit into
mainfrom
feat/moteur-matching

Conversation

@Tbeaumont79

Copy link
Copy Markdown
Owner

Recrée la PR #13 (DRAFT), auto-fermée quand la branche base de #3 a été supprimée. Reste en draft — à finaliser par l'auteur THI-124. Base re-pointée sur main.

@coderabbitai

coderabbitai Bot commented Jun 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@Tbeaumont79, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 1 minute and 55 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: f0a57152-78bf-4bc2-9942-29f978101b9f

📥 Commits

Reviewing files that changed from the base of the PR and between aee7040 and dffca9b.

📒 Files selected for processing (6)
  • apps/app/server/services/matching.ts
  • apps/app/server/services/offer-analysis.ts
  • apps/app/server/utils/anthropic.ts
  • apps/app/test/matching.spec.ts
  • packages/shared/src/index.ts
  • packages/shared/src/offer.ts

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

@Tbeaumont79

Copy link
Copy Markdown
Owner Author

ℹ️ Seule PR encore ouverte du backlog (THI-139). Draft du moteur matching (THI-124) — exclu du merge train, ne pas merger en l'état. main est verte et porte désormais tous les contrats dont ce moteur dépend (CV structuré + provenance #3, profil #5, metering #11/#12, auth #8/#14). @auteur THI-124 : rebase sur main, fais passer bash scripts/pre-merge.sh vert (dont le test « item sans provenance → rejeté »), puis marque ready.

…ce (THI-124)

Pipeline 3 temps (Architecture §4a) :
- §1 analyse de l'offre collée → AnalyzedOffer structurée (titre, compétences,
  mots-clés, séniorité), sortie structurée Claude (Sonnet 4.6 par défaut).
- §2 matching : le LLM ne reçoit comme source de contenu QUE le profil réel ;
  l'offre sert de consignes de tri/reformulation ; chaque item porte sa provenance.
- §3 garde-fou déterministe (hors LLM) : assertValidCv rejette tout item non sourcé
  → invention impossible par construction.

- Client Claude via fetch, appel injectable (LlmComplete) ⇒ tests sans réseau.
- Coût loggé (modèle/tokens/$) sans logger le contenu CV en clair (RGPD).
- Tests : « item sans provenance → rejeté » (absente + id inconnu), CV sourcé accepté.

profile.ts vendoré depuis THI-123 (#5, identique) pour la buildabilité ; se dédoublonne au merge.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
@Tbeaumont79
Tbeaumont79 force-pushed the feat/moteur-matching branch from 5be739f to dffca9b Compare June 9, 2026 17:32
@Tbeaumont79
Tbeaumont79 marked this pull request as ready for review June 9, 2026 17:32
@Tbeaumont79
Tbeaumont79 merged commit cb0e839 into main Jun 10, 2026
1 check passed
@Tbeaumont79
Tbeaumont79 deleted the feat/moteur-matching branch July 2, 2026 15:28
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