feat: implement filtering for harness-injected context in workflow an…#154
Open
mc5eamus wants to merge 1 commit into
Open
feat: implement filtering for harness-injected context in workflow an…#154mc5eamus wants to merge 1 commit into
mc5eamus wants to merge 1 commit into
Conversation
…alysis and parsing
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request improves the handling of harness-injected context messages (such as AGENTS.md instructions and environment context) in workflow analysis and session parsing. These injected messages, which are not real user prompts, are now filtered out to prevent them from being clustered or recorded as user activity, ensuring more accurate workflow and skill extraction.
Filtering of harness-injected context:
isHarnessInjectedContextutility inhelpers.ts, which detects known harness-injected markers to identify and filter out these messages.analyzer-workflows.tsto callisHarnessInjectedContextin the noise filter, ensuring such messages are excluded from workflow clustering. [1] [2]parser-codex.tsto skip harness-injected context in both user response items and user message events, preventing these from being treated as real user prompts. [1] [2] [3]Test coverage:
analyzer-workflows.test.tsandparser-codex.test.tsto verify that harness-injected AGENTS.md and environment context are ignored and do not affect workflow clustering or prompt extraction. [1] [2]…alysis and parsingDescription
Related Issues
Checklist
npm run checkpasses (typecheck + lint + spellcheck + knip + tests)