-
Notifications
You must be signed in to change notification settings - Fork 54
LCORE-632: config diagram update #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,12 +73,14 @@ class "JwtConfiguration" as src.models.config.JwtConfiguration { | |
| username_claim : str | ||
| } | ||
| class "JwtRoleRule" as src.models.config.JwtRoleRule { | ||
| compiled_regex | ||
| jsonpath : str | ||
| negate : bool | ||
| operator | ||
| roles : list[str] | ||
| value : Any | ||
| check_jsonpath() -> Self | ||
| check_regex_pattern() -> Self | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainClarify behavior of check_regex_pattern() and ensure it’s represented in code. Document that it validates the pattern and populates /compiled_regex (or raises on invalid). If it only applies when operator == 'regex', state that in a note. Run to confirm existence and expected usage: 🏁 Script executed: #!/bin/bash
# Method presence and basic behavior hints
rg -nP -C3 'def\s+check_regex_pattern\s*\(' --type=py
# Look for compilation and caching
rg -nP -C2 're\.compile\(|compiled_regex' --type=py
# Optional: where it's invoked in config validation
rg -nP -C3 'check_regex_pattern\s*\(' --type=pyLength of output: 4140 Update docs/config.puml to clarify check_regex_pattern validation and compiled_regex behavior
🤖 Prompt for AI Agents |
||
| check_roles() -> Self | ||
| } | ||
| class "LlamaStackConfiguration" as src.models.config.LlamaStackConfiguration { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Mark compiled_regex as derived/transient and add an explicit type.
If this is a runtime cache of a compiled regex (not user-supplied config), document it as derived and avoid implying it’s part of the input schema. Also add the type for clarity.
Apply in-diagram tweak:
Optionally add a note to the class (outside this line range):
Run to verify the underlying model treats this as non-serialized (e.g., PrivateAttr or Field(exclude=True)):
🏁 Script executed:
Length of output: 2451
🏁 Script executed:
Length of output: 303
Mark compiled_regex as a derived property in the UML and specify its return type.
The
compiled_regexproperty is implemented with@cached_propertyand is not part of the Pydantic model fields (it isn’t serialized); reflect this in the diagram:Optional:
🤖 Prompt for AI Agents