Skip to content

Conversation

@shivasurya
Copy link
Owner

This introduces the Python DSL API surface for specifying argument constraints in security rules. Rule authors can now use match_name and match_position parameters in the calls matcher to define expected keyword and positional argument values. The DSL automatically generates the appropriate JSON IR structures that the Go executor uses for validation during code analysis.

@shivasurya shivasurya added enhancement New feature or request python labels Nov 21, 2025
@shivasurya shivasurya self-assigned this Nov 21, 2025
@shivasurya shivasurya added enhancement New feature or request python labels Nov 21, 2025
@safedep
Copy link

safedep bot commented Nov 21, 2025

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

This report is generated by SafeDep Github App

Copy link
Owner Author

shivasurya commented Nov 21, 2025

Merge activity

  • Nov 21, 1:29 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Nov 21, 1:32 AM UTC: Graphite rebased this pull request as part of a merge.
  • Nov 21, 1:33 AM UTC: @shivasurya merged this pull request with Graphite.

@shivasurya shivasurya changed the base branch from shiva/pr-02-keyword-matching-logic to graphite-base/386 November 21, 2025 01:30
@shivasurya shivasurya changed the base branch from graphite-base/386 to main November 21, 2025 01:31
Extended Python DSL to support keyword and positional argument matching through match_name and match_position parameters. Added 27 new tests with 100% coverage. All tests pass with no regressions. Backward compatible. Stacked on PR #2.
Applied black formatting to pass linting checks.
@shivasurya shivasurya force-pushed the shiva/pr-03-python-dsl-api branch from 909dd74 to 5eff8ba Compare November 21, 2025 01:32
@shivasurya shivasurya merged commit 4abbff5 into main Nov 21, 2025
1 check passed
@shivasurya shivasurya deleted the shiva/pr-03-python-dsl-api branch November 21, 2025 01:33
shivasurya added a commit that referenced this pull request Nov 28, 2025
Release v1.1.0 includes enhanced argument matching capabilities:

- Add positional argument matching (match_position parameter)
- Add keyword argument matching (match_name parameter)
- Add tuple indexing for nested arguments
- Add wildcard support in argument values
- Add comprehensive type hints
- Fix critical bugs in argument matching

Related PRs: #386, #389, #390

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@shivasurya shivasurya mentioned this pull request Nov 28, 2025
6 tasks
shivasurya added a commit that referenced this pull request Nov 28, 2025
Release v1.1.0 includes enhanced argument matching capabilities:

- Add positional argument matching (match_position parameter)
- Add keyword argument matching (match_name parameter)
- Add tuple indexing for nested arguments
- Add wildcard support in argument values
- Add comprehensive type hints
- Fix critical bugs in argument matching

Related PRs: #386, #389, #390

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants