Skip to content

Commit a78127e

Browse files
committed
Limit scan excludes to role metadata
1 parent 38e7b3a commit a78127e

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@agent-pattern-labs/software-contract-forge",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "Agentic harness for finding, qualifying, and applying to software contract opportunities.",
55
"type": "module",
66
"bin": {

scripts/scan.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ function origin(value) {
821821

822822
function matchCandidate(candidate, source, clientProfile) {
823823
const text = `${candidate.title} ${candidate.buyer} ${candidate.notes} ${candidate.description}`.toLowerCase();
824+
const roleText = `${candidate.title} ${candidate.buyer} ${candidate.notes}`.toLowerCase();
824825
const includeTerms = uniqueTerms([
825826
...DEFAULT_INCLUDE,
826827
...normalizeArray(source.include_keywords || source.keywords),
@@ -832,7 +833,7 @@ function matchCandidate(candidate, source, clientProfile) {
832833
]);
833834

834835
const includeHits = includeTerms.filter((term) => termMatches(text, term));
835-
const excludeHits = hardExcludes.filter((term) => termMatches(text, term));
836+
const excludeHits = hardExcludes.filter((term) => termMatches(roleText, term));
836837
const contractHits = contractSignalHits(candidate);
837838
const missingRequiredContractSignal = Boolean(source.require_contract_signal) && contractHits.length === 0;
838839
const score = includeHits.length + (contractHits.length * 2) - (excludeHits.length * 4);

0 commit comments

Comments
 (0)