From 6d6d6a369c5776bd87eef471120a765a353047dc Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 15:23:47 +0000 Subject: [PATCH 01/14] chore: capture the BootUI 2.6.0 fixtures and pin 0.11.0 to v2.6.0 Signed-off-by: Flavio Oliva --- AGENTS.md | 2 +- docs/reference/BOOTUI-2.6.0-DELTA.md | 38 + scripts/capture_bootui.py | 1 + tests/fixtures/bootui/2.6.0/meta.json | 35 + tests/fixtures/bootui/2.6.0/panels.json | 520 ++ tests/fixtures/bootui/2.6.0/properties.json | 1766 ++++ tests/fixtures/bootui/2.6.0/routes.json | 5466 +++++++++++++ .../fixtures/bootui/2.6.0/rule-ids-diff.json | 76 + tests/fixtures/bootui/2.6.0/rule-ids.json | 7229 +++++++++++++++++ tests/fixtures/bootui/2.6.0/tools.json | 3591 ++++++++ tests/parity/properties_status.json | 44 +- tests/parity/routes_status.json | 2 +- tests/parity/test_properties_parity.py | 4 +- tests/parity/test_routes_parity.py | 4 +- tests/parity/test_tools_parity.py | 12 +- tests/parity/tools_status.json | 20 + 16 files changed, 18797 insertions(+), 13 deletions(-) create mode 100644 docs/reference/BOOTUI-2.6.0-DELTA.md create mode 100644 tests/fixtures/bootui/2.6.0/meta.json create mode 100644 tests/fixtures/bootui/2.6.0/panels.json create mode 100644 tests/fixtures/bootui/2.6.0/properties.json create mode 100644 tests/fixtures/bootui/2.6.0/routes.json create mode 100644 tests/fixtures/bootui/2.6.0/rule-ids-diff.json create mode 100644 tests/fixtures/bootui/2.6.0/rule-ids.json create mode 100644 tests/fixtures/bootui/2.6.0/tools.json create mode 100644 tests/parity/tools_status.json diff --git a/AGENTS.md b/AGENTS.md index 1d85a4ca6..1c71803f0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -166,7 +166,7 @@ to loosen. Change a rule only in that test and here, in the same PR, with the re - **Port BootUI, do not reinvent** (owner, 2026-11-12: "whatever we can directly port from BootUI we should; we don't need to recreate anything, just rewrite and adapt"). Before writing any code for a feature, read BootUI's own source for it at the pinned tag, in a BootUI clone, not this repo (`git -C show v2.3.0:` for 0.6.0; - `v2.4.0` for 0.7.0; `v2.5.0` for 0.8.0), and translate it: same structure, order of checks, thresholds, user-facing texts (env names + `v2.4.0` for 0.7.0; `v2.5.0` for 0.8.0 to 0.10.0; `v2.6.0` for 0.11.0), and translate it: same structure, order of checks, thresholds, user-facing texts (env names adapted) and tests (`# ported:`). Adapt only where Python/FastAPI/SQLAlchemy forces it or an owner ruling differs; each adaptation is one deviation row, with its reason, in the lane's matrix fragment (`docs/reference/matrix-updates/.tsv`). Never design from a summary of BootUI: read the lines. The safety model diff --git a/docs/reference/BOOTUI-2.6.0-DELTA.md b/docs/reference/BOOTUI-2.6.0-DELTA.md new file mode 100644 index 000000000..b7acf25fb --- /dev/null +++ b/docs/reference/BOOTUI-2.6.0-DELTA.md @@ -0,0 +1,38 @@ +# BootUI 2.6.0 static fixture delta + +The static capture uses BootUI tag `v2.6.0` at commit `6efc78d31c08baae0fca7d33b00d464e9970bed6`, released on 2026-11-27. The fixtures are generated with `scripts/capture_bootui.py --version 2.6.0` from the BootUI source tree. + +## Captured fixture changes + +| Fixture | BootUI 2.5.0 | BootUI 2.6.0 | Source or reason | +|---|---:|---:|---| +| Panels | 65 | 65 | `BootUiPanels.java`; the panel catalogue is unchanged. | +| Tools | 116 | 116 | `bootui-cli/src/main/resources/bootui-tools.json`; names, input schemas and action flags are unchanged. Several descriptions changed; the remaining sharpit gaps are recorded in `tests/parity/tools_status.json`. | +| Route contracts | 85 reads, 78 actions, 269 starter mappings | 85 reads, 78 actions, 269 starter mappings | `BootUiApiContractCatalog.java`; route counts are unchanged. The GitHub report contract adds `repositoryContext` as an object. | +| Properties | 212 | 219 | `BootUiProperties.java` and generated configuration metadata; adds seven activity persistence and memory scan properties listed below. | +| Rule identifiers | 688 | 692 | The captured union adds `HIB-FETCH-010`, `HIB-QUERY-010`, `SEC-AUTHZ-006`, and `SPRING-WIRING-012`; no identifiers are removed. `rule-ids-diff.json` records 0 documentation-only and 32 Java-only identifiers. | +| Test inventory | 1,144 classes, 11,204 methods | 1,206 classes, 12,210 methods | Captured from the tagged Java test sources. | + +The new properties are `bootui.activity.persistence.application-id`, `bootui.activity.persistence.hot-max-entries`, `bootui.activity.persistence.max-pending-bytes`, `bootui.activity.persistence.max-pending-entries`, `bootui.activity.persistence.namespace-id`, `bootui.activity.persistence.reader-archive-cross-namespace`, and `bootui.memory.include-histogram`. The persistence settings relate to durable activity history; the histogram setting controls JVM memory scanning. + +The `GET /github` report gains the `repositoryContext` object, which carries the selected remote and sanitized origin/upstream repository identities. `POST /github/refresh` remains the action route. The captured route inventory and starter mapping count do not change. + +## JSON specifications + +| BootUI source file | v2.5.0 to v2.6.0 change | Sharpit disposition | +|---|---|---| +| `bootui-cli/src/main/resources/bootui-tools.json` | 116 tools; names, input schemas and action flags are unchanged. Descriptions change for `get_live_activity` (including `queryHelp`), `memory_scan`, and `get_spring_data_repositories`. The latter tool's summary changes as well. | `get_live_activity` retains sharpit's wording until Task 3.13 adds durable history. The JVM memory scan and Spring Data repository metadata descriptions are recorded as n-a in `tests/parity/tools_status.json`. | +| `.github/actions/bootui/default-policy.json`; `examples/ci/bootui-policy.json` | Both retain `schemaVersion: 1`; no diff. | No change required. | +| `plugins/bootui/plugin.json` | The version changes from `2.5.0` to `2.6.0`; other fields are unchanged. | Version metadata only. | +| `plugins/bootui/mcp.json`; `plugins/bootui/.claude-plugin/plugin.json` | No diff. | No change required. | +| `bootui-conformance/src/main/resources/io/github/jdubois/bootui/conformance/expected-panels-*.json`; `bootui-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json` | No diff. | No change required. | +| `bootui-conformance/src/main/java/io/github/jdubois/bootui/conformance/BootUiApiContractCatalog.java` | The GitHub report response contract adds `repositoryContext: OBJECT`. | Captured as a report contract addition; sharpit's GitHub lane is Task 1.8. | + +The JSON comparison confirms the planned changes with one additional detail: `get_spring_data_repositories` changes both its summary and description. No names, schemas, action flags, policy schemas, MCP configuration, plugin integration metadata, panel lists, or additional Spring configuration metadata change. + +## Status changes + +The tools, properties and routes parity tests now use the 2.6.0 fixtures. Seven new property rows are classified as missing in `tests/parity/properties_status.json`; their `reason` fields identify the task that will address or classify each gap. Six activity persistence rows are tracked by Task 3.13; the JVM-only memory histogram property is classified as n-a by Task 2.13. Three tool-description rows are recorded in `tests/parity/tools_status.json`: `get_live_activity` remains partial until Task 3.13, while `memory_scan` and `get_spring_data_repositories` are n-a under Task 0.1. + +The existing fixture inventory test remains pinned to its explicit version set because its version-specific count assertions do not cover the 2.6.0 inventory. + diff --git a/scripts/capture_bootui.py b/scripts/capture_bootui.py index 76f057fbd..86a8f9371 100644 --- a/scripts/capture_bootui.py +++ b/scripts/capture_bootui.py @@ -1103,6 +1103,7 @@ def capture( "2.3.0": ("v2.3.0", "7c89042c6a0a47e1cb22d2df7412d2177d7416d1", "2026-11-10"), "2.4.0": ("v2.4.0", "0df7ed764688d04f83c246c9965e90158c1db488", "2026-11-18"), "2.5.0": ("v2.5.0", "c4458db8dd18c08074119f22a79dda3e714abbda", "2026-11-20"), + "2.6.0": ("v2.6.0", "6efc78d31c08baae0fca7d33b00d464e9970bed6", "2026-11-27"), } diff --git a/tests/fixtures/bootui/2.6.0/meta.json b/tests/fixtures/bootui/2.6.0/meta.json new file mode 100644 index 000000000..9c2cdb1c9 --- /dev/null +++ b/tests/fixtures/bootui/2.6.0/meta.json @@ -0,0 +1,35 @@ +{ + "bootuiVersion": "2.6.0", + "app": "tiny-ledger", + "profile": "full", + "commit": "6efc78d31c08baae0fca7d33b00d464e9970bed6", + "tag": "v2.6.0", + "command": "python scripts/capture_bootui.py --version 2.6.0", + "tagObject": "395706e4ae65c60fcbfb32338a53d346a4a50ed3", + "mavenCommand": "mvn -pl bootui-spring-boot-starter -am -DskipTests -U -Dmaven.compiler.release=17 -Dmaven.compiler.proc=full compile -s ", + "javaVersionOutput": "openjdk version \"25.0.5.1\" 2026-11-17 LTS\nOpenJDK Runtime Environment Corretto-25.0.5.1.2 (build 25.0.5.1+2-LTS)\nOpenJDK 64-Bit Server VM Corretto-25.0.5.1.2 (build 25.0.5.1+2-LTS, mixed mode, sharing)", + "mavenVersionOutput": "Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)\nMaven home: \nJava version: 25.0.5.1, vendor: Amazon.com Inc., runtime: \nDefault locale: en_GB, platform encoding: UTF-8\nOS name: \"windows 11\", version: \"10.0\", arch: \"amd64\", family: \"windows\"\nWARNING: A restricted method in java.lang.System has been called\nWARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/)\nWARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module\nWARNING: Restricted methods will be blocked in a future release unless native access is enabled", + "settingsOverride": "temporary settings.xml mirrors all repositories to Maven Central", + "jdk": "openjdk version \"25.0.5.1\" 2026-11-17 LTS\nOpenJDK Runtime Environment Corretto-25.0.5.1.2 (build 25.0.5.1+2-LTS)\nOpenJDK 64-Bit Server VM Corretto-25.0.5.1.2 (build 25.0.5.1+2-LTS, mixed mode, sharing)", + "captured": "2026-11-27", + "fixtures": [ + "meta.json", + "panels.json", + "routes.json", + "tools.json", + "rule-ids.json", + "rule-ids-diff.json", + "properties.json", + "bootui-tests.json" + ], + "counts": { + "reads": 85, + "actions": 78, + "starterMappings": 269, + "gaps": 76, + "unpanelledRoutes": 73, + "routeCountMethod": "catalog read/action helper calls and all starter src/main/java @*Mapping declarations", + "testClasses": 1206, + "testMethods": 12210 + } +} \ No newline at end of file diff --git a/tests/fixtures/bootui/2.6.0/panels.json b/tests/fixtures/bootui/2.6.0/panels.json new file mode 100644 index 000000000..4192ac07e --- /dev/null +++ b/tests/fixtures/bootui/2.6.0/panels.json @@ -0,0 +1,520 @@ +{ + "panels": [ + { + "id": "overview", + "title": "Scorecard", + "actionCapable": false, + "apiPrefixes": [] + }, + { + "id": "health", + "title": "Health", + "actionCapable": false, + "apiPrefixes": [ + "/health" + ] + }, + { + "id": "http-sessions", + "title": "HTTP Sessions", + "actionCapable": true, + "apiPrefixes": [ + "/http-sessions" + ] + }, + { + "id": "metrics", + "title": "Metrics", + "actionCapable": false, + "apiPrefixes": [ + "/metrics" + ] + }, + { + "id": "live-memory", + "title": "Live Memory", + "actionCapable": true, + "apiPrefixes": [ + "/live-memory" + ] + }, + { + "id": "jvm-tuning", + "title": "JVM Tuning", + "actionCapable": false, + "apiPrefixes": [ + "/jvm-tuning" + ] + }, + { + "id": "heap-dump", + "title": "Heap Dump", + "actionCapable": true, + "apiPrefixes": [ + "/heap-dump" + ] + }, + { + "id": "threads", + "title": "Threads", + "actionCapable": true, + "apiPrefixes": [ + "/threads" + ] + }, + { + "id": "memory", + "title": "Memory", + "actionCapable": true, + "apiPrefixes": [ + "/memory" + ] + }, + { + "id": "startup", + "title": "Startup Timeline", + "actionCapable": false, + "apiPrefixes": [ + "/startup" + ] + }, + { + "id": "graalvm", + "title": "GraalVM", + "actionCapable": true, + "apiPrefixes": [ + "/graalvm" + ] + }, + { + "id": "config", + "title": "Configuration", + "actionCapable": true, + "apiPrefixes": [ + "/config" + ] + }, + { + "id": "profile-diff", + "title": "Profile Diff", + "actionCapable": false, + "apiPrefixes": [ + "/profile-diff" + ] + }, + { + "id": "loggers", + "title": "Loggers", + "actionCapable": true, + "apiPrefixes": [ + "/loggers" + ] + }, + { + "id": "beans", + "title": "Beans", + "actionCapable": false, + "apiPrefixes": [ + "/beans" + ] + }, + { + "id": "conditions", + "title": "Conditions", + "actionCapable": false, + "apiPrefixes": [ + "/conditions" + ] + }, + { + "id": "mappings", + "title": "Mappings", + "actionCapable": false, + "apiPrefixes": [ + "/mappings" + ] + }, + { + "id": "spring-security", + "title": "Spring Security", + "actionCapable": false, + "apiPrefixes": [ + "/spring-security" + ] + }, + { + "id": "security", + "title": "Security", + "actionCapable": true, + "apiPrefixes": [ + "/security" + ] + }, + { + "id": "security-logs", + "title": "Security Logs", + "actionCapable": false, + "apiPrefixes": [ + "/security-logs" + ] + }, + { + "id": "pentesting", + "title": "Pentesting", + "actionCapable": true, + "apiPrefixes": [ + "/pentesting" + ] + }, + { + "id": "scheduled", + "title": "Scheduled Tasks", + "actionCapable": false, + "apiPrefixes": [ + "/scheduled" + ] + }, + { + "id": "database-connection-pools", + "title": "Database Connection Pools", + "actionCapable": false, + "apiPrefixes": [ + "/database-connection-pools" + ] + }, + { + "id": "postgresql", + "title": "PostgreSQL", + "actionCapable": true, + "apiPrefixes": [ + "/postgresql" + ] + }, + { + "id": "mysql", + "title": "MySQL", + "actionCapable": true, + "apiPrefixes": [ + "/mysql" + ] + }, + { + "id": "transactions", + "title": "Transactions", + "actionCapable": true, + "apiPrefixes": [ + "/transactions" + ] + }, + { + "id": "data", + "title": "Spring Data", + "actionCapable": false, + "apiPrefixes": [ + "/data" + ] + }, + { + "id": "hibernate", + "title": "Hibernate", + "actionCapable": true, + "apiPrefixes": [ + "/hibernate" + ] + }, + { + "id": "hibernate-statistics", + "title": "Hibernate Statistics", + "actionCapable": true, + "apiPrefixes": [ + "/hibernate-statistics" + ] + }, + { + "id": "database-advisor", + "title": "Database", + "actionCapable": true, + "apiPrefixes": [ + "/database-advisor" + ] + }, + { + "id": "cache", + "title": "Cache", + "actionCapable": true, + "apiPrefixes": [ + "/cache" + ] + }, + { + "id": "traces", + "title": "Traces", + "actionCapable": true, + "apiPrefixes": [ + "/traces" + ] + }, + { + "id": "log-tail", + "title": "Log Tail", + "actionCapable": false, + "apiPrefixes": [ + "/log-tail" + ] + }, + { + "id": "exceptions", + "title": "Exceptions", + "actionCapable": true, + "apiPrefixes": [ + "/exceptions" + ] + }, + { + "id": "http-exchanges", + "title": "HTTP Exchanges", + "actionCapable": false, + "apiPrefixes": [ + "/http-exchanges" + ] + }, + { + "id": "http-probe", + "title": "HTTP Probe", + "actionCapable": true, + "apiPrefixes": [ + "/http-probe" + ] + }, + { + "id": "architecture", + "title": "Architecture", + "actionCapable": true, + "apiPrefixes": [ + "/architecture" + ] + }, + { + "id": "vulnerabilities", + "title": "Vulnerabilities", + "actionCapable": true, + "apiPrefixes": [ + "/vulnerabilities" + ] + }, + { + "id": "devtools", + "title": "Spring DevTools", + "actionCapable": true, + "apiPrefixes": [ + "/devtools" + ] + }, + { + "id": "dev-services", + "title": "Dev Services", + "actionCapable": true, + "apiPrefixes": [ + "/dev-services" + ] + }, + { + "id": "copilot", + "title": "Copilot", + "actionCapable": false, + "apiPrefixes": [ + "/copilot" + ] + }, + { + "id": "claude-code", + "title": "Claude Code", + "actionCapable": false, + "apiPrefixes": [ + "/claude-code" + ] + }, + { + "id": "flyway", + "title": "Flyway", + "actionCapable": true, + "apiPrefixes": [ + "/flyway" + ] + }, + { + "id": "liquibase", + "title": "Liquibase", + "actionCapable": true, + "apiPrefixes": [ + "/liquibase" + ] + }, + { + "id": "github", + "title": "GitHub", + "actionCapable": true, + "apiPrefixes": [ + "/github" + ] + }, + { + "id": "rest-api", + "title": "REST API", + "actionCapable": true, + "apiPrefixes": [ + "/rest-api" + ] + }, + { + "id": "spring", + "title": "Spring", + "actionCapable": true, + "apiPrefixes": [ + "/spring" + ] + }, + { + "id": "crac", + "title": "CRaC", + "actionCapable": true, + "apiPrefixes": [ + "/crac" + ] + }, + { + "id": "sql-trace", + "title": "SQL Trace", + "actionCapable": true, + "apiPrefixes": [ + "/sql-trace" + ] + }, + { + "id": "rest-client-trace", + "title": "REST Client", + "actionCapable": true, + "apiPrefixes": [ + "/rest-client-trace" + ] + }, + { + "id": "ai", + "title": "AI Framework", + "actionCapable": false, + "apiPrefixes": [ + "/ai" + ] + }, + { + "id": "mcp-server", + "title": "MCP Server", + "actionCapable": true, + "apiPrefixes": [ + "/mcp-server" + ] + }, + { + "id": "cli", + "title": "Command Line", + "actionCapable": false, + "apiPrefixes": [] + }, + { + "id": "java-agent", + "title": "Java Agent", + "actionCapable": true, + "apiPrefixes": [ + "/java-agent" + ] + }, + { + "id": "activity", + "title": "Live Activity", + "actionCapable": true, + "apiPrefixes": [ + "/activity" + ] + }, + { + "id": "runtime-insights", + "title": "Runtime Insights", + "actionCapable": true, + "apiPrefixes": [ + "/runtime-insights" + ] + }, + { + "id": "code-inventory", + "title": "Code Inventory", + "actionCapable": false, + "apiPrefixes": [ + "/code-inventory" + ] + }, + { + "id": "code-paths", + "title": "Code Paths", + "actionCapable": true, + "apiPrefixes": [ + "/code-paths" + ] + }, + { + "id": "side-effects", + "title": "Side Effects", + "actionCapable": false, + "apiPrefixes": [ + "/side-effects" + ] + }, + { + "id": "email", + "title": "Email", + "actionCapable": true, + "apiPrefixes": [ + "/email" + ] + }, + { + "id": "kafka", + "title": "Kafka", + "actionCapable": true, + "apiPrefixes": [ + "/kafka" + ] + }, + { + "id": "rabbitmq", + "title": "RabbitMQ", + "actionCapable": true, + "apiPrefixes": [ + "/rabbitmq" + ] + }, + { + "id": "jms", + "title": "JMS", + "actionCapable": true, + "apiPrefixes": [ + "/jms" + ] + }, + { + "id": "fault-tolerance", + "title": "Fault Tolerance", + "actionCapable": false, + "apiPrefixes": [ + "/fault-tolerance" + ] + }, + { + "id": "websockets", + "title": "WebSockets", + "actionCapable": true, + "apiPrefixes": [ + "/websockets" + ] + } + ] +} \ No newline at end of file diff --git a/tests/fixtures/bootui/2.6.0/properties.json b/tests/fixtures/bootui/2.6.0/properties.json new file mode 100644 index 000000000..1419bb92b --- /dev/null +++ b/tests/fixtures/bootui/2.6.0/properties.json @@ -0,0 +1,1766 @@ +{ + "properties": [ + { + "name": "bootui.activity.feed-source", + "type": "java.lang.String", + "description": "Where the activity stream comes from: {@code journal}, rendering the runtime journal's retained events with every child nested by request or execution id. {@code buffers}, 1.x's feed, was removed in 2.0.0 and fails the start; with the journal disabled, the panel buffers serve the feed on their own. A request may override it with {@code ?source=}.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Activity", + "defaultValue": "journal", + "defaultValueSource": "BootUiProperties.java:3299" + }, + { + "name": "bootui.activity.max-entries", + "type": "java.lang.Integer", + "description": "Maximum number of normalized entries returned in a single activity-stream page after merging and sorting all sources.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Activity", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:3265" + }, + { + "name": "bootui.activity.max-scheduled-task-runs", + "type": "java.lang.Integer", + "description": "Maximum number of recent {@code @Scheduled} task executions retained for the {@code SCHEDULED} entries in the activity stream.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Activity", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:3291" + }, + { + "name": "bootui.activity.n-plus-one-threshold", + "type": "java.lang.Integer", + "description": "Number of identical normalized SELECT statements correlated to a single request above which an N+1 hint is surfaced in the per-request profile.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Activity", + "defaultValue": 5, + "defaultValueSource": "BootUiProperties.java:3279" + }, + { + "name": "bootui.activity.persistence.application-id", + "type": "java.lang.String", + "description": "Application key within the durable namespace. When blank, the adapter uses Spring's existing run application key.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:3444" + }, + { + "name": "bootui.activity.persistence.buffer-max-entries", + "type": "java.lang.Integer", + "description": "Capacity of both the in-memory hot read cache (entries visible immediately, even before their scheduled flush) and the pending-flush queue (entries awaiting their first durable write).", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:3491" + }, + { + "name": "bootui.activity.persistence.data-source-mode", + "type": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence$DataSourceMode", + "description": "Where the durable store gets its JDBC connections from: {@code SHARED} reuses the host application's own {@code DataSource} bean (the same one BootUI's SQL Trace panel may already be tracing), {@code DEDICATED} opens a small, non-pooled connection of BootUI's own using the {@code dedicated-*} properties below.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": "shared", + "defaultValueSource": "BootUiProperties.java:3459 (DataSourceMode.SHARED)" + }, + { + "name": "bootui.activity.persistence.dedicated-driver-class-name", + "type": "java.lang.String", + "description": "Optional explicit JDBC driver class to load for {@code data-source-mode=DEDICATED}; blank lets the driver auto-register itself from the classpath (the usual case for a modern JDBC 4+ driver).", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:3475" + }, + { + "name": "bootui.activity.persistence.dedicated-jdbc-url", + "type": "java.lang.String", + "description": "JDBC URL for {@code data-source-mode=DEDICATED}, otherwise ignored.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:3462" + }, + { + "name": "bootui.activity.persistence.dedicated-password", + "type": "java.lang.String", + "description": "Password for {@code data-source-mode=DEDICATED}, otherwise ignored.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:3468" + }, + { + "name": "bootui.activity.persistence.dedicated-username", + "type": "java.lang.String", + "description": "Username for {@code data-source-mode=DEDICATED}, otherwise ignored.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:3465" + }, + { + "name": "bootui.activity.persistence.enabled", + "type": "java.lang.Boolean", + "description": "Whether captured Live Activity entries are also durably persisted, in addition to today's in-memory-only default. Disabled by default: no background thread, connection or bean beyond what already exists is created while this is {@code false}.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:3451" + }, + { + "name": "bootui.activity.persistence.flush-interval", + "type": "java.time.Duration", + "description": "How often buffered entries are flushed to durable storage.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": "5s", + "defaultValueSource": "BootUiProperties.java:3484" + }, + { + "name": "bootui.activity.persistence.hot-max-entries", + "type": "java.lang.Integer", + "description": "Maximum number of recent durable journal entries retained in the hot read cache.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:3500" + }, + { + "name": "bootui.activity.persistence.instance-id", + "type": "java.lang.String", + "description": "Legacy Live Activity partition key. For migration, a configured value supplies the durable {@link #namespaceId} when {@code namespace-id} is blank.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:3516" + }, + { + "name": "bootui.activity.persistence.max-pending-bytes", + "type": "org.springframework.util.unit.DataSize", + "description": "Maximum byte size of durable journal entries waiting to be flushed.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": "32MB", + "defaultValueSource": "BootUiProperties.java:3497" + }, + { + "name": "bootui.activity.persistence.max-pending-entries", + "type": "java.lang.Integer", + "description": "Maximum number of durable journal entries waiting to be flushed.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:3494" + }, + { + "name": "bootui.activity.persistence.namespace-id", + "type": "java.lang.String", + "description": "Opaque namespace that isolates durable journal rows. When blank, {@code instance-id} is used as a migration input and otherwise a stable SHA-256-derived {@code local-} value is derived from the sanitized local user and host names.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:3438" + }, + { + "name": "bootui.activity.persistence.reader-archive-cross-namespace", + "type": "java.lang.Boolean", + "description": "Whether archive readers may explicitly opt in to querying other namespaces.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:3510" + }, + { + "name": "bootui.activity.persistence.retention", + "type": "java.time.Duration", + "description": "How long persisted rows are kept before being pruned; entries older than this are eligible for deletion on this instance's own next prune pass. Only this instance's own rows are ever pruned.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": "7d", + "defaultValueSource": "BootUiProperties.java:3507" + }, + { + "name": "bootui.activity.persistence.table-name", + "type": "java.lang.String", + "description": "Legacy Live Activity table name and durable journal table prefix. Must be a plain SQL identifier.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ActivityPersistence", + "defaultValue": "bootui_activity", + "defaultValueSource": "BootUiProperties.java:3481" + }, + { + "name": "bootui.activity.request-slow-threshold-ms", + "type": "java.lang.Long", + "description": "Duration in milliseconds at or above which a request is slow, on every stack: it sets the {@code SLOW} severity of Live Activity request and scheduled-task entries, and classifies HTTP exchanges for the reserved share of the HTTP Exchanges buffer. Set to {@code 0} to disable slow classification.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Activity", + "defaultValue": 1000, + "defaultValueSource": "BootUiProperties.java:3273" + }, + { + "name": "bootui.advisors.max-retained-violations", + "type": "java.lang.Integer", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Advisors", + "defaultValue": 10000, + "defaultValueSource": "BootUiProperties.java:2314" + }, + { + "name": "bootui.agent.allow-in-disabled-profiles", + "type": "java.lang.Boolean", + "description": "Whether this application claims the BootUI agent when {@code bootui.enabled=ON} forces BootUI on despite an active {@code bootui.disabled-profiles} entry, such as {@code prod}. Off by default: the agent must never be attached to a production JVM.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:3021" + }, + { + "name": "bootui.agent.enabled", + "type": "java.lang.Boolean", + "description": "Whether this application claims the BootUI agent when the JVM runs with it attached.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:3014" + }, + { + "name": "bootui.agent.executors.max-handoff", + "type": "java.time.Duration", + "description": "How long a task's work is attributed to the request that handed it over; work recorded later, and tasks ending later, are not.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent$Executors", + "defaultValue": "5m", + "defaultValueSource": "BootUiProperties.java:3166 (AgentHandoffs.DEFAULT_MAX_HANDOFF)" + }, + { + "name": "bootui.agent.executors.skip-tasks", + "type": "java.util.List", + "description": "Task class-name prefixes the sensor never propagates, because they already carry their context, such as Micrometer's and Spring's context-propagating wrappers.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent$Executors", + "defaultValue": [ + "io.github.jdubois.bootui.engine.correlation.ManagedTasks", + "io.micrometer.context.", + "org.springframework.core.task.support.ContextPropagatingTaskDecorator", + "jdk.internal.", + "sun.", + "java.lang.ProcessHandleImpl", + "com.zaxxer.hikari.", + "com.github.benmanes.caffeine." + ], + "defaultValueSource": "BootUiProperties.java:3154 (AgentSensorSettings.DEFAULT_SKIP_TASKS)" + }, + { + "name": "bootui.agent.executors.skip-threads", + "type": "java.util.List", + "description": "Worker thread-name prefixes the sensor never propagates to, because their executor carries the context itself. With Reactor's automatic context propagation on, Reactor's scheduler threads are added.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent$Executors", + "defaultValue": [ + "vert.x-", + "bootui-" + ], + "defaultValueSource": "BootUiProperties.java:3160 (AgentSensorSettings.DEFAULT_SKIP_THREADS)" + }, + { + "name": "bootui.agent.mode", + "type": "java.lang.String", + "description": "The claim's mode: {@code dev}, {@code test}, or {@code auto}, which is {@code test} when the application starts under JUnit, TestNG, Cucumber, or Spring Boot's test support. A development application takes the agent over from a test one.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent", + "defaultValue": "auto", + "defaultValueSource": "BootUiProperties.java:3034" + }, + { + "name": "bootui.agent.packages", + "type": "java.util.List", + "description": "Application package prefixes the agent may instrument, in addition to the main application class's package and the auto-configuration packages.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent", + "defaultValue": [], + "defaultValueSource": "BootUiProperties.java:3027" + }, + { + "name": "bootui.agent.ring-capacity", + "type": "java.lang.Integer", + "description": "The records the agent's transport ring holds before it drops new ones, clamped to 1,024 to 4,194,304 and rounded up to a power of two. Each record takes 64 bytes; the first claim of the JVM sizes the ring.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent", + "defaultValue": 65536, + "defaultValueSource": "BootUiProperties.java:3061 (AgentSensorSettings.DEFAULT_RING_CAPACITY)" + }, + { + "name": "bootui.agent.security-sinks.request-values", + "type": "java.lang.Boolean", + "description": "Whether the current request's query and path parameter values of at least 4 characters are held while the request runs, so a sink it reaches (SQL text, a command, a file path, an outbound URL) can be checked for one appearing verbatim. Opt-in. The values are compared, never stored, logged, or displayed, and are forgotten when the response completes. Needs the {@code security-sinks} sensor.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent$SecuritySinks", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:3136" + }, + { + "name": "bootui.agent.sensors", + "type": "java.util.List", + "description": "The agent sensors this application asks for. {@code executors} propagates a request's context through the JDK's executors, so work handed to a raw thread pool or {@code CompletableFuture} is owned by its request. {@code inventory} records which application methods ran in this run and which jars loaded classes. {@code code-paths} times the application's bean methods per request, as call trees. {@code processes} records the processes the application starts, for Side Effects: the command's file name, never its arguments or environment. {@code network} records the hosts the application connects to, the datagrams it sends, and the names the JVM resolves, for Side Effects: a host and port, never a byte sent or received. {@code files} records the files the application opens, deletes, moves, and copies, as path patterns, never contents. {@code blocking} records {@code Thread.sleep}, {@code Object.wait}, {@code LockSupport.park}, and the network and files sensors' blocking operations started on an event loop, for Side Effects. {@code resources} reports the sockets, file streams, and channels a request or a job left open past the request or never closed before the collector reclaimed them, never contents. An unknown sensor id fails the application's start. {@code threads}, opt-in, also propagates a request's context into threads started from application code and into virtual threads. {@code environment}, opt-in, records the names of the environment variables and system properties the application reads, never their values. {@code caught-exceptions}, opt-in, reports the exceptions application code catches and which of them are thrown again, never their message, to the runtime journal.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Agent", + "defaultValue": [ + "executors", + "inventory", + "code-paths", + "processes", + "network", + "files", + "blocking", + "resources" + ], + "defaultValueSource": "BootUiProperties.java:3055 (AgentSensorSettings.DEFAULT_SENSORS)" + }, + { + "name": "bootui.ai.max-recent-chats", + "type": "java.lang.Integer", + "description": "Maximum number of recent chat completions surfaced by the AI panel.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Ai", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:2452" + }, + { + "name": "bootui.ai.show-content-capture-banner", + "type": "java.lang.Boolean", + "description": "When true, BootUI surfaces a banner explaining that prompt/completion content is not captured by default.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Ai", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2457" + }, + { + "name": "bootui.ai.token-series-minutes", + "type": "java.lang.Integer", + "description": "Number of minutes retained in the per-minute token-usage series.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Ai", + "defaultValue": 60, + "defaultValueSource": "BootUiProperties.java:2447" + }, + { + "name": "bootui.allow-non-localhost", + "type": "java.lang.Boolean", + "description": "Allow non-loopback requests (explicit opt-out of safety).", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:53" + }, + { + "name": "bootui.allowed-hosts", + "type": "java.lang.String[]", + "description": "Additional Host header values accepted by the loopback safety filter, beyond the built-in loopback names (localhost, 127.0.0.1, ::1). Used to defend against DNS-rebinding attacks while still allowing custom local hostnames.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": [], + "defaultValueSource": "BootUiProperties.java:59" + }, + { + "name": "bootui.api-path", + "type": "java.lang.String", + "description": "Internal API base path. Defaults to {@code bootui.path + \"/api\"}. Override only when the API must be served at a different sub-path from the UI (rare).", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": "/bootui/api", + "defaultValueSource": "BootUiProperties.java:49,275" + }, + { + "name": "bootui.authentication.token", + "type": "java.lang.String", + "description": "Optional bearer token for non-loopback API access. When blank, BootUI generates one at startup.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Authentication", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:3667" + }, + { + "name": "bootui.cache.activity-capture-enabled", + "type": "java.lang.Boolean", + "description": "Whether BootUI wraps {@code CacheManager} beans to capture hit/miss/put/evict/clear accesses into the Live Activity panel's {@code CACHE} event type. Cache keys are always hashed, never recorded raw, regardless of value exposure. When {@code false}, no {@code CacheManager} is wrapped and cache accesses never appear in Live Activity.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Cache", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:803" + }, + { + "name": "bootui.cache.activity-max-events", + "type": "java.lang.Integer", + "description": "Maximum number of recent cache accesses retained in the in-memory ring buffer feeding Live Activity.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Cache", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:809" + }, + { + "name": "bootui.cache.clear-enabled", + "type": "java.lang.Boolean", + "description": "Allow BootUI to clear application caches from the Cache panel.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Cache", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:795" + }, + { + "name": "bootui.claude-code.allow-raw-reveal", + "type": "java.lang.Boolean", + "description": "Allow the opt-in raw-event reveal endpoint. When {@code false}, the endpoint returns HTTP 404 even on the loopback interface.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ClaudeCode", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2540" + }, + { + "name": "bootui.claude-code.enabled", + "type": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mode", + "description": "Enable the Copilot panel. AUTO activates only when the session-state directory exists.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ClaudeCode", + "defaultValue": "auto", + "defaultValueSource": "BootUiProperties.java:2497 (Mode.AUTO)" + }, + { + "name": "bootui.claude-code.max-events-per-session", + "type": "java.lang.Integer", + "description": "Maximum number of activity events retained per session in memory.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ClaudeCode", + "defaultValue": 2000, + "defaultValueSource": "BootUiProperties.java:2518" + }, + { + "name": "bootui.claude-code.max-parsed-sessions", + "type": "java.lang.Integer", + "description": "Maximum number of recent session files parsed and retained in memory.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ClaudeCode", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:2528" + }, + { + "name": "bootui.claude-code.max-sessions", + "type": "java.lang.Integer", + "description": "Maximum number of recent sessions returned to the session explorer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ClaudeCode", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:2523" + }, + { + "name": "bootui.claude-code.session-state-dir", + "type": "java.lang.String", + "description": "Override the directory scanned for Copilot CLI session-state directories. When {@code null}, defaults to {@code ${user.home}/.copilot/session-state}.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ClaudeCode", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:2513" + }, + { + "name": "bootui.claude-code.stream-debounce", + "type": "java.time.Duration", + "description": "Debounce window applied to file-system events before refreshing parsed sessions and notifying SSE subscribers.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$ClaudeCode", + "defaultValue": "400ms", + "defaultValueSource": "BootUiProperties.java:2534" + }, + { + "name": "bootui.cli.enabled", + "type": "java.lang.Boolean", + "description": "Whether {@code /bootui/api/cli} answers. {@code true} by default; {@code false} returns 503.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Cli", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2773" + }, + { + "name": "bootui.cli.execution-timeout", + "type": "java.time.Duration", + "description": "Maximum wall-clock duration of one command-line tool invocation; default 30 seconds (504 on expiry).", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Cli", + "defaultValue": "30s", + "defaultValueSource": "BootUiProperties.java:2786 (McpProtocol.DEFAULT_EXECUTION_TIMEOUT_MILLIS)" + }, + { + "name": "bootui.cli.instances-dir", + "type": "java.lang.String", + "description": "Directory where local instance discovery lease files ({@code .json}) are written. Defaults to {@code ~/.bootui/instances} (or {@code $BOOTUI_HOME/instances}).", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Cli", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:2792" + }, + { + "name": "bootui.cli.max-concurrent-calls", + "type": "java.lang.Integer", + "description": "Maximum number of concurrent command-line tool invocations; default 20. Excess calls get a 429.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Cli", + "defaultValue": 20, + "defaultValueSource": "BootUiProperties.java:2783 (McpProtocol.DEFAULT_MAX_CONCURRENT_CALLS)" + }, + { + "name": "bootui.cli.max-results", + "type": "java.lang.Integer", + "description": "Maximum number of items returned by paginated read tools in a single call. Mirrors {@code bootui.mcp.max-results} but is tracked separately so command-line traffic can be tuned without changing what agents see.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Cli", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:2780" + }, + { + "name": "bootui.code-inventory.max-classes", + "type": "java.lang.Integer", + "description": "Most application classes the scan of the application's class files hashes; past it the scan is partial.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$CodeInventory", + "defaultValue": 20000, + "defaultValueSource": "BootUiProperties.java:2863 (CodeInventorySettings.DEFAULT_MAX_CLASSES)" + }, + { + "name": "bootui.code-inventory.scan-timeout", + "type": "java.time.Duration", + "description": "Deadline of that scan, which runs off the request path once per run; past it the scan is partial.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$CodeInventory", + "defaultValue": "30s", + "defaultValueSource": "BootUiProperties.java:2866 (CodeInventorySettings.DEFAULT_SCAN_TIMEOUT)" + }, + { + "name": "bootui.copilot.allow-raw-reveal", + "type": "java.lang.Boolean", + "description": "Allow the opt-in raw-event reveal endpoint. When {@code false}, the endpoint returns HTTP 404 even on the loopback interface.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Copilot", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2540" + }, + { + "name": "bootui.copilot.enabled", + "type": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mode", + "description": "Enable the Copilot panel. AUTO activates only when the session-state directory exists.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Copilot", + "defaultValue": "auto", + "defaultValueSource": "BootUiProperties.java:2497 (Mode.AUTO)" + }, + { + "name": "bootui.copilot.max-events-per-session", + "type": "java.lang.Integer", + "description": "Maximum number of activity events retained per session in memory.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Copilot", + "defaultValue": 2000, + "defaultValueSource": "BootUiProperties.java:2518" + }, + { + "name": "bootui.copilot.max-parsed-sessions", + "type": "java.lang.Integer", + "description": "Maximum number of recent session files parsed and retained in memory.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Copilot", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:2528" + }, + { + "name": "bootui.copilot.max-sessions", + "type": "java.lang.Integer", + "description": "Maximum number of recent sessions returned to the session explorer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Copilot", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:2523" + }, + { + "name": "bootui.copilot.session-state-dir", + "type": "java.lang.String", + "description": "Override the directory scanned for Copilot CLI session-state directories. When {@code null}, defaults to {@code ${user.home}/.copilot/session-state}.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Copilot", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:2513" + }, + { + "name": "bootui.copilot.stream-debounce", + "type": "java.time.Duration", + "description": "Debounce window applied to file-system events before refreshing parsed sessions and notifying SSE subscribers.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Copilot", + "defaultValue": "400ms", + "defaultValueSource": "BootUiProperties.java:2534" + }, + { + "name": "bootui.dev-services.log-tail-bytes", + "type": "java.lang.Integer", + "description": "Maximum bytes returned by a single Dev Services log request.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$DevServices", + "defaultValue": 65536, + "defaultValueSource": "BootUiProperties.java:771 (64 * 1024)" + }, + { + "name": "bootui.dev-services.restart-enabled", + "type": "java.lang.Boolean", + "description": "Allow BootUI to restart Testcontainers-backed services.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$DevServices", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:766" + }, + { + "name": "bootui.disabled-profiles", + "type": "java.lang.String[]", + "description": "Profiles that force BootUI off, even when enabled by other rules.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": [ + "prod", + "production" + ], + "defaultValueSource": "BootUiProperties.java:107 (BootUiDefaults.DISABLED_PROFILES)" + }, + { + "name": "bootui.email.dev-trap", + "type": "java.lang.Boolean", + "description": "When {@code true}, captured messages are recorded but never actually handed to the real mail transport (like MailDev/GreenMail's dev-trap behavior). Off by default, so BootUI never silently swallows application mail.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Email", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:3371" + }, + { + "name": "bootui.email.mask-content", + "type": "java.lang.Boolean", + "description": "When {@code true}, captured recipients/subject/body are masked unless {@code bootui.expose- values=FULL}, matching BootUI's config/secret masking. Off by default: email content is ordinary application data (not credentials), so it is revealed by default \u2014 like Laravel Telescope's Mail watcher and like BootUI's own HTTP Exchanges/SQL Trace panels \u2014 decoupled from the global secret-exposure flag so reading a test email never requires exposing unrelated production secrets (or vice versa).", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Email", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:3381" + }, + { + "name": "bootui.email.max-body-length", + "type": "java.lang.Integer", + "description": "Maximum number of characters retained per captured text/HTML body; a longer body is truncated at capture time. Bounds memory for a single oversized message the same way {@link #maxEntries} bounds the number of retained messages (attachment content is never captured in the first place, so only bodies need this cap).", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Email", + "defaultValue": 200000, + "defaultValueSource": "BootUiProperties.java:3389" + }, + { + "name": "bootui.email.max-entries", + "type": "java.lang.Integer", + "description": "Maximum number of captured messages retained; the oldest is evicted once full.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Email", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:3364" + }, + { + "name": "bootui.enabled", + "type": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mode", + "description": "Enable BootUI. AUTO activates only in dev/local contexts.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": "auto", + "defaultValueSource": "BootUiProperties.java:38 (Mode.AUTO)" + }, + { + "name": "bootui.enabled-profiles", + "type": "java.lang.String[]", + "description": "Profiles that trigger auto-activation.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": [ + "dev", + "local" + ], + "defaultValueSource": "BootUiProperties.java:103 (BootUiDefaults.ENABLED_PROFILES)" + }, + { + "name": "bootui.exceptions.max-groups", + "type": "java.lang.Integer", + "description": "Maximum number of distinct exception groups retained by the Exceptions panel. When the limit is reached the group with the oldest most-recent occurrence is evicted.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Exceptions", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:858" + }, + { + "name": "bootui.exceptions.max-occurrences-per-group", + "type": "java.lang.Integer", + "description": "Maximum number of recent occurrences retained per exception group.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Exceptions", + "defaultValue": 25, + "defaultValueSource": "BootUiProperties.java:863" + }, + { + "name": "bootui.exceptions.max-stack-frames", + "type": "java.lang.Integer", + "description": "Maximum number of stack-trace frames retained per exception (and per cause).", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Exceptions", + "defaultValue": 50, + "defaultValueSource": "BootUiProperties.java:868" + }, + { + "name": "bootui.expose-values", + "type": "io.github.jdubois.bootui.core.ValueExposure", + "description": "How configuration values are exposed in the Config panel.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": "masked", + "defaultValueSource": "BootUiProperties.java:91 (ValueExposure.MASKED)" + }, + { + "name": "bootui.fault-tolerance.enabled", + "type": "java.lang.Boolean", + "description": "Whether BootUI subscribes to the fault tolerance libraries' own event publishers and listeners. When {@code false}, declared policies are still listed but no outcome is captured and no {@code FAULT_TOLERANCE} entry reaches Live Activity.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$FaultTolerance", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1996" + }, + { + "name": "bootui.fault-tolerance.max-events", + "type": "java.lang.Integer", + "description": "Maximum number of captured fault tolerance outcomes retained in the in-memory ring buffer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$FaultTolerance", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1999" + }, + { + "name": "bootui.force-web", + "type": "java.lang.Boolean", + "description": "While BootUI is active, force a non-web (command-line) application into a servlet web application so the BootUI console can be served. Has no effect on applications that are already servlet web applications or that are explicitly configured as reactive. Set to false to leave the host application's web-application type untouched.", + "defaultValue": true + }, + { + "name": "bootui.free-on-idle.enabled", + "type": "java.lang.Boolean", + "description": "Whether BootUI releases its live in-memory diagnostic buffers (captured SQL, ingested traces, and the request/security correlation windows) after the console has been idle for {@code timeout}, and stops recording into them until the console is used again. The Exceptions and Log Tail buffers are kept so a recent error is still visible when you open the console. Has no effect in production, where BootUI is inactive.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$FreeOnIdle", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:3687" + }, + { + "name": "bootui.free-on-idle.timeout", + "type": "java.time.Duration", + "description": "How long the console may go without any request before its live buffers are released. The timer resets on every BootUI request (loading the UI, API polling, or opening a stream), so an open console never reclaims; only a genuinely unused one does. Clamped to a minimum of one second.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$FreeOnIdle", + "defaultValue": "5m", + "defaultValueSource": "BootUiProperties.java:3695" + }, + { + "name": "bootui.github.allowed-api-hosts", + "type": "java.lang.String[]", + "description": "Additional allowed GitHub API hosts. GitHub.com is allowed by default.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$GitHub", + "defaultValue": [ + "api.github.com" + ], + "defaultValueSource": "BootUiProperties.java:1107" + }, + { + "name": "bootui.github.api-enabled", + "type": "java.lang.Boolean", + "description": "Allow the GitHub panel refresh action to call GitHub APIs.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$GitHub", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1064" + }, + { + "name": "bootui.github.max-api-calls", + "type": "java.lang.Integer", + "description": "Hard maximum GitHub API calls per refresh. Extra alert pages preserve capacity for pending baseline sections; an incomplete traversal keeps its total unavailable.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$GitHub", + "defaultValue": 17, + "defaultValueSource": "BootUiProperties.java:1102" + }, + { + "name": "bootui.github.max-issues", + "type": "java.lang.Integer", + "description": "Maximum issues returned in one dashboard refresh.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$GitHub", + "defaultValue": 25, + "defaultValueSource": "BootUiProperties.java:1079" + }, + { + "name": "bootui.github.max-pull-requests", + "type": "java.lang.Integer", + "description": "Maximum pull requests returned in one dashboard refresh.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$GitHub", + "defaultValue": 10, + "defaultValueSource": "BootUiProperties.java:1074" + }, + { + "name": "bootui.github.max-security-alerts", + "type": "java.lang.Integer", + "description": "Maximum Dependabot alert details retained in one dashboard refresh. Totals require complete bounded pagination and are non-atomic observations. Code scanning and secret scanning remain count-only and never inline alert details.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$GitHub", + "defaultValue": 50, + "defaultValueSource": "BootUiProperties.java:1086" + }, + { + "name": "bootui.github.max-workflow-runs", + "type": "java.lang.Integer", + "description": "Maximum workflow runs returned in one dashboard refresh.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$GitHub", + "defaultValue": 20, + "defaultValueSource": "BootUiProperties.java:1091" + }, + { + "name": "bootui.github.quota-safety-threshold", + "type": "java.lang.Integer", + "description": "Safety threshold below which optional GitHub calls are skipped.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$GitHub", + "defaultValue": 10, + "defaultValueSource": "BootUiProperties.java:1096" + }, + { + "name": "bootui.github.request-timeout", + "type": "java.time.Duration", + "description": "Timeout applied to each GitHub API request and local credential lookup.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$GitHub", + "defaultValue": "5s", + "defaultValueSource": "BootUiProperties.java:1069" + }, + { + "name": "bootui.graalvm.max-repository-lookups", + "type": "java.lang.Integer", + "description": "Maximum number of distinct dependency coordinates looked up against the reachability metadata repository in a single scan.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Graalvm", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:1032" + }, + { + "name": "bootui.graalvm.repository-lookup-enabled", + "type": "java.lang.Boolean", + "description": "Allow the GraalVM dependency survey to look up Oracle's GraalVM reachability metadata repository for per-version coverage of classpath dependencies. The lookup is the panel's only outbound network call and is performed only during a user-initiated dependency scan.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Graalvm", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1021" + }, + { + "name": "bootui.graalvm.repository-lookup-timeout", + "type": "java.time.Duration", + "description": "Timeout applied to each reachability metadata repository request.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Graalvm", + "defaultValue": "2s", + "defaultValueSource": "BootUiProperties.java:1026" + }, + { + "name": "bootui.heap-dump.allow-raw-download", + "type": "java.lang.Boolean", + "description": "Allow downloading the raw {@code .hprof} file over HTTP. Disabled by default because the raw dump contains unmasked secrets.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HeapDump", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:2240" + }, + { + "name": "bootui.heap-dump.capture-enabled", + "type": "java.lang.Boolean", + "description": "Allow on-demand heap dump capture. When {@code false}, the panel still exposes the live class histogram analysis but the capture endpoint is rejected.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HeapDump", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2234" + }, + { + "name": "bootui.heap-dump.max-classes", + "type": "java.lang.Integer", + "description": "Maximum number of classes retained in memory after a histogram analysis, ordered by retained bytes. Capping this value prevents very large heaps from exhausting memory. Must be ≥ {@code top-classes}.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HeapDump", + "defaultValue": 1000, + "defaultValueSource": "BootUiProperties.java:2257" + }, + { + "name": "bootui.heap-dump.max-dumps", + "type": "java.lang.Integer", + "description": "Maximum number of heap dump files retained on disk. Oldest dumps are deleted first.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HeapDump", + "defaultValue": 5, + "defaultValueSource": "BootUiProperties.java:2250" + }, + { + "name": "bootui.heap-dump.output-dir", + "type": "java.lang.String", + "description": "Directory where captured heap dumps are written.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HeapDump", + "defaultValue": ".bootui/heap-dumps", + "defaultValueSource": "BootUiProperties.java:2245" + }, + { + "name": "bootui.heap-dump.top-classes", + "type": "java.lang.Integer", + "description": "Maximum number of classes returned in the class histogram, ordered by retained bytes.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HeapDump", + "defaultValue": 25, + "defaultValueSource": "BootUiProperties.java:2262" + }, + { + "name": "bootui.http-exchanges.expose-request-id-header", + "type": "java.lang.Boolean", + "description": "Emit the {@code X-BootUI-Request-Id} response header on loopback and trusted-peer application responses while the HTTP Exchanges panel is enabled, so browser DevTools and automated browser agents can open the request's profile directly by id.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HttpExchanges", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1202" + }, + { + "name": "bootui.http-exchanges.max-exchanges", + "type": "java.lang.Integer", + "description": "Maximum number of HTTP exchanges retained in the in-memory repository.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HttpExchanges", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1187" + }, + { + "name": "bootui.http-exchanges.reserved-share-percent", + "type": "java.lang.Integer", + "description": "Percentage of the retained exchanges reserved for the most recent 5xx and slow exchanges (at or above {@code bootui.activity.request-slow-threshold-ms}), so routine traffic is evicted first. Taken out of {@code max-exchanges}, never added to it. Set to {@code 0} to evict strictly oldest first. Applies only when BootUI owns the repository.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HttpExchanges", + "defaultValue": 25, + "defaultValueSource": "BootUiProperties.java:1195" + }, + { + "name": "bootui.http-sessions.max-sessions", + "type": "java.lang.Integer", + "description": "Maximum number of active HTTP sessions returned by the HTTP Sessions panel.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$HttpSessions", + "defaultValue": 50, + "defaultValueSource": "BootUiProperties.java:2090" + }, + { + "name": "bootui.jms.capture-message-id", + "type": "java.lang.Boolean", + "description": "Whether a provider-assigned JMS message ID is retained as a truncated SHA-256 hash. The raw message ID is never stored.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Jms", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1850" + }, + { + "name": "bootui.jms.enabled", + "type": "java.lang.Boolean", + "description": "Whether BootUI captures {@link org.springframework.jms.core.JmsTemplate} sends and {@code @JmsListener} deliveries into the Live Activity stream as {@code MESSAGING} entries. When {@code false}, no JMS bean is post-processed. Only takes effect when {@code spring-jms} is on the classpath.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Jms", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1844" + }, + { + "name": "bootui.jms.max-entries", + "type": "java.lang.Integer", + "description": "Maximum number of JMS messages retained in the in-memory ring buffer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Jms", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1853" + }, + { + "name": "bootui.jms.max-message-id-length", + "type": "java.lang.Integer", + "description": "Maximum retained length of the JMS message ID's hex-encoded SHA-256 hash.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Jms", + "defaultValue": 16, + "defaultValueSource": "BootUiProperties.java:1856" + }, + { + "name": "bootui.kafka.capture-key", + "type": "java.lang.Boolean", + "description": "Whether a SHA-256 hash of the message key is retained alongside each captured entry (truncated to {@link #maxKeyLength}). The raw key is never retained. On by default since a Kafka key is typically a correlation/partitioning id rather than a secret, but this lets an application disable even the hash when its keys carry sensitive data. The message value/payload is never captured at all.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Kafka", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1788" + }, + { + "name": "bootui.kafka.enabled", + "type": "java.lang.Boolean", + "description": "Whether BootUI captures {@code KafkaTemplate} sends and {@code @KafkaListener} deliveries into the Live Activity stream as {@code MESSAGING} entries. When {@code false}, no {@code KafkaTemplate}/listener container factory bean is post-processed. Only takes effect when {@code spring-kafka} is on the classpath.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Kafka", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1779" + }, + { + "name": "bootui.kafka.max-entries", + "type": "java.lang.Integer", + "description": "Maximum number of captured messages retained in the in-memory ring buffer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Kafka", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1793" + }, + { + "name": "bootui.kafka.max-key-length", + "type": "java.lang.Integer", + "description": "Maximum retained length of the message key's hex-encoded SHA-256 hash.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Kafka", + "defaultValue": 16, + "defaultValueSource": "BootUiProperties.java:1798" + }, + { + "name": "bootui.log-tail.max-bytes", + "type": "java.lang.Long", + "description": "Approximate retained-byte budget for the in-memory Log Tail ring buffer, bounding it alongside its fixed line cap (oldest evicted first when either bound trips). {@code 0} (the default) means unbounded \u2014 preserving the Spring adapter's historical behaviour \u2014 and matches the Quarkus adapter's {@code bootui.log-tail.max-bytes} default, so the same key sizes the buffer identically on both frameworks.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$LogTail", + "defaultValue": 0, + "defaultValueSource": "BootUiProperties.java:1238" + }, + { + "name": "bootui.mask-secrets", + "type": "java.lang.Boolean", + "description": "Mask secret-like configuration values.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:87" + }, + { + "name": "bootui.mcp.enabled", + "type": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mode", + "description": "Initial state of the local MCP server. {@link Mode#OFF} by default (fail closed); {@link Mode#ON} starts the server enabled. {@link Mode#AUTO} is treated the same as {@link Mode#OFF} so the server is never silently exposed. The MCP Server panel can override this at runtime.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mcp", + "defaultValue": "off", + "defaultValueSource": "BootUiProperties.java:2687 (Mode.OFF)" + }, + { + "name": "bootui.mcp.execution-timeout", + "type": "java.time.Duration", + "description": "Maximum wall-clock duration of one MCP tool invocation; default 30 seconds.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mcp", + "defaultValue": "30s", + "defaultValueSource": "BootUiProperties.java:2705" + }, + { + "name": "bootui.mcp.max-concurrent-calls", + "type": "java.lang.Integer", + "description": "Maximum number of concurrent MCP tool invocations; default 20. Excess requests get a JSON-RPC error immediately.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mcp", + "defaultValue": 20, + "defaultValueSource": "BootUiProperties.java:2702" + }, + { + "name": "bootui.mcp.max-payload-bytes", + "type": "java.lang.Integer", + "description": "Maximum request payload bytes; default 1MB. Requests exceeding this are rejected before parsing.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mcp", + "defaultValue": 1048576, + "defaultValueSource": "BootUiProperties.java:2696 (1 * 1024 * 1024)" + }, + { + "name": "bootui.mcp.max-response-bytes", + "type": "java.lang.Integer", + "description": "Maximum rendered JSON-RPC response size; default 4MB.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mcp", + "defaultValue": 4194304, + "defaultValueSource": "BootUiProperties.java:2708 (4 * 1024 * 1024)" + }, + { + "name": "bootui.mcp.max-results", + "type": "java.lang.Integer", + "description": "Maximum number of items returned by paginated read tools (config, beans, mappings, security logs, traces, HTTP exchanges) in a single call.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mcp", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:2693" + }, + { + "name": "bootui.memory.include-histogram", + "type": "java.lang.Boolean", + "description": "Default for explicit Memory scans; a REST request can override it for one scan.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Memory", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2208" + }, + { + "name": "bootui.monitoring.exclude-self", + "type": "java.lang.Boolean", + "description": "Hide BootUI's own runtime data from monitoring panels.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Monitoring", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2333" + }, + { + "name": "bootui.mysql.max-indexes", + "type": "java.lang.Integer", + "description": "Maximum index activity rows per datasource. Requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mysql", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:1331" + }, + { + "name": "bootui.mysql.max-lock-waits", + "type": "java.lang.Integer", + "description": "Maximum lock-wait observations per datasource. Requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mysql", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:1335" + }, + { + "name": "bootui.mysql.max-replication-channels", + "type": "java.lang.Integer", + "description": "Maximum local replication channels per datasource. Requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mysql", + "defaultValue": 10, + "defaultValueSource": "BootUiProperties.java:1337" + }, + { + "name": "bootui.mysql.max-sessions", + "type": "java.lang.Integer", + "description": "Maximum session rows per datasource; positive and below 2147483647. Requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mysql", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:1327" + }, + { + "name": "bootui.mysql.max-settings", + "type": "java.lang.Integer", + "description": "Maximum displayed settings from the fixed allow-list. Requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mysql", + "defaultValue": 40, + "defaultValueSource": "BootUiProperties.java:1339" + }, + { + "name": "bootui.mysql.max-statements", + "type": "java.lang.Integer", + "description": "Maximum normalized statements ranked by total execution time. Requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mysql", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:1329" + }, + { + "name": "bootui.mysql.max-tables", + "type": "java.lang.Integer", + "description": "Maximum table rows per datasource. Requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mysql", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1333" + }, + { + "name": "bootui.overrides-file", + "type": "java.lang.String", + "description": "Where local runtime overrides are persisted.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": ".bootui/application-bootui.properties", + "defaultValueSource": "BootUiProperties.java:111" + }, + { + "name": "bootui.panels", + "type": "java.util.Map", + "description": "Per-panel visibility and action settings keyed by panel id.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:115" + }, + { + "name": "bootui.path", + "type": "java.lang.String", + "description": "UI base path. Must be an absolute path (starting with {@code /}), not {@code /}, and must not contain path-traversal, query, or fragment components. Trailing slashes are stripped. The API path is automatically derived as {@code path + \"/api\"} unless {@code bootui.api-path} is also set.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": "/bootui", + "defaultValueSource": "BootUiProperties.java:44" + }, + { + "name": "bootui.postgresql.max-indexes", + "type": "java.lang.Integer", + "description": "Maximum index rows per datasource. Must be between 1 and 2147483646; requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Postgresql", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:1256" + }, + { + "name": "bootui.postgresql.max-replicas", + "type": "java.lang.Integer", + "description": "Maximum replica rows per datasource. Must be between 1 and 2147483646; requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Postgresql", + "defaultValue": 10, + "defaultValueSource": "BootUiProperties.java:1262" + }, + { + "name": "bootui.postgresql.max-sessions", + "type": "java.lang.Integer", + "description": "Maximum session rows per datasource. Must be between 1 and 2147483646; requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Postgresql", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:1252" + }, + { + "name": "bootui.postgresql.max-settings", + "type": "java.lang.Integer", + "description": "Maximum curated setting rows per datasource. Must be between 1 and 2147483646; requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Postgresql", + "defaultValue": 40, + "defaultValueSource": "BootUiProperties.java:1264" + }, + { + "name": "bootui.postgresql.max-statements", + "type": "java.lang.Integer", + "description": "Maximum statements ranked by total execution time. Must be between 1 and 2147483646; requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Postgresql", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:1254" + }, + { + "name": "bootui.postgresql.max-tables", + "type": "java.lang.Integer", + "description": "Maximum table rows per datasource. Must be between 1 and 2147483646; requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Postgresql", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1258" + }, + { + "name": "bootui.postgresql.max-vacuum-tables", + "type": "java.lang.Integer", + "description": "Maximum autovacuum table rows per datasource. Must be between 1 and 2147483646; requires restart.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Postgresql", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1260" + }, + { + "name": "bootui.rabbitmq.capture-correlation-id", + "type": "java.lang.Boolean", + "description": "Whether the AMQP correlation ID is retained (as a short SHA-256 hash, truncated to {@link #maxCorrelationIdLength}) alongside each captured entry. Off by default since correlation IDs in AMQP messages can carry business-sensitive identifiers (order IDs, user IDs, etc.). When enabled, only the hash is stored \u2014 never the raw value.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Rabbitmq", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:2039" + }, + { + "name": "bootui.rabbitmq.enabled", + "type": "java.lang.Boolean", + "description": "Whether BootUI captures {@code RabbitTemplate} publishes and {@code @RabbitListener} deliveries into the Live Activity stream as {@code MESSAGING} entries. When {@code false}, no {@code RabbitTemplate}/listener container factory bean is post-processed. Only takes effect when {@code spring-boot-starter-amqp} (and thus {@code spring-rabbit}) is on the classpath.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Rabbitmq", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2031" + }, + { + "name": "bootui.rabbitmq.max-correlation-id-length", + "type": "java.lang.Integer", + "description": "Maximum retained length of a captured correlation ID hash; longer hashes are truncated.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Rabbitmq", + "defaultValue": 16, + "defaultValueSource": "BootUiProperties.java:2050" + }, + { + "name": "bootui.rabbitmq.max-entries", + "type": "java.lang.Integer", + "description": "Maximum number of captured messages retained in the in-memory ring buffer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Rabbitmq", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:2044" + }, + { + "name": "bootui.read-only", + "type": "java.lang.Boolean", + "description": "Disable every browser-triggered action while keeping read-only panel data visible.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:99" + }, + { + "name": "bootui.resources.jfr.max-duration", + "type": "java.time.Duration", + "description": "How long a session records once the developer starts it. Between 1 s and 10 min.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Resources$Jfr", + "defaultValue": "30s", + "defaultValueSource": "BootUiProperties.java:3240 (ResourceSettings.DEFAULT_JFR_MAX_DURATION)" + }, + { + "name": "bootui.resources.max-threads", + "type": "java.lang.Integer", + "description": "The most platform threads one sweep reads; the CPU time of the others counts as the JVM's own work.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Resources", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:3207 (ResourceSettings.DEFAULT_MAX_THREADS)" + }, + { + "name": "bootui.resources.sample-interval", + "type": "java.time.Duration", + "description": "How often the sampler sweeps the JVM's threads, CPU time, and heap. At least 100 ms.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Resources", + "defaultValue": "1s", + "defaultValueSource": "BootUiProperties.java:3204 (ResourceSettings.DEFAULT_SAMPLE_INTERVAL)" + }, + { + "name": "bootui.rest-client-trace.capture-call-site", + "type": "java.lang.Boolean", + "description": "Whether each captured call records the first application stack frame that triggered it (e.g. {@code OrderClient.findAll(OrderClient.java:42)}), shown per call and aggregated per group so a flagged chatty group shows exactly where in the code to go fix it. On by default: unlike headers, a call site names only the application's own code (class/method/line), never a value, so it carries no sensitive-data risk \u2014 this toggle is purely about the small per-call stack-walk cost, not privacy.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1652" + }, + { + "name": "bootui.rest-client-trace.capture-headers", + "type": "java.lang.Boolean", + "description": "Whether request headers are captured alongside each call. Off by default because header values may contain sensitive data; when enabled, values are captured as-is (subject to truncation) and then masked by header name (e.g. {@code Authorization}) at read/report time according to the live exposure policy.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:1642" + }, + { + "name": "bootui.rest-client-trace.chatty-call-threshold", + "type": "java.lang.Integer", + "description": "Number of calls to the same method/host/path (with numeric and UUID path segments normalized) within the buffer before the group is flagged as a likely chatty (repeated-call) access pattern. Minimum {@code 2}.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": 5, + "defaultValueSource": "BootUiProperties.java:1688" + }, + { + "name": "bootui.rest-client-trace.enabled", + "type": "java.lang.Boolean", + "description": "Whether BootUI instruments Spring's {@code RestClient}, {@code RestTemplate}, and {@code WebClient} beans to capture outbound HTTP calls. When {@code false}, no customizer is registered.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1627" + }, + { + "name": "bootui.rest-client-trace.max-entries", + "type": "java.lang.Integer", + "description": "Maximum number of outbound calls retained in the in-memory ring buffer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1657" + }, + { + "name": "bootui.rest-client-trace.max-header-value-length", + "type": "java.lang.Integer", + "description": "Maximum retained length of a single captured header value.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1681" + }, + { + "name": "bootui.rest-client-trace.max-uri-length", + "type": "java.lang.Integer", + "description": "Maximum retained length of the request URI and path; longer values are truncated.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": 2000, + "defaultValueSource": "BootUiProperties.java:1676" + }, + { + "name": "bootui.rest-client-trace.recording", + "type": "java.lang.Boolean", + "description": "Whether new calls are recorded into the in-memory buffer. Recording can be paused and resumed at runtime from the panel without removing the client instrumentation; this sets the initial state.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1634" + }, + { + "name": "bootui.rest-client-trace.reserved-share-percent", + "type": "java.lang.Integer", + "description": "Percentage of the retained calls reserved for the most recent failed, error-response ({@code 4xx}/{@code 5xx}), and slow calls, so routine calls are evicted first. Taken out of {@code max-entries}, never added to it. Set to {@code 0} to evict strictly oldest first.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": 25, + "defaultValueSource": "BootUiProperties.java:1671" + }, + { + "name": "bootui.rest-client-trace.slow-call-threshold-millis", + "type": "java.lang.Long", + "description": "Calls taking at least this many milliseconds are flagged as slow. Set to {@code 0} to disable slow-call flagging. Defaults higher than SQL Trace's threshold since outbound HTTP calls are typically slower than a single SQL execution.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RestClientTrace", + "defaultValue": 1000, + "defaultValueSource": "BootUiProperties.java:1664" + }, + { + "name": "bootui.runtime-insights.ai-token-threshold", + "type": "java.lang.Long", + "description": "Tokens of one model call above which AI usage by route reports the route from that call alone, rather than from three operations.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RuntimeInsights", + "defaultValue": 8000, + "defaultValueSource": "BootUiProperties.java:2848 (AiUsageByRoute.DEFAULT_TOKEN_THRESHOLD)" + }, + { + "name": "bootui.runtime-journal.agent-evidence-max-bytes", + "type": "org.springframework.util.unit.DataSize", + "description": "Maximum memory the BootUI agent's evidence kept outside the journal may use, estimated: Code Paths' request and route trees, Code Inventory's first calls, and Side Effects' rows. Unset means about 68 MB, the sum of their fixed caps; a smaller value shrinks Code Paths' trees and Side Effects' rows in proportion, and Code Inventory's first calls, bounded by the agent's method limit, are only counted.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RuntimeJournal", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:2916" + }, + { + "name": "bootui.runtime-journal.baseline-file", + "type": "java.lang.String", + "description": "File that keeps the summary of the last run across a full JVM restart, such as {@code target/bootui-baseline.bin}: written when a run ends and read at the next start when this JVM keeps no previous run. It holds route templates, statement fingerprints, edges, counts, and histograms only. Relative to the working directory; its directory must exist. Unset writes and reads nothing.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RuntimeJournal", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:2938" + }, + { + "name": "bootui.runtime-journal.enabled", + "type": "java.lang.Boolean", + "description": "Whether the journal records runtime events.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RuntimeJournal", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2899" + }, + { + "name": "bootui.runtime-journal.max-bytes", + "type": "org.springframework.util.unit.DataSize", + "description": "Maximum memory the retained events may use, estimated per event. Unset means the smaller of 32 MB and 5 % of the maximum heap.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RuntimeJournal", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:2908" + }, + { + "name": "bootui.runtime-journal.max-events", + "type": "java.lang.Integer", + "description": "Maximum number of events retained as evidence. Aggregates count every event, retained or not.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RuntimeJournal", + "defaultValue": 50000, + "defaultValueSource": "BootUiProperties.java:2902 (RuntimeJournalSettings.DEFAULT_MAX_EVENTS)" + }, + { + "name": "bootui.runtime-journal.queue-capacity", + "type": "java.lang.Integer", + "description": "Maximum number of events waiting to be recorded. The last 10 % admits only failed or slow events; beyond it, events are dropped and counted, and the application thread never waits.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RuntimeJournal", + "defaultValue": 10000, + "defaultValueSource": "BootUiProperties.java:2922 (RuntimeJournalSettings.DEFAULT_QUEUE_CAPACITY)" + }, + { + "name": "bootui.runtime-journal.sources", + "type": "java.util.List", + "description": "Sources to record: {@code http}, {@code sql}, {@code transaction}, {@code connection}, {@code exception}, {@code security}, {@code authorization}, {@code rest-client}, {@code cache}, {@code messaging}, {@code scheduled}, {@code log}, {@code mail}, {@code fault-tolerance}, {@code ai}, {@code lifecycle}, {@code gc}, and {@code resources}. Unset means every source; an unknown name fails startup.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$RuntimeJournal", + "defaultValue": null, + "defaultValueSource": "BootUiProperties.java:2930" + }, + { + "name": "bootui.security-logs.max-logs", + "type": "java.lang.Integer", + "description": "Maximum number of recent audit events retained in a single Security Logs response.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SecurityLogs", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:841" + }, + { + "name": "bootui.show-banner", + "type": "java.lang.Boolean", + "description": "Print the BootUI URL on application startup.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:95" + }, + { + "name": "bootui.sql-trace.capture-call-site", + "type": "java.lang.Boolean", + "description": "Whether each captured statement records the first application stack frame that triggered it (e.g. {@code OrderRepository.findByCustomer(OrderRepository.java:42)}), shown per execution and aggregated per group so a flagged N+1 group shows exactly where in the code to go fix it. On by default: unlike bound parameters, a call site names only the application's own code (class/method/line), never a value, so it carries no sensitive-data risk \u2014 this toggle is purely about the small per-statement stack-walk cost, not privacy.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1429" + }, + { + "name": "bootui.sql-trace.capture-parameters", + "type": "java.lang.Boolean", + "description": "Whether bound statement parameters are captured alongside the SQL text. Off by default because parameter values may contain sensitive data; metadata-only value exposure additionally suppresses parameters even when this is enabled.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:1418" + }, + { + "name": "bootui.sql-trace.enabled", + "type": "java.lang.Boolean", + "description": "Whether BootUI wraps {@code DataSource} beans with its hand-written JDBC tracing proxy to capture executed SQL. When {@code false}, no data source is wrapped.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1404" + }, + { + "name": "bootui.sql-trace.max-entries", + "type": "java.lang.Integer", + "description": "Maximum number of executed statements retained in the in-memory ring buffer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1434" + }, + { + "name": "bootui.sql-trace.max-parameter-length", + "type": "java.lang.Integer", + "description": "Maximum retained length of a single captured parameter value.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1457" + }, + { + "name": "bootui.sql-trace.max-sql-length", + "type": "java.lang.Integer", + "description": "Maximum retained SQL text length; longer statements are truncated.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": 2000, + "defaultValueSource": "BootUiProperties.java:1452" + }, + { + "name": "bootui.sql-trace.n-plus-one-threshold", + "type": "java.lang.Integer", + "description": "Number of times an identical {@code SELECT} must repeat within the buffer before it is flagged as a likely N+1 access pattern. Minimum {@code 2}.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": 5, + "defaultValueSource": "BootUiProperties.java:1463" + }, + { + "name": "bootui.sql-trace.recording", + "type": "java.lang.Boolean", + "description": "Whether new executions are recorded into the in-memory buffer. Recording can be paused and resumed at runtime from the panel without unwrapping {@code DataSource} beans; this sets the initial state.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1411" + }, + { + "name": "bootui.sql-trace.reserved-share-percent", + "type": "java.lang.Integer", + "description": "Percentage of the retained executions reserved for the most recent failed and slow executions, so routine executions are evicted first. Taken out of {@code max-entries}, never added to it. Set to {@code 0} to evict strictly oldest first.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": 25, + "defaultValueSource": "BootUiProperties.java:1447" + }, + { + "name": "bootui.sql-trace.slow-query-threshold-millis", + "type": "java.lang.Long", + "description": "Executions taking at least this many milliseconds are flagged as slow. Set to {@code 0} to disable slow-query flagging.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$SqlTrace", + "defaultValue": 100, + "defaultValueSource": "BootUiProperties.java:1440" + }, + { + "name": "bootui.startup.capacity", + "type": "java.lang.Integer", + "description": "Maximum startup steps retained by BootUI's auto-installed startup buffer. Values less than or equal to zero disable the buffer.", + "defaultValue": 4096 + }, + { + "name": "bootui.startup.enabled", + "type": "java.lang.Boolean", + "description": "Install a BufferingApplicationStartup automatically while BootUI is active so the Startup Timeline panel has data.", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:38 (Mode.AUTO)" + }, + { + "name": "bootui.telemetry.enabled", + "type": "java.lang.Boolean", + "description": "Capture local trace spans and accept OTLP/HTTP trace payloads at the BootUI OTLP endpoint.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Telemetry", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2350" + }, + { + "name": "bootui.telemetry.enrich", + "type": "java.lang.Boolean", + "description": "Stamp BootUI {@code bootui.*} enrichment attributes on request spans (service identity, SQL volume / N+1 suspicion, exception presence) so a cross-service trace waterfall carries BootUI depth. On by default when telemetry is enabled; set to {@code false} to leave capture on but suppress enrichment.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Telemetry", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2378" + }, + { + "name": "bootui.telemetry.exclude-self-spans", + "type": "java.lang.Boolean", + "description": "Drop spans whose route/path attribute starts with the BootUI API path.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Telemetry", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:2370" + }, + { + "name": "bootui.telemetry.max-attribute-value-bytes", + "type": "java.lang.Integer", + "description": "Maximum length of a single attribute string value before truncation.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Telemetry", + "defaultValue": 4096, + "defaultValueSource": "BootUiProperties.java:2365 (4 * 1024)" + }, + { + "name": "bootui.telemetry.max-request-bytes", + "type": "java.lang.Integer", + "description": "Maximum payload size (bytes) accepted by the OTLP receiver.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Telemetry", + "defaultValue": 8388608, + "defaultValueSource": "BootUiProperties.java:2383 (8 * 1024 * 1024)" + }, + { + "name": "bootui.telemetry.max-spans-per-trace", + "type": "java.lang.Integer", + "description": "Maximum number of spans retained per trace.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Telemetry", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:2360" + }, + { + "name": "bootui.telemetry.max-traces", + "type": "java.lang.Integer", + "description": "Maximum number of distinct traces retained in memory. Oldest are evicted.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Telemetry", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:2355" + }, + { + "name": "bootui.threads.capture-deadline-millis", + "type": "java.lang.Long", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 2000, + "defaultValueSource": "BootUiProperties.java:2106" + }, + { + "name": "bootui.threads.include-synchronizers", + "type": "java.lang.Boolean", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": false, + "defaultValueSource": "BootUiProperties.java:2107" + }, + { + "name": "bootui.threads.max-capture-bytes", + "type": "java.lang.Long", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 4194304, + "defaultValueSource": "BootUiProperties.java:2110 (4 * 1024 * 1024L)" + }, + { + "name": "bootui.threads.max-captures", + "type": "java.lang.Integer", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 6, + "defaultValueSource": "BootUiProperties.java:2108" + }, + { + "name": "bootui.threads.max-owned-locks", + "type": "java.lang.Integer", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 256, + "defaultValueSource": "BootUiProperties.java:2105" + }, + { + "name": "bootui.threads.max-retained-bytes", + "type": "java.lang.Long", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 16777216, + "defaultValueSource": "BootUiProperties.java:2109 (16 * 1024 * 1024L)" + }, + { + "name": "bootui.threads.max-stack-depth", + "type": "java.lang.Integer", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 128, + "defaultValueSource": "BootUiProperties.java:2104" + }, + { + "name": "bootui.threads.max-threads", + "type": "java.lang.Integer", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 2048, + "defaultValueSource": "BootUiProperties.java:2103" + }, + { + "name": "bootui.threads.observation-interval-millis", + "type": "java.lang.Long", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 5000, + "defaultValueSource": "BootUiProperties.java:2113" + }, + { + "name": "bootui.threads.observation-samples", + "type": "java.lang.Integer", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 3, + "defaultValueSource": "BootUiProperties.java:2112" + }, + { + "name": "bootui.threads.ttl-millis", + "type": "java.lang.Long", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Threads", + "defaultValue": 300000, + "defaultValueSource": "BootUiProperties.java:2111" + }, + { + "name": "bootui.transactions.connection-hold-threshold-millis", + "type": "java.lang.Long", + "description": "Transactions taking at least this many milliseconds are flagged as holding a pooled connection too long. Set to {@code 0} to disable connection-hold flagging.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Transactions", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:1577" + }, + { + "name": "bootui.transactions.enabled", + "type": "java.lang.Boolean", + "description": "Whether BootUI registers its transaction-execution listener against {@code PlatformTransactionManager} beans to capture transaction boundaries. When {@code false}, no listener is registered.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Transactions", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1553" + }, + { + "name": "bootui.transactions.max-entries", + "type": "java.lang.Integer", + "description": "Maximum number of completed transactions retained in the in-memory ring buffer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Transactions", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1565" + }, + { + "name": "bootui.transactions.recording", + "type": "java.lang.Boolean", + "description": "Whether new transactions are recorded into the in-memory buffer. Recording can be paused and resumed at runtime from the panel without unregistering the listener; this sets the initial state.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Transactions", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1560" + }, + { + "name": "bootui.transactions.slow-transaction-threshold-millis", + "type": "java.lang.Long", + "description": "Transactions taking at least this many milliseconds are flagged as slow. Set to {@code 0} to disable slow-transaction flagging.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Transactions", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1571" + }, + { + "name": "bootui.trust-container-gateway", + "type": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Mode", + "description": "Trust the auto-detected container default gateway as a single /32 so BootUI can be reached inside a container with a published port (host->container traffic is SNAT'd to the gateway) without a broad bootui.trusted-proxies CIDR. Defaults to OFF (fail closed); AUTO and ON are explicit opt-ins. OFF never trusts it; AUTO trusts it only when running inside a container; ON trusts a detected gateway even if container heuristics are inconclusive. Relaxes only the source-address check; the Host allow-list and cross-site write protections stay in force.", + "defaultValue": "OFF", + "defaultValueSource": "BootUiProperties.java:79 (Mode.OFF)" + }, + { + "name": "bootui.trusted-proxies", + "type": "java.lang.String[]", + "description": "Source IP ranges (CIDR notation, e.g. {@code 172.16.0.0/12}) that are trusted in addition to loopback by the safety filter. Lets local Docker-bridge callers reach BootUI without disabling the Host allow-list (DNS-rebinding defense) or the cross-site write protection (CSRF defense), unlike the all-or-nothing {@code bootui.allow-non-localhost}. Empty by default.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties", + "defaultValue": [], + "defaultValueSource": "BootUiProperties.java:66" + }, + { + "name": "bootui.vulnerabilities.epss-base-uri", + "type": "java.lang.String", + "description": "Base URI of the FIRST.org EPSS API queried during a scan. Configurable mainly so tests can point at a local stub; defaults to the public EPSS endpoint, and matches the Quarkus adapter's {@code bootui.vulnerabilities.epss-base-uri} key.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Vulnerabilities", + "defaultValue": "https://api.first.org" + }, + { + "name": "bootui.vulnerabilities.epss-enabled", + "type": "java.lang.Boolean", + "description": "Allow enriching CVE-aliased advisories with FIRST.org EPSS (exploit-probability) scores during a scan. Same on-demand-only network behaviour as {@code osvEnabled}: only called from the user-initiated scan action, never on page render.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Vulnerabilities", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:938" + }, + { + "name": "bootui.vulnerabilities.max-advisories", + "type": "java.lang.Integer", + "description": "Maximum number of advisory details fetched after the package query.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Vulnerabilities", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:924" + }, + { + "name": "bootui.vulnerabilities.max-packages", + "type": "java.lang.Integer", + "description": "Maximum number of dependency packages included in one OSV batch query. Packages beyond this bound are reported as {@code scan.packagesSkipped} rather than silently dropped. The default is sized to cover a typical Spring Boot application's full JAR set, which commonly exceeds 300 dependencies.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Vulnerabilities", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:919" + }, + { + "name": "bootui.vulnerabilities.osv-base-uri", + "type": "java.lang.String", + "description": "Base URI of the OSV.dev API queried during a scan. Configurable mainly so tests can point at a local stub; defaults to the public OSV endpoint, preserving the panel's existing network behaviour, and matches the Quarkus adapter's {@code bootui.vulnerabilities.osv-base-uri} key.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Vulnerabilities", + "defaultValue": "https://api.osv.dev" + }, + { + "name": "bootui.vulnerabilities.osv-enabled", + "type": "java.lang.Boolean", + "description": "Allow on-demand vulnerability scans against OSV.dev.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Vulnerabilities", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:900" + }, + { + "name": "bootui.vulnerabilities.request-timeout", + "type": "java.time.Duration", + "description": "Timeout applied to each OSV request.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Vulnerabilities", + "defaultValue": "10s", + "defaultValueSource": "BootUiProperties.java:905" + }, + { + "name": "bootui.vulnerabilities.scan-timeout", + "type": "java.time.Duration", + "description": "Whole-scan deadline budget applied across OSV batch queries, advisory-detail fetches, and EPSS enrichment; when exceeded, the scan degrades to {@code PARTIAL} while retaining advisories fetched so far.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$Vulnerabilities", + "defaultValue": "60s", + "defaultValueSource": "BootUiProperties.java:912" + }, + { + "name": "bootui.websockets.capturing", + "type": "java.lang.Boolean", + "description": "Whether activity capture starts in the recording state. Toggleable at runtime from the panel.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$WebSockets", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1907" + }, + { + "name": "bootui.websockets.enabled", + "type": "java.lang.Boolean", + "description": "Whether the WebSockets panel installs its capture bindings at all. When {@code false} no decorator or channel interceptor is contributed, and the panel reports endpoints only.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$WebSockets", + "defaultValue": true, + "defaultValueSource": "BootUiProperties.java:1904" + }, + { + "name": "bootui.websockets.max-activity-entries", + "type": "java.lang.Integer", + "description": "Maximum number of activity entries retained in the bounded in-memory buffer.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$WebSockets", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:1919" + }, + { + "name": "bootui.websockets.max-endpoints", + "type": "java.lang.Integer", + "description": "Maximum number of endpoints serialized into one report.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$WebSockets", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1910" + }, + { + "name": "bootui.websockets.max-sessions", + "type": "java.lang.Integer", + "description": "Maximum number of sessions serialized into one report.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$WebSockets", + "defaultValue": 200, + "defaultValueSource": "BootUiProperties.java:1913" + }, + { + "name": "bootui.websockets.max-subscriptions", + "type": "java.lang.Integer", + "description": "Maximum number of STOMP subscriptions serialized into one report.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$WebSockets", + "defaultValue": 500, + "defaultValueSource": "BootUiProperties.java:1916" + }, + { + "name": "bootui.websockets.max-tracked-sessions", + "type": "java.lang.Integer", + "description": "Maximum number of sessions for which per-session counters are retained.", + "sourceType": "io.github.jdubois.bootui.autoconfigure.BootUiProperties$WebSockets", + "defaultValue": 2000, + "defaultValueSource": "BootUiProperties.java:1922" + } + ], + "total": 219 +} \ No newline at end of file diff --git a/tests/fixtures/bootui/2.6.0/routes.json b/tests/fixtures/bootui/2.6.0/routes.json new file mode 100644 index 000000000..035e93ac9 --- /dev/null +++ b/tests/fixtures/bootui/2.6.0/routes.json @@ -0,0 +1,5466 @@ +{ + "reads": [ + { + "method": "GET", + "path": "/overview", + "panel": "overview", + "operationId": "read_overview", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/health", + "panel": "health", + "operationId": "read_health", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/http-sessions", + "panel": "http-sessions", + "operationId": "read_http_sessions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/metrics", + "panel": "metrics", + "operationId": "read_metrics", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/live-memory", + "panel": "live-memory", + "operationId": "read_live_memory", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/jvm-tuning", + "panel": "jvm-tuning", + "operationId": "read_jvm_tuning", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/heap-dump", + "panel": "heap-dump", + "operationId": "read_heap_dump", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/threads", + "panel": "threads", + "operationId": "read_threads", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/memory", + "panel": "memory", + "operationId": "read_memory", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/startup", + "panel": "startup", + "operationId": "read_startup", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/graalvm", + "panel": "graalvm", + "operationId": "read_graalvm", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/scheduled", + "panel": "scheduled", + "operationId": "read_scheduled", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/fault-tolerance", + "panel": "fault-tolerance", + "operationId": "read_fault_tolerance", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/config", + "panel": "config", + "operationId": "read_config", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/profile-diff", + "panel": "profile-diff", + "operationId": "read_profile_diff", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/loggers", + "panel": "loggers", + "operationId": "read_loggers", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/beans", + "panel": "beans", + "operationId": "read_beans", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/conditions", + "panel": "conditions", + "operationId": "read_conditions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/mappings/flat", + "panel": "mappings", + "operationId": "read_mappings", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/data/repositories", + "panel": "data", + "operationId": "read_data", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/flyway/migrations", + "panel": "flyway", + "operationId": "read_flyway", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/liquibase/changesets", + "panel": "liquibase", + "operationId": "read_liquibase", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/database-connection-pools/pools", + "panel": "database-connection-pools", + "operationId": "read_database_connection_pools", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/hibernate", + "panel": "hibernate", + "operationId": "read_hibernate", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/database-advisor", + "panel": "database-advisor", + "operationId": "read_database_advisor", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/postgresql", + "panel": "postgresql", + "operationId": "read_postgresql", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/mysql", + "panel": "mysql", + "operationId": "read_mysql", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/hibernate-statistics", + "panel": "hibernate-statistics", + "operationId": "read_hibernate_statistics", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/cache", + "panel": "cache", + "operationId": "read_cache", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/spring-security", + "panel": "spring-security", + "operationId": "read_spring_security", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/security", + "panel": "security", + "operationId": "read_security", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/security-logs", + "panel": "security-logs", + "operationId": "read_security_logs", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/pentesting", + "panel": "pentesting", + "operationId": "read_pentesting", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/ai/overview", + "panel": "ai", + "operationId": "read_ai", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/traces", + "panel": "traces", + "operationId": "read_traces", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/log-tail/recent", + "panel": "log-tail", + "operationId": "read_log_tail", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/exceptions", + "panel": "exceptions", + "operationId": "read_exceptions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/http-exchanges", + "panel": "http-exchanges", + "operationId": "read_http_exchanges", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/architecture", + "panel": "architecture", + "operationId": "read_architecture", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/rest-api", + "panel": "rest-api", + "operationId": "read_rest_api", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/vulnerabilities", + "panel": "vulnerabilities", + "operationId": "read_vulnerabilities", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/dev-services", + "panel": "dev-services", + "operationId": "read_dev_services", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/devtools", + "panel": "devtools", + "operationId": "read_devtools", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/copilot/dashboard", + "panel": "copilot", + "operationId": "read_copilot", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/claude-code/dashboard", + "panel": "claude-code", + "operationId": "read_claude_code", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/github", + "panel": "github", + "operationId": "read_github", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/spring", + "panel": "spring", + "operationId": "read_spring", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/crac", + "panel": "crac", + "operationId": "read_crac", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/sql-trace", + "panel": "sql-trace", + "operationId": "read_sql_trace", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/transactions", + "panel": "transactions", + "operationId": "read_transactions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/rest-client-trace", + "panel": "rest-client-trace", + "operationId": "read_rest_client_trace", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/mcp-server", + "panel": "mcp-server", + "operationId": "read_mcp_server", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/cli", + "panel": "cli", + "operationId": "read_cli", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/activity", + "panel": "activity", + "operationId": "read_activity", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/runtime-insights", + "panel": "runtime-insights", + "operationId": "read_runtime_insights", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/java-agent", + "panel": "java-agent", + "operationId": "read_java_agent", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/code-inventory", + "panel": "code-inventory", + "operationId": "read_code_inventory", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/code-paths", + "panel": "code-paths", + "operationId": "read_code_paths", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/side-effects", + "panel": "side-effects", + "operationId": "read_side_effects", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/email", + "panel": "email", + "operationId": "read_email", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/kafka", + "panel": "kafka", + "operationId": "read_kafka", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/rabbitmq", + "panel": "rabbitmq", + "operationId": "read_rabbitmq", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/jms", + "panel": "jms", + "operationId": "read_jms", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/websockets", + "panel": "websockets", + "operationId": "read_websockets", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/activity/request/conformance-unknown-request", + "panel": "activity", + "operationId": "read_activity", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/activity/journal", + "panel": "activity", + "operationId": "read_activity", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/activity/resources", + "panel": "activity", + "operationId": "read_activity", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/code-inventory/changes", + "panel": "code-inventory", + "operationId": "read_code_inventory", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/code-inventory/methods?status=never-executed", + "panel": "code-inventory", + "operationId": "read_code_inventory", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/code-inventory/dependencies", + "panel": "code-inventory", + "operationId": "read_code_inventory", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/exceptions/caught", + "panel": "exceptions", + "operationId": "read_exceptions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/exceptions/conformance-exception-group", + "panel": "exceptions", + "operationId": "read_exceptions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/exceptions/conformance-exception-group#occurrences[]", + "panel": "exceptions", + "operationId": "read_exceptions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/exceptions/conformance-exception-group#occurrences[].bindingDiagnostics[]", + "panel": "exceptions", + "operationId": "read_exceptions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/side-effects/sensor?sensor=processes", + "panel": "side-effects", + "operationId": "read_side_effects", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/code-paths/route?route=GET%20%2Fnot-a-route", + "panel": "code-paths", + "operationId": "read_code_paths", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/code-paths/requests/0000000000000000", + "panel": "code-paths", + "operationId": "read_code_paths", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/code-paths/beans", + "panel": "code-paths", + "operationId": "read_code_paths", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/code-paths/probes", + "panel": "code-paths", + "operationId": "read_code_paths", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/runtime-insights/insights/conformance-unknown:0000000000", + "panel": "runtime-insights", + "operationId": "read_runtime_insights", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/runtime-insights/comparison", + "panel": "runtime-insights", + "operationId": "read_runtime_insights", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/runtime-insights/resource-profile", + "panel": "runtime-insights", + "operationId": "read_runtime_insights", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/runtime-insights/impact?symbol=conformanceUnknownSymbol", + "panel": "runtime-insights", + "operationId": "read_runtime_insights", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/runtime-insights/impact/symbols?query=conformanceUnknownSymbol", + "panel": "runtime-insights", + "operationId": "read_runtime_insights", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "method": "GET", + "path": "/activity/request/conformance-unknown-request/journal", + "panel": "activity", + "operationId": "read_activity", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + } + ], + "actions": [ + { + "id": "http-sessions.clear", + "method": "POST", + "path": "/http-sessions/session-key/clear", + "panel": "http-sessions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "http-sessions.invalidate", + "method": "POST", + "path": "/http-sessions/session-key/invalidate", + "panel": "http-sessions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "live-memory.offload", + "method": "POST", + "path": "/live-memory/offload", + "panel": "live-memory", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "live-memory.footprint", + "method": "POST", + "path": "/live-memory/footprint", + "panel": "live-memory", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "heap-dump.capture", + "method": "POST", + "path": "/heap-dump/capture", + "panel": "heap-dump", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "heap-dump.analyze", + "method": "POST", + "path": "/heap-dump/analyze", + "panel": "heap-dump", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "heap-dump.delete", + "method": "POST", + "path": "/heap-dump/delete", + "panel": "heap-dump", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "threads.download", + "method": "POST", + "path": "/threads/download", + "panel": "threads", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "threads.capture", + "method": "POST", + "path": "/threads/captures", + "panel": "threads", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "threads.clear", + "method": "POST", + "path": "/threads/captures/clear", + "panel": "threads", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "threads.export", + "method": "POST", + "path": "/threads/captures/00000000-0000-0000-0000-000000000000/export", + "panel": "threads", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "threads.observe", + "method": "POST", + "path": "/threads/observations", + "panel": "threads", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "threads.cancel", + "method": "POST", + "path": "/threads/observations/00000000-0000-0000-0000-000000000000/cancel", + "panel": "threads", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "memory.scan", + "method": "POST", + "path": "/memory/scan", + "panel": "memory", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "runtime-insights.resource-profile", + "method": "POST", + "path": "/runtime-insights/resource-profile", + "panel": "runtime-insights", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "runtime-insights.resource-profile.stop", + "method": "POST", + "path": "/runtime-insights/resource-profile/stop", + "panel": "runtime-insights", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "graalvm.scan.cancel", + "method": "POST", + "path": "/graalvm/scan/cancel", + "panel": "graalvm", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "graalvm.scan", + "method": "POST", + "path": "/graalvm/scan", + "panel": "graalvm", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "graalvm.install", + "method": "POST", + "path": "/graalvm/install", + "panel": "graalvm", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "graalvm.install-all", + "method": "POST", + "path": "/graalvm/install/all", + "panel": "graalvm", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "graalvm.dockerfile.install", + "method": "POST", + "path": "/graalvm/dockerfile/install", + "panel": "graalvm", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "config.override.put", + "method": "POST", + "path": "/config/overrides", + "panel": "config", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "config.override.delete", + "method": "DELETE", + "path": "/config/overrides/conformance.key", + "panel": "config", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "loggers.level", + "method": "POST", + "path": "/loggers/io.github.jdubois.bootui.conformance", + "panel": "loggers", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "security.scan", + "method": "POST", + "path": "/security/scan", + "panel": "security", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "pentesting.scan", + "method": "POST", + "path": "/pentesting/scan", + "panel": "pentesting", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "hibernate.scan", + "method": "POST", + "path": "/hibernate/scan", + "panel": "hibernate", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "hibernate-statistics.enable", + "method": "POST", + "path": "/hibernate-statistics/enable", + "panel": "hibernate-statistics", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "database-advisor.scan", + "method": "POST", + "path": "/database-advisor/scan", + "panel": "database-advisor", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "postgresql.read", + "method": "POST", + "path": "/postgresql/read", + "panel": "postgresql", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "mysql.read", + "method": "POST", + "path": "/mysql/read", + "panel": "mysql", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "cache.clear", + "method": "POST", + "path": "/cache/clear", + "panel": "cache", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "traces.clear", + "method": "DELETE", + "path": "/traces", + "panel": "traces", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "exceptions.clear", + "method": "DELETE", + "path": "/exceptions", + "panel": "exceptions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "exceptions.status", + "method": "POST", + "path": "/exceptions/conformance-unknown-fingerprint/status", + "panel": "exceptions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "code-paths.probe.start", + "method": "POST", + "path": "/code-paths/probes", + "panel": "code-paths", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "code-paths.probe.stop", + "method": "POST", + "path": "/code-paths/probes/0/stop", + "panel": "code-paths", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "code-paths.probe.delete", + "method": "DELETE", + "path": "/code-paths/probes/0", + "panel": "code-paths", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "java-agent.sensor.switch", + "method": "POST", + "path": "/java-agent/sensors/environment", + "panel": "java-agent", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "http-probe.execute", + "method": "POST", + "path": "/http-probe", + "panel": "http-probe", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "architecture.scan", + "method": "POST", + "path": "/architecture/scan", + "panel": "architecture", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "vulnerabilities.scan", + "method": "POST", + "path": "/vulnerabilities/scan", + "panel": "vulnerabilities", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "devtools.livereload", + "method": "POST", + "path": "/devtools/livereload", + "panel": "devtools", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "devtools.restart", + "method": "POST", + "path": "/devtools/restart", + "panel": "devtools", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "dev-services.restart", + "method": "POST", + "path": "/dev-services/services/conformance/restart", + "panel": "dev-services", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "dev-services.restart", + "method": "POST", + "path": "/dev-services/conformance/restart", + "panel": "dev-services", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "flyway.migrate", + "method": "POST", + "path": "/flyway/migrate", + "panel": "flyway", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "flyway.clean", + "method": "POST", + "path": "/flyway/clean", + "panel": "flyway", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "liquibase.update", + "method": "POST", + "path": "/liquibase/update", + "panel": "liquibase", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "github.refresh", + "method": "POST", + "path": "/github/refresh", + "panel": "github", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "rest-api.scan", + "method": "POST", + "path": "/rest-api/scan", + "panel": "rest-api", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "spring.scan", + "method": "POST", + "path": "/spring/scan", + "panel": "spring", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "crac.scan", + "method": "POST", + "path": "/crac/scan", + "panel": "crac", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "crac.dockerfile.install", + "method": "POST", + "path": "/crac/dockerfile/install", + "panel": "crac", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "crac.entrypoint.install", + "method": "POST", + "path": "/crac/entrypoint/install", + "panel": "crac", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "crac.install-all", + "method": "POST", + "path": "/crac/install/all", + "panel": "crac", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "sql-trace.clear", + "method": "POST", + "path": "/sql-trace/clear", + "panel": "sql-trace", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "sql-trace.recording", + "method": "POST", + "path": "/sql-trace/recording", + "panel": "sql-trace", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "transactions.clear", + "method": "POST", + "path": "/transactions/clear", + "panel": "transactions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "transactions.recording", + "method": "POST", + "path": "/transactions/recording", + "panel": "transactions", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "rest-client-trace.clear", + "method": "POST", + "path": "/rest-client-trace/clear", + "panel": "rest-client-trace", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "rest-client-trace.recording", + "method": "POST", + "path": "/rest-client-trace/recording", + "panel": "rest-client-trace", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "mcp-server.toggle", + "method": "POST", + "path": "/mcp-server/toggle", + "panel": "mcp-server", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "activity.use-existing-datasource", + "method": "POST", + "path": "/activity/use-existing-datasource", + "panel": "activity", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "activity.clear-recording", + "method": "POST", + "path": "/activity/journal/clear", + "panel": "activity", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "email.clear", + "method": "DELETE", + "path": "/email", + "panel": "email", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "kafka.clear", + "method": "DELETE", + "path": "/kafka", + "panel": "kafka", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "rabbitmq.clear", + "method": "DELETE", + "path": "/rabbitmq", + "panel": "rabbitmq", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "jms.clear", + "method": "DELETE", + "path": "/jms", + "panel": "jms", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "websockets.clear", + "method": "DELETE", + "path": "/websockets", + "panel": "websockets", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "websockets.capture", + "method": "POST", + "path": "/websockets/capture", + "panel": "websockets", + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "dismissed-rules.dismiss", + "method": "POST", + "path": "/dismissed-rules/conformance-rule", + "panel": null, + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "dismissed-rules.restore", + "method": "DELETE", + "path": "/dismissed-rules/conformance-rule", + "panel": null, + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "dismissed-findings.dismiss", + "method": "POST", + "path": "/dismissed-findings", + "panel": null, + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "dismissed-findings.restore", + "method": "DELETE", + "path": "/dismissed-findings", + "panel": null, + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "mcp.bridge", + "method": "POST", + "path": "/mcp", + "panel": null, + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "cli.tool", + "method": "POST", + "path": "/cli/tools/get_overview", + "panel": null, + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + }, + { + "id": "otlp.ingest", + "method": "POST", + "path": "/otlp/v1/traces", + "panel": null, + "runtimes": [ + "SPRING_MVC", + "SPRING_WEBFLUX", + "QUARKUS" + ] + } + ], + "crossCheck": { + "starterMappingsCount": 269, + "starterMappings": [ + { + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 546, + "verb": "GET", + "path": "/activity" + }, + { + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 899, + "verb": "GET", + "path": "/activity/journal" + }, + { + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 906, + "verb": "GET", + "path": "/activity/resources" + }, + { + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 912, + "verb": "POST", + "path": "/activity/journal/clear" + }, + { + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 920, + "verb": "POST", + "path": "/activity/use-existing-datasource" + }, + { + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 1016, + "verb": "GET", + "path": "/activity/request/{id}/journal" + }, + { + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 1121, + "verb": "GET", + "path": "/activity/request/{id}" + }, + { + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 1131, + "verb": "GET", + "path": "/activity/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "LiveServiceMapController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveServiceMapController.java", + "line": 51, + "verb": "GET", + "path": "/activity/service-map", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ArchitectureController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/architecture/ArchitectureController.java", + "line": 27, + "verb": "GET", + "path": "/architecture" + }, + { + "controller": "ArchitectureController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/architecture/ArchitectureController.java", + "line": 32, + "verb": "POST", + "path": "/architecture/scan" + }, + { + "controller": "BootUiCliController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/cli/BootUiCliController.java", + "line": 30, + "verb": "GET", + "path": "/cli" + }, + { + "controller": "BootUiCliController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/cli/BootUiCliController.java", + "line": 36, + "verb": "POST", + "path": "/cli/tools/{name}" + }, + { + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 68, + "verb": "GET", + "path": "/crac" + }, + { + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 73, + "verb": "POST", + "path": "/crac/scan" + }, + { + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 80, + "verb": "GET", + "path": "/crac/dockerfile", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 89, + "verb": "GET", + "path": "/crac/entrypoint", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 98, + "verb": "POST", + "path": "/crac/dockerfile/install" + }, + { + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 103, + "verb": "POST", + "path": "/crac/entrypoint/install" + }, + { + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 108, + "verb": "POST", + "path": "/crac/install/all" + }, + { + "controller": "DatabaseAdvisorController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/databaseadvisor/DatabaseAdvisorController.java", + "line": 27, + "verb": "GET", + "path": "/database-advisor" + }, + { + "controller": "DatabaseAdvisorController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/databaseadvisor/DatabaseAdvisorController.java", + "line": 32, + "verb": "POST", + "path": "/database-advisor/scan" + }, + { + "controller": "ExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/exceptions/ExceptionsController.java", + "line": 84, + "verb": "GET", + "path": "/exceptions" + }, + { + "controller": "ExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/exceptions/ExceptionsController.java", + "line": 90, + "verb": "GET", + "path": "/exceptions/caught" + }, + { + "controller": "ExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/exceptions/ExceptionsController.java", + "line": 95, + "verb": "GET", + "path": "/exceptions/{id}" + }, + { + "controller": "ExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/exceptions/ExceptionsController.java", + "line": 100, + "verb": "DELETE", + "path": "/exceptions" + }, + { + "controller": "ExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/exceptions/ExceptionsController.java", + "line": 106, + "verb": "POST", + "path": "/exceptions/{id}/status" + }, + { + "controller": "ExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/exceptions/ExceptionsController.java", + "line": 118, + "verb": "GET", + "path": "/exceptions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 59, + "verb": "GET", + "path": "/graalvm" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 64, + "verb": "GET", + "path": "/graalvm/scan/progress", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 69, + "verb": "POST", + "path": "/graalvm/scan/cancel" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 75, + "verb": "POST", + "path": "/graalvm/scan" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 83, + "verb": "GET", + "path": "/graalvm/metadata", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 93, + "verb": "POST", + "path": "/graalvm/install" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 99, + "verb": "POST", + "path": "/graalvm/install/all" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 113, + "verb": "GET", + "path": "/graalvm/dockerfile", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 122, + "verb": "POST", + "path": "/graalvm/dockerfile/install" + }, + { + "controller": "HibernateController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/hibernate/HibernateController.java", + "line": 29, + "verb": "GET", + "path": "/hibernate" + }, + { + "controller": "HibernateController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/hibernate/HibernateController.java", + "line": 34, + "verb": "POST", + "path": "/hibernate/scan" + }, + { + "controller": "HibernateStatisticsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/hibernate/HibernateStatisticsController.java", + "line": 23, + "verb": "GET", + "path": "/hibernate-statistics" + }, + { + "controller": "HibernateStatisticsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/hibernate/HibernateStatisticsController.java", + "line": 28, + "verb": "POST", + "path": "/hibernate-statistics/enable" + }, + { + "controller": "RuntimeInsightsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/insights/RuntimeInsightsController.java", + "line": 211, + "verb": "GET", + "path": "/runtime-insights" + }, + { + "controller": "RuntimeInsightsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/insights/RuntimeInsightsController.java", + "line": 236, + "verb": "GET", + "path": "/runtime-insights/insights/{id}" + }, + { + "controller": "RuntimeInsightsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/insights/RuntimeInsightsController.java", + "line": 314, + "verb": "GET", + "path": "/runtime-insights/impact" + }, + { + "controller": "RuntimeInsightsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/insights/RuntimeInsightsController.java", + "line": 320, + "verb": "GET", + "path": "/runtime-insights/impact/symbols" + }, + { + "controller": "RuntimeInsightsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/insights/RuntimeInsightsController.java", + "line": 326, + "verb": "GET", + "path": "/runtime-insights/resource-profile" + }, + { + "controller": "RuntimeInsightsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/insights/RuntimeInsightsController.java", + "line": 332, + "verb": "POST", + "path": "/runtime-insights/resource-profile" + }, + { + "controller": "RuntimeInsightsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/insights/RuntimeInsightsController.java", + "line": 338, + "verb": "POST", + "path": "/runtime-insights/resource-profile/stop" + }, + { + "controller": "RuntimeInsightsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/insights/RuntimeInsightsController.java", + "line": 344, + "verb": "GET", + "path": "/runtime-insights/comparison" + }, + { + "controller": "CodeInventoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodeInventoryController.java", + "line": 25, + "verb": "GET", + "path": "/code-inventory" + }, + { + "controller": "CodeInventoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodeInventoryController.java", + "line": 30, + "verb": "GET", + "path": "/code-inventory/changes" + }, + { + "controller": "CodeInventoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodeInventoryController.java", + "line": 37, + "verb": "GET", + "path": "/code-inventory/methods" + }, + { + "controller": "CodeInventoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodeInventoryController.java", + "line": 47, + "verb": "GET", + "path": "/code-inventory/dependencies" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 39, + "verb": "GET", + "path": "/code-paths" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 44, + "verb": "GET", + "path": "/code-paths/route" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 53, + "verb": "GET", + "path": "/code-paths/beans" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 58, + "verb": "GET", + "path": "/code-paths/requests/{requestId}" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 63, + "verb": "GET", + "path": "/code-paths/probes" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 68, + "verb": "POST", + "path": "/code-paths/probes" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 76, + "verb": "GET", + "path": "/code-paths/probes/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 81, + "verb": "POST", + "path": "/code-paths/probes/{id}/stop" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 86, + "verb": "DELETE", + "path": "/code-paths/probes/{id}" + }, + { + "controller": "JavaAgentController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/JavaAgentController.java", + "line": 28, + "verb": "GET", + "path": "/java-agent" + }, + { + "controller": "JavaAgentController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/JavaAgentController.java", + "line": 34, + "verb": "POST", + "path": "/java-agent/sensors/{id}" + }, + { + "controller": "SideEffectsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/SideEffectsController.java", + "line": 27, + "verb": "GET", + "path": "/side-effects" + }, + { + "controller": "SideEffectsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/SideEffectsController.java", + "line": 32, + "verb": "GET", + "path": "/side-effects/sensor" + }, + { + "controller": "JmsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/jms/JmsController.java", + "line": 40, + "verb": "GET", + "path": "/jms" + }, + { + "controller": "JmsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/jms/JmsController.java", + "line": 54, + "verb": "DELETE", + "path": "/jms" + }, + { + "controller": "KafkaController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/kafka/KafkaController.java", + "line": 36, + "verb": "GET", + "path": "/kafka" + }, + { + "controller": "KafkaController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/kafka/KafkaController.java", + "line": 46, + "verb": "DELETE", + "path": "/kafka" + }, + { + "controller": "EmailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mail/EmailController.java", + "line": 43, + "verb": "GET", + "path": "/email" + }, + { + "controller": "EmailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mail/EmailController.java", + "line": 53, + "verb": "GET", + "path": "/email/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "EmailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mail/EmailController.java", + "line": 59, + "verb": "GET", + "path": "/email/{id}/eml", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "EmailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mail/EmailController.java", + "line": 69, + "verb": "DELETE", + "path": "/email" + }, + { + "controller": "BootUiMcpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mcp/BootUiMcpController.java", + "line": 56, + "verb": "POST", + "path": "/mcp" + }, + { + "controller": "BootUiMcpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mcp/BootUiMcpController.java", + "line": 174, + "verb": "GET", + "path": "/mcp", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "controller": "McpServerController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mcp/McpServerController.java", + "line": 34, + "verb": "GET", + "path": "/mcp-server" + }, + { + "controller": "McpServerController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mcp/McpServerController.java", + "line": 39, + "verb": "POST", + "path": "/mcp-server/toggle" + }, + { + "controller": "MemoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/memory/MemoryController.java", + "line": 34, + "verb": "GET", + "path": "/memory" + }, + { + "controller": "MemoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/memory/MemoryController.java", + "line": 44, + "verb": "POST", + "path": "/memory/scan" + }, + { + "controller": "MySqlController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mysql/MySqlController.java", + "line": 21, + "verb": "GET", + "path": "/mysql" + }, + { + "controller": "MySqlController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mysql/MySqlController.java", + "line": 26, + "verb": "POST", + "path": "/mysql/read" + }, + { + "controller": "PentestingController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/pentesting/PentestingController.java", + "line": 29, + "verb": "GET", + "path": "/pentesting" + }, + { + "controller": "PentestingController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/pentesting/PentestingController.java", + "line": 34, + "verb": "POST", + "path": "/pentesting/scan" + }, + { + "controller": "PostgresqlController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/postgres/PostgresqlController.java", + "line": 24, + "verb": "GET", + "path": "/postgresql" + }, + { + "controller": "PostgresqlController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/postgres/PostgresqlController.java", + "line": 29, + "verb": "POST", + "path": "/postgresql/read" + }, + { + "controller": "RabbitController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/rabbit/RabbitController.java", + "line": 36, + "verb": "GET", + "path": "/rabbitmq" + }, + { + "controller": "RabbitController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/rabbit/RabbitController.java", + "line": 47, + "verb": "DELETE", + "path": "/rabbitmq" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 41, + "verb": "GET", + "path": "/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 48, + "verb": "GET", + "path": "/dashboard", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 53, + "verb": "GET", + "path": "/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 62, + "verb": "GET", + "path": "/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 77, + "verb": "GET", + "path": "/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 94, + "verb": "GET", + "path": "/stream", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "controller": "ReactiveBootUiCliController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiCliController.java", + "line": 32, + "verb": "GET", + "path": "/cli" + }, + { + "controller": "ReactiveBootUiCliController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiCliController.java", + "line": 37, + "verb": "POST", + "path": "/cli/tools/{name}" + }, + { + "controller": "ReactiveBootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiIndexController.java", + "line": 40, + "verb": "GET", + "path": "/${bootui.path:/bootui}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveBootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiIndexController.java", + "line": 40, + "verb": "GET", + "path": "/${bootui.path:/bootui}/", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveBootUiMcpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiMcpController.java", + "line": 66, + "verb": "POST", + "path": "/mcp" + }, + { + "controller": "ReactiveBootUiMcpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiMcpController.java", + "line": 102, + "verb": "GET", + "path": "/mcp", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "controller": "ReactiveBootUiMcpServerController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiMcpServerController.java", + "line": 37, + "verb": "GET", + "path": "/mcp-server" + }, + { + "controller": "ReactiveBootUiMcpServerController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiMcpServerController.java", + "line": 42, + "verb": "POST", + "path": "/mcp-server/toggle" + }, + { + "controller": "ReactiveExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveExceptionsController.java", + "line": 85, + "verb": "GET", + "path": "/exceptions" + }, + { + "controller": "ReactiveExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveExceptionsController.java", + "line": 91, + "verb": "GET", + "path": "/exceptions/caught" + }, + { + "controller": "ReactiveExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveExceptionsController.java", + "line": 96, + "verb": "GET", + "path": "/exceptions/{id}" + }, + { + "controller": "ReactiveExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveExceptionsController.java", + "line": 101, + "verb": "DELETE", + "path": "/exceptions" + }, + { + "controller": "ReactiveExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveExceptionsController.java", + "line": 107, + "verb": "POST", + "path": "/exceptions/{id}/status" + }, + { + "controller": "ReactiveExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveExceptionsController.java", + "line": 119, + "verb": "GET", + "path": "/exceptions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 531, + "verb": "GET", + "path": "/activity" + }, + { + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 878, + "verb": "GET", + "path": "/activity/journal" + }, + { + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 885, + "verb": "GET", + "path": "/activity/resources" + }, + { + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 891, + "verb": "POST", + "path": "/activity/journal/clear" + }, + { + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 899, + "verb": "POST", + "path": "/activity/use-existing-datasource" + }, + { + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 996, + "verb": "GET", + "path": "/activity/request/{id}/journal" + }, + { + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 1105, + "verb": "GET", + "path": "/activity/request/{id}" + }, + { + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 1173, + "verb": "GET", + "path": "/activity/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveLogTailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLogTailController.java", + "line": 56, + "verb": "GET", + "path": "/log-tail/recent" + }, + { + "controller": "ReactiveLogTailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLogTailController.java", + "line": 62, + "verb": "GET", + "path": "/log-tail/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveRestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveRestClientTraceController.java", + "line": 52, + "verb": "GET", + "path": "/rest-client-trace" + }, + { + "controller": "ReactiveRestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveRestClientTraceController.java", + "line": 57, + "verb": "POST", + "path": "/rest-client-trace/clear" + }, + { + "controller": "ReactiveRestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveRestClientTraceController.java", + "line": 62, + "verb": "POST", + "path": "/rest-client-trace/recording" + }, + { + "controller": "ReactiveRestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveRestClientTraceController.java", + "line": 68, + "verb": "GET", + "path": "/rest-client-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSecurityController.java", + "line": 28, + "verb": "GET", + "path": "/security" + }, + { + "controller": "ReactiveSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSecurityController.java", + "line": 39, + "verb": "POST", + "path": "/security/scan" + }, + { + "controller": "ReactiveSecurityLogsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSecurityLogsController.java", + "line": 89, + "verb": "GET", + "path": "/security-logs" + }, + { + "controller": "ReactiveSecurityLogsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSecurityLogsController.java", + "line": 142, + "verb": "GET", + "path": "/security-logs/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSpringSecurityController.java", + "line": 69, + "verb": "GET", + "path": "/spring-security" + }, + { + "controller": "ReactiveSpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSpringSecurityController.java", + "line": 74, + "verb": "GET", + "path": "/spring-security/explain", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSpringSecurityController.java", + "line": 82, + "verb": "GET", + "path": "/spring-security/endpoints", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSqlTraceController.java", + "line": 67, + "verb": "GET", + "path": "/sql-trace" + }, + { + "controller": "ReactiveSqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSqlTraceController.java", + "line": 73, + "verb": "GET", + "path": "/sql-trace/insights", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSqlTraceController.java", + "line": 78, + "verb": "POST", + "path": "/sql-trace/clear" + }, + { + "controller": "ReactiveSqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSqlTraceController.java", + "line": 83, + "verb": "POST", + "path": "/sql-trace/recording" + }, + { + "controller": "ReactiveSqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSqlTraceController.java", + "line": 89, + "verb": "GET", + "path": "/sql-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveTransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveTransactionsController.java", + "line": 53, + "verb": "GET", + "path": "/transactions" + }, + { + "controller": "ReactiveTransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveTransactionsController.java", + "line": 58, + "verb": "POST", + "path": "/transactions/clear" + }, + { + "controller": "ReactiveTransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveTransactionsController.java", + "line": 63, + "verb": "POST", + "path": "/transactions/recording" + }, + { + "controller": "ReactiveTransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveTransactionsController.java", + "line": 69, + "verb": "GET", + "path": "/transactions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveWebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveWebSocketController.java", + "line": 54, + "verb": "GET", + "path": "/websockets" + }, + { + "controller": "ReactiveWebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveWebSocketController.java", + "line": 59, + "verb": "DELETE", + "path": "/websockets" + }, + { + "controller": "ReactiveWebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveWebSocketController.java", + "line": 64, + "verb": "POST", + "path": "/websockets/capture" + }, + { + "controller": "ReactiveWebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveWebSocketController.java", + "line": 70, + "verb": "GET", + "path": "/websockets/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "RestApiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restapi/RestApiController.java", + "line": 34, + "verb": "GET", + "path": "/rest-api" + }, + { + "controller": "RestApiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restapi/RestApiController.java", + "line": 40, + "verb": "GET", + "path": "/rest-api/error-contract", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "RestApiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restapi/RestApiController.java", + "line": 48, + "verb": "POST", + "path": "/rest-api/scan" + }, + { + "controller": "RestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restclienttrace/RestClientTraceController.java", + "line": 50, + "verb": "GET", + "path": "/rest-client-trace" + }, + { + "controller": "RestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restclienttrace/RestClientTraceController.java", + "line": 55, + "verb": "POST", + "path": "/rest-client-trace/clear" + }, + { + "controller": "RestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restclienttrace/RestClientTraceController.java", + "line": 60, + "verb": "POST", + "path": "/rest-client-trace/recording" + }, + { + "controller": "RestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restclienttrace/RestClientTraceController.java", + "line": 66, + "verb": "GET", + "path": "/rest-client-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "SecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityController.java", + "line": 52, + "verb": "GET", + "path": "/security" + }, + { + "controller": "SecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityController.java", + "line": 57, + "verb": "POST", + "path": "/security/scan" + }, + { + "controller": "StaticSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/StaticSecurityController.java", + "line": 42, + "verb": "GET", + "path": "/security" + }, + { + "controller": "StaticSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/StaticSecurityController.java", + "line": 48, + "verb": "POST", + "path": "/security/scan" + }, + { + "controller": "SpringController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringController.java", + "line": 60, + "verb": "GET", + "path": "/spring" + }, + { + "controller": "SpringController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringController.java", + "line": 65, + "verb": "POST", + "path": "/spring/scan" + }, + { + "controller": "SqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/sqltrace/SqlTraceController.java", + "line": 64, + "verb": "GET", + "path": "/sql-trace" + }, + { + "controller": "SqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/sqltrace/SqlTraceController.java", + "line": 70, + "verb": "GET", + "path": "/sql-trace/insights", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "SqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/sqltrace/SqlTraceController.java", + "line": 75, + "verb": "POST", + "path": "/sql-trace/clear" + }, + { + "controller": "SqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/sqltrace/SqlTraceController.java", + "line": 80, + "verb": "POST", + "path": "/sql-trace/recording" + }, + { + "controller": "SqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/sqltrace/SqlTraceController.java", + "line": 86, + "verb": "GET", + "path": "/sql-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "TransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/transactions/TransactionsController.java", + "line": 51, + "verb": "GET", + "path": "/transactions" + }, + { + "controller": "TransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/transactions/TransactionsController.java", + "line": 56, + "verb": "POST", + "path": "/transactions/clear" + }, + { + "controller": "TransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/transactions/TransactionsController.java", + "line": 61, + "verb": "POST", + "path": "/transactions/recording" + }, + { + "controller": "TransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/transactions/TransactionsController.java", + "line": 67, + "verb": "GET", + "path": "/transactions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ActuatorMappingsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ActuatorMappingsController.java", + "line": 22, + "verb": "GET", + "path": "/mappings", + "classification": "framework-introspection", + "reason": "Framework introspection metadata endpoint" + }, + { + "controller": "AdvisorViolationsEndpoint.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AdvisorViolationsEndpoint.java", + "line": 12, + "verb": "GET", + "path": "/rules/{ruleId}/violations", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 43, + "verb": "GET", + "path": "/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 50, + "verb": "GET", + "path": "/dashboard", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 55, + "verb": "GET", + "path": "/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 64, + "verb": "GET", + "path": "/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 79, + "verb": "GET", + "path": "/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 95, + "verb": "GET", + "path": "/stream", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 46, + "verb": "GET", + "path": "/ai/overview" + }, + { + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 51, + "verb": "GET", + "path": "/ai/chats", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 57, + "verb": "GET", + "path": "/ai/chats/{spanId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 64, + "verb": "GET", + "path": "/ai/tokens", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "BeansController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/BeansController.java", + "line": 21, + "verb": "GET", + "path": "/beans" + }, + { + "controller": "BootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/BootUiIndexController.java", + "line": 53, + "verb": "GET", + "path": "/${bootui.path:/bootui}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "BootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/BootUiIndexController.java", + "line": 53, + "verb": "GET", + "path": "/${bootui.path:/bootui}/", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ConditionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ConditionsController.java", + "line": 44, + "verb": "GET", + "path": "/conditions" + }, + { + "controller": "ConfigController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ConfigController.java", + "line": 31, + "verb": "GET", + "path": "/config" + }, + { + "controller": "ConfigController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ConfigController.java", + "line": 41, + "verb": "POST", + "path": "/config/overrides" + }, + { + "controller": "ConfigController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ConfigController.java", + "line": 49, + "verb": "DELETE", + "path": "/config/overrides/{name}" + }, + { + "controller": "DataController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DataController.java", + "line": 43, + "verb": "GET", + "path": "/data/repositories" + }, + { + "controller": "DataController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DataController.java", + "line": 54, + "verb": "GET", + "path": "/data/repositories/{name}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DatabaseConnectionPoolsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DatabaseConnectionPoolsController.java", + "line": 28, + "verb": "GET", + "path": "/database-connection-pools/pools" + }, + { + "controller": "DatabaseConnectionPoolsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DatabaseConnectionPoolsController.java", + "line": 33, + "verb": "GET", + "path": "/database-connection-pools/pools/{name}/snapshot", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DevServicesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DevServicesController.java", + "line": 35, + "verb": "GET", + "path": "/dev-services" + }, + { + "controller": "DevServicesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DevServicesController.java", + "line": 40, + "verb": "GET", + "path": "/dev-services/{id}/logs", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DevServicesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DevServicesController.java", + "line": 45, + "verb": "POST", + "path": "/dev-services/{id}/restart" + }, + { + "controller": "DevToolsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DevToolsController.java", + "line": 21, + "verb": "GET", + "path": "/devtools" + }, + { + "controller": "DevToolsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DevToolsController.java", + "line": 26, + "verb": "POST", + "path": "/devtools/livereload" + }, + { + "controller": "DevToolsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DevToolsController.java", + "line": 32, + "verb": "POST", + "path": "/devtools/restart" + }, + { + "controller": "DismissedFindingsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedFindingsController.java", + "line": 31, + "verb": "GET", + "path": "/dismissed-findings", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DismissedFindingsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedFindingsController.java", + "line": 36, + "verb": "POST", + "path": "/dismissed-findings" + }, + { + "controller": "DismissedFindingsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedFindingsController.java", + "line": 43, + "verb": "DELETE", + "path": "/dismissed-findings" + }, + { + "controller": "DismissedRulesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedRulesController.java", + "line": 27, + "verb": "GET", + "path": "/dismissed-rules", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DismissedRulesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedRulesController.java", + "line": 32, + "verb": "POST", + "path": "/dismissed-rules/{ruleId}" + }, + { + "controller": "DismissedRulesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedRulesController.java", + "line": 37, + "verb": "DELETE", + "path": "/dismissed-rules/{ruleId}" + }, + { + "controller": "FaultToleranceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/FaultToleranceController.java", + "line": 20, + "verb": "GET", + "path": "/fault-tolerance" + }, + { + "controller": "FlywayController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/FlywayController.java", + "line": 30, + "verb": "GET", + "path": "/flyway/migrations" + }, + { + "controller": "FlywayController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/FlywayController.java", + "line": 35, + "verb": "POST", + "path": "/flyway/migrate" + }, + { + "controller": "FlywayController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/FlywayController.java", + "line": 41, + "verb": "POST", + "path": "/flyway/clean" + }, + { + "controller": "GitHubController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/GitHubController.java", + "line": 56, + "verb": "GET", + "path": "/github" + }, + { + "controller": "GitHubController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/GitHubController.java", + "line": 61, + "verb": "POST", + "path": "/github/refresh" + }, + { + "controller": "HealthController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HealthController.java", + "line": 20, + "verb": "GET", + "path": "/health" + }, + { + "controller": "HeapDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HeapDumpController.java", + "line": 30, + "verb": "GET", + "path": "/heap-dump" + }, + { + "controller": "HeapDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HeapDumpController.java", + "line": 37, + "verb": "POST", + "path": "/heap-dump/capture" + }, + { + "controller": "HeapDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HeapDumpController.java", + "line": 44, + "verb": "POST", + "path": "/heap-dump/analyze" + }, + { + "controller": "HeapDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HeapDumpController.java", + "line": 49, + "verb": "POST", + "path": "/heap-dump/delete" + }, + { + "controller": "HeapDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HeapDumpController.java", + "line": 60, + "verb": "GET", + "path": "/heap-dump/download", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "HttpExchangesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HttpExchangesController.java", + "line": 104, + "verb": "GET", + "path": "/http-exchanges" + }, + { + "controller": "HttpExchangesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HttpExchangesController.java", + "line": 138, + "verb": "GET", + "path": "/http-exchanges/routes", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "HttpProbeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HttpProbeController.java", + "line": 27, + "verb": "POST", + "path": "/http-probe" + }, + { + "controller": "HttpSessionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HttpSessionsController.java", + "line": 37, + "verb": "GET", + "path": "/http-sessions" + }, + { + "controller": "HttpSessionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HttpSessionsController.java", + "line": 42, + "verb": "POST", + "path": "/http-sessions/{sessionKey}/clear" + }, + { + "controller": "HttpSessionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HttpSessionsController.java", + "line": 48, + "verb": "POST", + "path": "/http-sessions/{sessionKey}/invalidate" + }, + { + "controller": "JvmTuningController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/JvmTuningController.java", + "line": 20, + "verb": "GET", + "path": "/jvm-tuning" + }, + { + "controller": "LiquibaseController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LiquibaseController.java", + "line": 31, + "verb": "GET", + "path": "/liquibase/changesets" + }, + { + "controller": "LiquibaseController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LiquibaseController.java", + "line": 36, + "verb": "POST", + "path": "/liquibase/update" + }, + { + "controller": "LiveMemoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LiveMemoryController.java", + "line": 35, + "verb": "GET", + "path": "/live-memory" + }, + { + "controller": "LiveMemoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LiveMemoryController.java", + "line": 47, + "verb": "POST", + "path": "/live-memory/offload" + }, + { + "controller": "LiveMemoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LiveMemoryController.java", + "line": 53, + "verb": "GET", + "path": "/live-memory/footprint", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "LiveMemoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LiveMemoryController.java", + "line": 59, + "verb": "POST", + "path": "/live-memory/footprint" + }, + { + "controller": "LogTailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LogTailController.java", + "line": 95, + "verb": "GET", + "path": "/log-tail/recent" + }, + { + "controller": "LogTailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LogTailController.java", + "line": 100, + "verb": "GET", + "path": "/log-tail/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "LoggersController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LoggersController.java", + "line": 29, + "verb": "GET", + "path": "/loggers" + }, + { + "controller": "LoggersController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LoggersController.java", + "line": 37, + "verb": "POST", + "path": "/loggers/{name}" + }, + { + "controller": "MappingsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/MappingsController.java", + "line": 21, + "verb": "GET", + "path": "/mappings/flat" + }, + { + "controller": "MetricsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/MetricsController.java", + "line": 26, + "verb": "GET", + "path": "/metrics" + }, + { + "controller": "MetricsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/MetricsController.java", + "line": 38, + "verb": "GET", + "path": "/metrics/detail", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "OtlpReceiverController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/OtlpReceiverController.java", + "line": 119, + "verb": "POST", + "path": "/otlp/v1/traces" + }, + { + "controller": "OtlpReceiverController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/OtlpReceiverController.java", + "line": 119, + "verb": "POST", + "path": "/otlpapplication/x-protobuf", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "OtlpReceiverController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/OtlpReceiverController.java", + "line": 119, + "verb": "POST", + "path": "/otlpapplication/octet-stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "OverviewController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/OverviewController.java", + "line": 43, + "verb": "GET", + "path": "/overview" + }, + { + "controller": "PanelsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/PanelsController.java", + "line": 69, + "verb": "GET", + "path": "/panels", + "classification": "framework-introspection", + "reason": "Framework introspection metadata endpoint" + }, + { + "controller": "ProfileDiffController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ProfileDiffController.java", + "line": 20, + "verb": "GET", + "path": "/profile-diff" + }, + { + "controller": "ScheduledController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ScheduledController.java", + "line": 22, + "verb": "GET", + "path": "/scheduled" + }, + { + "controller": "SecurityLogsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SecurityLogsController.java", + "line": 72, + "verb": "GET", + "path": "/security-logs" + }, + { + "controller": "SecurityLogsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SecurityLogsController.java", + "line": 118, + "verb": "GET", + "path": "/security-logs/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "SpringCacheController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SpringCacheController.java", + "line": 29, + "verb": "GET", + "path": "/cache" + }, + { + "controller": "SpringCacheController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SpringCacheController.java", + "line": 34, + "verb": "POST", + "path": "/cache/clear" + }, + { + "controller": "SpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SpringSecurityController.java", + "line": 65, + "verb": "GET", + "path": "/spring-security" + }, + { + "controller": "SpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SpringSecurityController.java", + "line": 70, + "verb": "GET", + "path": "/spring-security/explain", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "SpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SpringSecurityController.java", + "line": 76, + "verb": "GET", + "path": "/spring-security/endpoints", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "StartupController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/StartupController.java", + "line": 39, + "verb": "GET", + "path": "/startup" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 47, + "verb": "GET", + "path": "/threads" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 61, + "verb": "POST", + "path": "/threads/download" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 74, + "verb": "POST", + "path": "/threads/captures" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 79, + "verb": "GET", + "path": "/threads/captures", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 84, + "verb": "GET", + "path": "/threads/captures/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 84, + "verb": "GET", + "path": "/threads/captures/{id}/contention", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 92, + "verb": "GET", + "path": "/threads/captures/{id}/threads", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 105, + "verb": "GET", + "path": "/threads/captures/{id}/threads/{observationId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 113, + "verb": "GET", + "path": "/threads/captures/{id}/locks/{lockId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 122, + "verb": "POST", + "path": "/threads/captures/clear" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 127, + "verb": "POST", + "path": "/threads/captures/{id}/export" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 139, + "verb": "POST", + "path": "/threads/observations" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 149, + "verb": "GET", + "path": "/threads/observations/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 158, + "verb": "POST", + "path": "/threads/observations/{id}/cancel" + }, + { + "controller": "TracesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/TracesController.java", + "line": 43, + "verb": "GET", + "path": "/traces" + }, + { + "controller": "TracesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/TracesController.java", + "line": 48, + "verb": "GET", + "path": "/traces/{traceId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "TracesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/TracesController.java", + "line": 55, + "verb": "DELETE", + "path": "/traces" + }, + { + "controller": "VulnerabilitiesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/VulnerabilitiesController.java", + "line": 89, + "verb": "GET", + "path": "/vulnerabilities" + }, + { + "controller": "VulnerabilitiesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/VulnerabilitiesController.java", + "line": 108, + "verb": "POST", + "path": "/vulnerabilities/scan" + }, + { + "controller": "WebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/websocket/WebSocketController.java", + "line": 52, + "verb": "GET", + "path": "/websockets" + }, + { + "controller": "WebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/websocket/WebSocketController.java", + "line": 57, + "verb": "DELETE", + "path": "/websockets" + }, + { + "controller": "WebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/websocket/WebSocketController.java", + "line": 62, + "verb": "POST", + "path": "/websockets/capture" + }, + { + "controller": "WebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/websocket/WebSocketController.java", + "line": 68, + "verb": "GET", + "path": "/websockets/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + } + ], + "inheritedMappings": [ + { + "controller": "ReactiveClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveClaudeCodeController.java", + "line": 41, + "verb": "GET", + "path": "/claude-code/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveClaudeCodeController.java", + "line": 48, + "verb": "GET", + "path": "/claude-code/dashboard" + }, + { + "controller": "ReactiveClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveClaudeCodeController.java", + "line": 53, + "verb": "GET", + "path": "/claude-code/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveClaudeCodeController.java", + "line": 62, + "verb": "GET", + "path": "/claude-code/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveClaudeCodeController.java", + "line": 77, + "verb": "GET", + "path": "/claude-code/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveClaudeCodeController.java", + "line": 94, + "verb": "GET", + "path": "/claude-code/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveCopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveCopilotController.java", + "line": 41, + "verb": "GET", + "path": "/copilot/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveCopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveCopilotController.java", + "line": 48, + "verb": "GET", + "path": "/copilot/dashboard" + }, + { + "controller": "ReactiveCopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveCopilotController.java", + "line": 53, + "verb": "GET", + "path": "/copilot/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveCopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveCopilotController.java", + "line": 62, + "verb": "GET", + "path": "/copilot/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveCopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveCopilotController.java", + "line": 77, + "verb": "GET", + "path": "/copilot/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveCopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveCopilotController.java", + "line": 94, + "verb": "GET", + "path": "/copilot/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ClaudeCodeController.java", + "line": 43, + "verb": "GET", + "path": "/claude-code/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ClaudeCodeController.java", + "line": 50, + "verb": "GET", + "path": "/claude-code/dashboard" + }, + { + "controller": "ClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ClaudeCodeController.java", + "line": 55, + "verb": "GET", + "path": "/claude-code/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ClaudeCodeController.java", + "line": 64, + "verb": "GET", + "path": "/claude-code/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ClaudeCodeController.java", + "line": 79, + "verb": "GET", + "path": "/claude-code/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ClaudeCodeController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ClaudeCodeController.java", + "line": 95, + "verb": "GET", + "path": "/claude-code/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "CopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/CopilotController.java", + "line": 43, + "verb": "GET", + "path": "/copilot/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "CopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/CopilotController.java", + "line": 50, + "verb": "GET", + "path": "/copilot/dashboard" + }, + { + "controller": "CopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/CopilotController.java", + "line": 55, + "verb": "GET", + "path": "/copilot/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "CopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/CopilotController.java", + "line": 64, + "verb": "GET", + "path": "/copilot/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "CopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/CopilotController.java", + "line": 79, + "verb": "GET", + "path": "/copilot/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "CopilotController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/CopilotController.java", + "line": 95, + "verb": "GET", + "path": "/copilot/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + } + ], + "unpanelledRoutes": [ + { + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 1131, + "verb": "GET", + "path": "/activity/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "LiveServiceMapController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveServiceMapController.java", + "line": 51, + "verb": "GET", + "path": "/activity/service-map", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 80, + "verb": "GET", + "path": "/crac/dockerfile", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 89, + "verb": "GET", + "path": "/crac/entrypoint", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/exceptions/ExceptionsController.java", + "line": 118, + "verb": "GET", + "path": "/exceptions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 64, + "verb": "GET", + "path": "/graalvm/scan/progress", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 83, + "verb": "GET", + "path": "/graalvm/metadata", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 113, + "verb": "GET", + "path": "/graalvm/dockerfile", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 76, + "verb": "GET", + "path": "/code-paths/probes/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "EmailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mail/EmailController.java", + "line": 53, + "verb": "GET", + "path": "/email/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "EmailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mail/EmailController.java", + "line": 59, + "verb": "GET", + "path": "/email/{id}/eml", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "BootUiMcpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mcp/BootUiMcpController.java", + "line": 174, + "verb": "GET", + "path": "/mcp", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 41, + "verb": "GET", + "path": "/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 48, + "verb": "GET", + "path": "/dashboard", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 53, + "verb": "GET", + "path": "/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 62, + "verb": "GET", + "path": "/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 77, + "verb": "GET", + "path": "/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 94, + "verb": "GET", + "path": "/stream", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "controller": "ReactiveBootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiIndexController.java", + "line": 40, + "verb": "GET", + "path": "/${bootui.path:/bootui}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveBootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiIndexController.java", + "line": 40, + "verb": "GET", + "path": "/${bootui.path:/bootui}/", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveBootUiMcpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiMcpController.java", + "line": 102, + "verb": "GET", + "path": "/mcp", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "controller": "ReactiveExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveExceptionsController.java", + "line": 119, + "verb": "GET", + "path": "/exceptions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 1173, + "verb": "GET", + "path": "/activity/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveLogTailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLogTailController.java", + "line": 62, + "verb": "GET", + "path": "/log-tail/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveRestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveRestClientTraceController.java", + "line": 68, + "verb": "GET", + "path": "/rest-client-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSecurityLogsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSecurityLogsController.java", + "line": 142, + "verb": "GET", + "path": "/security-logs/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSpringSecurityController.java", + "line": 74, + "verb": "GET", + "path": "/spring-security/explain", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSpringSecurityController.java", + "line": 82, + "verb": "GET", + "path": "/spring-security/endpoints", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSqlTraceController.java", + "line": 73, + "verb": "GET", + "path": "/sql-trace/insights", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveSqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSqlTraceController.java", + "line": 89, + "verb": "GET", + "path": "/sql-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveTransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveTransactionsController.java", + "line": 69, + "verb": "GET", + "path": "/transactions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ReactiveWebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveWebSocketController.java", + "line": 70, + "verb": "GET", + "path": "/websockets/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "RestApiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restapi/RestApiController.java", + "line": 40, + "verb": "GET", + "path": "/rest-api/error-contract", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "RestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restclienttrace/RestClientTraceController.java", + "line": 66, + "verb": "GET", + "path": "/rest-client-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "SqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/sqltrace/SqlTraceController.java", + "line": 70, + "verb": "GET", + "path": "/sql-trace/insights", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "SqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/sqltrace/SqlTraceController.java", + "line": 86, + "verb": "GET", + "path": "/sql-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "TransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/transactions/TransactionsController.java", + "line": 67, + "verb": "GET", + "path": "/transactions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ActuatorMappingsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ActuatorMappingsController.java", + "line": 22, + "verb": "GET", + "path": "/mappings", + "classification": "framework-introspection", + "reason": "Framework introspection metadata endpoint" + }, + { + "controller": "AdvisorViolationsEndpoint.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AdvisorViolationsEndpoint.java", + "line": 12, + "verb": "GET", + "path": "/rules/{ruleId}/violations", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 43, + "verb": "GET", + "path": "/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 50, + "verb": "GET", + "path": "/dashboard", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 55, + "verb": "GET", + "path": "/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 64, + "verb": "GET", + "path": "/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 79, + "verb": "GET", + "path": "/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 95, + "verb": "GET", + "path": "/stream", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 51, + "verb": "GET", + "path": "/ai/chats", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 57, + "verb": "GET", + "path": "/ai/chats/{spanId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 64, + "verb": "GET", + "path": "/ai/tokens", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "BootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/BootUiIndexController.java", + "line": 53, + "verb": "GET", + "path": "/${bootui.path:/bootui}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "BootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/BootUiIndexController.java", + "line": 53, + "verb": "GET", + "path": "/${bootui.path:/bootui}/", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DataController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DataController.java", + "line": 54, + "verb": "GET", + "path": "/data/repositories/{name}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DatabaseConnectionPoolsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DatabaseConnectionPoolsController.java", + "line": 33, + "verb": "GET", + "path": "/database-connection-pools/pools/{name}/snapshot", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DevServicesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DevServicesController.java", + "line": 40, + "verb": "GET", + "path": "/dev-services/{id}/logs", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DismissedFindingsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedFindingsController.java", + "line": 31, + "verb": "GET", + "path": "/dismissed-findings", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "DismissedRulesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedRulesController.java", + "line": 27, + "verb": "GET", + "path": "/dismissed-rules", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "HeapDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HeapDumpController.java", + "line": 60, + "verb": "GET", + "path": "/heap-dump/download", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "HttpExchangesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HttpExchangesController.java", + "line": 138, + "verb": "GET", + "path": "/http-exchanges/routes", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "LiveMemoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LiveMemoryController.java", + "line": 53, + "verb": "GET", + "path": "/live-memory/footprint", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "LogTailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LogTailController.java", + "line": 100, + "verb": "GET", + "path": "/log-tail/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "MetricsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/MetricsController.java", + "line": 38, + "verb": "GET", + "path": "/metrics/detail", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "PanelsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/PanelsController.java", + "line": 69, + "verb": "GET", + "path": "/panels", + "classification": "framework-introspection", + "reason": "Framework introspection metadata endpoint" + }, + { + "controller": "SecurityLogsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SecurityLogsController.java", + "line": 118, + "verb": "GET", + "path": "/security-logs/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "SpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SpringSecurityController.java", + "line": 70, + "verb": "GET", + "path": "/spring-security/explain", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "SpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SpringSecurityController.java", + "line": 76, + "verb": "GET", + "path": "/spring-security/endpoints", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 79, + "verb": "GET", + "path": "/threads/captures", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 84, + "verb": "GET", + "path": "/threads/captures/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 84, + "verb": "GET", + "path": "/threads/captures/{id}/contention", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 92, + "verb": "GET", + "path": "/threads/captures/{id}/threads", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 105, + "verb": "GET", + "path": "/threads/captures/{id}/threads/{observationId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 113, + "verb": "GET", + "path": "/threads/captures/{id}/locks/{lockId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 149, + "verb": "GET", + "path": "/threads/observations/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "TracesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/TracesController.java", + "line": 48, + "verb": "GET", + "path": "/traces/{traceId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "controller": "WebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/websocket/WebSocketController.java", + "line": 68, + "verb": "GET", + "path": "/websockets/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + } + ], + "gaps": [ + { + "category": "starter-without-catalog", + "controller": "LiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveActivityController.java", + "line": 1131, + "verb": "GET", + "path": "/activity/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "LiveServiceMapController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/activity/LiveServiceMapController.java", + "line": 51, + "verb": "GET", + "path": "/activity/service-map", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 80, + "verb": "GET", + "path": "/crac/dockerfile", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "CracController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/crac/CracController.java", + "line": 89, + "verb": "GET", + "path": "/crac/entrypoint", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/exceptions/ExceptionsController.java", + "line": 118, + "verb": "GET", + "path": "/exceptions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 64, + "verb": "GET", + "path": "/graalvm/scan/progress", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 83, + "verb": "GET", + "path": "/graalvm/metadata", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "GraalVmController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/graalvm/GraalVmController.java", + "line": 113, + "verb": "GET", + "path": "/graalvm/dockerfile", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "CodePathsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/javaagent/CodePathsController.java", + "line": 76, + "verb": "GET", + "path": "/code-paths/probes/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "EmailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mail/EmailController.java", + "line": 53, + "verb": "GET", + "path": "/email/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "EmailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mail/EmailController.java", + "line": 59, + "verb": "GET", + "path": "/email/{id}/eml", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "BootUiMcpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/mcp/BootUiMcpController.java", + "line": 174, + "verb": "GET", + "path": "/mcp", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 41, + "verb": "GET", + "path": "/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 48, + "verb": "GET", + "path": "/dashboard", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 53, + "verb": "GET", + "path": "/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 62, + "verb": "GET", + "path": "/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 77, + "verb": "GET", + "path": "/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveAgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveAgentSessionController.java", + "line": 94, + "verb": "GET", + "path": "/stream", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveBootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiIndexController.java", + "line": 40, + "verb": "GET", + "path": "/${bootui.path:/bootui}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveBootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiIndexController.java", + "line": 40, + "verb": "GET", + "path": "/${bootui.path:/bootui}/", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveBootUiMcpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveBootUiMcpController.java", + "line": 102, + "verb": "GET", + "path": "/mcp", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveExceptionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveExceptionsController.java", + "line": 119, + "verb": "GET", + "path": "/exceptions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveLiveActivityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLiveActivityController.java", + "line": 1173, + "verb": "GET", + "path": "/activity/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveLogTailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveLogTailController.java", + "line": 62, + "verb": "GET", + "path": "/log-tail/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveRestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveRestClientTraceController.java", + "line": 68, + "verb": "GET", + "path": "/rest-client-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveSecurityLogsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSecurityLogsController.java", + "line": 142, + "verb": "GET", + "path": "/security-logs/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveSpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSpringSecurityController.java", + "line": 74, + "verb": "GET", + "path": "/spring-security/explain", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveSpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSpringSecurityController.java", + "line": 82, + "verb": "GET", + "path": "/spring-security/endpoints", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveSqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSqlTraceController.java", + "line": 73, + "verb": "GET", + "path": "/sql-trace/insights", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveSqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveSqlTraceController.java", + "line": 89, + "verb": "GET", + "path": "/sql-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveTransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveTransactionsController.java", + "line": 69, + "verb": "GET", + "path": "/transactions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ReactiveWebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/reactive/ReactiveWebSocketController.java", + "line": 70, + "verb": "GET", + "path": "/websockets/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "RestApiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restapi/RestApiController.java", + "line": 40, + "verb": "GET", + "path": "/rest-api/error-contract", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "RestClientTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/restclienttrace/RestClientTraceController.java", + "line": 66, + "verb": "GET", + "path": "/rest-client-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "SqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/sqltrace/SqlTraceController.java", + "line": 70, + "verb": "GET", + "path": "/sql-trace/insights", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "SqlTraceController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/sqltrace/SqlTraceController.java", + "line": 86, + "verb": "GET", + "path": "/sql-trace/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "TransactionsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/transactions/TransactionsController.java", + "line": 67, + "verb": "GET", + "path": "/transactions/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ActuatorMappingsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ActuatorMappingsController.java", + "line": 22, + "verb": "GET", + "path": "/mappings", + "classification": "framework-introspection", + "reason": "Framework introspection metadata endpoint" + }, + { + "category": "starter-without-catalog", + "controller": "AdvisorViolationsEndpoint.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AdvisorViolationsEndpoint.java", + "line": 12, + "verb": "GET", + "path": "/rules/{ruleId}/violations", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 43, + "verb": "GET", + "path": "/sessions", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "category": "starter-without-catalog", + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 50, + "verb": "GET", + "path": "/dashboard", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 55, + "verb": "GET", + "path": "/sessions/{id}", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "category": "starter-without-catalog", + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 64, + "verb": "GET", + "path": "/sessions/{id}/events", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "category": "starter-without-catalog", + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 79, + "verb": "GET", + "path": "/sessions/{id}/events/{eventId}/raw", + "classification": "session-management", + "reason": "Session management endpoint outside catalog" + }, + { + "category": "starter-without-catalog", + "controller": "AgentSessionController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AgentSessionController.java", + "line": 95, + "verb": "GET", + "path": "/stream", + "classification": "transport", + "reason": "Protocol transport endpoint, not a panel read/action" + }, + { + "category": "starter-without-catalog", + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 51, + "verb": "GET", + "path": "/ai/chats", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 57, + "verb": "GET", + "path": "/ai/chats/{spanId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "AiController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/AiController.java", + "line": 64, + "verb": "GET", + "path": "/ai/tokens", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "BootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/BootUiIndexController.java", + "line": 53, + "verb": "GET", + "path": "/${bootui.path:/bootui}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "BootUiIndexController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/BootUiIndexController.java", + "line": 53, + "verb": "GET", + "path": "/${bootui.path:/bootui}/", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "DataController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DataController.java", + "line": 54, + "verb": "GET", + "path": "/data/repositories/{name}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "DatabaseConnectionPoolsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DatabaseConnectionPoolsController.java", + "line": 33, + "verb": "GET", + "path": "/database-connection-pools/pools/{name}/snapshot", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "DevServicesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DevServicesController.java", + "line": 40, + "verb": "GET", + "path": "/dev-services/{id}/logs", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "DismissedFindingsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedFindingsController.java", + "line": 31, + "verb": "GET", + "path": "/dismissed-findings", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "DismissedRulesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DismissedRulesController.java", + "line": 27, + "verb": "GET", + "path": "/dismissed-rules", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "HeapDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HeapDumpController.java", + "line": 60, + "verb": "GET", + "path": "/heap-dump/download", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "HttpExchangesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/HttpExchangesController.java", + "line": 138, + "verb": "GET", + "path": "/http-exchanges/routes", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "LiveMemoryController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LiveMemoryController.java", + "line": 53, + "verb": "GET", + "path": "/live-memory/footprint", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "LogTailController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/LogTailController.java", + "line": 100, + "verb": "GET", + "path": "/log-tail/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "MetricsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/MetricsController.java", + "line": 38, + "verb": "GET", + "path": "/metrics/detail", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "OtlpReceiverController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/OtlpReceiverController.java", + "line": 119, + "verb": "POST", + "path": "/otlpapplication/x-protobuf", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "OtlpReceiverController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/OtlpReceiverController.java", + "line": 119, + "verb": "POST", + "path": "/otlpapplication/octet-stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "PanelsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/PanelsController.java", + "line": 69, + "verb": "GET", + "path": "/panels", + "classification": "framework-introspection", + "reason": "Framework introspection metadata endpoint" + }, + { + "category": "starter-without-catalog", + "controller": "SecurityLogsController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SecurityLogsController.java", + "line": 118, + "verb": "GET", + "path": "/security-logs/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "SpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SpringSecurityController.java", + "line": 70, + "verb": "GET", + "path": "/spring-security/explain", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "SpringSecurityController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/SpringSecurityController.java", + "line": 76, + "verb": "GET", + "path": "/spring-security/endpoints", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 79, + "verb": "GET", + "path": "/threads/captures", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 84, + "verb": "GET", + "path": "/threads/captures/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 84, + "verb": "GET", + "path": "/threads/captures/{id}/contention", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 92, + "verb": "GET", + "path": "/threads/captures/{id}/threads", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 105, + "verb": "GET", + "path": "/threads/captures/{id}/threads/{observationId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 113, + "verb": "GET", + "path": "/threads/captures/{id}/locks/{lockId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "ThreadDumpController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/ThreadDumpController.java", + "line": 149, + "verb": "GET", + "path": "/threads/observations/{id}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "TracesController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/TracesController.java", + "line": 48, + "verb": "GET", + "path": "/traces/{traceId}", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "starter-without-catalog", + "controller": "WebSocketController.java", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/websocket/WebSocketController.java", + "line": 68, + "verb": "GET", + "path": "/websockets/stream", + "classification": "uncatalogued-starter-endpoint", + "reason": "Starter mapping absent from BootUI contract catalog" + }, + { + "category": "catalog-without-mapping", + "method": "POST", + "path": "/dev-services/services/conformance/restart", + "catalogSource": "bootui-conformance/src/main/java/io/github/jdubois/bootui/conformance/BootUiApiContractCatalog.java:980", + "starterSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/web/DevServicesController.java:45", + "reason": "BootUI catalog names the conformance service while the starter mapping accepts an id" + } + ] + } +} \ No newline at end of file diff --git a/tests/fixtures/bootui/2.6.0/rule-ids-diff.json b/tests/fixtures/bootui/2.6.0/rule-ids-diff.json new file mode 100644 index 000000000..a59db10d0 --- /dev/null +++ b/tests/fixtures/bootui/2.6.0/rule-ids-diff.json @@ -0,0 +1,76 @@ +{ + "inDocOnlyCount": 0, + "inJavaOnlyCount": 32, + "inDocOnly": [], + "inJavaOnly": [ + "PT-A05-009", + "PT-A05-012", + "PT-A05-071", + "QS-ANALYSIS", + "QS-AUTH-005", + "QS-AUTH-006", + "QS-AUTH-011", + "QS-AUTH-014", + "QS-AUTHZ", + "QS-AUTHZ-003", + "QS-CORS", + "QS-CORS-003", + "QS-CORS-004", + "QS-CORS-005", + "QS-HDR", + "QS-HDR-007", + "QS-HDR-008", + "QS-MGMT", + "QS-MGMT-002", + "QS-SESSION", + "SEC-AUTH-003", + "SEC-AUTH-005", + "SEC-CONFIG-003", + "SEC-CONFIG-004", + "SEC-CORS-003", + "SEC-CORS-004", + "SEC-HEAD-005", + "SEC-HEAD-006", + "SEC-OAUTH-001", + "SEC-SESSION-005", + "SEC-SESSION-009", + "SEC-STATIC-001" + ], + "docCount": 660, + "javaCount": 692, + "unionCount": 692, + "explanations": { + "PT-A05-009": "Retired: reserved in PentestingCheckRegistry.java", + "PT-A05-012": "Retired: reserved in PentestingCheckRegistry.java", + "PT-A05-071": "Retired: reserved in PentestingCheckRegistry.java", + "QS-ANALYSIS": "Quarkus security check constant in QuarkusSecurityChecks.java", + "QS-AUTH-005": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-AUTH-006": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-AUTH-011": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-AUTH-014": "Quarkus security check constant in QuarkusSecurityChecks.java", + "QS-AUTHZ": "Quarkus security check constant in QuarkusSecurityChecks.java", + "QS-AUTHZ-003": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-CORS": "Quarkus security check constant in QuarkusSecurityChecks.java", + "QS-CORS-003": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-CORS-004": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-CORS-005": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-HDR": "Quarkus security check constant in QuarkusSecurityChecks.java", + "QS-HDR-007": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-HDR-008": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-MGMT": "Quarkus security check constant in QuarkusSecurityChecks.java", + "QS-MGMT-002": "Retired: reserved in QuarkusSecurityChecks.java", + "QS-SESSION": "Quarkus security check constant in QuarkusSecurityChecks.java", + "SEC-AUTH-003": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-AUTH-005": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-CONFIG-003": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-CONFIG-004": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-CORS-003": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-CORS-004": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-HEAD-005": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-HEAD-006": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-OAUTH-001": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-SESSION-005": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-SESSION-009": "Retired: reserved in SecurityRuleRegistry.java", + "SEC-STATIC-001": "Internal rule constant in StaticSecurityAnalysisDetector.java" + } +} \ No newline at end of file diff --git a/tests/fixtures/bootui/2.6.0/rule-ids.json b/tests/fixtures/bootui/2.6.0/rule-ids.json new file mode 100644 index 000000000..e0ff0cdeb --- /dev/null +++ b/tests/fixtures/bootui/2.6.0/rule-ids.json @@ -0,0 +1,7229 @@ +{ + "rules": [ + { + "id": "ARCH-CODE-001", + "title": "Classes should not access standard streams", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-002", + "title": "Classes should not throw generic exceptions", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-003", + "title": "Classes should not use java.util.logging", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-004", + "title": "Retired", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Joda-Time was superseded by `java.time` in JDK 8 (2014) and removed from Spring Framework 6.0 (2022); ARCH-CODE-008 covers the remaining legacy JDK `Date` and `Calendar` APIs." + }, + { + "id": "ARCH-CODE-005", + "title": "Retired", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: `printStackTrace(System.err)` already reads `System.err`, which ARCH-CODE-001 reports. The remaining matches were mostly the legitimate `StringWriter` capture idiom or a stream the author chose deliberately." + }, + { + "id": "ARCH-CODE-006", + "title": "Classes should not forcibly terminate the JVM", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-007", + "title": "Classes should not access JDK-internal APIs", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-008", + "title": "Classes should not use legacy date and time classes", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-009", + "title": "Classes should not use deprecated APIs", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-010", + "title": "Exceptions should be named ending with Exception", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-011", + "title": "Retired", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: A naming opinion with no authoritative source and false positives on domain nouns such as `UserInterface` or `NetworkInterface`." + }, + { + "id": "ARCH-CODE-012", + "title": "Loggers should be private final or container-managed", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-013", + "title": "Application classes should not depend on test frameworks", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-014", + "title": "Classes should not have public mutable static fields", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-015", + "title": "Utility classes should be final with a private constructor", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-016", + "title": "Classes should not use standard-annotation field injection", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-017", + "title": "Classes should not directly instantiate Thread", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-CODE-018", + "title": "Retired", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: ArchUnit's no-arg `new AssertionError()` check never matches Kotlin's messageless `assert(cond)` and false-positives on explicit `throw new AssertionError()` in unreachable `switch` or exhaustive branches." + }, + { + "id": "ARCH-CODE-019", + "title": "Classes should not store stateful JDK processors in static or shared-bean fields", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-MOD-001", + "title": "Internal packages should not be accessed from other modules", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-PKG-001", + "title": "Packages should be free of cycles", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-001", + "title": "Classes should not use field injection", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-002", + "title": "Controllers should not depend on repositories", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-003", + "title": "Repositories should not depend on controllers", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-004", + "title": "Beans should not self-invoke their own proxied methods", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-005", + "title": "Retired", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Unreachable: imports are bounded to named base packages, a blank base package fails the Spring scan, and Quarkus discovery drops the default package. The live Spring advisor's SPRING-WIRING-008 inspects registered beans instead." + }, + { + "id": "ARCH-SPRING-006", + "title": "Services should not depend on controllers", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-007", + "title": "Repositories should not depend on services", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-008", + "title": "Services and repositories should not depend on web request types", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-009", + "title": "Transactional annotations should not be declared on interfaces", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-010", + "title": "Proxy-driven methods should be interceptable", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-011", + "title": "Async methods should return void or Future", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-012", + "title": "Scheduled methods should have supported signatures", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-013", + "title": "Async should not be used in configuration classes", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-014", + "title": "Classes should not call AopContext.currentProxy", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-015", + "title": "Configuration properties classes should be immutable", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-016", + "title": "Retired", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Its violations were exactly the union of ARCH-SPRING-002, ARCH-SPRING-003, ARCH-SPRING-006, and ARCH-SPRING-007, so every finding was reported twice." + }, + { + "id": "ARCH-SPRING-017", + "title": "Lite-mode @Bean methods should not call sibling @Bean methods", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-018", + "title": "Lifecycle callbacks should not be proxy-driven", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-019", + "title": "Async and transactional semantics on one method should be reviewed", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-020", + "title": "Async event listeners should return void", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-021", + "title": "BeanPostProcessor and BeanFactoryPostProcessor @Bean methods should be static", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-022", + "title": "Legacy javax.transaction.Transactional should be migrated", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-023", + "title": "Injection annotations on static members are ignored", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-024", + "title": "Legacy javax injection and lifecycle annotations should be migrated", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-025", + "title": "HTTP clients should be built from Spring Boot's auto-configured builder", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-027", + "title": "@Cacheable and @CachePut methods should not return void", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "ARCH-SPRING-031", + "title": "Scheduled and event-listener methods should be declared on container-managed beans", + "docSource": "ARCHITECTURE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/architecture/ArchitectureRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-CACHE-001", + "title": "In-memory caches may hold stale entries after restore", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-CONFIG-001", + "title": "Static initializer may retain startup configuration", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-FILE-001", + "title": "Direct file handle acquisition needs checkpoint lifecycle review", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-LIFECYCLE-002", + "title": "The org.crac:crac API is not on the classpath", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-NET-001", + "title": "Direct network socket acquisition needs checkpoint lifecycle review", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-NET-002", + "title": "Static initializer may retain resolved host or network identity", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-POOL-001", + "title": "Non-Hikari resources need verified checkpoint lifecycle support", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-POOL-002", + "title": "Transport-owning client fields need checkpoint lifecycle review", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-POOL-004", + "title": "Hikari pools need Spring Boot lifecycle coverage and suspension", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-POOL-005", + "title": "Startup database access leaves pooled connections open at an onRefresh checkpoint", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-RANDOM-001", + "title": "Random state or explicit SecureRandom seeding needs restore handling", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-RANDOM-002", + "title": "SecureRandom restore behavior depends on construction and provider", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-RES-001", + "title": "Resource fields need observable checkpoint cleanup", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-SCHED-001", + "title": "Fixed-rate scheduled tasks may run a catch-up burst after restore", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-SECRET-001", + "title": "Potential secret or key material is retained in a field", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-SECRET-002", + "title": "Cached TLS state may need restore-time rebuilding", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-THREAD-001", + "title": "Threads or executor pools created outside the Spring lifecycle", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-THREAD-002", + "title": "Spring thread-per-task executors need explicit restore handling", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "CRAC-TIME-001", + "title": "Static initializer may retain checkpoint-era wall-clock time", + "docSource": "CRAC-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/crac/CracChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-001", + "title": "PostgreSQL driver does not rewrite batched inserts", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresRewriteBatchedInsertsRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-002", + "title": "MySQL Connector/J does not rewrite batched statements", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlRewriteBatchedStatementsRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-003", + "title": "MySQL Connector/J reports affected rows instead of found rows", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlUseAffectedRowsRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-004", + "title": "MySQL Connector/J prepared-statement cache is off or small", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlStatementCacheRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-005", + "title": "PostgreSQL driver prepared-statement cache is disabled", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresStatementCacheRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-006", + "title": "PostgreSQL driver sets a savepoint before every query", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresAutosaveRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-007", + "title": "JDBC driver diagnostic setting is enabled", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DriverDiagnosticSettingsRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-008", + "title": "JDBC driver has no socket timeout", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DriverSocketTimeoutRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-009", + "title": "PostgreSQL connections do not carry an application name", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresApplicationNameRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-DRIVER-010", + "title": "MySQL Connector/J `autoReconnect` is enabled", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlAutoReconnectRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-001", + "title": "Mapped foreign key column has no physical index", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DatabaseAdvisorRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: without a physical FK, the residual mapped association does not establish a child-side index need. Traversing an owning to-one association loads through the parent's referenced key. Physical FK access-path review remains `DB-SCHEMA-002`; workload-specific child lookup tuning is not inferred." + }, + { + "id": "DB-HIB-002", + "title": "Declared entity relation name not found in the observed schema", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateMissingTableRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-003", + "title": "Declared column nullability differs from observed metadata", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateColumnMismatchRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-004", + "title": "Declared column length exceeds observed column size", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateColumnLengthMismatchRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-005", + "title": "Declared uniqueness has no observed enforcing key", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateMissingUniqueIndexRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-006", + "title": "Declared column name not found in the observed relation", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateMissingColumnRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-007", + "title": "Declared association has no matching observed foreign key", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateMissingForeignKeyConstraintRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-008", + "title": "Hibernate sequence allocationSize does not match the physical sequence's INCREMENT BY", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DatabaseAdvisorRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: annotation allocation size alone lacks effective optimizer, mismatch strategy, qualified sequence and persistence-unit provenance. Hibernate's documented FIX strategy can override the mapping from the database. Compare effective generator contracts when diagnosing a real mismatch, not coincidentally equal bare names. See the matching [Hibernate 7.4](https://docs.hibernate.org/orm/7.4/javadocs/org/hibernate/id/SequenceMismatchStrategy.html) API." + }, + { + "id": "DB-HIB-009", + "title": "IDENTITY identifier column without database-side generation", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateIdentityGenerationMismatchRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-010", + "title": "Declared numeric precision or scale exceeds the observed column", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateNumericPrecisionMismatchRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-011", + "title": "Declared JPA `@Index` has no matching observed index", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateMissingDeclaredIndexRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-012", + "title": "Non-nullable association join column allows `NULL` in the observed schema", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateJoinColumnNullabilityMismatchRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-013", + "title": "Enum constant name exceeds observed character column length", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateEnumValueLengthMismatchRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-HIB-014", + "title": "Declared JPA sequence generator name not found in the observed schema", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/HibernateMissingSequenceRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-MYSQL-001", + "title": "Tables on a non-transactional storage engine", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlNonInnodbEngineRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-MYSQL-002", + "title": "Tables/columns using the legacy utf8mb3 character set", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlNonUtf8mb4CharsetRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-MYSQL-003", + "title": "MySQL/MariaDB AUTO_INCREMENT nearing exhaustion", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlAutoIncrementExhaustionRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-MYSQL-004", + "title": "Unenforced MySQL check constraints", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlUnenforcedCheckConstraintRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-ORACLE-001", + "title": "Unusable Oracle indexes", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/OracleUnusableIndexRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-ORACLE-002", + "title": "Disabled or unvalidated Oracle constraints", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/OracleInvalidConstraintRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-ORACLE-003", + "title": "Oracle sequence or identity generator nearing exhaustion", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/OracleSequenceExhaustionRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-ORACLE-004", + "title": "Oracle global indexes with orphaned partition entries", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/OracleOrphanedIndexEntriesRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-PG-001", + "title": "Invalid PostgreSQL indexes", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresInvalidIndexRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-PG-002", + "title": "PostgreSQL sequence nearing exhaustion", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresSequenceExhaustionRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-PG-003", + "title": "PostgreSQL NOT VALID constraint never validated", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresUnvalidatedConstraintRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-PG-004", + "title": "PostgreSQL table lacking usable replica identity", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresReplicaIdentityRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-PG-005", + "title": "PostgreSQL unlogged tables", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresUnloggedTableRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-PG-006", + "title": "PostgreSQL partitioned table has no attached partitions", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresEmptyPartitionedTableRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-POOL-001", + "title": "Connection pool can keep a connection idle longer than the server allows", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PoolIdleLimitRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-POOL-002", + "title": "Connection pool is larger than the server's connection limit", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PoolExceedsServerConnectionsRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-POOL-003", + "title": "Connection pool has no maximum connection lifetime", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PoolUnlimitedLifetimeRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-POOL-004", + "title": "Connection pool leaves no headroom for a second instance", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DatabaseAdvisorRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Assumes a multi-instance deployment against a single database without a connection proxy, cites an inaccurate Quarkus default (`50`, whereas `quarkus.datasource.jdbc.max-size` defaults to `20`), and shares the exact same finding identity (`ds=|pool=maximum-size`) as `DB-POOL-002`. `DB-POOL-002` remains the check for a pool whose maximum size exceeds the server's usable connections." + }, + { + "id": "DB-POOL-005", + "title": "Connection pool has a disabled or excessive acquisition timeout", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PoolAcquisitionTimeoutRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-RUNTIME-001", + "title": "SQL text variations with predicate literals", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/SqlLiteralConcatenationRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SCHEMA-001", + "title": "Tables without a primary key", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MissingPrimaryKeyRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SCHEMA-002", + "title": "Foreign-key access-path review", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MissingForeignKeyIndexRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SCHEMA-003", + "title": "Exact duplicate index candidates", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DuplicateIndexRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SCHEMA-004", + "title": "Foreign key column type mismatch with the referenced column", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/ForeignKeyTypeMismatchRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SCHEMA-005", + "title": "Unique index duplicating a proven primary-key backing index", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/RedundantPrimaryKeyUniqueIndexRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SCHEMA-006", + "title": "Potential duplicate foreign-key definitions", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DuplicateForeignKeyRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SCHEMA-007", + "title": "Narrow auto-generated primary key", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/NarrowAutoGeneratedPrimaryKeyRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SCHEMA-008", + "title": "Composite foreign key with partially nullable columns", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DatabaseAdvisorRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: mixed nullability can correctly model a required tenant and an optional relationship. MATCH SIMPLE and MATCH FULL differ; uniform nullability does not establish business intent. Making every column nullable can weaken integrity. See [PostgreSQL foreign keys](https://www.postgresql.org/docs/17/ddl-constraints.html#DDL-CONSTRAINTS-FK)." + }, + { + "id": "DB-SCHEMA-009", + "title": "Composite unique index with partially nullable columns", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DatabaseAdvisorRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: NULLS DISTINCT can be intentional, and Oracle rejects equal non-null portions of partially null composite unique keys, contrary to the previous generalized explanation. See [Oracle integrity semantics](https://docs.oracle.com/en/database/oracle/oracle-database/19/cncpt/data-integrity.html)." + }, + { + "id": "DB-SCHEMA-010", + "title": "Invisible or ignored indexes", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/InvisibleIndexRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SCHEMA-011", + "title": "Foreign key specifies SET NULL on a NOT NULL column", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/ForeignKeySetNullOnNotNullColumnRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SERVER-001", + "title": "PostgreSQL does not end sessions that are idle in a transaction", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresIdleInTransactionTimeoutRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SERVER-002", + "title": "PostgreSQL has no statement timeout", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DatabaseAdvisorRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Fires on stock PostgreSQL installations (`statement_timeout = 0`) and recommends setting a role or database `statement_timeout` on the application's `DataSource` role, which aborts Flyway or Liquibase DDL migrations (`CREATE INDEX`, `ALTER TABLE`) running over the same `DataSource` at startup." + }, + { + "id": "DB-SERVER-003", + "title": "PostgreSQL autovacuum is disabled", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresAutovacuumDisabledRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SERVER-004", + "title": "PostgreSQL `pg_stat_statements` is not available", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresStatStatementsRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SERVER-005", + "title": "PostgreSQL does not measure I/O time", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/PostgresTrackIoTimingRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SERVER-006", + "title": "PostgreSQL does not log slow statements", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/DatabaseAdvisorRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Fires on stock PostgreSQL installations (`log_min_duration_statement = -1`), is redundant with BootUI's SQL Trace panel, `DB-SERVER-004` (`pg_stat_statements`), and `HIB-CONFIG-006`, and logs bound parameter literals into server logs in plaintext by default when enabled." + }, + { + "id": "DB-SERVER-007", + "title": "MySQL Performance Schema is disabled", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlPerformanceSchemaDisabledRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "DB-SERVER-008", + "title": "MySQL/MariaDB strict transactional SQL mode is disabled", + "docSource": "DATABASE-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/databaseadvisor/MySqlStrictSqlModeRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-CLASSGEN-001", + "title": "Runtime class generation needs experimental native-image support", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-FFM-001", + "title": "Foreign Function downcalls/upcalls may need foreign metadata in native images", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmReadinessScanner.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-JDK-001", + "title": "The system Java compiler is unavailable in native images", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-JDK-002", + "title": "JSR-223 script engines require native-image-specific support", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-JDK-003", + "title": "finalize() overrides are never invoked in native images", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-JMX-001", + "title": "JMX MBeans and connectors need native-image monitoring and metadata review", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-JMX-002", + "title": "Dynamic/model MBeans are not supported by native-image JMX", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-MH-001", + "title": "Non-constant MethodHandle lookups may need reflection metadata", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-NATIVE-001", + "title": "Dynamically loaded native libraries need native-image review", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-NATIVE-002", + "title": "Native method declarations require a loadable native implementation", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-PROXY-001", + "title": "Dynamic JDK proxies may need proxy metadata", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmReadinessScanner.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-REFLECT-001", + "title": "Reflective API usage may need reflection metadata", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-REFLECT-002", + "title": "Dynamic class loading may need reflection metadata", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-REFLECT-005", + "title": "Unsafe.allocateInstance bypasses construction and needs unsafeAllocated metadata", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmReadinessScanner.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-REFLECT-006", + "title": "Programmatically bound application types may need binding hints", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-RES-001", + "title": "Runtime resource loading may need resource metadata", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-RES-002", + "title": "Resource bundle loading may need resource-bundle metadata", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-SCAN-001", + "title": "Classpath discovery calls require runtime versus build-time review", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-SEC-001", + "title": "Runtime security-provider registration needs native-image review", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-SER-001", + "title": "Serializable types may need serialization metadata", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-SER-002", + "title": "Active JDK serialization may need serialization metadata", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "GRAAL-SPEL-001", + "title": "Programmatic SpEL expressions may require application-specific reflection hints", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CACHE-001", + "title": "Cached entity association coverage should be reviewed", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CACHE-002", + "title": "READ_ONLY cache strategy on writable entities is unsafe", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CACHE-003", + "title": "Immutable cached entities should use READ_ONLY", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CACHE-004", + "title": "@NaturalIdCache entities should also enable entity second-level caching", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-001", + "title": "Open Session in View should be disabled", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Open Session in View is a Spring MVC application setting, not a Hibernate factory option, and the Spring advisor's [SPRING-JPA-001](SPRING-CHECKS.md#spring-jpa-001-review-servlet-open-session-in-view) reviews the same activation with richer registration evidence. Keeping both counted one observation against two advisor scores." + }, + { + "id": "HIB-CONFIG-002", + "title": "Schema generation should not mutate non-test databases", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-003", + "title": "Lazy loading outside transactions should stay disabled", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-004", + "title": "JDBC batching should be configured for writes", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-005", + "title": "JDBC batching should order inserts and updates", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-006", + "title": "Slow query logging should be available in development", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-007", + "title": "Hibernate statistics should be enabled when tuning", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Fired in every profile, including production environments where Hibernate and Quarkus advise keeping `hibernate.generate_statistics=false` to avoid runtime collection overhead, and duplicated the standalone [Hibernate Statistics](features/database.md#hibernate-statistics) panel and its runtime enable action." + }, + { + "id": "HIB-CONFIG-008", + "title": "Connection providers should disable auto-commit explicitly", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-009", + "title": "Collection-parameter queries should use IN-clause padding", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-010", + "title": "Query caching requires effective region support", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-011", + "title": "Review effective cache concurrency strategy", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Neither adapter observes provider-selected cache access strategies or entity eligibility, so in observed mode this rule could never emit a finding and only forced scans of applications using standard `@jakarta.persistence.Cacheable` without Hibernate's `@Cache` into `PARTIAL` status." + }, + { + "id": "HIB-CONFIG-012", + "title": "SQL logging should be off when a production profile is active", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-013", + "title": "Review applicable JDBC temporal binding", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-014", + "title": "Hibernate's built-in connection pool should not be used", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-015", + "title": "Deferred script initialization should have an intentional order", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-016", + "title": "Fail on pagination over collection fetch", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-017", + "title": "Disable SQL formatting in production", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-018", + "title": "JDBC value logging should be off in production", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-019", + "title": "SQL comments should be enabled intentionally", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-020", + "title": "Oracle JDBC fetch size should exceed the driver default", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-CONFIG-021", + "title": "Provider auto-commit setting should match the pool", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ENTITY-001", + "title": "Entities should override equals and hashCode consistently", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ENTITY-002", + "title": "Versionless optimistic locking should use dynamic updates", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Hibernate ORM 7 refuses to start an application whose entity declares `@OptimisticLocking(type = DIRTY)` or `ALL` without `@DynamicUpdate` (a `MappingException`, verified on 7.4.5 and 7.4.13, with or without `@Immutable`), so the declaration can never reach the advisor of a running application and the rule could not fire." + }, + { + "id": "HIB-ENTITY-003", + "title": "equals/hashCode should not include lazy associations", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** The existence of equality overrides and associations does not show that the methods traverse associations. Safe ID-only implementations also matched. HIB-ENTITY-001 still checks an inconsistent equals/hashCode pair; it does not claim to validate method bodies." + }, + { + "id": "HIB-ENTITY-004", + "title": "toString should not include lazy associations", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** A toString override plus association declarations does not establish traversal. No method-body analysis proves lazy loading here; safe ID-only implementations must not receive this finding." + }, + { + "id": "HIB-ENTITY-005", + "title": "Persistent fields should not be public", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ENTITY-006", + "title": "Review primitive-version newness semantics", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ENTITY-007", + "title": "Review assigned-ID Spring Data newness", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ENTITY-008", + "title": "Mutable entities should declare @Version for optimistic locking", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ENTITY-009", + "title": "Unique business-key columns should consider @NaturalId", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ENTITY-010", + "title": "Prefer a numeric @Version over a timestamp", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ENTITY-011", + "title": "Kotlin entities should not be declared as data class", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ENTITY-012", + "title": "PanacheEntity subclasses should not shadow id or declare custom identifiers", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-FETCH-001", + "title": "Review eager to-one fetch plans", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-FETCH-002", + "title": "Batch fetching should cover lazy secondary-select associations", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-FETCH-003", + "title": "Collection fetch joins should not be paged directly", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-FETCH-004", + "title": "Review entities with multiple bag collections", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Multiple lazy bag declarations are valid; their existence does not establish simultaneous fetching. HIB-QUERY-007 reviews supported query shapes instead. A Java `List` without `@OrderColumn` does not itself prove effective BAG semantics because Hibernate can supply an implicit list index. Changing collections to sets also does not eliminate Cartesian multiplication when multiple collections are fetched together." + }, + { + "id": "HIB-FETCH-005", + "title": "Enhanced @Lob attributes should be loaded lazily", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-FETCH-006", + "title": "Collection associations should not declare @Fetch(JOIN)", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-FETCH-007", + "title": "Lazy basic attributes require bytecode enhancement", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-FETCH-008", + "title": "Subselect collection fetching should be reviewed", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-FETCH-009", + "title": "Multiple lazy @Lob attributes should use distinct @LazyGroup names", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-FETCH-010", + "title": "Eager collection fetching should stay bounded", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ID-001", + "title": "Review IDENTITY insert-generation trade-offs", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ID-002", + "title": "Review table-based identifier allocation", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ID-003", + "title": "Review sequence allocation declarations", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ID-004", + "title": "Review provider-selected identifier strategies", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ID-005", + "title": "Review generated UUID strategy when index locality matters", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ID-006", + "title": "GenerationType.IDENTITY disables JDBC batch inserts", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-ID-007", + "title": "Composite identifier classes must satisfy the JPA contract", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-001", + "title": "One-to-many associations should be bidirectional or join-column based", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-002", + "title": "Review many-to-many list semantics", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-003", + "title": "Enum attributes should declare an explicit storage strategy", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-004", + "title": "Many-to-many associations should not cascade remove", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-005", + "title": "Many-to-one associations should not cascade remove", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-006", + "title": "One-to-one associations should prefer shared primary keys", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-007", + "title": "Review TABLE_PER_CLASS polymorphic queries", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-008", + "title": "@NotFound(IGNORE) should be reviewed", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-009", + "title": "Persistent attributes should not be Optional", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-010", + "title": "Review element-collection list ordering and mutation cost", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-011", + "title": "Entity classes should not be final", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-012", + "title": "SINGLE_TABLE inheritance should declare @DiscriminatorColumn", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Jakarta Persistence defines a valid implicit discriminator column. Requiring an explicit annotation solely for visibility scores a supported default without evidence of an incorrect mapping." + }, + { + "id": "HIB-MAP-013", + "title": "String columns should declare explicit length", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-014", + "title": "BigDecimal columns should declare precision and scale", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-015", + "title": "Date/time attributes should use java.time", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-016", + "title": "@ManyToOne should set optional=false when the join column is non-nullable", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-017", + "title": "Lazy owning @OneToOne requires bytecode enhancement", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** An owning one-to-one holds the foreign key, so Hibernate can create a proxy without enhancement; the check reported a supported lazy mapping. HIB-MAP-018 covers the inverse side, where enhancement does matter." + }, + { + "id": "HIB-MAP-018", + "title": "Review lazy inverse @OneToOne without enhancement", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-019", + "title": "Missing foreign key indexes", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Annotation declarations cannot verify physical index coverage, and explicit annotation names can still be rewritten by a physical naming strategy. Database structural checks own index evidence; the Hibernate advisor does not duplicate that work by assuming absent `@Index` means absent database index." + }, + { + "id": "HIB-MAP-020", + "title": "Review writable unidirectional one-to-many join-column DML", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-021", + "title": "Legacy @Where restrictions should be migrated", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Hibernate ORM 7.0 removed `@Where` and `@WhereJoinTable`, and every supported runtime uses ORM 7 (Spring Framework 7 requires ORM 7.1 or later; Quarkus 3.40 ships 7.4). Code cannot compile against the removed types, and an annotation whose type is missing at runtime is silently dropped by reflection, so the check could never fire. Migrate any remaining restrictions to `@SQLRestriction`, `@SQLJoinTableRestriction`, or `@SoftDelete` as part of the ORM 7 upgrade." + }, + { + "id": "HIB-MAP-022", + "title": "Explicit ordinal enum mappings should be reviewed", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-023", + "title": "Set element collections of embeddables need equals and hashCode", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-024", + "title": "@Lob on PostgreSQL stores values as large objects", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-025", + "title": "JPA mapping annotations should match the class access type", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-MAP-027", + "title": "Deprecated @GenericGenerator should be replaced", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-QUERY-001", + "title": "@Modifying bulk queries should clear stale persistence context", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-QUERY-002", + "title": "Review streaming query resource lifetime", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-QUERY-003", + "title": "Native Page queries should review count derivation", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-QUERY-004", + "title": "Derived deleteBy methods load entities before deletion", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-QUERY-005", + "title": "Eager to-one associations should be JOIN FETCHed in entity-returning queries", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-QUERY-006", + "title": "Paged or streamed reads should prefer DTO projections over whole entities", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Flagged every paged or streamed JPQL `@Query` returning whole entities (`Page`, `Slice`, or `Stream`), including the second query of the two-step pagination pattern recommended by HIB-FETCH-003 and legitimate domain reads that need managed entity state." + }, + { + "id": "HIB-QUERY-007", + "title": "Queries should not JOIN FETCH more than one collection", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-QUERY-008", + "title": "Bulk updates leave @Version unchanged", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-QUERY-009", + "title": "Spring Data interface projections should avoid @Value SpEL", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "HIB-QUERY-010", + "title": "Review filtered collection fetch joins", + "docSource": "HIBERNATE-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/hibernate/HibernateRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-CLASS-001", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-CLASS-002", + "title": "Retired", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: `ClassLoadingMXBean.getUnloadedClassCount()` is a monotonic lifetime counter that never recovers without a JVM restart and penalized healthy GC class unloading." + }, + { + "id": "MEM-CONTENT-001", + "title": "Retain", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-CONTENT-002", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-CONTENT-003", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-CONTENT-004", + "title": "Retired", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Arrays at 50% or more of shallow bytes is the ordinary shape of a Java heap (compact-string `byte[]`, collection `Object[]`); a healthy JVM sample measured 57%. MEM-CONTENT-001 to 003 remain for big objects, collections, and a dominant non-array class." + }, + { + "id": "MEM-CONTENT-005", + "title": "New", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-FOOTPRINT-001", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-FOOTPRINT-002", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-FOOTPRINT-003", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-FOOTPRINT-004", + "title": "Retired", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Host-wide swap is not attributable to this JVM and does not show active paging; macOS dynamic swap files routinely exceed 50% on developer laptops, BootUI's normal context." + }, + { + "id": "MEM-FOOTPRINT-005", + "title": "New", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-GC-001", + "title": "Retain", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-GC-002", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-GC-003", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-GC-004", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-GC-005", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-GC-006", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-GC-007", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-GC-008", + "title": "New", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-GC-009", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-HEAP-001", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-HEAP-002", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-HEAP-003", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-HEAP-004", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-HEAP-005", + "title": "Retain", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-HEAP-006", + "title": "Retain", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-HEAP-007", + "title": "Retired", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: After the histogram request, used heap approximates the live set, and G1's default `MinHeapFreeRatio`/`MaxHeapFreeRatio` (40/70) keep committed heap about 1.7-3.3 times that. Equal `-Xms`/`-Xmx`, which MEM-HEAP-005 and the JVM Tuning calculator produce, always matched. It flagged healthy GC headroom and admitted it was not a sizing recommendation." + }, + { + "id": "MEM-HEAP-008", + "title": "Retired", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Triggered on a 1-byte increase across four manual full-GC scans, permanently left `coverageComplete` false on Shenandoah and non-generational ZGC (`skipped` instead of `inapplicable`), and is superseded by Runtime Insights' passive `HeapGrowthAfterGc` (`>= 10%` and `>= 4 MiB` floor)." + }, + { + "id": "MEM-POOL-001", + "title": "Retain", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-POOL-002", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-POOL-003", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-POOL-004", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-POOL-005", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-POOL-006", + "title": "Retired", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Compiler policy, not a memory signal. IntelliJ's Spring Boot launch optimisation adds `-XX:TieredStopAtLevel=1`, so it fired on deliberate development configuration. Real code-cache pressure stays covered by MEM-POOL-002." + }, + { + "id": "MEM-POOL-007", + "title": "Retired", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Triggered on a 1-byte increase across four scans with no capacity-share floor (flagging normal Netty/Vert.x NIO buffer pooling), double-penalized with MEM-POOL-003 when near the cap, and forced `coverageComplete = false` on the first scan." + }, + { + "id": "MEM-THREAD-001", + "title": "Update", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-THREAD-002", + "title": "Retain", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "MEM-THREAD-003", + "title": "Retired", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: A peak since start or the last reset far above the current count is normal pool elasticity after a burst, not a leak or exhaustion. Current stack reservation stays covered by MEM-FOOTPRINT-002." + }, + { + "id": "MEM-THREAD-004", + "title": "Retired", + "docSource": "MEMORY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/memory/MemoryRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: CPU time is unrelated to memory and routinely false-positived on active Netty/Vert.x event-loop threads and JIT compiler threads." + }, + { + "id": "PT-A01-001", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A02-001", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A02-002", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A02-003", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A02-004", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A02-005", + "title": "Session cookie HttpOnly flag is explicitly disabled", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Duplicate of `SEC-SESSION-003` (`MEDIUM`) in the Security advisor (`server.servlet.session.cookie.http-only=false`). Live `Set-Cookie` headers on the synthetic response remain covered by `PT-A02-001`. [S07, S13]" + }, + { + "id": "PT-A02-006", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A02-007", + "title": "Cookie with __Host- or __Secure- prefix violates browser prefix requirements", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A02-008", + "title": "Response setting a cookie permits shared or public HTTP caching", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-001", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-002", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-003", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-004", + "title": "Missing Referrer-Policy header", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Already retired in `SEC-HEAD-005` and `QS-HDR-007`: modern browsers default `Referrer-Policy` to `strict-origin-when-cross-origin`, and explicitly unsafe values (`unsafe-url`) remain covered by `PT-A05-047`. [S02, S09]" + }, + { + "id": "PT-A05-005", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-006", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-007", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-008", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-009", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in PentestingCheckRegistry.java" + }, + { + "id": "PT-A05-010", + "title": "RETAIN", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-011", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-012", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in PentestingCheckRegistry.java" + }, + { + "id": "PT-A05-013", + "title": "Missing Permissions-Policy header", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Already retired in `SEC-HEAD-006` and `QS-HDR-008`: omitting `Permissions-Policy` does not establish a meaningful defect without application-specific feature use. [S02]" + }, + { + "id": "PT-A05-014", + "title": "Error responses are configured to expose details", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Covered by `SPRING-WEB-004` (`MEDIUM`) in the Spring advisor (always active on Spring MVC and WebFlux, and DevTools-aware); actual verbose error bodies on the wire remain covered by `PT-A05-006`. [S12, S13]" + }, + { + "id": "PT-A05-015", + "title": "Actuator shutdown endpoint is enabled", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Duplicate of `PT-A05-056` (`CRITICAL` when `/shutdown` is web-mapped), `SPRING-MGMT-004` (`HIGH`), and `SEC-ACT-005` (`HIGH`). [S15]" + }, + { + "id": "PT-A05-016", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-017", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-018", + "title": "Actuator endpoints are configured to reveal values", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Covered by `SPRING-MGMT-003`, `SEC-ACT-007`, `SEC-RXF-ACT-005`, and the web-exposure checks `PT-A05-052` and `PT-A05-053` (which include `show-values=always` in their evidence when `/env` or `/configprops` is mapped). [S15]" + }, + { + "id": "PT-A05-019", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-020", + "title": "Spring Boot DevTools is on the classpath", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Superseded by `SPRING-PROFILE-002` in the Spring advisor (gated on production-like profiles to avoid local-development noise); `PT-A05-062` remains active for remote DevTools support. [S24]" + }, + { + "id": "PT-A05-021", + "title": "RETAIN", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-022", + "title": "RETAIN", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-023", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-024", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-025", + "title": "spring.web.error.include-exception is enabled", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Covered by `SPRING-WEB-004` (`MEDIUM`) in the Spring advisor; actual exception class names in error response bodies remain covered by `PT-A05-006`. [S12, S13]" + }, + { + "id": "PT-A05-026", + "title": "spring.web.error.include-binding-errors reveals validation details", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Covered by `SPRING-WEB-004` (`MEDIUM`) in the Spring advisor; actual error response bodies remain covered by `PT-A05-006`. [S12, S13]" + }, + { + "id": "PT-A05-027", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-028", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-029", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-030", + "title": "spring.jpa.show-sql is enabled", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Covered by `HIB-CONFIG-012` in the Hibernate advisor (production-profile gated, alongside `org.hibernate.SQL`) and `SPRING-CONFIG-002` in the Spring advisor (SQL logger levels). [S25]" + }, + { + "id": "PT-A05-031", + "title": "Verbose logging level configured for framework packages", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Covered by `SPRING-CONFIG-002` in the Spring advisor, `SEC-CONFIG-009` in the servlet Security advisor, and `SEC-RXF-CONFIG-004` in the reactive Security advisor. [S01, S25]" + }, + { + "id": "PT-A05-032", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-033", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-034", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-035", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-036", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-037", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-038", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-039", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-040", + "title": "RETAIN", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-041", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-042", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-043", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-044", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-045", + "title": "Retired", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Ordinary caller-known error-path metadata; Boot 4.1 default is always. Never reuse this ID." + }, + { + "id": "PT-A05-046", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-047", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-048", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-049", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-050", + "title": "Actuator health details are always exposed", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Covered by `SPRING-MGMT-003` (`MEDIUM`) in the Spring advisor (always active on Spring Boot and aware of BootUI's own default) and `SEC-ACT-004` (`LOW`) in the Security advisor. [S15]" + }, + { + "id": "PT-A05-051", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-052", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-053", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-054", + "title": "RETAIN", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-055", + "title": "RETAIN", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-056", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-060", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-061", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-062", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-063", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-064", + "title": "RETAIN", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-065", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-066", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-067", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-068", + "title": "Missing Cross-Origin-Embedder-Policy header", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Omitting `Cross-Origin-Embedder-Policy` is standard unless the application needs cross-origin isolation (such as `SharedArrayBuffer`) and breaks cross-origin subresources by default; browsing-context and resource isolation remain covered by `PT-A05-021` (`Cross-Origin-Opener-Policy`) and `PT-A05-022` (`Cross-Origin-Resource-Policy`). [S02]" + }, + { + "id": "PT-A05-069", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A05-070", + "title": "Retired", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Duplicated QS-CORS-001/002, which always run on Quarkus; delivered CORS stays covered by the synthetic preflight." + }, + { + "id": "PT-A05-071", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in PentestingCheckRegistry.java" + }, + { + "id": "PT-A05-072", + "title": "Retired", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingCheckRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Duplicated QS-TLS-001 at a conflicting severity and ignored the `client-auth=required` default." + }, + { + "id": "PT-A05-073", + "title": "CORS exposes sensitive authentication headers via Access-Control-Expose-Headers", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A07-001", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A07-002", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A07-003", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A07-004", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A07-005", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A07-006", + "title": "UPDATE", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A07-007", + "title": "RETAIN", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A07-008", + "title": "HTTP response challenges for Basic or Digest credentials over plaintext HTTP", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A08-001", + "title": "Unsafe polymorphic JSON default typing or unrejected wildcard JVM serialization filter", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "PT-A10-001", + "title": "Synthetic missing-resource probe triggered an unhandled 5xx server error", + "docSource": "PENTEST-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/pentesting/PentestingChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CDI-001", + "title": "Retired", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkusapp/QuarkusAppChecks.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Framed as a concurrency review prompt, but the real defect on a normal scope is client-proxy field access. Replaced by QA-CDI-004 under a new ID so earlier dismissals of the LOW prompt do not hide the MEDIUM definition error." + }, + { + "id": "QA-CDI-002", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus-deployment/src/main/java/io/github/jdubois/bootui/quarkus/deployment/QuarkusAppMetadataCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CDI-003", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus-deployment/src/main/java/io/github/jdubois/bootui/quarkus/deployment/QuarkusAppMetadataCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CDI-004", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus-deployment/src/main/java/io/github/jdubois/bootui/quarkus/deployment/QuarkusAppMetadataCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CDI-005", + "title": "Corrected", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus-deployment/src/main/java/io/github/jdubois/bootui/quarkus/deployment/QuarkusAppMetadataCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CDI-006", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus-deployment/src/main/java/io/github/jdubois/bootui/quarkus/deployment/QuarkusAppMetadataCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CDI-007", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CFG-001", + "title": "Retired", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkusapp/QuarkusAppChecks.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: ConfigMapping is recommended, not mandatory; no custom configuration and programmatic access are valid." + }, + { + "id": "QA-CFG-002", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CFG-003", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CFG-004", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CFG-005", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CFG-006", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-CFG-007", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-DB-001", + "title": "Retired", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkusapp/QuarkusAppChecks.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: The finite default maximum is 50; workload/database sizing cannot be inferred from omission." + }, + { + "id": "QA-DB-002", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-PERF-002", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus-deployment/src/main/java/io/github/jdubois/bootui/quarkus/deployment/QuarkusAppMetadataCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-PERF-003", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus-deployment/src/main/java/io/github/jdubois/bootui/quarkus/deployment/QuarkusAppMetadataCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-PERF-004", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus-deployment/src/main/java/io/github/jdubois/bootui/quarkus/deployment/QuarkusAppMetadataCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-PERF-005", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-PROD-001", + "title": "Retired", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkusapp/QuarkusAppChecks.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: `RUN` can use profile `prod` with Dev Services; the declaration need not be useless." + }, + { + "id": "QA-PROD-002", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-PROD-003", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-PROF-001", + "title": "Retired", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkusapp/QuarkusAppChecks.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Missing `%prod` keys do not establish missing production configuration." + }, + { + "id": "QA-RX-001", + "title": "Retired", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkusapp/QuarkusAppChecks.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: JDBC capability plus reactive signatures does not prove an event-loop call; Mutiny offloading is legitimate." + }, + { + "id": "QA-SCH-001", + "title": "Retired", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkusapp/QuarkusAppChecks.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Local/per-replica jobs are legitimate; no topology or once-per-cluster intent is observed." + }, + { + "id": "QA-WEB-001", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-WEB-002", + "title": "Retired", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkusapp/QuarkusAppChecks.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Folded into QA-WEB-004 (`INFO`): `quarkus.shutdown.timeout=0` and sub-millisecond durations (`timeout.toMillis() <= 0L`) behave identically to the absent default (`ShutdownConfig.isTimeoutEnabled()`)." + }, + { + "id": "QA-WEB-003", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus-deployment/src/main/java/io/github/jdubois/bootui/quarkus/deployment/QuarkusAppMetadataCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-WEB-004", + "title": "Updated", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QA-WEB-005", + "title": "Added", + "docSource": "QUARKUS-ADVISOR-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/quarkusapp/QuarkusAppSnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-ANALYSIS", + "title": "", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityScanner.java", + "inDocs": false, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-001", + "title": "No authentication mechanism configured", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-002", + "title": "Basic authentication without TLS", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-003", + "title": "Review form authentication CSRF defenses", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-004", + "title": "JWT verification without an expected issuer", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-005", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-AUTH-006", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-AUTH-007", + "title": "Embedded identity store enabled for production", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-008", + "title": "JWT verification without audience validation", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-009", + "title": "Review static JWT trust-anchor rotation", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-010", + "title": "JDBC identity store using clear-text password mapper", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-011", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-AUTH-012", + "title": "Form authentication without TLS", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-013", + "title": "Embedded users stored with plain-text passwords", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTH-014", + "title": "", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTHZ", + "title": "", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTHZ-001", + "title": "No path or role authorization", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTHZ-002", + "title": "Permission policy permits all paths", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTHZ-003", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-AUTHZ-004", + "title": "No deny-by-default for unannotated endpoints", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-AUTHZ-005", + "title": "Production HTTP permission path uses unsupported /** wildcard", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-CFG-001", + "title": "Possible secret in configuration", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-CORS", + "title": "", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-CORS-001", + "title": "CORS allows any origin", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-CORS-002", + "title": "CORS wildcard origin with credentials", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-CORS-003", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-CORS-004", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-CORS-005", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-DEV-001", + "title": "OIDC TLS verification disabled", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-DEV-002", + "title": "Swagger/GraphQL UI always included", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-DEV-003", + "title": "SmallRye Health UI always included", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-GRAPHQL-001", + "title": "GraphQL schema introspection enabled", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-GRPC-001", + "title": "gRPC server reflection enabled in the prod profile", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-HDR", + "title": "", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-HDR-001", + "title": "Weak Strict-Transport-Security policy", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-HDR-002", + "title": "Weak Content-Security-Policy", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-HDR-003", + "title": "Missing Strict-Transport-Security header", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-HDR-004", + "title": "Missing Content-Security-Policy header", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-HDR-005", + "title": "Missing clickjacking protection", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-HDR-006", + "title": "Missing X-Content-Type-Options header", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-HDR-007", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-HDR-008", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-MGMT", + "title": "", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-MGMT-001", + "title": "Management interface on a non-loopback host", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-MGMT-002", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in QuarkusSecurityChecks.java" + }, + { + "id": "QS-MGMT-003", + "title": "Management interface has no explicit prod-scoped host binding", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-MGMT-004", + "title": "Management permission policies declared while management auth is disabled", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-MSG-001", + "title": "Messaging credentials configured without an encrypted protocol", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-OIDC-001", + "title": "OIDC without token audience validation", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-OIDC-002", + "title": "OIDC web-app session cookie not forced secure", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-OIDC-003", + "title": "Public OIDC client without PKCE", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-OIDC-004", + "title": "OIDC token issuer validation is bypassed", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-OIDC-005", + "title": "OIDC session token encryption disabled", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-OIDC-006", + "title": "OIDC client endpoints must use HTTPS and verify TLS", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-PROXY-001", + "title": "Forwarded headers trusted from any address", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-SESSION", + "title": "", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": false, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-SESSION-001", + "title": "Form-auth session cookie not HttpOnly", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-SESSION-002", + "title": "Form-auth session cookie SameSite=None", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-SESSION-003", + "title": "Long form-auth idle timeout", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-SESSION-004", + "title": "Short form-auth session encryption key", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-TLS-001", + "title": "Insecure requests enabled", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-TLS-002", + "title": "No TLS configured for the main HTTP listener", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Duplicate of `QS-TLS-001` (`LOW`, `quarkus.http.insecure-requests=enabled`) in the default `insecure-requests` posture when listener SSL is absent, and fires on every local Quarkus dev/test run. Listener TLS material detection (legacy keystore, paired certificate/key lists, and TLS-registry JKS/P12 or paired PEM entries selected by `quarkus.http.tls-configuration-name`) continues to gate `QS-HDR-003`. The ID remains reserved in `QuarkusSecurityChecks.RETIRED_RULES` so existing `.bootui/boot-ui.yml` dismissals stay valid." + }, + { + "id": "QS-TLS-003", + "title": "TLS certificate validation disabled", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-TLS-004", + "title": "Identity-provider and JWK endpoints should use HTTPS", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-TLS-005", + "title": "TLS hostname verification disabled", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "QS-TLS-006", + "title": "Legacy TLS protocol versions configured", + "docSource": "QUARKUS-CHECKS.md", + "javaSource": "bootui-quarkus/src/main/java/io/github/jdubois/bootui/quarkus/security/QuarkusSecuritySnapshotProviderImpl.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-DOC-001", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: OpenAPI generators derive operations from controller signatures without requiring explicit @Operation annotations." + }, + { + "id": "RAPI-DOC-002", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: OpenAPI generators group operations automatically without requiring explicit @Tag annotations." + }, + { + "id": "RAPI-DOC-003", + "title": "Retire; INFO metadata retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: missing explicit OpenAPI deprecation annotations do not prove missing client signals." + }, + { + "id": "RAPI-DTO-001", + "title": "Correct payload/array extraction; HIGH retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-DTO-002", + "title": "Correct inference claim; MEDIUM \u2192 LOW", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-DTO-004", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: response DTO setters do not affect the HTTP contract; mutability is code style." + }, + { + "id": "RAPI-DTO-005", + "title": "Correct scope/copy; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-001", + "title": "Correct discovery; MEDIUM \u2192 INFO", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-002", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: throws clauses do not affect exception resolution or the HTTP contract." + }, + { + "id": "RAPI-ERR-003", + "title": "Narrow informative comparisons; INFO retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-004", + "title": "Correct status observability; MEDIUM retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-005", + "title": "Require known fixed non-5xx status; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-006", + "title": "Narrow/qualify migration; INFO retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-007", + "title": "Fixed (Quarkus)", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-008", + "title": "Qualify text-error guidance; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/ExceptionHandlersDoNotReturnRawStringsRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-009", + "title": "Correct exception extraction; MEDIUM retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/DeclaredExceptionsHaveHandlersRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-010", + "title": "Exclude unknown shapes; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/ConsistentErrorContractRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-ERR-011", + "title": "Retire; HIGH metadata retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/ExceptionHandlersDoNotExposeStackTracesRule.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: stack-trace calls can be server-side logging; bytecode calls do not prove response exposure." + }, + { + "id": "RAPI-MAP-001", + "title": "Correct model; MEDIUM retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-002", + "title": "Narrowed; HIGH retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-003", + "title": "Calibrate HIGH \u2192 LOW", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-004", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: class-level base paths are a code-layout preference, not an HTTP contract requirement." + }, + { + "id": "RAPI-MAP-005", + "title": "Calibrate LOW \u2192 INFO", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-006", + "title": "Restrict required-binding assertion; HIGH retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-007", + "title": "Correct normative wording; MEDIUM retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-008", + "title": "Retire; LOW metadata retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: literal URIs identify resources; missing template variables do not establish a defect." + }, + { + "id": "RAPI-MAP-009", + "title": "Restrict parser assertion to Spring; HIGH retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-010", + "title": "Calibrate MEDIUM \u2192 INFO", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-011", + "title": "Qualify threshold; INFO retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-012", + "title": "**Added**, HIGH", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-MAP-013", + "title": "**Added**, HIGH", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-NAME-001", + "title": "Calibrate LOW \u2192 INFO", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-NAME-002", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: English plural-suffix heuristics cannot establish resource cardinality or naming defects." + }, + { + "id": "RAPI-NAME-003", + "title": "Calibrate LOW \u2192 INFO", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-NAME-004", + "title": "Retire; LOW metadata retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: literal dotted mappings remain valid independently of implicit suffix negotiation." + }, + { + "id": "RAPI-PAGE-001", + "title": "Narrow collection review; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-PAGE-002", + "title": "Correct remedy; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-PAGE-003", + "title": "Qualify policy; INFO retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-PAGE-004", + "title": "**Added**, LOW", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-RESP-001", + "title": "Fixed (Quarkus)", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-RESP-002", + "title": "Narrow; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-RESP-003", + "title": "Correct envelope facts; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-RESP-004", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: scalar GET responses are valid HTTP representations." + }, + { + "id": "RAPI-RESP-005", + "title": "Narrow no-body inference; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-RESP-006", + "title": "HIGH \u2192 MEDIUM", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-RESP-007", + "title": "Review status overlap; MEDIUM retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-RESP-008", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: @ResponseStatus(CREATED) declarations cannot express response headers on Spring, and Location is not universally required by RFC 9110." + }, + { + "id": "RAPI-RESP-009", + "title": "Narrow; LOW \u2192 INFO", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/HeadHandlersDoNotReturnBodiesRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-RESP-010", + "title": "**Added**, HIGH", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/ResponseStatusReasonOnBodyHandlersRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-RESP-011", + "title": "**Added**, LOW", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/OptionalReadsMapAbsenceRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VALID-001", + "title": "Constraint-bearing payload evidence; MEDIUM", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VALID-002", + "title": "Correct reactive request shape; HIGH retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VALID-003", + "title": "Correct boolean/default/Kotlin handling; MEDIUM retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VALID-004", + "title": "Restrict to aggregate bindings; LOW retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VALID-005", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: method names and header bindings cannot establish missing retry deduplication." + }, + { + "id": "RAPI-VALID-006", + "title": "**Added**, HIGH", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/SingleRequestBodyRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VALID-007", + "title": "**Added**, HIGH", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VER-001", + "title": "Fixed", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VER-002", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: omitting mapping-level consumes on standard JSON endpoints is idiomatic and still constrained by framework message converters." + }, + { + "id": "RAPI-VER-003", + "title": "Calibrate LOW \u2192 INFO", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VER-004", + "title": "Accept concrete non-JSON formats; INFO retained", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VER-005", + "title": "Retired", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired heuristic: method-specific produces declarations on specialized endpoints do not require redundant produces attributes on sibling handlers." + }, + { + "id": "RAPI-VER-006", + "title": "Fixed", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VER-007", + "title": "**Added**, HIGH", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/BodylessHandlersDoNotRequireContentTypeRule.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "RAPI-VER-008", + "title": "**Added**, HIGH", + "docSource": "REST-API-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/restapi/RestApiRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-ACT-001", + "title": "Actuator endpoints should not all be web-exposed", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-ACT-002", + "title": "Sensitive actuator endpoints should not be exposed", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-ACT-003", + "title": "Exposed actuator endpoints should be protected by a security chain", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-ACT-004", + "title": "Actuator health details/components should not be exposed unconditionally", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Duplicate of the Spring Advisor's `SPRING-MGMT-003` (`MEDIUM`), which remains always active across Spring MVC and WebFlux (with or without Spring Security) and covers `management.endpoint.health.show-details=always` and `show-components=always` alongside `show-values=always`. `SEC-ACT-004` also fired even when `/actuator/health` required authentication in `SecurityFilterChain`. The ID remains reserved in `SecurityRuleRegistry.RETIRED_RULE_IDS` so existing `.bootui/boot-ui.yml` dismissals stay valid." + }, + { + "id": "SEC-ACT-005", + "title": "The actuator shutdown endpoint should not be enabled", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-ACT-006", + "title": "Sensitive actuator endpoints should use an isolated management port", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-ACT-007", + "title": "Actuator env/configprops values must stay sanitized", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTH-001", + "title": "Password encoder must not store credentials in plain text", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTH-002", + "title": "Password encoder should not use a weak or legacy algorithm", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTH-003", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-AUTH-004", + "title": "Review the Boot property-backed default account", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTH-005", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-AUTH-006", + "title": "BCrypt password encoder should use an adequate work factor", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTH-007", + "title": "HTTP Basic authentication should run only over HTTPS", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTH-008", + "title": "hideUserNotFoundExceptions should stay enabled", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTH-009", + "title": "Do not run production on Spring Boot's auto-generated default user", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTH-010", + "title": "Form login should run only over HTTPS", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTHZ-001", + "title": "Every filter chain should enforce authorization", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTHZ-002", + "title": "Avoid blanket permitAll authorization", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTHZ-003", + "title": "Application security should not be effectively disabled", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTHZ-004", + "title": "Catch-all filter chains should be ordered last", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTHZ-005", + "title": "Broader authorizeHttpRequests matchers should not shadow narrower ones", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-AUTHZ-006", + "title": "Prefer permitAll within a security chain to ignoring requests", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CONFIG-001", + "title": "Spring Security debug mode should be off", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CONFIG-002", + "title": "H2 console should not be enabled in production", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CONFIG-003", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-CONFIG-004", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-CONFIG-005", + "title": "Error responses should not leak stack traces or internal messages", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Duplicate of the Spring Advisor's `SPRING-WEB-004` (`MEDIUM`), which remains always active across Spring MVC and WebFlux (with or without Spring Security) and also covers `spring.web.error.include-exception=true` while ignoring DevTools' development-only defaults. The ID remains reserved in `SecurityRuleRegistry.RETIRED_RULE_IDS` so existing `.bootui/boot-ui.yml` dismissals stay valid." + }, + { + "id": "SEC-CONFIG-006", + "title": "Application should enforce HTTPS in production", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CONFIG-007", + "title": "Configuration should not hold literal secret values", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CONFIG-008", + "title": "StrictHttpFirewall should not relax its default URL protections", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CONFIG-009", + "title": "Spring Security framework logging should not run at DEBUG/TRACE in production", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CORS-001", + "title": "CORS should not allow all origins", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CORS-002", + "title": "CORS must not combine wildcard origins with credentials", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CORS-003", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-CORS-004", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-CORS-006", + "title": "CORS should not allow broad origin patterns", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CSRF-001", + "title": "CSRF protection should stay on for browser-automatic credentials", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-CSRF-002", + "title": "CSRF protection should stay on for HTTP Basic authentication", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-HEAD-001", + "title": "HTTP Strict Transport Security should be emitted", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-HEAD-002", + "title": "X-Frame-Options (clickjacking protection) should stay enabled", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-HEAD-003", + "title": "A Content-Security-Policy should be defined", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-HEAD-004", + "title": "X-Content-Type-Options should stay enabled", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-HEAD-005", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-HEAD-006", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-HEAD-007", + "title": "Security response headers should not be globally disabled", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-HEAD-008", + "title": "Review HSTS max-age below the framework default", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-HEAD-009", + "title": "Review permissive CSP script execution", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-HEAD-010", + "title": "Cross-origin isolation headers should be considered", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Fires on nearly every browser-credential Spring MVC chain because Spring Security intentionally omits `Cross-Origin-Opener-Policy` (`COOP`) and `Cross-Origin-Embedder-Policy` (`COEP`) by default. Enabling `COOP`/`COEP` breaks OAuth2/OIDC popups, third-party CDNs, and cross-origin embeds unless the application specifically requires cross-origin isolation (for example for `SharedArrayBuffer`). Matches the retirement of `SEC-HEAD-005` (`Referrer-Policy`) and `SEC-HEAD-006` (`Permissions-Policy`). The ID remains reserved in `SecurityRuleRegistry.RETIRED_RULE_IDS` so existing `.bootui/boot-ui.yml` dismissals stay valid." + }, + { + "id": "SEC-METHOD-001", + "title": "Method security annotations require method security to be enabled", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-METHOD-002", + "title": "Replace @EnableGlobalMethodSecurity with @EnableMethodSecurity", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-OAUTH-001", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-OAUTH-002", + "title": "Validate the JWT audience claim", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-OAUTH-003", + "title": "Review static verification-key rotation", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-OAUTH-004", + "title": "JWT issuer and JWK endpoints should use HTTPS", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-OAUTH-005", + "title": "Opaque-token introspection must use HTTPS", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-OAUTH-006", + "title": "OAuth2 client provider endpoints must use HTTPS", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-ACT-001", + "title": "Actuator endpoints should not be exposed with a wildcard", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-ACT-002", + "title": "Sensitive Actuator endpoints should be explicitly reviewed", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-ACT-003", + "title": "Review authorization for broad reactive Actuator exposure", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-ACT-004", + "title": "Consider isolating Actuator endpoints on a separate management port", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-ACT-005", + "title": "Reactive Actuator env/configprops values must stay sanitized", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-AUTH-001", + "title": "Reactive password encoder must not store credentials in plain text", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-AUTH-002", + "title": "Reactive password encoder should not use a weak or legacy algorithm", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-AUTH-003", + "title": "Reactive BCrypt password encoder should use an adequate work factor", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-AUTHZ-001", + "title": "Every reactive filter chain should enforce authorization", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-AUTHZ-004", + "title": "Place unconditional reactive chains after scoped chains", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-CONFIG-002", + "title": "Review HTTPS enforcement for reactive production applications", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-CONFIG-003", + "title": "Credentials or secrets should not be hardcoded in application properties", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-CONFIG-004", + "title": "Spring Security DEBUG or TRACE logging should not run in production", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-CORS-001", + "title": "CORS should not allow wildcard origins in reactive applications", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-CORS-002", + "title": "Credentialed reactive CORS must not trust every origin pattern", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-CORS-003", + "title": "Reactive CORS should not allow broad origin patterns", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-CSRF-001", + "title": "Reactive OAuth2/OIDC or formLogin() chains should enable CSRF protection", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-CSRF-002", + "title": "Review CSRF protection for reactive HTTP Basic chains", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-HEAD-001", + "title": "HSTS header should be configured for reactive applications over TLS", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-HEAD-002", + "title": "X-Frame-Options header should be set in reactive chains", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-HEAD-003", + "title": "X-Content-Type-Options should be set in reactive chains", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-HEAD-004", + "title": "Review Content-Security-Policy enforcement for reactive browser chains", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-HEAD-005", + "title": "Security headers should not be disabled in reactive chains", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-HEAD-006", + "title": "Review HSTS max-age values below Spring Security's one-year default", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-HEAD-007", + "title": "Review permissive CSP script execution in reactive chains", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-METHOD-001", + "title": "Method security annotations require reactive method security to be enabled", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-OAUTH2-002", + "title": "Review rotation for reactive JWT static public keys", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-OAUTH2-003", + "title": "JWT issuer URI and JWKS URI should use HTTPS in reactive applications", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-OAUTH2-004", + "title": "Opaque-token introspection must use HTTPS in reactive production applications", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-OAUTH2-005", + "title": "OAuth2 client provider endpoints must use HTTPS in reactive production applications", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-OAUTH2-006", + "title": "Validate the JWT audience claim in reactive resource servers", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SpringReactiveSecurityObservationCollector.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-RXF-SESSION-001", + "title": "Review reactive chains that mix bearer-token and browser login filters", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/reactivesecurity/ReactiveSecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-SESSION-001", + "title": "Session fixation protection should be enabled", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-SESSION-002", + "title": "Session cookie should set the Secure flag", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-SESSION-003", + "title": "Session cookie should set the HttpOnly flag", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-SESSION-004", + "title": "Review SameSite=None on the session cookie", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-SESSION-005", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-SESSION-006", + "title": "Review bearer authentication saved in sessions", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-SESSION-007", + "title": "Consider configuring concurrent session control", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "**Retired.** Fires on every stateful `formLogin()` chain that omits `ConcurrentSessionFilter` (`maximumSessions`). Limiting concurrent sessions per user is a domain-specific product choice that breaks normal multi-device logins rather than a baseline Spring Security hardening requirement. The ID remains reserved in `SecurityRuleRegistry.RETIRED_RULE_IDS` so existing `.bootui/boot-ui.yml` dismissals stay valid." + }, + { + "id": "SEC-SESSION-008", + "title": "Remember-me signing key should be sufficiently long", + "docSource": "SECURITY-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SEC-SESSION-009", + "title": "Retired", + "docSource": null, + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/security/SecurityRuleRegistry.java", + "inDocs": false, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: reserved in SecurityRuleRegistry.java" + }, + { + "id": "SEC-STATIC-001", + "title": "", + "docSource": null, + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/staticsecurity/StaticSecurityAnalysisDetector.java", + "inDocs": false, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-AOT-001", + "title": "Runtime bean singleton registration cannot be transformed by Spring AOT", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-AOT-002", + "title": "Programmatic instance suppliers are not captured by Spring AOT", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-AOT-003", + "title": "Environment-sensitive bean conditions freeze selection at AOT build time", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-AOT-004", + "title": "Programmatic ApplicationContext creation requires AOT review", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-AOT-005", + "title": "Bean-referencing @ConditionalOnExpression can initialize beans too early", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-AOT-006", + "title": "Explicit-argument bean retrieval may bypass AOT instance suppliers", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-AOT-007", + "title": "Bean-definition registry post-processors may run again under AOT", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-AOT-008", + "title": "Refresh-scoped bean declarations are not supported under Spring AOT", + "docSource": "GRAALVM-READINESS-CHECKS.md", + "javaSource": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/graalvm/GraalVmChecks.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-CACHE-001", + "title": "Review concurrent-map cache capacity", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-CONFIG-001", + "title": "Retired", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: More than 300 bean definitions is not a startup-cost measurement and is exceeded by almost every web, Actuator and data application (BootUI's own beans included). Boot advises against enabling lazy initialization by default because it delays failures and first-request work." + }, + { + "id": "SPRING-CONFIG-002", + "title": "Review broad verbose logging configuration", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-CONFIG-003", + "title": "Review renamed or removed Boot 4 properties", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-CONFIG-004", + "title": "Consider a stable application name", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-CONFIG-005", + "title": "Review globally ignored missing configuration", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-CONFIG-006", + "title": "Review Jackson 2-compatible defaults", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-CONFIG-007", + "title": "Review the deprecated Jackson 2 auto-configuration", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-CONFIG-008", + "title": "Remove the properties migrator after migrating", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-DATA-001", + "title": "Review in-memory JDBC with production-like profiles", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-DATA-002", + "title": "Review in-memory R2DBC with production-like profiles", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-JPA-001", + "title": "Review servlet Open Session in View", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-MGMT-001", + "title": "Review host wildcard Actuator exposure", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-MGMT-002", + "title": "Review explicitly exposed sensitive Actuator endpoints", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-MGMT-003", + "title": "Review Actuator values and health details", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-MGMT-004", + "title": "Review granted heapdump or shutdown web access", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PERF-001", + "title": "Consider virtual threads for applicable blocking work", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PERF-002", + "title": "Review pooled executor routing", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PERF-003", + "title": "Review Framework default async fallback", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PERF-004", + "title": "Retired", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Property absence cannot establish an unreviewed/undersized pool. Explicitly writing the default 10 changes no runtime behavior; size against database capacity and observed load." + }, + { + "id": "SPRING-PERF-005", + "title": "Review single-thread scheduler overlap", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PERF-006", + "title": "Review an unbounded default async queue", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PERF-007", + "title": "Review virtual threads on a JDK before 24", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PERF-008", + "title": "Review `applicationTaskExecutor` back-off when virtual threads are enabled", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PERF-009", + "title": "Review task pool properties ignored under virtual threads", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PERF-011", + "title": "Review incomplete task executor or scheduler shutdown termination settings", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PROFILE-001", + "title": "Retired", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: Profiles are optional; configured default profiles and profile-free external configuration are valid." + }, + { + "id": "SPRING-PROFILE-002", + "title": "Review DevTools packaging for production-like profiles", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-PROFILE-003", + "title": "Review disabled profile-name validation", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-REACTIVE-001", + "title": "Retired", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: A WebFlux app legitimately configures a `DataSource` for Flyway/Liquibase migrations or offloads JDBC calls via `Schedulers.boundedElastic()`. The reflection-only rule cannot inspect method bodies; actual event-loop blocking is covered by Runtime Insights and the Java Agent **Side Effects** panel." + }, + { + "id": "SPRING-REACTIVE-002", + "title": "Retired", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: A safe bounded default is not a defect, and `spring.codec.*` is stale in Boot 4. The new unlimited-aggregation check addresses a different condition." + }, + { + "id": "SPRING-REACTIVE-003", + "title": "Review explicitly unlimited codec aggregation", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WEB-001", + "title": "Consider origin response compression", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WEB-002", + "title": "Review immediate or zero-grace shutdown", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WEB-003", + "title": "Retired", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: `server.http2.enabled` is unset by default; plain HTTP/1.1 is standard in local development and behind TLS-terminating reverse proxies, and enabling `server.http2.enabled=true` without SSL enables cleartext `h2c` (unsupported by browsers)." + }, + { + "id": "SPRING-WEB-004", + "title": "Review configured fallback error details", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WEB-005", + "title": "Review Boot HTTP client timeout policy", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WEB-006", + "title": "Retired", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRuleRegistry.java", + "inDocs": true, + "inJava": true, + "retired": true, + "retiredExplanation": "Retired: A profile name cannot establish a trusted proxy. Changing header trust needs deployment evidence." + }, + { + "id": "SPRING-WEB-007", + "title": "Review a Tomcat cap with a virtual executor", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WEB-008", + "title": "Review an unlimited multipart request size", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-001", + "title": "Review bean definition overriding permission", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-002", + "title": "Review circular-reference permission", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-003", + "title": "Review default JSON mapper selection", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-004", + "title": "Review default async executor selection", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-005", + "title": "Review default DataSource selection", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-006", + "title": "Review default imperative transaction manager", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-007", + "title": "Review RestTemplate migration", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-008", + "title": "Review default-package application beans", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-009", + "title": "Review public mutable singleton fields", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-010", + "title": "Enable resilience processing for `@Retryable` and `@ConcurrencyLimit` beans", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-011", + "title": "Enable infrastructure for `@Async`, `@Cacheable`, and `@Transactional` beans", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + }, + { + "id": "SPRING-WIRING-012", + "title": "Review `@Scheduled` methods without scheduling infrastructure", + "docSource": "SPRING-CHECKS.md", + "javaSource": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "inDocs": true, + "inJava": true, + "retired": false, + "retiredExplanation": null + } + ], + "total": 692, + "reconciliation": { + "independentUnionCount": 739, + "fixtureCount": 692, + "independentIdsExcluded": [ + { + "id": "BOOTUI-COMPAT-001", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/compatibility/PlatformCompatibility.java", + "reason": "BOOTUI-COMPAT-001 is a platform compatibility diagnostic identifier in PlatformCompatibility.java, not an advisor rule." + }, + { + "id": "BOOTUI-COMPAT-002", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/compatibility/PlatformCompatibility.java", + "reason": "BOOTUI-COMPAT-002 is a platform compatibility diagnostic identifier in PlatformCompatibility.java, not an advisor rule." + }, + { + "id": "BOOTUI-COMPAT-003", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/compatibility/PlatformCompatibility.java", + "reason": "BOOTUI-COMPAT-003 is a platform compatibility diagnostic identifier in PlatformCompatibility.java, not an advisor rule." + }, + { + "id": "BOOTUI-COMPAT-010", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/compatibility/PlatformCompatibility.java", + "reason": "BOOTUI-COMPAT-010 is a platform compatibility diagnostic identifier in PlatformCompatibility.java, not an advisor rule." + }, + { + "id": "BOOTUI-COMPAT-011", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/compatibility/PlatformCompatibility.java", + "reason": "BOOTUI-COMPAT-011 is a platform compatibility diagnostic identifier in PlatformCompatibility.java, not an advisor rule." + }, + { + "id": "BOOTUI-COMPAT-012", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/compatibility/PlatformCompatibility.java", + "reason": "BOOTUI-COMPAT-012 is a platform compatibility diagnostic identifier in PlatformCompatibility.java, not an advisor rule." + }, + { + "id": "CACHE-001", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-CACHE-001." + }, + { + "id": "CONFIG-002", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-CONFIG-002." + }, + { + "id": "CONFIG-003", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-CONFIG-003." + }, + { + "id": "CONFIG-004", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-CONFIG-004." + }, + { + "id": "CONFIG-005", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-CONFIG-005." + }, + { + "id": "CONFIG-006", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-CONFIG-006." + }, + { + "id": "CONFIG-007", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-CONFIG-007." + }, + { + "id": "CONFIG-008", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-CONFIG-008." + }, + { + "id": "DATA-001", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-DATA-001." + }, + { + "id": "DATA-002", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-DATA-002." + }, + { + "id": "JPA-001", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-JPA-001." + }, + { + "id": "MGMT-001", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-MGMT-001." + }, + { + "id": "MGMT-002", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-MGMT-002." + }, + { + "id": "MGMT-003", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-MGMT-003." + }, + { + "id": "MGMT-004", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-MGMT-004." + }, + { + "id": "PERF-001", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PERF-001." + }, + { + "id": "PERF-002", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PERF-002." + }, + { + "id": "PERF-003", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PERF-003." + }, + { + "id": "PERF-005", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PERF-005." + }, + { + "id": "PERF-006", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PERF-006." + }, + { + "id": "PERF-007", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PERF-007." + }, + { + "id": "PERF-008", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PERF-008." + }, + { + "id": "PERF-009", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PERF-009." + }, + { + "id": "PERF-011", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PERF-011." + }, + { + "id": "PROFILE-002", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PROFILE-002." + }, + { + "id": "PROFILE-003", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-PROFILE-003." + }, + { + "id": "REACTIVE-003", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-REACTIVE-003." + }, + { + "id": "SHA-256", + "source": "bootui-spring-webflux-sample-app/src/main/java/io/github/jdubois/bootui/webfluxsample/sideeffects/SecurityCheckSeedsController.java", + "reason": "SHA-256 is a digest algorithm label in Java code, not a rule identifier." + }, + { + "id": "SHA-512", + "source": "bootui-cli/src/main/java/io/github/jdubois/bootui/cli/ReleaseRepository.java", + "reason": "SHA-512 is a digest algorithm label in Java code, not a rule identifier." + }, + { + "id": "WEB-001", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WEB-001." + }, + { + "id": "WEB-002", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WEB-002." + }, + { + "id": "WEB-004", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WEB-004." + }, + { + "id": "WEB-005", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WEB-005." + }, + { + "id": "WEB-007", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WEB-007." + }, + { + "id": "WEB-008", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WEB-008." + }, + { + "id": "WIRING-001", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-001." + }, + { + "id": "WIRING-002", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-002." + }, + { + "id": "WIRING-003", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-003." + }, + { + "id": "WIRING-004", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-004." + }, + { + "id": "WIRING-005", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-005." + }, + { + "id": "WIRING-006", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-006." + }, + { + "id": "WIRING-007", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-007." + }, + { + "id": "WIRING-008", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-008." + }, + { + "id": "WIRING-009", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-009." + }, + { + "id": "WIRING-010", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-010." + }, + { + "id": "WIRING-011", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-011." + }, + { + "id": "WIRING-012", + "source": "bootui-spring-boot-starter/src/main/java/io/github/jdubois/bootui/autoconfigure/spring/SpringRules.java", + "reason": "SpringRules stores the shorthand; AbstractSpringRule adds the SPRING- prefix, so the canonical entry is SPRING-WIRING-012." + } + ], + "fixtureIdsOutsideIndependentCounter": [ + { + "id": "QS-ANALYSIS", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityScanner.java", + "reason": "Valid non-numeric Quarkus security identifier; the independent counter requires a three-digit suffix." + }, + { + "id": "QS-AUTHZ", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "reason": "Valid non-numeric Quarkus security identifier; the independent counter requires a three-digit suffix." + }, + { + "id": "QS-CORS", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "reason": "Valid non-numeric Quarkus security identifier; the independent counter requires a three-digit suffix." + }, + { + "id": "QS-HDR", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "reason": "Valid non-numeric Quarkus security identifier; the independent counter requires a three-digit suffix." + }, + { + "id": "QS-MGMT", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "reason": "Valid non-numeric Quarkus security identifier; the independent counter requires a three-digit suffix." + }, + { + "id": "QS-SESSION", + "source": "bootui-engine/src/main/java/io/github/jdubois/bootui/engine/quarkussecurity/QuarkusSecurityChecks.java", + "reason": "Valid non-numeric Quarkus security identifier; the independent counter requires a three-digit suffix." + } + ], + "method": "All docs/**/*.md heading IDs plus src/main/java quoted IDs matching the independent counter pattern; table-only and non-three-digit fixture IDs are listed with reasons" + } +} \ No newline at end of file diff --git a/tests/fixtures/bootui/2.6.0/tools.json b/tests/fixtures/bootui/2.6.0/tools.json new file mode 100644 index 000000000..85f260800 --- /dev/null +++ b/tests/fixtures/bootui/2.6.0/tools.json @@ -0,0 +1,3591 @@ +{ + "tools": [ + { + "name": "get_live_activity", + "command": "activity", + "schema": "QUERY_LIMIT", + "panel": "activity", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Newest events and entry ids only.", + "description": "Newest events and entry ids only. For why a route is slow, what a reload changed, or what a test run did not exercise, call get_runtime_insights or get_runtime_run_comparison first. At most limit (25) entries; query selects an entry type (SQL, EXCEPTION, REST_CLIENT, ...), a severity (SLOW, WARN, ERROR), or text in the summary, detail, path, or method, such as a route; combine namespace:, application:, run:, instance:, and route: qualifiers to select durable scope; entries retain their origins, and unscoped output warns when it spans multiple applications or runs; pageInfo.hasMore means more entries matched or older ones were not searched (a warning then names the window searched), and typeCounts counts every retained entry. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui activity --query SQL --limit 20", + "queryHelp": "an entry type (SQL, EXCEPTION, REST_CLIENT, ...), a severity (SLOW, WARN, ERROR), or text in the summary, detail, path, or method, optionally combined with namespace:, application:, run:, instance:, or route:", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 25, + "description": "Optional maximum number of items to return; default 25, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "disable_agent_sensor", + "command": "agent sensor disable", + "schema": "ID", + "panel": "java-agent", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "With the user's authorization, switch off one supported BootUI Java agent sensor for this application now and for later claims in this JVM; the override is not persisted.", + "description": "With the user's authorization, switch off one supported BootUI Java agent sensor for this application now and for later claims in this JVM; the override is not persisted. id is one of threads, files, environment, thread-activity, thread-locals, or security-sinks. The agent must be attached, armed for this application, and support runtime switches. Returns the updated Java Agent report; use get_agent_status to verify it stopped recording. Before switching, read get_agent_status and get_side_effects for the sensor and confirm its current coverage. Enable only when the investigation needs evidence that this sensor uniquely records; explain the collection and performance trade-off and obtain the user's approval first. Sensors: threads propagates context through Thread operations and retransforms java.lang.Thread, so it is opt-in and a failed self-test leaves it off until restart; files records path patterns for file operations, never contents, and is on by default; environment records environment and system-property names, never values, and measured about 6.8% throughput cost on a property-heavy route; thread-activity records threads and executors per request and added about 11.5% overhead on a thread-per-request route (16.6% with default sensors, above the 10% overall budget); thread-locals scans pooled-thread local maps and reports field identity, never values; security-sinks records JDK checks (unfiltered deserialization, weak algorithms, trust-manager configuration) and request input reaching SQL, commands, file paths, or outbound URLs, with values redacted in reports. Request-value matching also retains query/path values in memory while requests run and is only active when bootui.agent.security-sinks.request-values=true was set at startup; it cannot be enabled by this switch. Security-sinks JDK checks measured about 3.9% extra throughput cost on the benchmark route, and request matching about 3%. Switches last only for this JVM, are not persisted, and change the evidence available to run comparisons. Disable the sensor after the investigation if it is no longer needed; read get_agent_status again to verify the result.", + "example": "bootui agent sensor disable security-sinks", + "idHelp": "A switchable Java agent sensor id (threads, files, environment, thread-activity, thread-locals, or security-sinks).", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "enable_agent_sensor", + "command": "agent sensor enable", + "schema": "ID", + "panel": "java-agent", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "With the user's authorization, switch on one supported BootUI Java agent sensor for this application now and for later claims in this JVM; the override is not persisted.", + "description": "With the user's authorization, switch on one supported BootUI Java agent sensor for this application now and for later claims in this JVM; the override is not persisted. id is one of threads, files, environment, thread-activity, thread-locals, or security-sinks. The agent must be attached, armed for this application, and support runtime switches. Returns the updated Java Agent report; use get_agent_status to verify recording. Before switching, read get_agent_status and get_side_effects for the sensor and confirm its current coverage. Enable only when the investigation needs evidence that this sensor uniquely records; explain the collection and performance trade-off and obtain the user's approval first. Sensors: threads propagates context through Thread operations and retransforms java.lang.Thread, so it is opt-in and a failed self-test leaves it off until restart; files records path patterns for file operations, never contents, and is on by default; environment records environment and system-property names, never values, and measured about 6.8% throughput cost on a property-heavy route; thread-activity records threads and executors per request and added about 11.5% overhead on a thread-per-request route (16.6% with default sensors, above the 10% overall budget); thread-locals scans pooled-thread local maps and reports field identity, never values; security-sinks records JDK checks (unfiltered deserialization, weak algorithms, trust-manager configuration) and request input reaching SQL, commands, file paths, or outbound URLs, with values redacted in reports. Request-value matching also retains query/path values in memory while requests run and is only active when bootui.agent.security-sinks.request-values=true was set at startup; it cannot be enabled by this switch. Security-sinks JDK checks measured about 3.9% extra throughput cost on the benchmark route, and request matching about 3%. Switches last only for this JVM, are not persisted, and change the evidence available to run comparisons. Disable the sensor after the investigation if it is no longer needed; read get_agent_status again to verify the result.", + "example": "bootui agent sensor enable security-sinks", + "idHelp": "A switchable Java agent sensor id (threads, files, environment, thread-activity, thread-locals, or security-sinks).", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "get_agent_status", + "command": "agent status", + "schema": "QUERY", + "panel": "java-agent", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the BootUI Java agent's status: NOT_ATTACHED, DORMANT, ARMED, HELD by another application, DISARMED, UNAVAILABLE, FAILED, or DISABLED with a reason; versions, the current claim, sensors, and setup snippets that attach it.", + "description": "Return the BootUI Java agent's status: NOT_ATTACHED, DORMANT, ARMED, HELD by another application, DISARMED, UNAVAILABLE, FAILED, or DISABLED with a reason; versions, the current claim, sensors, and setup snippets that attach it. This read never claims, installs, or changes the agent. Sensors are summarized (state, counters, failures); query with a sensor id, such as executors, to list only matching sensors with their hooks and self-test steps. Every matching sensor is listed, so the tool takes no limit. Once the executors sensor has counted overflow, a task object several requests submit may have run with another request's context.", + "example": "bootui agent status --query executors", + "queryHelp": "a sensor id, such as executors, for its hooks and self-test steps", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_ai_overview", + "command": "ai overview", + "schema": "NONE", + "panel": "ai", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the local AI-framework telemetry overview derived from already-captured OTLP spans.", + "description": "Return the local AI-framework telemetry overview derived from already-captured OTLP spans. This does not invoke a model, send a prompt, or make any network request. aiFrameworkDetected says whether any supported AI framework is present on every stack; springAiDetected is Spring AI only, so it is always false on Quarkus, and langChain4jDetected covers LangChain4j, including Quarkus LangChain4j. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui ai overview", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_architecture_report", + "command": "architecture report", + "schema": "NONE", + "panel": "architecture", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed Architecture advisor report without starting a new classpath scan.", + "description": "Return the last completed Architecture advisor report without starting a new classpath scan. Use this cached evidence before deciding whether an active architecture_scan is necessary. sampleViolations are bounded previews (up to 10), not the full violationCount. Use violationDetails.scanId with get_architecture_rule_violations to page cached retained details without scanning again. Check truncated for missing details, including retention overflow; a terminal page does not guarantee completeness when truncated. Verify each finding before changing code. sampleLocations aligns index-for-index with sampleViolations when non-empty (a null entry has no location): className, memberName, kind, sourceFile, line, sourcePath and precision (LINE, MEMBER or CLASS). Open sourcePath at line to go straight to the code; violationDetails.locationNotes says why a path is missing.", + "example": "bootui architecture report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "architecture_scan", + "command": "architecture scan", + "schema": "NONE", + "panel": "architecture", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively scan application classes for architecture and dependency violations.", + "description": "Actively scan application classes for architecture and dependency violations. Use for structural reviews; verify each finding against intended module boundaries before changing code. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence and violationDetails.scanId. Read the cached report with get_architecture_report and page a rule's retained violations with get_architecture_rule_violations, without scanning again.", + "example": "bootui architecture scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_architecture_rule_violations", + "command": "architecture violations", + "schema": "RULE_VIOLATIONS", + "panel": "architecture", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read one page of retained violations for the exact rule id from get_architecture_report and that cached report's violationDetails.scanId.", + "description": "Read one page of retained violations for the exact rule id from get_architecture_report and that cached report's violationDetails.scanId. This never starts a scan. Default offset 0 and limit 100; limit is capped at min(1000, transport max-results). Advance by page.returned while page.hasMore; page.total and page.matched count retained entries, not violationCount. If truncated, retention overflow or unavailable upstream details prevent a complete list. Verify each finding before changing code. A refusal is a tool error whose text says why: an unknown rule (not a rule of this advisor), a rule with no findings in that scan (it passed, was skipped, or failed), or a stale or missing scanId, for which reread the cached report rather than start a new scan. On MCP -32003 byte-budget refusal, retry the same scanId and offset with a smaller limit; a refusal is not an empty or completed page. A non-empty locations list aligns index-for-index with violations (a null entry has no location); an empty list means no violation on the page has one. A page's violationCount is the scan's total; where its suppressed list is non-empty, entries marked true were dismissed by the developer and no longer count in the report.", + "example": "bootui architecture violations --scan-id --limit 100", + "idHelp": "A rule id and the violationDetails.scanId from 'bootui architecture report'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 1, + "description": "The rule id, from get_architecture_report." + }, + "scanId": { + "type": "string", + "minLength": 1, + "description": "The cached report's violationDetails.scanId. Never starts a scan." + }, + "offset": { + "type": "integer", + "minimum": 0, + "default": 0, + "description": "Zero-based offset into the retained violations; advance it by page.returned while page.hasMore." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Page size, default 100, capped at min(1000, bootui.mcp.max-results)." + } + }, + "additionalProperties": false, + "required": [ + "id", + "scanId" + ] + } + }, + { + "name": "get_beans", + "command": "beans", + "schema": "QUERY_LIMIT", + "panel": "beans", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Search Spring beans by name or type and return a bounded result.", + "description": "Search Spring beans by name or type and return a bounded result. Use this to verify runtime wiring, not as proof that a bean is exercised. At most limit (25) beans; page.hasMore means more matched.", + "example": "bootui beans --query dataSource", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 25, + "description": "Optional maximum number of items to return; default 25, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_cache_stats", + "command": "cache", + "schema": "NONE", + "panel": "cache", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return current cache manager and cache statistics (hits, misses, size) for each configured cache.", + "description": "Return current cache manager and cache statistics (hits, misses, size) for each configured cache. Use to verify cache behavior before proposing a caching change. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui cache", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_code_inventory", + "command": "code inventory", + "schema": "QUERY_LIMIT", + "panel": "code-inventory", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return Code Inventory: did the code that changed since the previous run execute in this run? Advertised only while the BootUI agent's inventory sensor records this run (see get_agent_status).", + "description": "Return Code Inventory: did the code that changed since the previous run execute in this run? Advertised only while the BootUI agent's inventory sensor records this run (see get_agent_status). Counts first (N of M tracked methods executed, changed, added, removed, dependencies), then at most limit (25) rows of query: changed (the default; methods changed or added since the previous DevTools restart or Quarkus live reload, not executed first, with the first request id and route that ran each), never-executed, not-tracked, executed, dependencies (declared jars not loaded in this run first), or a package, class, or method name. NOT_TRACKED is not NEVER_EXECUTED; a jar not loaded in this run is not proof it is unused. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui code inventory --query changed", + "queryHelp": "changed (the default), never-executed, not-tracked, executed, dependencies, or a package, class, or method name", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 25, + "description": "Optional maximum number of items to return; default 25, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_code_paths", + "command": "code paths", + "schema": "QUERY_LIMIT", + "panel": "code-paths", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return Code Paths: which application bean methods each route spends its time in, from the BootUI agent's code-paths sensor.", + "description": "Return Code Paths: which application bean methods each route spends its time in, from the BootUI agent's code-paths sensor. Advertised only while that sensor records this run (see get_agent_status). Without query, the routes slowest warm median first, at most limit (10), each with its top methods by self time; with query, the routes whose label, top methods, or any method their requests ran (a route's first request included) contain it, and for a single route its method nodes with the most self time. Times are per warm request; each node's calls list the SQL, REST client, cache, and AI calls recorded while it was the innermost instrumented method on their thread, whose time is part of its self time; calls recorded on another thread carry no stamp and show under no node. An assemblyOnly route's handler ran on an event loop, returned a reactive or asynchronous result, or BootUI could not tell where its work ran, so its tree times assembly, not the work. Node percentiles are approximate, from log2 buckets. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui code paths --query 'GET /orders'", + "queryHelp": "empty (the slowest routes), or a route or method name", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 10, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 10, + "description": "Optional maximum number of items to return; default 10, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_conditions", + "command": "conditions", + "schema": "QUERY_LIMIT", + "panel": "conditions", + "action": false, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Search Spring auto-configuration condition evaluation outcomes by case-insensitive name and return matched, unmatched, and unconditional entries.", + "description": "Search Spring auto-configuration condition evaluation outcomes by case-insensitive name and return matched, unmatched, and unconditional entries. Use to confirm why a bean or auto-configuration was or was not applied, rather than guessing from source. At most limit (25) entries, positive matches then negative ones; query also narrows unconditionalClasses and exclusions, whose counts stay totals.", + "example": "bootui conditions --query DataSource", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 25, + "description": "Optional maximum number of items to return; default 25, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_config", + "command": "config", + "schema": "QUERY_LIMIT", + "panel": "config", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Search effective configuration by name or displayed value and return a bounded result.", + "description": "Search effective configuration by name or displayed value and return a bounded result. Name search is relaxed-binding aware: it ignores case and treats `_` and `-` as `.`, so the dotted, kebab-case, and `UPPER_SNAKE_CASE` spellings of one property all find it \u2014 `bootui.mcp.enabled` also finds a value supplied as the environment variable `BOOTUI_MCP_ENABLED`, which is enumerated under that literal name. Values are matched literally, and each row reports the exact name and source its property source published. In `page`, `total` counts every property before filtering while `matched` counts the query hits, so `matched: 0` means this query found nothing, not that the property is absent \u2014 retry with a shorter query before concluding it is unset. Secret-like configuration values are masked; prefer a narrow query. At most limit (25) properties; propertySuggestions, the browser's completion list, is always empty here.", + "example": "bootui config --query server.port", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 25, + "description": "Optional maximum number of items to return; default 25, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_crac_report", + "command": "crac report", + "schema": "NONE", + "panel": "crac", + "action": false, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed CRaC readiness report without starting a new resource-lifecycle scan.", + "description": "Return the last completed CRaC readiness report without starting a new resource-lifecycle scan. Use cached findings before deciding whether crac_scan is necessary.", + "example": "bootui crac report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "crac_scan", + "command": "crac scan", + "schema": "NONE", + "panel": "crac", + "action": true, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively assess Spring checkpoint/restore readiness.", + "description": "Actively assess Spring checkpoint/restore readiness. Verify resource-lifecycle findings in an actual CRaC checkpoint and restore test. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence. Read the cached report with get_crac_report without scanning again.", + "example": "bootui crac scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_flyway_migrations", + "command": "db flyway", + "schema": "NONE", + "panel": "flyway", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current Flyway migration history and status without running migrate or clean.", + "description": "Return the current Flyway migration history and status without running migrate or clean. Verify pending and failed migrations against the configured datasource.", + "example": "bootui db flyway", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_liquibase_changesets", + "command": "db liquibase", + "schema": "NONE", + "panel": "liquibase", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current Liquibase change-set history and status without running update.", + "description": "Return the current Liquibase change-set history and status without running update. Verify pending and failed changesets against the configured datasource.", + "example": "bootui db liquibase", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "mysql_read", + "command": "db mysql read", + "schema": "NONE", + "panel": "mysql", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively read the application's MySQL JDBC datasources using bounded, read-only statistics queries.", + "description": "Actively read the application's MySQL JDBC datasources using bounded, read-only statistics queries. Returns sessions and blocking, normalized statement rankings, table/index activity, InnoDB metrics, local replication channels and curated settings. This is an operational observation, not an advisor or health score. Inspect each section's scope, reason and hint: server-wide counters include other clients, and default-schema association is not exhaustive access to that schema. Unknown values are null; large counters are exact decimal strings. Row-cap truncation is distinct from permission, instrumentation and timeout limitations. An empty replication list establishes absence only when its section was successfully read. Never enables monitoring, reads application records or returns raw session/sample SQL. It answers with a summary, not the rows: status, message, readAt, truncated, and each datasource's status, message and sections (id, status, reason, rowCount, truncated). Read the rows, scopes and hints with get_mysql_report, which returns this read without querying again.", + "example": "bootui db mysql read", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_mysql_report", + "command": "db mysql report", + "schema": "NONE", + "panel": "mysql", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed MySQL operational report without contacting the database.", + "description": "Return the last completed MySQL operational report without contacting the database. NOT_READ means no current evidence, not a healthy database; exposure-policy changes invalidate the cached report. Check readAt, per-section scope and limitations before using it. Use mysql_read only when an explicitly approved fresh observation is needed.", + "example": "bootui db mysql report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_database_connection_pools", + "command": "db pools", + "schema": "NONE", + "panel": "database-connection-pools", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return current connection pool configuration and live metrics (active, idle, pending connections) for each configured datasource.", + "description": "Return current connection pool configuration and live metrics (active, idle, pending connections) for each configured datasource. Use to diagnose pool exhaustion or misconfiguration.", + "example": "bootui db pools", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "postgresql_read", + "command": "db postgres read", + "schema": "NONE", + "panel": "postgresql", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively read PostgreSQL's own pg_stat_* and pg_catalog views for the application datasources and record what the server currently reports: the live session snapshot, cache hit and rollback ratios, connection usage, transaction-ID age, the top normalized statements, index and relation activity, autovacuum state, replication and notable settings.", + "description": "Actively read PostgreSQL's own pg_stat_* and pg_catalog views for the application datasources and record what the server currently reports: the live session snapshot, cache hit and rollback ratios, connection usage, transaction-ID age, the top normalized statements, index and relation activity, autovacuum state, replication and notable settings. This is a runtime view, not an advisor: it grades nothing and emits no findings. The read is bounded and read-only. Read every section's `reason` before trusting its rows: a section BootUI read only partly stays `AVAILABLE` and carries a non-null `reason`, so `status` alone does not mean complete, while `SKIPPED` and `FAILED` mark a section it did not read at all. A `hint` is a methodology caveat on rows that were read, not missing evidence. `truncated` means the row cap was reached, and any of these degrades the database and report `status` to `PARTIAL`. The usual cause is a role without pg_monitor membership, which hides other backends from the session list and the statement text and replica details from their sections. Budget exhaustion is reported in `reason`, not as row-cap truncation. An empty replica list proves absence only when `replication.replicasAvailable` is true; otherwise the list was not read. It answers with a summary, not the rows: status, message, readAt, truncated, and each database's status, message and sections (id, status, reason, rowCount, truncated). Read the rows, hints and replication details with get_postgresql_report, which returns this read without querying again.", + "example": "bootui db postgres read", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_postgresql_report", + "command": "db postgres report", + "schema": "NONE", + "panel": "postgresql", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed PostgreSQL runtime view without querying the server again.", + "description": "Return the last completed PostgreSQL runtime view without querying the server again. Before any read has run its `status` is `NOT_READ` and it carries no rows, which means nothing has been looked at rather than that nothing is wrong. Its session snapshot is only as current as that read, so prefer an active postgresql_read when the question is about what the database is doing right now. Check each section's `reason` for missing coverage; an empty replica list proves absence only when `replication.replicasAvailable` is true.", + "example": "bootui db postgres report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_database_advisor_report", + "command": "db report", + "schema": "NONE", + "panel": "database-advisor", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed Database advisor report without querying schema metadata again.", + "description": "Return the last completed Database advisor report without querying schema metadata again. Use this cached evidence before deciding whether an active database_advisor_scan is necessary. sampleViolations are bounded previews (up to 10), not the full violationCount. Use violationDetails.scanId with get_database_advisor_rule_violations to page cached retained details without scanning again. Check truncated for missing details, including retention overflow; a terminal page does not guarantee completeness when truncated. Verify each finding before changing code. A result's violationCount counts active findings: suppressedCount findings the developer dismissed one by one are left out of it, of findingsFound, of severityCounts and of the score.", + "example": "bootui db report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "database_advisor_scan", + "command": "db scan", + "schema": "NONE", + "panel": "database-advisor", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively introspect the physical database schema (tables, columns, keys, indexes) via read-only JDBC metadata, plus PostgreSQL/MySQL/MariaDB catalog checks and Hibernate mapping cross-reference when available.", + "description": "Actively introspect the physical database schema (tables, columns, keys, indexes) via read-only JDBC metadata, plus PostgreSQL/MySQL/MariaDB catalog checks and Hibernate mapping cross-reference when available. The scan is bounded; anything it could not read is reported as a diagnostic rather than as a passing check. Verify findings against the live schema before changing it. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence and violationDetails.scanId. Read the cached report with get_database_advisor_report and page a rule's retained violations with get_database_advisor_rule_violations, without scanning again.", + "example": "bootui db scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_database_advisor_rule_violations", + "command": "db violations", + "schema": "RULE_VIOLATIONS", + "panel": "database-advisor", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read one page of retained violations for the exact rule id from get_database_advisor_report and that cached report's violationDetails.scanId.", + "description": "Read one page of retained violations for the exact rule id from get_database_advisor_report and that cached report's violationDetails.scanId. This never starts a scan. Default offset 0 and limit 100; limit is capped at min(1000, transport max-results). Advance by page.returned while page.hasMore; page.total and page.matched count retained entries, not violationCount. If truncated, retention overflow or unavailable upstream details prevent a complete list. Verify each finding before changing code. A refusal is a tool error whose text says why: an unknown rule (not a rule of this advisor), a rule with no findings in that scan (it passed, was skipped, or failed), or a stale or missing scanId, for which reread the cached report rather than start a new scan. On MCP -32003 byte-budget refusal, retry the same scanId and offset with a smaller limit; a refusal is not an empty or completed page. A non-empty locations list aligns index-for-index with violations (a null entry has no location); an empty list means no violation on the page has one. A page's violationCount is the scan's total; where its suppressed list is non-empty, entries marked true were dismissed by the developer and no longer count in the report.", + "example": "bootui db violations --scan-id --limit 100", + "idHelp": "A rule id and the violationDetails.scanId from 'bootui db report'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 1, + "description": "The rule id, from get_database_advisor_report." + }, + "scanId": { + "type": "string", + "minLength": 1, + "description": "The cached report's violationDetails.scanId. Never starts a scan." + }, + "offset": { + "type": "integer", + "minimum": 0, + "default": 0, + "description": "Zero-based offset into the retained violations; advance it by page.returned while page.hasMore." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Page size, default 100, capped at min(1000, bootui.mcp.max-results)." + } + }, + "additionalProperties": false, + "required": [ + "id", + "scanId" + ] + } + }, + { + "name": "get_dev_services", + "command": "dev-services", + "schema": "NONE", + "panel": "dev-services", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current local Dev Services or development-service inventory and masked connection metadata.", + "description": "Return the current local Dev Services or development-service inventory and masked connection metadata. This does not start, stop, restart, or contact a service.", + "example": "bootui dev-services", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "trigger_devtools_livereload", + "command": "devtools livereload", + "schema": "NONE", + "panel": "devtools", + "action": true, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Trigger the existing local Spring Boot DevTools LiveReload notification and return its action result.", + "description": "Trigger the existing local Spring Boot DevTools LiveReload notification and return its action result. This does not restart the application or modify watched files. available=false with unavailableReason means LiveReload is not running here; status no_clients means the command was sent but no browser is connected.", + "example": "bootui devtools livereload", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_devtools_status", + "command": "devtools status", + "schema": "NONE", + "panel": "devtools", + "action": false, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current Spring Boot DevTools restart and LiveReload status.", + "description": "Return the current Spring Boot DevTools restart and LiveReload status. This passive read does not trigger LiveReload, restart the application, or modify watched files.", + "example": "bootui devtools status", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "clear_exceptions", + "command": "exceptions clear", + "schema": "NONE", + "panel": "exceptions", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Clear BootUI's bounded in-memory exception groups and occurrences.", + "description": "Clear BootUI's bounded in-memory exception groups and occurrences. This does not suppress, handle, or change application exceptions. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Here retained counts exception groups, and totalCaptured is null: the panel keeps no lifetime count. Read the entries with get_exceptions. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui exceptions clear", + "annotations": { + "readOnlyHint": false, + "destructiveHint": true, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_exceptions", + "command": "exceptions list", + "schema": "NONE", + "panel": "exceptions", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "List recent exception groups, newest first.", + "description": "List recent exception groups, newest first. Use a returned id with get_exception_detail for stack frames, causes, and individual occurrences. With the BootUI agent's caught-exceptions sensor, caughtInCode summarizes exceptions application code caught: a finding was not seen rethrown or logged at WARN or above while the evidence was complete; unknown means incomplete evidence, never swallowed. caughtInCode also reports counts for rows below the finding threshold (insufficient) and rows whose outcomes are unknown, pending, or counted only (partial); these are evidence states, not findings. totalExceptions counts the occurrences in the retained groups, so clear_exceptions resets it. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui exceptions list", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_exception_detail", + "command": "exceptions show", + "schema": "ID", + "panel": "exceptions", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return stack frames, causes, and occurrences for one exact exception-group id obtained from get_exceptions, or an EXCEPTION entry's exceptionGroupId in get_live_activity.", + "description": "Return stack frames, causes, and occurrences for one exact exception-group id obtained from get_exceptions, or an EXCEPTION entry's exceptionGroupId in get_live_activity. An unknown or cleared id is a tool error. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui exceptions show ", + "idHelp": "An exception group id from 'bootui exceptions list' or 'bootui activity'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "get_fault_tolerance", + "command": "fault-tolerance", + "schema": "NONE", + "panel": "fault-tolerance", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the configured Resilience4j and Spring Retry policy inventory with live counters and circuit breaker state, plus a bounded metadata-only event history.", + "description": "Return the configured Resilience4j and Spring Retry policy inventory with live counters and circuit breaker state, plus a bounded metadata-only event history. This read never opens, closes, resets, or otherwise mutates a policy. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui fault-tolerance", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_github_dashboard", + "command": "github", + "schema": "NONE", + "panel": "github", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return local repository identity plus the last cached GitHub dashboard report.", + "description": "Return local repository identity plus the last cached GitHub dashboard report. This passive read never calls GitHub; only the panel's explicit refresh action can use the network.", + "example": "bootui github", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_graalvm_report", + "command": "graalvm report", + "schema": "NONE", + "panel": "graalvm", + "action": false, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed GraalVM readiness report without starting a new classpath or dependency scan.", + "description": "Return the last completed GraalVM readiness report without starting a new classpath or dependency scan. Use cached findings before deciding whether graalvm_scan is necessary.", + "example": "bootui graalvm report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "graalvm_scan", + "command": "graalvm scan", + "schema": "NONE", + "panel": "graalvm", + "action": true, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively assess Spring native-image readiness without the longer dependency metadata scan.", + "description": "Actively assess Spring native-image readiness without the longer dependency metadata scan. Verify reflection and resource findings against the intended native build. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence. Read the cached report with get_graalvm_report without scanning again.", + "example": "bootui graalvm scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_health", + "command": "health", + "schema": "NONE", + "panel": "health", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current aggregated Actuator health tree.", + "description": "Return the current aggregated Actuator health tree. Distinguish unavailable health infrastructure from an unhealthy application.", + "example": "bootui health", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_hibernate_report", + "command": "hibernate report", + "schema": "NONE", + "panel": "hibernate", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed Hibernate advisor report without starting a new mapping scan.", + "description": "Return the last completed Hibernate advisor report without starting a new mapping scan. Use this cached evidence before deciding whether an active hibernate_scan is necessary. sampleViolations are bounded previews (up to 10), not the full violationCount. Use violationDetails.scanId with get_hibernate_rule_violations to page cached retained details without scanning again. Check truncated for missing details, including retention overflow; a terminal page does not guarantee completeness when truncated. Verify each finding before changing code. sampleLocations aligns index-for-index with sampleViolations when non-empty (a null entry has no location): className, memberName, kind, sourceFile, line, sourcePath and precision (LINE, MEMBER or CLASS). Open sourcePath at line to go straight to the code; violationDetails.locationNotes says why a path is missing. A result's violationCount counts active findings: suppressedCount findings the developer dismissed one by one are left out of it, of findingsFound, of severityCounts and of the score. When scan.status is PARTIAL, read diagnostics (source rule id or discovery, unit, level, message) for rules and units that failed or lacked evidence, and a result's coverageNote for units whose findings come from a partial evaluation; INFO diagnostics are advisor limits by design. Diagnostics are capped at 200: when capped, a final entry with source diagnostics states how many were omitted, so a missing unit entry does not prove complete coverage.", + "example": "bootui hibernate report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "hibernate_scan", + "command": "hibernate scan", + "schema": "NONE", + "panel": "hibernate", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively inspect JPA/Hibernate mappings and persistence configuration for correctness and performance risks.", + "description": "Actively inspect JPA/Hibernate mappings and persistence configuration for correctness and performance risks. Verify findings against actual query paths and database behavior. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence and violationDetails.scanId. Read the cached report with get_hibernate_report and page a rule's retained violations with get_hibernate_rule_violations, without scanning again.", + "example": "bootui hibernate scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_hibernate_statistics", + "command": "hibernate statistics", + "schema": "NONE", + "panel": "hibernate-statistics", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the live Hibernate ORM statistics of the application's persistence unit: sessions, transactions, entity and collection loads, fetches, and writes, query executions with the slowest query, and query and second-level cache hits, misses, and puts per region.", + "description": "Return the live Hibernate ORM statistics of the application's persistence unit: sessions, transactions, entity and collection loads, fetches, and writes, query executions with the slowest query, and query and second-level cache hits, misses, and puts per region. Counters are cumulative since startup or since statistics were enabled. available=false with unavailableReason when no SessionFactory is found or statistics are off; this read never enables them, and enableAvailable=true means the user can enable them for this run from the Hibernate Statistics panel.", + "example": "bootui hibernate statistics", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_hibernate_rule_violations", + "command": "hibernate violations", + "schema": "RULE_VIOLATIONS", + "panel": "hibernate", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read one page of retained violations for the exact rule id from get_hibernate_report and that cached report's violationDetails.scanId.", + "description": "Read one page of retained violations for the exact rule id from get_hibernate_report and that cached report's violationDetails.scanId. This never starts a scan. Default offset 0 and limit 100; limit is capped at min(1000, transport max-results). Advance by page.returned while page.hasMore; page.total and page.matched count retained entries, not violationCount. If truncated, retention overflow or unavailable upstream details prevent a complete list. Verify each finding before changing code. A refusal is a tool error whose text says why: an unknown rule (not a rule of this advisor), a rule with no findings in that scan (it passed, was skipped, or failed), or a stale or missing scanId, for which reread the cached report rather than start a new scan. On MCP -32003 byte-budget refusal, retry the same scanId and offset with a smaller limit; a refusal is not an empty or completed page. A non-empty locations list aligns index-for-index with violations (a null entry has no location); an empty list means no violation on the page has one. A page's violationCount is the scan's total; where its suppressed list is non-empty, entries marked true were dismissed by the developer and no longer count in the report.", + "example": "bootui hibernate violations --scan-id --limit 100", + "idHelp": "A rule id and the violationDetails.scanId from 'bootui hibernate report'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 1, + "description": "The rule id, from get_hibernate_report." + }, + "scanId": { + "type": "string", + "minLength": 1, + "description": "The cached report's violationDetails.scanId. Never starts a scan." + }, + "offset": { + "type": "integer", + "minimum": 0, + "default": 0, + "description": "Zero-based offset into the retained violations; advance it by page.returned while page.hasMore." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Page size, default 100, capped at min(1000, bootui.mcp.max-results)." + } + }, + "additionalProperties": false, + "required": [ + "id", + "scanId" + ] + } + }, + { + "name": "get_http_exchanges", + "command": "http exchanges", + "schema": "LIMIT", + "panel": "http-exchanges", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return a bounded, newest-first snapshot of application HTTP request/response metadata.", + "description": "Return a bounded, newest-first snapshot of application HTTP request/response metadata. Correlate paths, statuses, and timings with live activity and traces. The retention object reports capacity and retained, reserved, and evicted counts: 5xx and slow exchanges are kept longer, so the window is not complete. At most limit (25) exchanges; page.hasMore means more were retained. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui http exchanges --limit 20", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "default": 25, + "description": "Optional maximum number of items to return; default 25, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_http_routes", + "command": "http routes", + "schema": "LIMIT", + "panel": "http-exchanges", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return route performance rankings over the retained HTTP exchanges: per method and route template, request and status-class counts, average, p50, p95, p99 and maximum duration, and share of request time, plus the evidence window.", + "description": "Return route performance rankings over the retained HTTP exchanges: per method and route template, request and status-class counts, average, p50, p95, p99 and maximum duration, and share of request time, plus the evidence window. limit is the number of routes per ranking criterion. Figures cover the retained window only, not service-level metrics. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui http routes --limit 5", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Optional number of routes each ranking criterion contributes; default 100 (the server's limit), capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_http_sessions", + "command": "http sessions", + "schema": "NONE", + "panel": "http-sessions", + "action": false, + "stacks": [ + "SPRING_MVC" + ], + "summary": "Return the bounded active embedded-Tomcat HTTP-session inventory without creating, clearing, or invalidating a session.", + "description": "Return the bounded active embedded-Tomcat HTTP-session inventory without creating, clearing, or invalidating a session. Attribute values remain masked by the panel contract.", + "example": "bootui http sessions", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_runtime_run_comparison", + "command": "insights compare", + "schema": "OPTIONAL_ID", + "panel": "runtime-insights", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Compare this run with a kept one: id is optional, previous or a run id.", + "description": "Compare this run with a kept one: id is optional, previous or a run id. Omitted or previous selects the newest kept run including runs without HTTP traffic; runs lists the others. Comparability first, then codeChanges (with the BootUI agent: changed and added methods, executed or not, and the routes that ran them), then sideEffects (with the agent: hosts, file patterns, processes, and variable names a route, job, or startup uses new or no longer, per sensor COMPARED only when it recorded both runs whole, else NOT_COMPARED with the reason), then at most 8 behavior rows and edges; latency is left out. INSUFFICIENT and NOT_COMPARABLE never mean no change. Call after tests to verify a change. next names the follow-up calls. A run id no kept run has is a tool error naming previous and the kept run ids. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui insights compare previous", + "idHelp": "Previous (the default), or a run id from the runs it answers with.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Optional identifier; omitted selects the tool's documented default." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_runtime_impact", + "command": "insights impact", + "schema": "ID", + "panel": "runtime-insights", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "For a route, bean, class, method (Class#method, with parameter types for one overload, or a bare method name), repository, table, cache, host, or event type id: the routes this run exercised through it, those it did not, and those sharing a resource with it, at most 8 each with totals, a limitation naming the rest, or AMBIGUOUS with candidates.", + "description": "For a route, bean, class, method (Class#method, with parameter types for one overload, or a bare method name), repository, table, cache, host, or event type id: the routes this run exercised through it, those it did not, and those sharing a resource with it, at most 8 each with totals, a limitation naming the rest, or AMBIGUOUS with candidates. With the BootUI agent, a method's observed routes are those whose requests executed it; notObserved routes ran without showing it, which proves nothing. A checklist of what was and was not exercised, never a verdict that a change is safe. For AMBIGUOUS, NOT_FOUND, or UNAVAILABLE, next names the call that resolves it. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui insights impact 'OrderService#total'", + "idHelp": "A route, bean, class, Class#method or a bare method name, repository, table, cache, host, or event type.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "get_runtime_insights", + "command": "insights list", + "schema": "QUERY_LIMIT", + "panel": "runtime-insights", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return what this run did that no single panel shows, compacted: coverage first, the checks that did not fully run, then at most limit (8) observations with an id, status, one sentence, counts, an exemplar request id for get_request_profile, a verify line, and whether the default list shows it.", + "description": "Return what this run did that no single panel shows, compacted: coverage first, the checks that did not fully run, then at most limit (8) observations with an id, status, one sentence, counts, an exemplar request id for get_request_profile, a verify line, and whether the default list shows it. query is empty, all, new, security, diff, latency, an observation kind, or a route, table, bean, or class; past the limit, listed rows come first and every kind is listed once before any kind twice. The insufficient and partial counts cover every observation matching this query, including rows omitted by the limit. requests counts completed HTTP exchanges only: zero is not proof nothing ran when an observation names a request or execution, a non-HTTP limitation, or eviction says otherwise. A run-level observation with no exemplar does not. The empty query is the default list, which leaves several kinds out, for example time breakdowns, exception hotspots, repeated SELECTs, and garbage collection and heap rows; a limitation names each kind it left out with its count, and all, a kind, or a route lists them. An empty list means not exercised only when limitations say so. INSUFFICIENT, PARTIAL, NOT_APPLICABLE, and UNAVAILABLE are not successes. next names at most three follow-up calls, each a tool with its arguments and the equivalent bootui command. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui insights list --query security", + "queryHelp": "empty (the default list), all (every observation), new, security, diff, latency, an observation kind such as repeated-selects, or a route, table, bean, or class", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 8, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 8, + "description": "Optional maximum number of items to return; default 8, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_runtime_insight", + "command": "insights show", + "schema": "ID", + "panel": "runtime-insights", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return one Runtime Insights observation by its id from get_runtime_insights, with every check to verify and at most 20 evidence rows.", + "description": "Return one Runtime Insights observation by its id from get_runtime_insights, with every check to verify and at most 20 evidence rows. Drill down with get_request_profile on its exemplar request. An unknown or evicted id is a tool error naming get_runtime_insights, which lists the current ids; available=false with a reason means Runtime Insights is unavailable. The observation status is explicit: insufficient evidence and partial source coverage are not a clean result. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui insights show ", + "idHelp": "An observation id from 'bootui insights list'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "get_jms_activity", + "command": "jms", + "schema": "NONE", + "panel": "jms", + "action": false, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the bounded local JMS activity snapshot captured from application templates and listeners.", + "description": "Return the bounded local JMS activity snapshot captured from application templates and listeners. This does not send, receive, clear, or contact a broker. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui jms", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_jvm_tuning", + "command": "jvm tuning", + "schema": "NONE", + "panel": "jvm-tuning", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current JVM sizing facts and generated tuning recommendations using detected defaults: the JVM's arguments, the memory calculation, suggested options, and the Kubernetes recommendation; per-pool usage comes from get_live_memory.", + "description": "Return the current JVM sizing facts and generated tuning recommendations using detected defaults: the JVM's arguments, the memory calculation, suggested options, and the Kubernetes recommendation; per-pool usage comes from get_live_memory. This is a passive calculation and does not change JVM or container settings.", + "example": "bootui jvm tuning", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_kafka_activity", + "command": "kafka", + "schema": "NONE", + "panel": "kafka", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the bounded local Kafka activity snapshot captured from application producers and consumers.", + "description": "Return the bounded local Kafka activity snapshot captured from application producers and consumers. This does not publish, consume, clear, or contact a broker. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui kafka", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_loggers", + "command": "loggers", + "schema": "QUERY_LIMIT", + "panel": "loggers", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Search configured loggers by case-insensitive name and return their configured and effective levels, bounded by limit.", + "description": "Search configured loggers by case-insensitive name and return their configured and effective levels, bounded by limit. Use to confirm actual logging levels before or after a code or configuration change.", + "example": "bootui loggers --query org.hibernate.SQL", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Optional maximum number of items to return; default 100 (the server's limit), capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_log_tail", + "command": "logs tail", + "schema": "QUERY_LIMIT", + "panel": "log-tail", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the latest buffered application log snapshot.", + "description": "Return the latest buffered application log snapshot. Messages follow bootui.expose-values: secret-like assignments are masked by default and messages are omitted under METADATA_ONLY, but other sensitive text may remain; use them only in the local diagnostic context. At most limit (50) newest lines matching query (level, logger, thread, or message); page.hasMore means more lines matched. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui logs tail --query WARN", + "queryHelp": "a level, logger, thread, or text in the message", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 50, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 50, + "description": "Optional maximum number of items to return; default 50, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "disable_low_footprint", + "command": "low-footprint disable", + "schema": "NONE", + "panel": "live-memory", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Disable low-footprint mode and release its recording hold.", + "description": "Disable low-footprint mode and release its recording hold. Cleared data cannot be recovered; individually paused recorders stay paused. Ask for approval first. Idempotent. Returns a compact acknowledgement with state and warnings; get_low_footprint lists component outcomes.", + "example": "bootui low-footprint disable", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "enable_low_footprint", + "command": "low-footprint enable", + "schema": "NONE", + "panel": "live-memory", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Enable low-footprint mode: pause BootUI recording, irreversibly discard buffered diagnostics, and request GC (a hint the JVM may ignore).", + "description": "Enable low-footprint mode: pause BootUI recording, irreversibly discard buffered diagnostics, and request GC (a hint the JVM may ignore). Ask for approval first. Idempotent: enabling again does not clear or request GC again. Returns a compact acknowledgement with offload totals and failures; get_low_footprint lists component outcomes. The Java agent keeps running.", + "example": "bootui low-footprint enable", + "annotations": { + "readOnlyHint": false, + "destructiveHint": true, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_low_footprint", + "command": "low-footprint status", + "schema": "NONE", + "panel": "live-memory", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read low-footprint mode without changing recording: active, sinceEpochMillis, agentAttached, components with suspension outcomes, and warnings.", + "description": "Read low-footprint mode without changing recording: active, sinceEpochMillis, agentAttached, components with suspension outcomes, and warnings. The Java agent is not paused.", + "example": "bootui low-footprint status", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_emails", + "command": "mail", + "schema": "NONE", + "panel": "email", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the bounded local email-capture inventory with content governed by BootUI exposure policy.", + "description": "Return the bounded local email-capture inventory with content governed by BootUI exposure policy. This does not send, download, or delete any message. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui mail", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_mappings", + "command": "mappings", + "schema": "QUERY_LIMIT", + "panel": "mappings", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Search request routes and handlers and return a bounded result, including the application's effective `basePath` prefix when configured.", + "description": "Search request routes and handlers and return a bounded result, including the application's effective `basePath` prefix when configured. Use a path, HTTP concept, or handler name as the query when locating an endpoint.", + "example": "bootui mappings --query /api", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Optional maximum number of items to return; default 100 (the server's limit), capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "analyze_heap_dump", + "command": "memory heap analyze", + "schema": "NONE", + "panel": "heap-dump", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Analyze the live JVM heap with a value-free class histogram (HotSpot GC.class_histogram, which requests a garbage collection) and return the Heap Dump report: top classes by instance count and shallow size, never object values.", + "description": "Analyze the live JVM heap with a value-free class histogram (HotSpot GC.class_histogram, which requests a garbage collection) and return the Heap Dump report: top classes by instance count and shallow size, never object values. It reads the running heap, not a dump file, so it works with no captured dump (dumpCount 0) and reports capture.status ANALYZED. It never writes, captures, downloads, or deletes a heap dump.", + "example": "bootui memory heap analyze", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_heap_dump_report", + "command": "memory heap report", + "schema": "NONE", + "panel": "heap-dump", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return passive heap-dump status, file metadata, and any already-cached analysis.", + "description": "Return passive heap-dump status, file metadata, and any already-cached analysis. This does not capture, analyze, download, or delete a heap dump.", + "example": "bootui memory heap report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_live_memory", + "command": "memory live", + "schema": "NONE", + "panel": "live-memory", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return a passive snapshot of current JVM heap, non-heap, and per-memory-pool usage without requesting GC or a class histogram.", + "description": "Return a passive snapshot of current JVM heap, non-heap, and per-memory-pool usage without requesting GC or a class histogram. Sizing recommendations come from get_jvm_tuning; garbage collection and class-loading meters from get_metrics; threads from get_threads.", + "example": "bootui memory live", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_memory_report", + "command": "memory report", + "schema": "NONE", + "panel": "memory", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed Memory advisor report without triggering a class histogram or full GC.", + "description": "Return the last completed Memory advisor report without triggering a class histogram or full GC. Use this cached evidence before deciding whether an active memory_scan is necessary. sampleViolations are bounded previews (up to 10), not the full violationCount. Use violationDetails.scanId with get_memory_rule_violations to page cached retained details without scanning again. Check truncated for missing details, including retention overflow; a terminal page does not guarantee completeness when truncated. Verify each finding before changing code.", + "example": "bootui memory report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "memory_scan", + "command": "memory scan", + "schema": "NONE", + "panel": "memory", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively analyze JVM memory and return prioritized findings.", + "description": "Actively analyze JVM memory and return prioritized findings. Uses bootui.memory.include-histogram (default true): the histogram requests full GC and may pause the JVM; false skips histogram-dependent checks without requesting GC. scan.includeHistogram records the selected mode. Run only when memory evidence is needed. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence and violationDetails.scanId. Read the cached report with get_memory_report and page a rule's retained violations with get_memory_rule_violations, without scanning again.", + "example": "bootui memory scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_memory_rule_violations", + "command": "memory violations", + "schema": "RULE_VIOLATIONS", + "panel": "memory", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read one page of retained violations for the exact rule id from get_memory_report and that cached report's violationDetails.scanId.", + "description": "Read one page of retained violations for the exact rule id from get_memory_report and that cached report's violationDetails.scanId. This never starts a scan. Default offset 0 and limit 100; limit is capped at min(1000, transport max-results). Advance by page.returned while page.hasMore; page.total and page.matched count retained entries, not violationCount. If truncated, retention overflow or unavailable upstream details prevent a complete list. Verify each finding before changing code. A refusal is a tool error whose text says why: an unknown rule (not a rule of this advisor), a rule with no findings in that scan (it passed, was skipped, or failed), or a stale or missing scanId, for which reread the cached report rather than start a new scan. On MCP -32003 byte-budget refusal, retry the same scanId and offset with a smaller limit; a refusal is not an empty or completed page. A non-empty locations list aligns index-for-index with violations (a null entry has no location); an empty list means no violation on the page has one. A page's violationCount is the scan's total; where its suppressed list is non-empty, entries marked true were dismissed by the developer and no longer count in the report.", + "example": "bootui memory violations --scan-id --limit 100", + "idHelp": "A rule id and the violationDetails.scanId from 'bootui memory report'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 1, + "description": "The rule id, from get_memory_report." + }, + "scanId": { + "type": "string", + "minLength": 1, + "description": "The cached report's violationDetails.scanId. Never starts a scan." + }, + "offset": { + "type": "integer", + "minimum": 0, + "default": 0, + "description": "Zero-based offset into the retained violations; advance it by page.returned while page.hasMore." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Page size, default 100, capped at min(1000, bootui.mcp.max-results)." + } + }, + "additionalProperties": false, + "required": [ + "id", + "scanId" + ] + } + }, + { + "name": "get_metrics", + "command": "metrics", + "schema": "QUERY_LIMIT", + "panel": "metrics", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Search the current application metrics inventory and return a bounded page of local meter values.", + "description": "Search the current application metrics inventory and return a bounded page of local meter values. Use a narrow metric-name query when diagnosing one runtime signal. At most limit (25) meters; page.hasMore means more matched.", + "example": "bootui metrics --query jvm.memory", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 25, + "description": "Optional maximum number of items to return; default 25, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_overview", + "command": "overview", + "schema": "NONE", + "panel": "overview", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return stable application identity and runtime context, including versions, active profiles, and BootUI status.", + "description": "Return stable application identity and runtime context, including versions, active profiles, and BootUI status. Use this before interpreting other results. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui overview", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_pentest_report", + "command": "pentest report", + "schema": "NONE", + "panel": "pentesting", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed Pentesting advisor report without sending any HTTP probes.", + "description": "Return the last completed Pentesting advisor report without sending any HTTP probes. Use this cached evidence before deciding whether an active pentest_scan is necessary.", + "example": "bootui pentest report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "pentest_scan", + "command": "pentest scan", + "schema": "NONE", + "panel": "pentesting", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively send bounded synthetic probes to this application's loopback endpoint and return security findings.", + "description": "Actively send bounded synthetic probes to this application's loopback endpoint and return security findings. Run only with permission and verify findings before remediation. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence. Read the cached report with get_pentest_report without scanning again.", + "example": "bootui pentest scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_method_probe", + "command": "probe show", + "schema": "ID", + "panel": "code-paths", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return a method probe by the id start_method_probe returned: its state (starting, active, ending, ended, failed), why it ended or failed, and each recorded invocation's duration, thread kind, request id, outcome or exception type, and calling frame.", + "description": "Return a method probe by the id start_method_probe returned: its state (starting, active, ending, ended, failed), why it ended or failed, and each recorded invocation's duration, thread kind, request id, outcome or exception type, and calling frame. Metadata only, never argument or return values. Poll it until active before running the code: invocations at 0 is evidence the path never reached the method only when the probe was active before the code ran and is still active, or the code finished before its endsAt and it did not end early; a probe that never became active, failed, or ended before the code finished is inconclusive. An active probe waitingForClass has not seen its class load in this run yet, and an async method's durations time the assembly of its result only. An unknown or expired probe id is a tool error.", + "example": "bootui probe show ", + "idHelp": "A probe id from 'bootui probe start'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "start_method_probe", + "command": "probe start", + "schema": "ID", + "panel": "code-paths", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Start a method probe: an action that retransforms one application method of the running application to record its next 20 invocations, for at most 60 seconds (five probes at once), then removes itself; it ends with the run.", + "description": "Start a method probe: an action that retransforms one application method of the running application to record its next 20 invocations, for at most 60 seconds (five probes at once), then removes itself; it ends with the run. Ask the user for separate approval before starting one, even when other tools were approved. id is the method, binary.Class#name, with its JVM descriptor for an overloaded one, as Code Paths, Code Inventory, and get_code_paths name it (com.example.PriceService#quote(I)J); it must be a method the agent instrumented, in the application's packages. Refused while the Code Paths panel or BootUI is read-only, without the BootUI agent, or when five probes run. Returns the probe, starting: retransformation happens afterwards, so call get_method_probe with its id until it is active before running the code, run the code before its endsAt, then call it again. Metadata only, in every exposure mode: durations, thread kind, request id, outcome, exception type, and calling frame, never argument or return values. Refused while low-footprint mode is active; call disable_low_footprint first with approval.", + "example": "bootui probe start 'com.example.OrderService#total'", + "idHelp": "An application method (binary.Class#name) from 'bootui code paths'.", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "get_profile_diff", + "command": "profile diff", + "schema": "NONE", + "panel": "profile-diff", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current active-profile configuration comparison using masked local configuration data.", + "description": "Return the current active-profile configuration comparison using masked local configuration data. Use it to identify profile-specific differences without changing profiles.", + "example": "bootui profile diff", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_rabbitmq_activity", + "command": "rabbitmq", + "schema": "NONE", + "panel": "rabbitmq", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the bounded local RabbitMQ activity snapshot captured from application publishers and listeners.", + "description": "Return the bounded local RabbitMQ activity snapshot captured from application publishers and listeners. This does not publish, consume, clear, or contact a broker. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui rabbitmq", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_spring_data_repositories", + "command": "repositories", + "schema": "NONE", + "panel": "data", + "action": false, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return available Spring Data metadata from already initialized repository factories.", + "description": "Return available Spring Data metadata from already initialized repository factories. An empty list does not rule out lazy repositories. This read does not initialize factories, invoke repository methods, or execute database queries.", + "example": "bootui repositories", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_request_profile", + "command": "request-profile", + "schema": "ID", + "panel": "activity", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Open a profileable request or scheduled/message execution id from get_live_activity or a get_runtime_insights exemplar.", + "description": "Open a profileable request or scheduled/message execution id from get_live_activity or a get_runtime_insights exemplar. Returns source=journal with the recorded timeline, route or execution label, authorizations, resources and touched metadata when retained, plus HTTP-exchange details when available; otherwise source=buffers with the HTTP-exchange profile (SQL N+1 groups, exceptionGroupId, and correlation tiers). An id neither retains is a tool error; available=false with source=none means the journal is off or the id cannot be profiled, and says why. Journal events follow panel visibility and exposure policy; do not infer absent work from a missing event. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui request-profile ", + "idHelp": "A profileable request or execution id (an entry id or an observation's exemplarRequestId) from 'bootui activity' or 'bootui insights list'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "get_rest_api_report", + "command": "rest-api report", + "schema": "NONE", + "panel": "rest-api", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed REST API advisor report without starting a new endpoint scan.", + "description": "Return the last completed REST API advisor report without starting a new endpoint scan. Use this cached evidence before deciding whether an active rest_api_scan is necessary. sampleViolations are bounded previews (up to 10), not the full violationCount. Use violationDetails.scanId with get_rest_api_rule_violations to page cached retained details without scanning again. Check truncated for missing details, including retention overflow; a terminal page does not guarantee completeness when truncated. Verify each finding before changing code. sampleLocations aligns index-for-index with sampleViolations when non-empty (a null entry has no location): className, memberName, kind, sourceFile, line, sourcePath and precision (LINE, MEMBER or CLASS). Open sourcePath at line to go straight to the code; violationDetails.locationNotes says why a path is missing.", + "example": "bootui rest-api report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "rest_api_scan", + "command": "rest-api scan", + "schema": "NONE", + "panel": "rest-api", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively inspect Spring REST controllers and API design for correctness and maintainability risks.", + "description": "Actively inspect Spring REST controllers and API design for correctness and maintainability risks. Verify recommendations against the public API contract. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence and violationDetails.scanId. Read the cached report with get_rest_api_report and page a rule's retained violations with get_rest_api_rule_violations, without scanning again.", + "example": "bootui rest-api scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_rest_api_rule_violations", + "command": "rest-api violations", + "schema": "RULE_VIOLATIONS", + "panel": "rest-api", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read one page of retained violations for the exact rule id from get_rest_api_report and that cached report's violationDetails.scanId.", + "description": "Read one page of retained violations for the exact rule id from get_rest_api_report and that cached report's violationDetails.scanId. This never starts a scan. Default offset 0 and limit 100; limit is capped at min(1000, transport max-results). Advance by page.returned while page.hasMore; page.total and page.matched count retained entries, not violationCount. If truncated, retention overflow or unavailable upstream details prevent a complete list. Verify each finding before changing code. A refusal is a tool error whose text says why: an unknown rule (not a rule of this advisor), a rule with no findings in that scan (it passed, was skipped, or failed), or a stale or missing scanId, for which reread the cached report rather than start a new scan. On MCP -32003 byte-budget refusal, retry the same scanId and offset with a smaller limit; a refusal is not an empty or completed page. A non-empty locations list aligns index-for-index with violations (a null entry has no location); an empty list means no violation on the page has one. A page's violationCount is the scan's total; where its suppressed list is non-empty, entries marked true were dismissed by the developer and no longer count in the report.", + "example": "bootui rest-api violations --scan-id --limit 100", + "idHelp": "A rule id and the violationDetails.scanId from 'bootui rest-api report'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 1, + "description": "The rule id, from get_rest_api_report." + }, + "scanId": { + "type": "string", + "minLength": 1, + "description": "The cached report's violationDetails.scanId. Never starts a scan." + }, + "offset": { + "type": "integer", + "minimum": 0, + "default": 0, + "description": "Zero-based offset into the retained violations; advance it by page.returned while page.hasMore." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Page size, default 100, capped at min(1000, bootui.mcp.max-results)." + } + }, + "additionalProperties": false, + "required": [ + "id", + "scanId" + ] + } + }, + { + "name": "clear_rest_client_traces", + "command": "rest-client clear", + "schema": "NONE", + "panel": "rest-client-trace", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Clear the bounded in-memory REST-client trace buffer.", + "description": "Clear the bounded in-memory REST-client trace buffer. This does not send an HTTP request or change recording state. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Read the entries with get_rest_client_traces. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui rest-client clear", + "annotations": { + "readOnlyHint": false, + "destructiveHint": true, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "pause_rest_client_recording", + "command": "rest-client pause", + "schema": "NONE", + "panel": "rest-client-trace", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Pause REST-client trace recording.", + "description": "Pause REST-client trace recording. Existing buffered calls remain available until explicitly cleared. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Read the entries with get_rest_client_traces. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui rest-client pause", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "resume_rest_client_recording", + "command": "rest-client resume", + "schema": "NONE", + "panel": "rest-client-trace", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Resume REST-client trace recording.", + "description": "Resume REST-client trace recording. This only affects BootUI's bounded local capture and sends no HTTP request. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Read the entries with get_rest_client_traces. Refused while low-footprint mode is active; call disable_low_footprint first with approval.", + "example": "bootui rest-client resume", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_rest_client_traces", + "command": "rest-client traces", + "schema": "QUERY_LIMIT", + "panel": "rest-client-trace", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current bounded REST-client trace snapshot with masked headers and bodies according to BootUI exposure policy.", + "description": "Return the current bounded REST-client trace snapshot with masked headers and bodies according to BootUI exposure policy. This does not send requests or change recording state. The retention object reports capacity and retained, reserved, and evicted counts: failed, error, and slow calls are kept longer, so the window is not complete. totalCaptured counts the calls recorded since startup, which clear_rest_client_traces does not reset; stats and entries cover the retained window only. At most limit (20) newest entries matching query (method, URI, host, path, status, client type, error, call site, or request, trace, or execution id); page.hasMore means narrow the query or raise limit. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui rest-client traces --query 503", + "queryHelp": "a method, URI, host, path, status, client type, call site, or error, or a request, trace, or execution id", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 20, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 20, + "description": "Optional maximum number of items to return; default 20, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_scheduled_tasks", + "command": "scheduled", + "schema": "NONE", + "panel": "scheduled", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current scheduled task inventory and recent run history, including timing and outcome.", + "description": "Return the current scheduled task inventory and recent run history, including timing and outcome. Use to confirm a scheduled job actually ran, and when, rather than assuming from source alone. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui scheduled", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_spring_security", + "command": "security config", + "schema": "NONE", + "panel": "spring-security", + "action": false, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current Spring Security filter-chain and authentication configuration report.", + "description": "Return the current Spring Security filter-chain and authentication configuration report. This passive read does not authenticate, authorize, or send a request through a chain.", + "example": "bootui security config", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_security_logs", + "command": "security logs", + "schema": "LIMIT", + "panel": "security-logs", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return a bounded, newest-first snapshot of authentication and authorization audit events.", + "description": "Return a bounded, newest-first snapshot of authentication and authorization audit events. Correlate timestamps and principals with live activity. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui security logs --limit 20", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Optional maximum number of items to return; default 100 (the server's limit), capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_security_report", + "command": "security report", + "schema": "NONE", + "panel": "security", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed Security advisor report without starting a new configuration scan.", + "description": "Return the last completed Security advisor report without starting a new configuration scan. Use this cached evidence before deciding whether an active security_scan is necessary. A static-only report checks local analyzer declarations and does not assess runtime security. sampleViolations are bounded previews (up to 10), not the full violationCount. Use violationDetails.scanId with get_security_rule_violations to page cached retained details without scanning again. Check truncated for missing details, including retention overflow; a terminal page does not guarantee completeness when truncated. Verify each finding before changing code.", + "example": "bootui security report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "security_scan", + "command": "security scan", + "schema": "NONE", + "panel": "security", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "On explicit request, review application security configuration and bounded local declarations for SpotBugs/FindSecBugs, Semgrep, SonarQube, or CodeQL.", + "description": "On explicit request, review application security configuration and bounded local declarations for SpotBugs/FindSecBugs, Semgrep, SonarQube, or CodeQL. BootUI never runs these tools; a static-only result does not assess runtime security. Treat results as review evidence and verify exploitability before proposing a fix. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence and violationDetails.scanId. Read the cached report with get_security_report and page a rule's retained violations with get_security_rule_violations, without scanning again.", + "example": "bootui security scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_security_rule_violations", + "command": "security violations", + "schema": "RULE_VIOLATIONS", + "panel": "security", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read one page of retained violations for the exact rule id from get_security_report and that cached report's violationDetails.scanId.", + "description": "Read one page of retained violations for the exact rule id from get_security_report and that cached report's violationDetails.scanId. This never starts a scan. Default offset 0 and limit 100; limit is capped at min(1000, transport max-results). Advance by page.returned while page.hasMore; page.total and page.matched count retained entries, not violationCount. If truncated, retention overflow or unavailable upstream details prevent a complete list. Verify each finding before changing code. A refusal is a tool error whose text says why: an unknown rule (not a rule of this advisor), a rule with no findings in that scan (it passed, was skipped, or failed), or a stale or missing scanId, for which reread the cached report rather than start a new scan. On MCP -32003 byte-budget refusal, retry the same scanId and offset with a smaller limit; a refusal is not an empty or completed page. A non-empty locations list aligns index-for-index with violations (a null entry has no location); an empty list means no violation on the page has one. A page's violationCount is the scan's total; where its suppressed list is non-empty, entries marked true were dismissed by the developer and no longer count in the report.", + "example": "bootui security violations --scan-id --limit 100", + "idHelp": "A rule id and the violationDetails.scanId from 'bootui security report'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 1, + "description": "The rule id, from get_security_report." + }, + "scanId": { + "type": "string", + "minLength": 1, + "description": "The cached report's violationDetails.scanId. Never starts a scan." + }, + "offset": { + "type": "integer", + "minimum": 0, + "default": 0, + "description": "Zero-based offset into the retained violations; advance it by page.returned while page.hasMore." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Page size, default 100, capped at min(1000, bootui.mcp.max-results)." + } + }, + "additionalProperties": false, + "required": [ + "id", + "scanId" + ] + } + }, + { + "name": "get_claude_code_sessions", + "command": "sessions claude", + "schema": "QUERY_LIMIT", + "panel": "claude-code", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the bounded, sanitized Claude Code session inventory parsed from local session files.", + "description": "Return the bounded, sanitized Claude Code session inventory parsed from local session files. Raw prompts, tool arguments, command output, diffs, and network calls are excluded. At most limit (10) sessions matching query (id, model, working directory, status, or last activity). The first read after startup parses the newest session files (bootui.claude-code.max-parsed-sessions) and can take seconds on a large session directory; later reads answer from the cache a directory watcher keeps current.", + "example": "bootui sessions claude --limit 5", + "queryHelp": "a session id, model, working directory, status, or last activity", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 10, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 10, + "description": "Optional maximum number of items to return; default 10, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_copilot_sessions", + "command": "sessions copilot", + "schema": "QUERY_LIMIT", + "panel": "copilot", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the bounded, sanitized Copilot CLI session inventory parsed from local session files.", + "description": "Return the bounded, sanitized Copilot CLI session inventory parsed from local session files. Raw prompts, tool arguments, command output, diffs, and network calls are excluded. At most limit (10) sessions matching query (id, model, working directory, status, or last activity). The first read after startup parses the newest session files (bootui.copilot.max-parsed-sessions) and can take seconds on a large session directory; later reads answer from the cache a directory watcher keeps current.", + "example": "bootui sessions copilot --limit 5", + "queryHelp": "a session id, model, working directory, status, or last activity", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 10, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 10, + "description": "Optional maximum number of items to return; default 10, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_side_effects", + "command": "side-effects", + "schema": "QUERY_LIMIT", + "panel": "side-effects", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return Side Effects: what the application does outside the JVM, from the BootUI agent's side-effect sensors; this version records the processes it starts, its network: connects, datagram sends, and host names the JVM resolved, the blocking calls (sleep, wait, park, a blocking network or file operation) started on an event loop, the sockets, and with files the streams, a request left open or never closed (resources), and, opt-in, the files it opens, deletes, moves, and copies, the environment variables and system properties it reads, the threads it starts and executors it creates (thread-activity), the thread locals a request or a job left set on its pooled thread (thread-locals), and request input reaching a sink (security-sinks, request-input-in-sink) with JDK checks: deserialization without a filter, weak algorithms, and trust managers.", + "description": "Return Side Effects: what the application does outside the JVM, from the BootUI agent's side-effect sensors; this version records the processes it starts, its network: connects, datagram sends, and host names the JVM resolved, the blocking calls (sleep, wait, park, a blocking network or file operation) started on an event loop, the sockets, and with files the streams, a request left open or never closed (resources), and, opt-in, the files it opens, deletes, moves, and copies, the environment variables and system properties it reads, the threads it starts and executors it creates (thread-activity), the thread locals a request or a job left set on its pooled thread (thread-locals), and request input reaching a sink (security-sinks, request-input-in-sink) with JDK checks: deserialization without a filter, weak algorithms, and trust managers. Advertised only while the agent is armed for this run (see get_agent_status). Every sensor first, with its coverage (recording, not-claimed, not-available in this version, ...), without its hooks or, when none of its rows is listed, its fixed limitations unless query names that sensor, then at most limit (20) rows, most frequent first, matching query: a sensor id such as processes, network, files, or blocking, 'not captured' for hidden outbound calls, or part of a route, target, client, or call site. A row is attributed to a request's route, work no request owns, startup, or a thread family, with the call site, the bean method it ran inside, counts, failures, exits or connections, times, and up to three request ids. A process row names the command's file name only, never its arguments or environment; a network row names a host and port, the client recognized from the calling frames, and whether a visible panel (REST Client Trace, SQL Trace, a broker's panel, Email) captured the work, never a byte sent or received; a file row a path pattern (./ for the working directory, $TMPDIR, ~, ids as {n}) with its kind, location, and origin (application, library, class-path, jdk, logging), never contents; an environment row a name, never its value; a blocking row the operation, the event loop's thread family, and how long it blocked, not-applicable on Spring MVC, which runs no event loop; a thread-activity row a thread's family or an executor's class, how many a request started (count / requests), how many were still running when their request ended (leftRunning), and executors shut down (completed) or reclaimed without a shutdown (failed), library and JDK pools by origin, never what a thread holds; a thread-locals row the static field holding a thread local left set (kind left set, inheritable, or with initial value), by how many requests, set during the request with no call site, never its value; a resources row the resource's kind (file input stream, file channel, socket, ...) and its target as the files and network rows show it, by origin (application, or a library the application called), how many were reclaimed by the garbage collector never closed (failed: the leak), still open after their request (leftRunning) and closed after it (completed), both a pool's or a cache's hand-off rather than a leak, never contents; a security-sinks row the SQL text, command and argument index, file path pattern, or outbound URL that a request parameter's value reached unchanged, with that value redacted to {name}, the parameter's name, and a sentence stating the fact (for SQL, inside or outside a literal), a fact to check in the code; or a JDK check: an ObjectInputStream read without a filter with the classes read, a weak MessageDigest or Cipher algorithm asked for by application or library code (origin), or a trust manager, default hostname verifier, or SSL socket factory the application installed, never a value. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui side-effects --query processes --limit 20", + "queryHelp": "a sensor id such as processes, network, files, environment, blocking, thread-activity, thread-locals, or resources, which also lists its hooks, not captured (outbound calls no panel captured), or part of a route, target, client, or call site", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 20, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 20, + "description": "Optional maximum number of items to return; default 20, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_spring_report", + "command": "spring report", + "schema": "NONE", + "panel": "spring", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the last completed Spring advisor report without starting a new application scan.", + "description": "Return the last completed Spring advisor report without starting a new application scan. Use this cached evidence before deciding whether an active spring_scan is necessary. On Quarkus, the same tool runs the Quarkus application advisor (QA-* rules) instead. sampleViolations are bounded previews (up to 10), not the full violationCount. Use violationDetails.scanId with get_spring_rule_violations to page cached retained details without scanning again. Check truncated for missing details, including retention overflow; a terminal page does not guarantee completeness when truncated. Verify each finding before changing code.", + "example": "bootui spring report", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "spring_scan", + "command": "spring scan", + "schema": "NONE", + "panel": "spring", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively inspect Spring configuration and bean usage for correctness and maintainability risks.", + "description": "Actively inspect Spring configuration and bean usage for correctness and maintainability risks. Verify each finding against effective configuration before changing code. On Quarkus, the same tool runs the Quarkus application advisor (QA-* rules) instead. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence and violationDetails.scanId. Read the cached report with get_spring_report and page a rule's retained violations with get_spring_rule_violations, without scanning again.", + "example": "bootui spring scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_spring_rule_violations", + "command": "spring violations", + "schema": "RULE_VIOLATIONS", + "panel": "spring", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read one page of retained violations for the exact rule id from get_spring_report and that cached report's violationDetails.scanId.", + "description": "Read one page of retained violations for the exact rule id from get_spring_report and that cached report's violationDetails.scanId. This never starts a scan. Default offset 0 and limit 100; limit is capped at min(1000, transport max-results). Advance by page.returned while page.hasMore; page.total and page.matched count retained entries, not violationCount. If truncated, retention overflow or unavailable upstream details prevent a complete list. Verify each finding before changing code. A refusal is a tool error whose text says why: an unknown rule (not a rule of this advisor), a rule with no findings in that scan (it passed, was skipped, or failed), or a stale or missing scanId, for which reread the cached report rather than start a new scan. On MCP -32003 byte-budget refusal, retry the same scanId and offset with a smaller limit; a refusal is not an empty or completed page. A non-empty locations list aligns index-for-index with violations (a null entry has no location); an empty list means no violation on the page has one. A page's violationCount is the scan's total; where its suppressed list is non-empty, entries marked true were dismissed by the developer and no longer count in the report. On Quarkus, the same tool runs the Quarkus application advisor (QA-* rules) instead.", + "example": "bootui spring violations --scan-id --limit 100", + "idHelp": "A rule id and the violationDetails.scanId from 'bootui spring report'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 1, + "description": "The rule id, from get_spring_report." + }, + "scanId": { + "type": "string", + "minLength": 1, + "description": "The cached report's violationDetails.scanId. Never starts a scan." + }, + "offset": { + "type": "integer", + "minimum": 0, + "default": 0, + "description": "Zero-based offset into the retained violations; advance it by page.returned while page.hasMore." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Page size, default 100, capped at min(1000, bootui.mcp.max-results)." + } + }, + "additionalProperties": false, + "required": [ + "id", + "scanId" + ] + } + }, + { + "name": "clear_sql_traces", + "command": "sql clear", + "schema": "NONE", + "panel": "sql-trace", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Clear the bounded in-memory SQL trace buffer.", + "description": "Clear the bounded in-memory SQL trace buffer. This does not execute SQL or change whether trace recording is enabled. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Read the entries with get_sql_traces. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui sql clear", + "annotations": { + "readOnlyHint": false, + "destructiveHint": true, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "pause_sql_trace_recording", + "command": "sql pause", + "schema": "NONE", + "panel": "sql-trace", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Pause SQL trace recording.", + "description": "Pause SQL trace recording. Existing buffered traces remain available until explicitly cleared. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Read the entries with get_sql_traces. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui sql pause", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "resume_sql_trace_recording", + "command": "sql resume", + "schema": "NONE", + "panel": "sql-trace", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Resume SQL trace recording.", + "description": "Resume SQL trace recording. This only affects BootUI's bounded local capture and does not execute SQL. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Read the entries with get_sql_traces. Refused while low-footprint mode is active; call disable_low_footprint first with approval.", + "example": "bootui sql resume", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_sql_traces", + "command": "sql traces", + "schema": "QUERY_LIMIT", + "panel": "sql-trace", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current bounded SQL trace snapshot with statements and timings.", + "description": "Return the current bounded SQL trace snapshot with statements and timings. Application SQL may contain sensitive values; correlate it locally with request or trace identifiers. The retention object reports capacity and retained, reserved, and evicted counts: failed and slow statements are kept longer, so the window is not complete. At most limit (20) newest entries matching query (SQL text, category, call site, error, or request, trace, or execution id); page.hasMore means narrow the query or raise limit. totalCaptured counts the statements recorded since startup, which clear_sql_traces does not reset; stats and entries cover the retained window only. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui sql traces --query orders", + "queryHelp": "text in the SQL, category, call site, or error, or a request, trace, or execution id", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 20, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 20, + "description": "Optional maximum number of items to return; default 20, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_startup_timeline", + "command": "startup", + "schema": "QUERY_LIMIT", + "panel": "startup", + "action": false, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the captured Spring startup-step timeline after filtering BootUI's own steps.", + "description": "Return the captured Spring startup-step timeline after filtering BootUI's own steps. This passive read does not restart the application or start a new recording. At most limit (25) slowest steps first (a parent includes its children) matching query (a step name or tag value, such as a bean name).", + "example": "bootui startup --limit 10", + "queryHelp": "a step name or tag value, such as a bean name", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 25, + "description": "Optional maximum number of items to return; default 25, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "cancel_thread_observation", + "command": "thread-analysis cancel", + "schema": "ID", + "panel": "threads", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Cancel the finite observation id returned by start_thread_observation.", + "description": "Cancel the finite observation id returned by start_thread_observation. A native JVM management call already in flight cannot be interrupted; cancellation prevents its publication and future samples. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui thread-analysis cancel ", + "idHelp": "A finite observation id from 'bootui thread-analysis observe'.", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "capture_thread_snapshot", + "command": "thread-analysis capture", + "schema": "NONE", + "panel": "threads", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Explicitly acquire one bounded, masked platform-thread capture for retained analysis.", + "description": "Explicitly acquire one bounded, masked platform-thread capture for retained analysis. Collection can briefly pause the JVM. No virtual-thread census is implied. Obtain permission for the collection cost. No Java agent is required. Inspect get_thread_analysis using the returned capture id; never infer a complete population or complete lock ownership when quality reports omissions. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui thread-analysis capture", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "clear_thread_snapshots", + "command": "thread-analysis clear", + "schema": "NONE", + "panel": "threads", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Clear retained thread evidence.", + "description": "Clear retained thread evidence. An active finite observation can collect its remaining samples; use cancel_thread_observation first to stop it. Cleared samples are reported explicitly. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui thread-analysis clear", + "annotations": { + "readOnlyHint": false, + "destructiveHint": true, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_thread_snapshots", + "command": "thread-analysis list", + "schema": "LIMIT", + "panel": "threads", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "List retained thread capture metadata without acquiring JVM stacks.", + "description": "List retained thread capture metadata without acquiring JVM stacks. Captures expire or can be cleared; use capture_thread_snapshot explicitly to collect evidence. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui thread-analysis list --limit 5", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 6, + "inputSchema": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "default": 6, + "description": "Optional maximum number of items to return; default 6, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_thread_observation", + "command": "thread-analysis observation", + "schema": "OPTIONAL_ID", + "panel": "threads", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read finite observation status and bounded comparisons without collecting another sample.", + "description": "Read finite observation status and bounded comparisons without collecting another sample. id comes from start_thread_observation; omit it for the latest session. CPU is an adjacent counter delta over a measured interval, not a lifetime total or a wall-clock utilization guess. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui thread-analysis observation ", + "idHelp": "A finite observation id (omit for latest) from 'bootui thread-analysis observe'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Optional identifier; omitted selects the tool's documented default." + } + }, + "additionalProperties": false + } + }, + { + "name": "start_thread_observation", + "command": "thread-analysis observe", + "schema": "NONE", + "panel": "threads", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Explicitly start a finite bounded thread observation using configured sample count and cadence.", + "description": "Explicitly start a finite bounded thread observation using configured sample count and cadence. This schedules JVM stack acquisitions, not continuous monitoring. Obtain permission for the collection cost. Read get_thread_observation with the returned observation id; repeated sampled stacks do not establish continuous inactivity or a busy loop. While running, poll retained status only: live get_threads, snapshots, and downloads share acquisition and can fail a scheduled sample. Busy or missed samples fail without retrying. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui thread-analysis observe", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_thread_analysis", + "command": "thread-analysis show", + "schema": "OPTIONAL_ID", + "panel": "threads", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read retained contention roots, direct/transitive impact, cycles, unresolved waits and exact visible-stack groups.", + "description": "Read retained contention roots, direct/transitive impact, cycles, unresolved waits and exact visible-stack groups. id is a capture id from capture_thread_snapshot or get_thread_snapshots; omit it for the latest retained capture. An expired explicit id never falls back to fresh evidence. Follow rootBlockers[].observationId and blockedObservationIds with get_thread_detail to inspect both the lock owner and its blocked waiters before proposing a source fix. This tool accepts id only; section page.hasMore or truncated ID lists mean incomplete coverage, not absence of other blockers. A cycle is not automatically a native deadlock and repeated visible stacks are not proof of a hang. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui thread-analysis show ", + "idHelp": "A retained capture id (omit for latest) from 'bootui thread-analysis capture' or 'bootui thread-analysis list'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Optional identifier; omitted selects the tool's documented default." + } + }, + "additionalProperties": false + } + }, + { + "name": "get_thread_detail", + "command": "thread-analysis thread", + "schema": "ID", + "panel": "threads", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Read one retained thread's masked stack and lock context using its exact capture-scoped observation id from get_thread_analysis, not a live numeric thread id or finite session id.", + "description": "Read one retained thread's masked stack and lock context using its exact capture-scoped observation id from get_thread_analysis, not a live numeric thread id or finite session id. Inspect thread.stackTrace, lockOwnerId, activity and truncation/ownership flags; locate relevant application frames in source before changing synchronization. No JVM collection occurs and no native lock identity is inferred. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui thread-analysis thread ", + "idHelp": "A root observationId, blockedObservationIds entry, cycle participantId, or unresolved waiterId/ownerId from 'bootui thread-analysis show'.", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Exact identifier of the resource to fetch." + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + { + "name": "get_threads", + "command": "threads", + "schema": "QUERY_LIMIT", + "panel": "threads", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Search the current JVM thread snapshot and return a bounded page of thread states and stack summaries.", + "description": "Search the current JVM thread snapshot and return a bounded page of thread states and stack summaries. This does not generate or download the raw thread-dump artifact. At most limit (25) threads; page.hasMore means more matched.", + "example": "bootui threads --query http --limit 10", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 25, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 25, + "description": "Optional maximum number of items to return; default 25, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "clear_traces", + "command": "traces clear", + "schema": "NONE", + "panel": "traces", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Clear BootUI's bounded in-memory trace buffer.", + "description": "Clear BootUI's bounded in-memory trace buffer. This does not contact a telemetry backend or alter application tracing configuration. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Here totalCaptured is null: the panel keeps no lifetime count. Read the entries with get_traces. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui traces clear", + "annotations": { + "readOnlyHint": false, + "destructiveHint": true, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_traces", + "command": "traces list", + "schema": "LIMIT", + "panel": "traces", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return a bounded, newest-first snapshot of distributed and local traces captured by BootUI.", + "description": "Return a bounded, newest-first snapshot of distributed and local traces captured by BootUI. Use trace ids to correlate activity, exceptions, SQL, and HTTP exchanges. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui traces list --limit 20", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "Optional maximum number of items to return; default 100 (the server's limit), capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "clear_transactions", + "command": "tx clear", + "schema": "NONE", + "panel": "transactions", + "action": true, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Clear the bounded in-memory Spring transaction trace buffer.", + "description": "Clear the bounded in-memory Spring transaction trace buffer. This does not begin, commit, or roll back an application transaction. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Read the entries with get_transactions. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui tx clear", + "annotations": { + "readOnlyHint": false, + "destructiveHint": true, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_transactions", + "command": "tx list", + "schema": "NONE", + "panel": "transactions", + "action": false, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the current bounded transaction-boundary snapshot with outcomes, timings, nesting, and correlated SQL counts.", + "description": "Return the current bounded transaction-boundary snapshot with outcomes, timings, nesting, and correlated SQL counts. propagation describes observed boundaries: NEW (physical begin without a known parent), REQUIRES_NEW (child physical begin), NESTED (savepoint), or UNKNOWN (begin failed or ownership unverified), not declared annotation values. A joining method adds no boundary. Use it to verify which local operations actually ran in a transaction. totalCaptured counts the transactions recorded since startup, which clear_transactions does not reset; stats and entries cover the retained window only. Reactive or JTA capture records physical begin/commit/rollback callbacks, not a complete parent or savepoint hierarchy. SQL and connection counts cover JDBC work on the begin thread only, not R2DBC statements or JDBC work moved to another thread. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui tx list", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "pause_transaction_recording", + "command": "tx pause", + "schema": "NONE", + "panel": "transactions", + "action": true, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Pause Spring transaction-boundary recording.", + "description": "Pause Spring transaction-boundary recording. Existing buffered transactions remain available until explicitly cleared. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Read the entries with get_transactions. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui tx pause", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "resume_transaction_recording", + "command": "tx resume", + "schema": "NONE", + "panel": "transactions", + "action": true, + "stacks": [ + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Resume Spring transaction-boundary recording.", + "description": "Resume Spring transaction-boundary recording. This only affects BootUI's bounded local capture. Answers with a compact acknowledgement, not the panel: action, available, unavailableReason, capturing, retained (the entries still held), capacity, and totalCaptured, the entries recorded since startup, which a clear does not reset. Read the entries with get_transactions. Refused while low-footprint mode is active; call disable_low_footprint first with approval.", + "example": "bootui tx resume", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_vulnerabilities_report", + "command": "vulnerabilities report", + "schema": "QUERY_LIMIT", + "panel": "vulnerabilities", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the cached vulnerability report, or the local dependency inventory before the first scan, without contacting OSV.dev or any other network service.", + "description": "Return the cached vulnerability report, or the local dependency inventory before the first scan, without contacting OSV.dev or any other network service. Inspect `scan.status`, `scan.message`, `coverage` and `scan.packagesSkipped` before interpreting absent findings. Partial results retain available evidence; UNKNOWN severity is not zero risk. Coverage describes the inventory provider's accounting, not shaded-library discovery or exploitability. With the BootUI agent, `runtimeReach` says whether a dependency's classes, or a class its advisory names, loaded in this JVM: a prioritization hint that never changes severity, and NOT_LOADED means not loaded yet, not unreachable. At most limit (10) dependencies, vulnerable first, matching query (coordinates, severity, or an advisory id or alias); totals stay whole-report counts and page.matched counts the query hits. Each dependency lists at most 5 advisories, active and most severe first, without details and with at most 3 references and symbols; advisories.omitted and advisories.detailsOmitted count what was left out. Query an exact group:artifact to list all its advisories, or an exact advisory id or alias to read it whole.", + "example": "bootui vulnerabilities report --query CRITICAL", + "queryHelp": "group:artifact coordinates, a severity, or an advisory id or alias such as a CVE; an exact group:artifact lists all its advisories, an exact advisory id or alias returns it whole", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "defaultLimit": 10, + "inputSchema": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Optional case-insensitive filter applied to the results." + }, + "limit": { + "type": "integer", + "minimum": 1, + "default": 10, + "description": "Optional maximum number of items to return; default 10, capped by the bootui.mcp.max-results server limit." + } + }, + "additionalProperties": false + } + }, + { + "name": "vulnerabilities_scan", + "command": "vulnerabilities scan", + "schema": "NONE", + "panel": "vulnerabilities", + "action": true, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Actively query OSV.dev for known vulnerabilities in this application's dependencies and return severity-ranked findings.", + "description": "Actively query OSV.dev for known vulnerabilities in this application's dependencies and return severity-ranked findings. This sends package names/versions to OSV and, when enabled, CVE ids to FIRST for optional EPSS enrichment; run only with approval. Check `scan.status`, `scan.message`, `coverage` and `scan.packagesSkipped`: partial or unknown evidence is not a clean result, and inventory coverage does not prove reachability. Fixed versions are supported affected-interval candidates, not verified installable upgrades. Verify compatibility before changing a dependency. EPSS is the highest available per-CVE probability, not a combined probability or severity; optional enrichment failure retains OSV findings. It answers with a compact summary, not the report: scan, findingsFound, severityCounts, at most 10 topFindings (id, title, severity, count), most severe first, moreFindings counting the findings left out, evidence, plus dependencies, scanningEnabled and coverage. A finding is a vulnerable dependency: its coordinates, its most severe advisory, its highest severity, and its advisory count. Read every advisory with get_vulnerabilities_report without scanning again.", + "example": "bootui vulnerabilities scan", + "annotations": { + "readOnlyHint": false, + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": true + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + { + "name": "get_websockets", + "command": "websockets", + "schema": "NONE", + "panel": "websockets", + "action": false, + "stacks": [ + "QUARKUS", + "SPRING_MVC", + "SPRING_WEBFLUX" + ], + "summary": "Return the WebSocket endpoints, live sessions, STOMP subscriptions and broker prefixes, and a bounded newest-first activity log of connects, disconnects, and frames, with aggregate counters.", + "description": "Return the WebSocket endpoints, live sessions, STOMP subscriptions and broker prefixes, and a bounded newest-first activity log of connects, disconnects, and frames, with aggregate counters. Metadata only: a frame's size, never its payload. frameCaptureSupported and sessionTrackingSupported say what this stack can observe, with the reason when not, so an empty list is not proof no client connected; the *Truncated flags mark capped lists. This read never opens, closes, or sends on a connection, and does not clear the log. While relevant capture is held, lowFootprint identifies paused or partially paused evidence, not a quiet application; native statistics and Java-agent instrumentation may still run.", + "example": "bootui websockets", + "annotations": { + "readOnlyHint": true, + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false + }, + "inputSchema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + ] +} \ No newline at end of file diff --git a/tests/parity/properties_status.json b/tests/parity/properties_status.json index 27edcacee..74b685029 100644 --- a/tests/parity/properties_status.json +++ b/tests/parity/properties_status.json @@ -1,5 +1,5 @@ { - "fixture": "tests/fixtures/bootui/2.5.0/properties.json", + "fixture": "tests/fixtures/bootui/2.6.0/properties.json", "panel_map_rule": "bootui.panels is the sole fixture entry for panel configuration; bootui.panels.* keys are map members, not property rows, and are not synthesized from the settings registry.", "properties": [ { @@ -22,6 +22,12 @@ "status": "matched", "difference": null }, + { + "name": "bootui.activity.persistence.application-id", + "status": "missing", + "difference": "No sharpit setting field/parser for activity_persistence_application_id", + "reason": "Task 3.13 adds journal-fed Live Activity and durable history." + }, { "name": "bootui.activity.persistence.buffer-max-entries", "status": "missing", @@ -62,11 +68,41 @@ "status": "missing", "difference": "No sharpit setting field/parser for activity_persistence_flush_interval" }, + { + "name": "bootui.activity.persistence.hot-max-entries", + "status": "missing", + "difference": "No sharpit setting field/parser for activity_persistence_hot_max_entries", + "reason": "Task 3.13 adds journal-fed Live Activity and durable history." + }, { "name": "bootui.activity.persistence.instance-id", "status": "missing", "difference": "No sharpit setting field/parser for activity_persistence_instance_id" }, + { + "name": "bootui.activity.persistence.max-pending-bytes", + "status": "missing", + "difference": "No sharpit setting field/parser for activity_persistence_max_pending_bytes", + "reason": "Task 3.13 adds journal-fed Live Activity and durable history." + }, + { + "name": "bootui.activity.persistence.max-pending-entries", + "status": "missing", + "difference": "No sharpit setting field/parser for activity_persistence_max_pending_entries", + "reason": "Task 3.13 adds journal-fed Live Activity and durable history." + }, + { + "name": "bootui.activity.persistence.namespace-id", + "status": "missing", + "difference": "No sharpit setting field/parser for activity_persistence_namespace_id", + "reason": "Task 3.13 adds journal-fed Live Activity and durable history." + }, + { + "name": "bootui.activity.persistence.reader-archive-cross-namespace", + "status": "missing", + "difference": "No sharpit setting field/parser for activity_persistence_reader_archive_cross_namespace", + "reason": "Task 3.13 adds journal-fed Live Activity and durable history." + }, { "name": "bootui.activity.persistence.retention", "status": "missing", @@ -576,6 +612,12 @@ "status": "matched", "difference": null }, + { + "name": "bootui.memory.include-histogram", + "status": "missing", + "difference": "No sharpit setting field/parser for memory_include_histogram", + "reason": "Task 2.13 records JVM-only memory histogram configuration as n-a." + }, { "name": "bootui.monitoring.exclude-self", "status": "missing", diff --git a/tests/parity/routes_status.json b/tests/parity/routes_status.json index 9fa25069b..5336b2ff2 100644 --- a/tests/parity/routes_status.json +++ b/tests/parity/routes_status.json @@ -1,5 +1,5 @@ { - "fixture": "tests/fixtures/bootui/2.5.0", + "fixture": "tests/fixtures/bootui/2.6.0", "counts": { "matched": 5, "partial": 36, diff --git a/tests/parity/test_properties_parity.py b/tests/parity/test_properties_parity.py index 036bb683f..179e50be7 100644 --- a/tests/parity/test_properties_parity.py +++ b/tests/parity/test_properties_parity.py @@ -1,4 +1,4 @@ -"""Sharpit settings parity against the BootUI 2.5.0 property fixture.""" +"""Sharpit settings parity against the BootUI 2.6.0 property fixture.""" from __future__ import annotations @@ -14,7 +14,7 @@ from sharpit.settings import load_settings from sharpit.settings_registry import SPECS, UNSET -_FIXTURE = Path(__file__).resolve().parents[1] / "fixtures" / "bootui" / "2.5.0" / "properties.json" +_FIXTURE = Path(__file__).resolve().parents[1] / "fixtures" / "bootui" / "2.6.0" / "properties.json" _STATUS = Path(__file__).with_name("properties_status.json") pytestmark = [ diff --git a/tests/parity/test_routes_parity.py b/tests/parity/test_routes_parity.py index 7bd02a3a1..966595f8d 100644 --- a/tests/parity/test_routes_parity.py +++ b/tests/parity/test_routes_parity.py @@ -28,7 +28,7 @@ _API = "/sharpit/api" _FIXTURES_DIR = Path(__file__).resolve().parents[1] / "fixtures" / "bootui" / "2.3.0" -_BOOTUI_25 = _FIXTURES_DIR.with_name("2.5.0") +_BOOTUI_26 = _FIXTURES_DIR.with_name("2.6.0") _STATUS_FILE = Path(__file__).with_name("routes_status.json") _TRACE_ID = 1 @@ -236,7 +236,7 @@ def _route_template(path: str) -> str: @pytest.fixture(scope="module") def bootui_route_catalog() -> dict[str, Any]: - return json.loads((_BOOTUI_25 / "routes.json").read_text(encoding="utf-8")) + return json.loads((_BOOTUI_26 / "routes.json").read_text(encoding="utf-8")) def test_inventory_uses_canonical_paths(bootui_route_catalog: dict[str, Any]) -> None: diff --git a/tests/parity/test_tools_parity.py b/tests/parity/test_tools_parity.py index f56a3dd83..71e378ebe 100644 --- a/tests/parity/test_tools_parity.py +++ b/tests/parity/test_tools_parity.py @@ -12,7 +12,7 @@ from sharpit.engine.tools import COMMANDS, TOOLS ROOT = Path(__file__).parents[1] -FIXTURE_CURRENT = ROOT / "fixtures" / "bootui" / "2.5.0" / "tools.json" +FIXTURE_CURRENT = ROOT / "fixtures" / "bootui" / "2.6.0" / "tools.json" FIXTURE_PREVIOUS = ROOT / "fixtures" / "bootui" / "2.4.0" / "tools.json" FIXTURE_OLD = ROOT / "fixtures" / "bootui" / "2.3.0" / "tools.json" BOOTUI_TOOLS = json.loads(FIXTURE_CURRENT.read_text("utf-8"))["tools"] @@ -369,8 +369,8 @@ def test_cli_default_limit_matches_bootui() -> None: "get_profile_diff", "get_request_profile", ) -# BootUI 2.5.0 description changes are adopted by A2. -DESCRIPTION_GAPS_25: dict[str, str] = {} +_TOOL_STATUS = json.loads(Path(__file__).with_name("tools_status.json").read_text(encoding="utf-8")) +DESCRIPTION_GAPS_26 = {row["name"] for row in _TOOL_STATUS["tools"] if row["status"] != "matched"} # Tools whose 2.4.0 description changes sharpit adopted. DESCRIPTION_ADOPTED_24: tuple[str, ...] = ( "get_exceptions", @@ -392,7 +392,7 @@ def test_description_matched_is_complete() -> None: assert set(DESCRIPTION_MATCHED) == byte_equal -def test_description_gaps_are_the_bootui_2_5_0_changes() -> None: +def test_description_gaps_are_recorded_for_bootui_2_6_0() -> None: previous = {tool["name"]: tool for tool in BOOTUI_TOOLS_PREVIOUS} changed = { name @@ -400,8 +400,8 @@ def test_description_gaps_are_the_bootui_2_5_0_changes() -> None: if name not in previous or (tool["description"], tool.get("summary")) != (previous[name]["description"], previous[name].get("summary")) } - assert set(DESCRIPTION_GAPS_25) == changed - set(DESCRIPTION_MATCHED) - assert not (set(DESCRIPTION_GAPS_25) & set(DESCRIPTION_MATCHED)) + assert set(DESCRIPTION_GAPS_26) == changed - set(DESCRIPTION_MATCHED) + assert all(row["status"] in {"matched", "partial", "missing"} for row in _TOOL_STATUS["tools"]) def test_matched_tools_ratchet() -> None: diff --git a/tests/parity/tools_status.json b/tests/parity/tools_status.json new file mode 100644 index 000000000..52803a695 --- /dev/null +++ b/tests/parity/tools_status.json @@ -0,0 +1,20 @@ +{ + "fixture": "tests/fixtures/bootui/2.6.0/tools.json", + "tools": [ + { + "name": "get_live_activity", + "status": "partial", + "reason": "Task 3.13 adds durable history needed for BootUI scope qualifiers; sharpit retains its current text until then." + }, + { + "name": "memory_scan", + "status": "missing", + "reason": "Task 0.1 records BootUI JVM histogram behavior as n-a because sharpit has no JVM memory scan." + }, + { + "name": "get_spring_data_repositories", + "status": "missing", + "reason": "Task 0.1 records Spring Data repository metadata as n-a because sharpit has no Spring Data runtime." + } + ] +} From d5cc02017fe1c2732bc15328c3149bc58c6e26ba Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 15:29:01 +0000 Subject: [PATCH 02/14] chore: flag blanket and unused suppressions Signed-off-by: Flavio Oliva --- examples/fastapi_sqla/app.py | 4 +- pyproject.toml | 2 +- scripts/ci/check_live_tests.py | 30 ++++++++---- scripts/ci/dco_check.py | 2 +- scripts/ci/fleet.py | 2 +- scripts/ci/timing_files.py | 2 +- scripts/dev/capture_sql_errors.py | 8 ++-- scripts/dev/live_fuzz.py | 20 ++++---- scripts/dev/masking_gate.py | 18 ++++---- scripts/dev/profile_sql_listener.py | 24 +++++----- src/sharpit/__init__.py | 10 ++-- src/sharpit/cli/commands.py | 2 +- src/sharpit/engine/advisors/registry.py | 2 +- src/sharpit/engine/appsource.py | 4 +- src/sharpit/engine/capture/__init__.py | 2 +- src/sharpit/engine/capture/journal.py | 10 ++-- src/sharpit/engine/capture/lockfree.py | 2 +- src/sharpit/engine/capture/logtail.py | 6 +-- src/sharpit/engine/capture/mail.py | 22 ++++----- src/sharpit/engine/capture/securitylogs.py | 2 +- src/sharpit/engine/capture/sqltrace.py | 4 +- src/sharpit/engine/capture/streams.py | 2 +- src/sharpit/engine/capture/transactions.py | 28 +++++------ src/sharpit/engine/capture/wraps.py | 4 +- src/sharpit/engine/collectors/alembic.py | 4 +- src/sharpit/engine/collectors/appsecurity.py | 2 +- .../collectors/config/settings_source.py | 4 +- src/sharpit/engine/collectors/data.py | 6 +-- .../collectors/database_advisor/catalog.py | 6 +-- .../collectors/database_advisor/report.py | 4 +- .../collectors/database_advisor/rules_orm.py | 2 +- .../database_advisor/rules_vendor.py | 2 +- .../engine/collectors/github/client.py | 2 +- src/sharpit/engine/collectors/health.py | 4 +- .../engine/collectors/insights/agent_view.py | 2 +- .../collectors/insights/not_exercised.py | 2 +- .../engine/collectors/insights/service.py | 4 +- .../engine/collectors/insights/snapshot.py | 6 +-- .../engine/collectors/metrics/__init__.py | 4 +- .../engine/collectors/mysql/sections.py | 4 +- .../engine/collectors/mysql/service.py | 2 +- .../collectors/pentesting/cache_control.py | 2 +- .../pentesting/cookie_observation.py | 2 +- src/sharpit/engine/collectors/pools.py | 4 +- .../engine/collectors/postgresql/sections.py | 4 +- .../engine/collectors/postgresql/service.py | 2 +- .../engine/collectors/scheduled/__init__.py | 2 +- .../engine/collectors/security/report.py | 2 +- .../collectors/security/static_analysis.py | 6 +-- src/sharpit/engine/collectors/threads.py | 2 +- src/sharpit/engine/models.py | 6 +-- src/sharpit/engine/otel.py | 6 +-- src/sharpit/engine/probe.py | 2 +- src/sharpit/engine/sensors/audit.py | 4 +- src/sharpit/engine/sensors/rows.py | 4 +- src/sharpit/engine/sources/dispatch.py | 14 +++--- src/sharpit/engine/sources/sqlite.py | 12 ++--- src/sharpit/engine/sqla/connections.py | 6 +-- src/sharpit/engine/sqla/dialect_source.py | 2 +- src/sharpit/engine/sqla/inspect.py | 16 +++---- src/sharpit/engine/sqla/listeners.py | 20 ++++---- src/sharpit/engine/sqla/orm.py | 10 ++-- src/sharpit/engine/sqla/readonly.py | 4 +- src/sharpit/engine/sqltext/dialect.py | 8 ++-- src/sharpit/engine/sqltext/errors.py | 2 +- src/sharpit/engine/testsession/sink.py | 14 +++--- src/sharpit/engine/tool_dispatch.py | 2 +- src/sharpit/engine/tools.py | 2 +- src/sharpit/engine/tools04/security.py | 2 +- src/sharpit/fastapi/capture.py | 28 +++++------ src/sharpit/fastapi/capture_exceptions.py | 4 +- src/sharpit/fastapi/install.py | 2 +- src/sharpit/fastapi/introspection_common.py | 2 +- src/sharpit/fastapi/introspection_errors.py | 6 +-- src/sharpit/fastapi/introspection_security.py | 2 +- src/sharpit/fastapi/introspector.py | 24 +++++----- src/sharpit/fastapi/pentesting_exposure.py | 4 +- src/sharpit/fastapi/sink_ownership.py | 2 +- src/sharpit/flask/introspector.py | 2 +- src/sharpit/pytest_plugin/__init__.py | 46 +++++++++---------- src/sharpit/pytest_plugin/apps.py | 8 ++-- .../pytest_plugin/http_security_asgi.py | 4 +- .../pytest_plugin/http_security_flask.py | 2 +- src/sharpit/pytest_plugin/report_io.py | 2 +- src/sharpit/pytest_plugin/session.py | 10 ++-- src/sharpit/pytest_plugin/swallowed.py | 6 +-- src/sharpit/pytest_plugin/terminal.py | 4 +- tests/conftest.py | 4 +- tests/docs/test_agent_playbooks_and_guide.py | 2 +- tests/docs/test_parity_matrix.py | 16 +++---- tests/docs/test_readme_claims.py | 6 +-- tests/engine/advisors/test_registry.py | 4 +- .../engine/capture/test_connection_journal.py | 6 +-- .../engine/capture/test_exception_journal.py | 6 +-- .../engine/capture/test_exception_literals.py | 2 +- tests/engine/capture/test_exceptions.py | 6 +-- .../capture/test_log_handler_locking.py | 2 +- tests/engine/capture/test_log_journal.py | 2 +- tests/engine/capture/test_logtail.py | 2 +- tests/engine/capture/test_mail.py | 28 +++++------ tests/engine/capture/test_securitylogs.py | 2 +- tests/engine/capture/test_sql_journal.py | 26 +++++------ tests/engine/capture/test_sqlscan.py | 2 +- tests/engine/capture/test_sqltrace.py | 6 +-- tests/engine/capture/test_sqltrace_reentry.py | 12 ++--- tests/engine/capture/test_traces.py | 2 +- .../architecture/test_architecture_report.py | 6 +-- .../collectors/architecture/test_graph.py | 2 +- .../collectors/fastapi_advisor/support.py | 2 +- .../collectors/github/test_github_client.py | 2 +- .../pentesting/test_cookie_checks.py | 4 +- .../pentesting/test_cookie_observation.py | 2 +- .../collectors/sideeffects/test_service.py | 2 +- tests/engine/insights/test_insights_k1.py | 2 +- tests/engine/insights/test_insights_loss.py | 6 +-- .../insights/test_insights_sqlrecorded.py | 8 ++-- tests/engine/postgresql/test_sections.py | 6 +-- tests/engine/postgresql/test_service.py | 2 +- tests/engine/sensors/test_sink_sensors.py | 12 ++--- tests/engine/sensors/test_sink_values.py | 2 +- tests/engine/sqltext/test_dialect_truth.py | 2 +- tests/engine/sqltext/test_identity_key.py | 2 +- tests/engine/sqltext/test_lexer.py | 2 +- tests/engine/sqltext/test_no_mysql_flag.py | 2 +- tests/engine/sqltext/test_resolver.py | 8 ++-- tests/engine/test_application_family.py | 6 +-- tests/engine/test_appsource.py | 2 +- tests/engine/test_data.py | 32 ++++++------- tests/engine/test_health.py | 6 +-- tests/engine/test_models.py | 10 ++-- tests/engine/test_pools.py | 2 +- tests/engine/test_sensors_audit.py | 6 +-- tests/engine/test_sqla_inspect.py | 2 +- tests/engine/test_sqla_read_only.py | 2 +- tests/engine/test_sqla_read_only_dialects.py | 6 +-- tests/engine/test_sqlite_source.py | 6 +-- tests/engine/test_swallowed_overhead.py | 2 +- tests/engine/test_threads.py | 4 +- tests/engine/testsession/test_doubles.py | 2 +- tests/engine/testsession/test_sink.py | 4 +- tests/fastapi/test_architecture_api.py | 2 +- .../fastapi/test_architecture_source_reads.py | 2 +- tests/fastapi/test_capture_wiring.py | 2 +- .../test_capture_without_pydantic_core.py | 2 +- tests/fastapi/test_data_api.py | 20 ++++---- tests/fastapi/test_database_advisor_leased.py | 6 +-- .../fastapi/test_dialect_conflict_surfaces.py | 2 +- tests/fastapi/test_exceptions_api.py | 2 +- tests/fastapi/test_introspector_providers.py | 4 +- tests/fastapi/test_introspector_routes.py | 2 +- tests/fastapi/test_introspector_security.py | 2 +- tests/fastapi/test_metrics_route.py | 2 +- tests/fastapi/test_mysql_leased.py | 2 +- tests/fastapi/test_mysql_read_only_leased.py | 2 +- .../test_pentesting_exposure_adapter.py | 6 +-- .../test_transactions_listener_cost.py | 2 +- tests/fastapi/test_w6_audit_sensors.py | 2 +- tests/fixtures/apps/swallow_twins/twinlib.py | 2 +- tests/live/conftest.py | 6 +-- tests/live/oracle.py | 6 +-- tests/masking/a10/test_exceptions.py | 2 +- tests/masking/mutant_worker.py | 4 +- tests/masking/test_a12_resolver.py | 2 +- tests/masking/test_error_regions.py | 2 +- tests/masking/test_gates_bite.py | 2 +- tests/masking/test_live_anchors.py | 4 +- tests/masking/test_mask_spans.py | 2 +- tests/masking/test_masking_scales_linearly.py | 6 +-- tests/masking/test_scan_reads_raw.py | 2 +- tests/masking/test_sql_error_surfaces.py | 2 +- tests/masking/test_statement_surfaces.py | 14 +++--- .../pytest_plugin/test_http_security_flask.py | 2 +- tests/pytest_plugin/test_plugin_apps.py | 4 +- tests/pytest_plugin/test_plugin_facts.py | 2 +- tests/pytest_plugin/test_plugin_options.py | 2 +- tests/pytest_plugin/test_plugin_swallowed.py | 2 +- .../test_a_sqlalchemy_statistics_safety.py | 6 +-- .../safety/test_a_sqltrace_insights_safety.py | 6 +-- tests/safety/test_b_security_safety.py | 12 ++--- tests/safety/test_c_architecture_safety.py | 16 +++---- tests/scripts/test_shard_weights.py | 2 +- tests/surface.py | 8 ++-- tests/test_ci_layout.py | 2 +- tests/test_example_gate.py | 2 +- tests/test_live_server_scope.py | 2 +- tests/test_safety_lane_sweeps.py | 4 +- tests/test_safety_matrix.py | 2 +- tests/test_side_effect_guard.py | 6 +-- 188 files changed, 551 insertions(+), 541 deletions(-) diff --git a/examples/fastapi_sqla/app.py b/examples/fastapi_sqla/app.py index 7fb8096a6..9aeb1625a 100644 --- a/examples/fastapi_sqla/app.py +++ b/examples/fastapi_sqla/app.py @@ -68,8 +68,8 @@ def otel_provider() -> object | None: The example installs it as the global provider (sharpit itself never does); without the SDK it returns None. """ try: - from opentelemetry import trace # noqa: PLC0415 - optional, not a dependency of the sample - from opentelemetry.sdk.trace import TracerProvider # noqa: PLC0415 + from opentelemetry import trace + from opentelemetry.sdk.trace import TracerProvider except ImportError: return None current = trace.get_tracer_provider() diff --git a/pyproject.toml b/pyproject.toml index 17a083e7f..782c1c6d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,7 +140,7 @@ src = ["src", "tests"] extend-exclude = ["scripts/pytest_speed"] # vendored verbatim; its VERSION hash catches local edits [tool.ruff.lint] -select = ["E", "F", "I", "UP", "B", "S", "SIM", "PERF", "C4", "FURB", "PT018"] # PERF/C4/FURB: performance; PT018: one condition per assert +select = ["E", "F", "I", "UP", "B", "S", "SIM", "PERF", "C4", "FURB", "PT018", "PGH", "RUF100"] # PERF/C4/FURB: performance; PT018: one condition per assert [tool.ruff.lint.per-file-ignores] # S (security) guards what ships. Tests assert and use fake secrets by design; scripts and examples are not shipped. diff --git a/scripts/ci/check_live_tests.py b/scripts/ci/check_live_tests.py index 5cc303f8c..971c2ada2 100644 --- a/scripts/ci/check_live_tests.py +++ b/scripts/ci/check_live_tests.py @@ -12,7 +12,7 @@ import argparse import re import sys -import xml.etree.ElementTree as ET # noqa: S405 - the report is pytest's own output, written in this job +import xml.etree.ElementTree as ET from collections.abc import Sequence from pathlib import Path @@ -20,13 +20,8 @@ ORACLE_LEG = re.compile(r"test_oracle_row\[(\w+)-(\w+)-\d+\]$") -def check(report: Path, required: Sequence[str], legs: Sequence[str] = ()) -> list[str]: # noqa: C901 - one linear sequence of report checks - try: - root = ET.parse(report).getroot() # noqa: S314 - as above - except (ET.ParseError, OSError) as error: - return [f"Cannot read test report {report.name}: {type(error).__name__}"] +def _suite_failures(suites: Sequence[ET.Element]) -> list[str]: failures: list[str] = [] - suites = [root] if root.tag == "testsuite" else list(root.iter("testsuite")) for suite in suites: try: counts = {key: int(suite.get(key, "0")) for key in ("tests", "failures", "errors", "skipped")} @@ -37,7 +32,11 @@ def check(report: Path, required: Sequence[str], legs: Sequence[str] = ()) -> li failures.append("inconsistent test counters") elif any(counts[key] for key in ("failures", "errors", "skipped")): failures.append("the suite counters report a failure, error or skip") - cases = [case for suite in suites for case in suite.iter("testcase")] + return failures + + +def _required_test_failures(cases: Sequence[ET.Element], required: Sequence[str]) -> list[str]: + failures: list[str] = [] for spec in required: name, _, wanted = spec.partition("=") mine = [case for case in cases if case.get("name", "").split("[", 1)[0] == name] @@ -47,7 +46,12 @@ def check(report: Path, required: Sequence[str], legs: Sequence[str] = ()) -> li failures.append(f"{name}: expected {wanted} cases, found {len(mine)}") elif any(case.find(state) is not None for case in mine for state in STATES): failures.append(f"{name}: every required live test must pass without skips") + return failures + + +def _oracle_leg_failures(cases: Sequence[ET.Element], legs: Sequence[str]) -> list[str]: rows = [case for case in cases if ORACLE_LEG.fullmatch(case.get("name", ""))] + failures: list[str] = [] for spec in legs: name, _, wanted = spec.partition("=") mine = [ @@ -66,6 +70,16 @@ def check(report: Path, required: Sequence[str], legs: Sequence[str] = ()) -> li return failures +def check(report: Path, required: Sequence[str], legs: Sequence[str] = ()) -> list[str]: + try: + root = ET.parse(report).getroot() + except (ET.ParseError, OSError) as error: + return [f"Cannot read test report {report.name}: {type(error).__name__}"] + suites = [root] if root.tag == "testsuite" else list(root.iter("testsuite")) + cases = [case for suite in suites for case in suite.iter("testcase")] + return _suite_failures(suites) + _required_test_failures(cases, required) + _oracle_leg_failures(cases, legs) + + def main(argv: Sequence[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("report", type=Path) diff --git a/scripts/ci/dco_check.py b/scripts/ci/dco_check.py index 7a2f12d27..0c93380b6 100644 --- a/scripts/ci/dco_check.py +++ b/scripts/ci/dco_check.py @@ -64,7 +64,7 @@ def _remediated(commits: list[dict[str, Any]]) -> list[tuple[str, str, str]]: for line in commit["commit"]["message"].splitlines(): m = REMEDIATION.fullmatch(line.rstrip()) if m and _same_person(commit, m["name"], m["email"]): - found.append((m["name"], m["email"], m["sha"])) # noqa: PERF401 + found.append((m["name"], m["email"], m["sha"])) return found diff --git a/scripts/ci/fleet.py b/scripts/ci/fleet.py index a3ee4cf69..d1ab7cc66 100644 --- a/scripts/ci/fleet.py +++ b/scripts/ci/fleet.py @@ -332,7 +332,7 @@ def load_ledger() -> object | None: print(f"fleet: no spend ledger at {folder}; spend is not recorded", flush=True) return None sys.path.insert(0, str(folder)) - import sbx_ledger # type: ignore[import-not-found] # noqa: PLC0415 + import sbx_ledger # type: ignore[import-not-found] return sbx_ledger diff --git a/scripts/ci/timing_files.py b/scripts/ci/timing_files.py index 13227555f..491a6acc5 100644 --- a/scripts/ci/timing_files.py +++ b/scripts/ci/timing_files.py @@ -10,7 +10,7 @@ from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "tests")) -from _shard import timing_files # noqa: E402 - tests/ is no package; the planner is the single source +from _shard import timing_files def main(out: Path) -> None: diff --git a/scripts/dev/capture_sql_errors.py b/scripts/dev/capture_sql_errors.py index efa51b062..9a93c7f31 100644 --- a/scripts/dev/capture_sql_errors.py +++ b/scripts/dev/capture_sql_errors.py @@ -339,7 +339,7 @@ def work(conn: Any) -> None: try: run_conn(d, ctx, work, hide_parameters=c.hide) - except Exception as exc: # noqa: BLE001 - the error text is the product + except Exception as exc: return exc, handler.messages raise SystemExit(f"{d.name}/{c.name}: the statement did not fail") finally: @@ -397,7 +397,7 @@ def raw_run(d: Driver, ctx: Ctx, sql: str, params: tuple[str, ...]) -> BaseExcep asyncio.run(_RAW_ASYNC[d.name](ctx, mod, sql, params)) else: _raw_sync(d, ctx, mod, sql, params) - except Exception as exc: # noqa: BLE001 - the error text is the product + except Exception as exc: return exc raise SystemExit(f"{d.name} raw: the statement did not fail") @@ -515,7 +515,7 @@ def main() -> None: def create_database(flavor: str, port: int, sql: str) -> None: if flavor == "postgresql": - import psycopg2 # noqa: PLC0415 - test-only driver + import psycopg2 conn = psycopg2.connect(host="127.0.0.1", port=port, user="postgres", dbname="postgres") conn.autocommit = True @@ -525,7 +525,7 @@ def create_database(flavor: str, port: int, sql: str) -> None: finally: conn.close() else: - import pymysql # noqa: PLC0415 - test-only driver + import pymysql conn = pymysql.connect(host="127.0.0.1", port=port, user="root") try: diff --git a/scripts/dev/live_fuzz.py b/scripts/dev/live_fuzz.py index 25c258135..d912476cc 100644 --- a/scripts/dev/live_fuzz.py +++ b/scripts/dev/live_fuzz.py @@ -111,7 +111,7 @@ def run(text: str) -> str: try: if text.startswith((ROUTINE, "CREATE FUNCTION")): # a JavaScript body is a string: its definition where = "FROM information_schema.routines WHERE routine_schema = DATABASE() AND routine_name = %s" - cursor.execute(f"SELECT routine_definition {where}", (name,)) # noqa: S608 - a constant + cursor.execute(f"SELECT routine_definition {where}", (name,)) else: # a SQL body's definition is its source, names included: what it returns is the value cursor.execute(f"CALL {name}()") return repr(cursor.fetchall()) @@ -129,8 +129,8 @@ def server_runner(key: str, session: str) -> Iterator[tuple[str, Run]]: yield "sqlite", lambda text: repr(db.execute(text, _Null()).fetchall()) db.close() return - import sqlalchemy as sa # noqa: PLC0415 - the live profile's stack, not needed for sqlite - from tests.live.conftest import _boot # noqa: PLC0415 # pyright: ignore[reportPrivateUsage] + import sqlalchemy as sa + from tests.live.conftest import _boot # pyright: ignore[reportPrivateUsage] with _boot(key) as server: engine = sa.create_engine(server.url) @@ -152,7 +152,7 @@ def run(text: str) -> str: setup = raw.cursor() try: # as the oracle: a binary log refuses CREATE FUNCTION without it setup.execute("SET GLOBAL log_bin_trust_function_creators = 1") - except Exception as refused: # noqa: BLE001 - those rows only stop counting + except Exception as refused: print(f"live_fuzz: {key}: {refused}", file=sys.stderr) if session: setup.execute(f"SET SESSION sql_mode = '{session}'") @@ -163,10 +163,10 @@ def run(text: str) -> str: def _builds(family: str) -> dict[str, Callable[[str], str]]: - from sharpit.engine.capture.sqlscan import normalize_sql # noqa: PLC0415 - from sharpit.engine.capture.statement import statement_text # noqa: PLC0415 - from sharpit.engine.masking import Exposure, Masker # noqa: PLC0415 - from sharpit.engine.sqltext import Dialect, dialect_of_name # noqa: PLC0415 + from sharpit.engine.capture.sqlscan import normalize_sql + from sharpit.engine.capture.statement import statement_text + from sharpit.engine.masking import Exposure, Masker + from sharpit.engine.sqltext import Dialect, dialect_of_name dialect = dialect_of_name(family) or Dialect.UNSUPPORTED masker = Masker(Exposure.MASKED, True) @@ -194,7 +194,7 @@ def _twin_holds( swapped = text[: found.start()] + twin + text[found.end() :] try: rows = run(swapped) - except Exception: # noqa: BLE001, S112 - a refused twin proves nothing either way + except Exception: continue out = read(swapped) in_name = names_quoted and re.search(rf'"[^"]*{twin}[^"]*"', out) @@ -215,7 +215,7 @@ def fuzz(key: str, session: str, seed: int, count: int, out: Path) -> dict[str, for index, text in enumerate(strings(family, seed, count)): try: rows = run(text) - except Exception: # noqa: BLE001, S112 - the server refused it: no value came back + except Exception: continue parsed += 1 for name, read in builds.items(): diff --git a/scripts/dev/masking_gate.py b/scripts/dev/masking_gate.py index 0700218ce..ff6da83ac 100644 --- a/scripts/dev/masking_gate.py +++ b/scripts/dev/masking_gate.py @@ -162,7 +162,7 @@ def corpus(seed: int, rows: int) -> list[dict[str, Any]]: def with_statements(data: list[dict[str, Any]], seed: int) -> list[dict[str, Any]]: """Each row also carries a real statement (``st``), its markers (``ss``) and its dialect (``sd``), in turn.""" - import importlib.util # noqa: PLC0415 + import importlib.util spec = importlib.util.spec_from_file_location("_gate_sql_corpus", ROOT / "tests/masking/sql_corpus.py") assert spec is not None @@ -260,7 +260,7 @@ def start(label: str, src: Path, path: Path, out: Path, fields: tuple[str, ...]) str(out), ",".join(fields), ] - return subprocess.Popen(command, cwd=out.parent) # noqa: S603 # cwd: the temporary directory, never the repo + return subprocess.Popen(command, cwd=out.parent) # cwd: the temporary directory, never the repo def resolve(role: str, available: Iterable[str]) -> dict[str, str]: @@ -291,11 +291,11 @@ def work(role: str, src: str, corpus_path: str, out_path: str, fields: list[str] """In the tree: every field through the tree's own production function. ``sharpit`` must be the tree's.""" sys.dont_write_bytecode = True sys.path.insert(0, src) - import inspect # noqa: PLC0415 + import inspect - import sharpit # noqa: PLC0415 - from sharpit.engine.capture import sqltrace, traces # noqa: PLC0415 - from sharpit.engine.masking import Exposure, Masker # noqa: PLC0415 + import sharpit + from sharpit.engine.capture import sqltrace, traces + from sharpit.engine.masking import Exposure, Masker assert Path(sharpit.__file__).resolve().is_relative_to(Path(src).resolve()), sharpit.__file__ off, on = Masker(Exposure.MASKED, True), Masker(Exposure.MASKED, True, capture_parameters=True) @@ -310,13 +310,13 @@ def work(role: str, src: str, corpus_path: str, out_path: str, fields: list[str] if names["trace"] == "none" else getattr(owners[names["trace"].split(".")[0]], names["trace"].split(".")[1]) ) - parameters = len(inspect.signature(traces._sql_attribute).parameters) # noqa: SLF001 + parameters = len(inspect.signature(traces._sql_attribute).parameters) # a tree before Task 12 takes the flag, a tree after it a Dialect; 0.4.0 takes neither here generic: object = False family: object = True extra: dict[str, object] = {} if "dialect" in inspect.signature(sqltrace.normalize).parameters: - from sharpit.engine.sqltext import Dialect # noqa: PLC0415 + from sharpit.engine.sqltext import Dialect generic, family = Dialect.UNSUPPORTED, Dialect.MYSQL_FAMILY extra = {"dialect": generic} @@ -325,7 +325,7 @@ def work(role: str, src: str, corpus_path: str, out_path: str, fields: list[str] def statement(row: dict[str, Any], masker: Masker) -> str | None: dialect = (Dialect(row["sd"]),) if parameters > 3 else () - return traces._sql_attribute(masker, "db.statement", row["st"], *dialect) # noqa: SLF001 + return traces._sql_attribute(masker, "db.statement", row["st"], *dialect) def recorded(masker: Masker, text: str, sql: str | None) -> str | None: recorder = sqltrace.SqlTraceRecorder(masker, max_sql_length=10**6) diff --git a/scripts/dev/profile_sql_listener.py b/scripts/dev/profile_sql_listener.py index 97e8d054f..cce4585ed 100644 --- a/scripts/dev/profile_sql_listener.py +++ b/scripts/dev/profile_sql_listener.py @@ -317,7 +317,7 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: assert isinstance(journal, RuntimeJournal) targets = dispatch.recording(c_conn.engine) - named_params, rows = listeners._named(params, exec_ctx, False) # noqa: SLF001 + named_params, rows = listeners._named(params, exec_ctx, False) conn_id = hex(id(c_conn.connection.dbapi_connection)) dialect = dialect_source.engine_dialect(c_conn) or Dialect.UNSUPPORTED sql_event = dispatch.SqlEvent( @@ -325,9 +325,9 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: ) site = call_site(None) thread_name = threading.current_thread().name - shape = recorder._shape(sql_str, dialect) # noqa: SLF001 - text = _truncate(shape.text, recorder._max_sql_length) # noqa: SLF001 - j_record, j_size, j_started = dispatch._journal_event( # noqa: SLF001 + shape = recorder._shape(sql_str, dialect) + text = _truncate(shape.text, recorder._max_sql_length) + j_record, j_size, j_started = dispatch._journal_event( ctx, recorder, sql_event, text, None, thread_name, site ) @@ -343,7 +343,7 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: (" INTERNAL.get()", _time_call(statements, INTERNAL.get)), ( " orm._record_relationship(context)", - _time_call(statements, lambda: orm._record_relationship(exec_ctx)), # noqa: SLF001 + _time_call(statements, lambda: orm._record_relationship(exec_ctx)), ), ( " dispatch.recording(conn.engine)", @@ -351,7 +351,7 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: ), ( " dispatch._targets(conn.engine)", - _time_call(statements, lambda: dispatch._targets(c_conn.engine)), # noqa: SLF001 + _time_call(statements, lambda: dispatch._targets(c_conn.engine)), ), ( " EngineRegistry.holds(conn.engine)", @@ -376,13 +376,13 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: statements, lambda: ( setattr(exec_ctx, "_sharpit_start", (1000, targets)), - listeners._pop_start(c_conn, exec_ctx), # noqa: SLF001 + listeners._pop_start(c_conn, exec_ctx), ), ), ), ( " listeners._named(parameters, context, False)", - _time_call(statements, lambda: listeners._named(params, exec_ctx, False)), # noqa: SLF001 + _time_call(statements, lambda: listeners._named(params, exec_ctx, False)), ), ( " hex(id(conn.connection.dbapi_connection))", @@ -448,11 +448,11 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: ), ( " recorder._shape(sql, dialect) [lru_cache hit]", - _time_call(statements, lambda: recorder._shape(sql_str, dialect)), # noqa: SLF001 + _time_call(statements, lambda: recorder._shape(sql_str, dialect)), ), ( " _truncate(shape.text, max_sql_length)", - _time_call(statements, lambda: _truncate(shape.text, recorder._max_sql_length)), # noqa: SLF001 + _time_call(statements, lambda: _truncate(shape.text, recorder._max_sql_length)), ), (" category_of(sql) [lru_cache hit]", _time_call(statements, lambda: category_of(sql_str))), (" time.time_ns()", _time_call(statements, time.time_ns)), @@ -460,9 +460,7 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: " dispatch._journal_event(...)", _time_call( statements, - lambda: dispatch._journal_event( # noqa: SLF001 - ctx, recorder, sql_event, text, None, thread_name, site - ), + lambda: dispatch._journal_event(ctx, recorder, sql_event, text, None, thread_name, site), ), ), (" otel.current_trace_id()", _time_call(statements, otel.current_trace_id)), diff --git a/src/sharpit/__init__.py b/src/sharpit/__init__.py index 017ace7f2..2aad8e668 100644 --- a/src/sharpit/__init__.py +++ b/src/sharpit/__init__.py @@ -2,7 +2,7 @@ __version__ = "0.10.0" -from typing import TYPE_CHECKING # noqa: E402 # after __version__, the only version site +from typing import TYPE_CHECKING # after __version__, the only version site __all__ = ["__version__", "attach_sql_sources", "detach_sql_sources", "install", "record_security_event"] @@ -17,13 +17,13 @@ def __getattr__(name: str) -> object: """Load a public name on first use (PEP 562), so ``import sharpit`` does not import FastAPI or the adapter.""" if name == "install": - from sharpit.fastapi.adapter import install as value # noqa: PLC0415 + from sharpit.fastapi.adapter import install as value elif name == "attach_sql_sources": - from sharpit.fastapi.sources import attach_sql_sources as value # noqa: PLC0415 + from sharpit.fastapi.sources import attach_sql_sources as value elif name == "detach_sql_sources": - from sharpit.fastapi.sources import detach_sql_sources as value # noqa: PLC0415 + from sharpit.fastapi.sources import detach_sql_sources as value elif name == "record_security_event": - from sharpit.engine.capture.securitylogs import record_security_event as value # noqa: PLC0415 + from sharpit.engine.capture.securitylogs import record_security_event as value else: raise AttributeError(f"module 'sharpit' has no attribute {name!r}") globals()[name] = value diff --git a/src/sharpit/cli/commands.py b/src/sharpit/cli/commands.py index 27363cd52..8efad0f47 100644 --- a/src/sharpit/cli/commands.py +++ b/src/sharpit/cli/commands.py @@ -720,7 +720,7 @@ def main(argv: Sequence[str] | None = None) -> int: os.dup2(devnull, sys.stdout.fileno()) finally: os.close(devnull) - except OSError: # noqa: SIM105 - preserve the non-success result if stdout cannot be redirected. + except OSError: pass return ExitCodes.ERROR except KeyboardInterrupt: diff --git a/src/sharpit/engine/advisors/registry.py b/src/sharpit/engine/advisors/registry.py index 701599254..63916a024 100644 --- a/src/sharpit/engine/advisors/registry.py +++ b/src/sharpit/engine/advisors/registry.py @@ -92,7 +92,7 @@ def _prefixed(advisor: str, *prefixes: str) -> AdvisorSpec: ) -def advisor_for(id: str) -> AdvisorSpec | None: # noqa: A002 - the spec names this parameter `id` +def advisor_for(id: str) -> AdvisorSpec | None: """The advisor that owns a rule id or finding fingerprint, else None. A fingerprint prefix decides first and is then validated whole, so ``test-runtime:...::pypi:...`` is never read as diff --git a/src/sharpit/engine/appsource.py b/src/sharpit/engine/appsource.py index 9f7cf0d7c..567dc43c6 100644 --- a/src/sharpit/engine/appsource.py +++ b/src/sharpit/engine/appsource.py @@ -76,7 +76,7 @@ def _loaded_location(module: ModuleType) -> Path | None: if paths is not None: try: first = next((p for p in paths if isinstance(p, str)), None) - except Exception: # noqa: BLE001 - a custom __path__ object: degrade; never crash the host + except Exception: return None return Path(first) if first else None file = namespace.get("__file__") @@ -384,7 +384,7 @@ def _fill(index: SourceIndex, root: Path, max_files: int, max_file_bytes: int, d def _guarded_fill(index: SourceIndex, root: Path, max_files: int, max_file_bytes: int, deadline: float) -> None: try: _fill(index, root, max_files, max_file_bytes, deadline) - except Exception as exc: # noqa: BLE001 - defensive: a scan failure is a limitation; never a crash + except Exception as exc: index.limitations.append(f"source scan failed: {type(exc).__name__}") diff --git a/src/sharpit/engine/capture/__init__.py b/src/sharpit/engine/capture/__init__.py index 7a0924c7b..a459ea6b3 100644 --- a/src/sharpit/engine/capture/__init__.py +++ b/src/sharpit/engine/capture/__init__.py @@ -63,7 +63,7 @@ def _each(self, hooks: Iterable[Suspendable], action: str, *, reset: bool = True method = getattr(hook, action, None) if method is not None: method() - except Exception as exc: # noqa: BLE001 - a failing hook never strands the others + except Exception as exc: self.failures.append(f"{hook.name}: {type(exc).__name__}: {exc}") diff --git a/src/sharpit/engine/capture/journal.py b/src/sharpit/engine/capture/journal.py index d8253471e..5d0baac25 100644 --- a/src/sharpit/engine/capture/journal.py +++ b/src/sharpit/engine/capture/journal.py @@ -274,7 +274,7 @@ def __init__( self._accepting = True self._lock = threading.RLock() self._clearing = threading.Lock() # a clear walks what it dropped under this, never under the ring lock - self._owned = cast("Any", self._lock)._is_owned # noqa: SLF001 # whether THIS thread holds the lock + self._owned = cast("Any", self._lock)._is_owned # whether THIS thread holds the lock self._copying = _Copying() # set while this thread runs the host copy, which runs outside the lock def offer(self, event: Event) -> bool: @@ -295,7 +295,7 @@ def offer_flat(self, event: dict[str, str | int | bool | None], size: int | None return False try: source = event["source"] - except Exception: # noqa: BLE001 - publishing never raises into the host + except Exception: self.count_dropped(FAILED) return False if type(source) is not str: @@ -304,7 +304,7 @@ def offer_flat(self, event: dict[str, str | int | bool | None], size: int | None with self._lock: try: return self._append((event, size, started), source) - except Exception: # noqa: BLE001 - publishing never raises into the host + except Exception: self._dropped[FAILED] += 1 return False @@ -316,7 +316,7 @@ def _offer(self, event: Event, store: Callable[[Event], tuple[object, int, int]] try: source = event.get("source") # the host's own value, as on release: a copy turns bytes into a string prepared = store(event) # host ``__str__``/``__repr__`` run here, before the lock: no one waits on them - except Exception: # noqa: BLE001 - publishing never raises into the host; the event is dropped and counted + except Exception: self.count_dropped(FAILED) return False finally: @@ -327,7 +327,7 @@ def _offer(self, event: Event, store: Callable[[Event], tuple[object, int, int]] with self._lock: try: return self._append(prepared, source) - except Exception: # noqa: BLE001 - as above + except Exception: self._dropped[FAILED] += 1 return False diff --git a/src/sharpit/engine/capture/lockfree.py b/src/sharpit/engine/capture/lockfree.py index fcb2c74ba..2d6f21c1f 100644 --- a/src/sharpit/engine/capture/lockfree.py +++ b/src/sharpit/engine/capture/lockfree.py @@ -13,7 +13,7 @@ class LockFreeHandler(logging.Handler): - def createLock(self) -> None: # noqa: N802 - the stdlib hook name + def createLock(self) -> None: self.lock = None # ``acquire``/``release`` (used by ``logging.shutdown``) are no-ops without a lock def handle(self, record: logging.LogRecord) -> bool: diff --git a/src/sharpit/engine/capture/logtail.py b/src/sharpit/engine/capture/logtail.py index 4e863162b..b8fa1e744 100644 --- a/src/sharpit/engine/capture/logtail.py +++ b/src/sharpit/engine/capture/logtail.py @@ -141,7 +141,7 @@ def _first_classified(values: Iterable[object]) -> BaseException | None: def _format_classified(msg: object, substituted: object, fallback: BaseException) -> str: try: return msg % substituted if type(msg) is str else type(fallback).__name__ - except Exception: # noqa: BLE001 - a bad format string falls back to the classified exception's class name + except Exception: return type(fallback).__name__ @@ -174,7 +174,7 @@ def _record_message(record: logging.LogRecord, masker: Masker, dialect: Dialect) return formatted try: return record.getMessage() - except Exception: # noqa: BLE001 - a bad format string + except Exception: return record.msg if type(record.msg) is str else type(record.msg).__name__ @@ -220,7 +220,7 @@ def emit(self, record: logging.LogRecord) -> None: line = self.line(record) if line is not None: self.log_tail.append(line) - except Exception as exc: # noqa: BLE001 + except Exception as exc: self._fail(exc) finally: local.busy = False diff --git a/src/sharpit/engine/capture/mail.py b/src/sharpit/engine/capture/mail.py index 4df24471a..44f8f0a88 100644 --- a/src/sharpit/engine/capture/mail.py +++ b/src/sharpit/engine/capture/mail.py @@ -257,7 +257,7 @@ def _publish(self, entry: MailEntry) -> None: "codePathStamp": 0, } ) - except Exception: # noqa: BLE001 - publishing never disturbs the application's mail + except Exception: return # --- reads -------------------------------------------------------------------------------------------------------- @@ -291,7 +291,7 @@ def arm(self) -> bool: """Wrap what can be wrapped now and watch for a later ``aiosmtplib``; ``True`` once ``smtplib`` and ``aiosmtplib`` are both wrapped (``False`` without it: retried by the attacher, torn down at uninstall).""" # _refs is swapped whole under the lock and read lock-free by the wrappers - global _refs # noqa: PLW0603 + global _refs with _LOCK: _prune() # also drops what a skipped ``_forget`` left me = cast("MailRecorder", self) @@ -336,7 +336,7 @@ def _unwrap(families: Sequence[str]) -> None: def _prune(*, dead: weakref.ref[MailRecorder] | None = None, drop: MailRecorder | None = None) -> None: """Under ``_LOCK``: forget the collected, ``dead`` and ``drop``; restore every wrap once no recorder is left, and the trap's once none has the trap on.""" - global _refs # noqa: PLW0603 + global _refs _refs = tuple(ref for ref in _refs if ref is not dead and (r := ref()) is not None and r is not drop) live = _live() if not live: @@ -375,7 +375,7 @@ def _trapping() -> bool: """Whether a session opened now is trapped.""" try: return _traps(_targets()) - except Exception: # noqa: BLE001 - never an error into the host's connect + except Exception: return False @@ -387,14 +387,14 @@ def _dispatch(sender: str, recipients: object, message: object, trapped: bool) - try: targets = _targets() want = _traps(targets) - except Exception: # noqa: BLE001 - the host's mail is never lost to the capture + except Exception: return trapped captured: list[tuple[MailRecorder, MailMessage]] = [] complete = True for recorder in targets: try: parsed = recorder.capture(sender, recipients, message) - except Exception: # noqa: BLE001 - the host's mail is never lost to the capture + except Exception: complete = False continue if parsed is not None: @@ -403,7 +403,7 @@ def _dispatch(sender: str, recipients: object, message: object, trapped: bool) - for recorder, parsed in captured: try: recorder.store(parsed, not held) - except Exception: # noqa: BLE001, S112 - storing never disturbs the application's mail + except Exception: # noqa: S112 - storing never disturbs the application's mail continue return held @@ -575,7 +575,7 @@ def wrapped(module: Any) -> None: spec.loader.exec_module = wrapped # type: ignore[union-attr] except ImportError: # a finder's own failure: nothing loads, so the host sees that error, not ours raise - except Exception as exc: # noqa: BLE001 - never a bare error into the host's import + except Exception as exc: return _refuse_or_pass(exc) return spec @@ -600,7 +600,7 @@ def _wrap_loaded_or_refuse(module: Any) -> None: try: _wrap_loaded(module) # the capture never fails a host's import, unless a trap must hold - except Exception as exc: # noqa: BLE001 + except Exception as exc: if _trap_on(): # none of the package may stay loaded: ``from aiosmtplib.smtp import ...`` would skip the hook loaded = list(sys.modules) # a snapshot: another thread may import while this walks it for name in [n for n in loaded if n == "aiosmtplib" or n.startswith("aiosmtplib.")]: @@ -665,7 +665,7 @@ def ensure_wrapped() -> None: try: _wrap_loaded(module, blocking=False) # reported below, never raised into the request - except Exception: # noqa: BLE001 + except Exception: if _trap_on(): _report_untrapped(module) @@ -698,7 +698,7 @@ def _wrap_senders(module: Any, *, trap: bool) -> None: if not isinstance(owner, type): return _wrap_one("aiosmtplib", owner, "sendmail", _async_sendmail) - global _seen # noqa: PLW0603 + global _seen _seen = weakref.ref(owner) response = getattr(module, "SMTPResponse", None) if trap and callable(response): # without it the trap stays sendmail-only for this aiosmtplib diff --git a/src/sharpit/engine/capture/securitylogs.py b/src/sharpit/engine/capture/securitylogs.py index 918db4d43..3cbc4d727 100644 --- a/src/sharpit/engine/capture/securitylogs.py +++ b/src/sharpit/engine/capture/securitylogs.py @@ -291,5 +291,5 @@ def record_security_event(type: str, principal: str | None = None, data: Mapping logger.warning("sharpit record_security_event dropped an event: data must be a mapping") return buffer.add(type.strip(), principal, data or {}, info.id) - except Exception as exc: # noqa: BLE001 - the host's request never fails on sharpit + except Exception as exc: logger.warning("sharpit record_security_event dropped an event (%s)", exc.__class__.__name__) diff --git a/src/sharpit/engine/capture/sqltrace.py b/src/sharpit/engine/capture/sqltrace.py index f331710b5..9c55bfc71 100644 --- a/src/sharpit/engine/capture/sqltrace.py +++ b/src/sharpit/engine/capture/sqltrace.py @@ -97,10 +97,10 @@ def _starting_call_site_frame() -> FrameType | None: try: # The transaction path skips this helper, call_site, _begin, tx_begin/tx_savepoint, # SQLAlchemy's event dispatcher (__call__), and _begin_impl/_savepoint_impl. - return sys._getframe(6) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + return sys._getframe(6) # pyright: ignore[reportPrivateUsage] except ValueError: try: - return sys._getframe(2) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + return sys._getframe(2) # pyright: ignore[reportPrivateUsage] except ValueError: return None diff --git a/src/sharpit/engine/capture/streams.py b/src/sharpit/engine/capture/streams.py index ab773e911..9077f6bd7 100644 --- a/src/sharpit/engine/capture/streams.py +++ b/src/sharpit/engine/capture/streams.py @@ -76,7 +76,7 @@ def _wake(self) -> None: self._loop.call_later(delay, self._tick) else: self._tick() - except Exception: # noqa: BLE001 - never log here (§10); the next signal tries again + except Exception: self._dirty = False def _tick(self) -> None: diff --git a/src/sharpit/engine/capture/transactions.py b/src/sharpit/engine/capture/transactions.py index 6ae0492bd..a7db31089 100644 --- a/src/sharpit/engine/capture/transactions.py +++ b/src/sharpit/engine/capture/transactions.py @@ -323,7 +323,7 @@ def _targets(conn: Any) -> list[SharpitContext]: fallback: list[SharpitContext] = [] try: fallback = dispatch._targets(engine) # pyright: ignore[reportPrivateUsage] # SQL Trace fallback for unregistered engines - except Exception as exc: # noqa: BLE001 - transaction listeners must not affect the host + except Exception as exc: dispatch.routing_failed(exc) # a context whose transactions hook is suspended (low-footprint) is out of every fallback fallback = [ctx for ctx in fallback if SOURCE not in getattr(ctx.capture, "suspended_sources", ())] @@ -333,7 +333,7 @@ def _targets(conn: Any) -> list[SharpitContext]: def _connection_id(conn: Any) -> str | None: try: return hex(id(conn.connection.dbapi_connection)) - except Exception: # noqa: BLE001 - invalidated connection + except Exception: return None @@ -357,7 +357,7 @@ def _close(items: list[Tracked], status: str) -> None: if recorder is not None: try: recorder.end(entry_id, status, settle=status == "COMMITTED") - except Exception as exc: # noqa: BLE001 - never alter the application's transaction + except Exception as exc: dispatch.routing_failed(exc) @@ -395,7 +395,7 @@ def _begin(conn: Any, parent_ids: dict[int, int] | None = None) -> None: ) if entry_id >= 0: stack.append((weakref.ref(recorder), entry_id)) - except Exception as exc: # noqa: BLE001 - never alter the application's transaction + except Exception as exc: dispatch._context_failed(ctx, exc) # pyright: ignore[reportPrivateUsage] @@ -426,7 +426,7 @@ def tx_begin(conn: Any) -> None: try: _settle(conn.info) _begin(conn) - except Exception as exc: # noqa: BLE001 + except Exception as exc: dispatch.routing_failed(exc) @@ -435,7 +435,7 @@ def tx_commit(conn: Any) -> None: info = conn.info # a property chain: one read per listener info[PENDING_COMMIT] = list(_stack(info)) _end(info, "COMMITTED") - except Exception as exc: # noqa: BLE001 + except Exception as exc: dispatch.routing_failed(exc) @@ -443,7 +443,7 @@ def tx_rollback(conn: Any) -> None: try: _settle(conn.info) _end(conn.info, "ROLLED_BACK") - except Exception as exc: # noqa: BLE001 + except Exception as exc: dispatch.routing_failed(exc) @@ -455,7 +455,7 @@ def tx_handle_error(exception_context: Any) -> None: error = exception_context.sqlalchemy_exception or exception_context.original_exception # Only an error raised while the committing transaction is still active is the DBAPI commit failing. _settle(conn.info, error if conn.in_transaction() else None) - except Exception as exc: # noqa: BLE001 - never affect the application's transaction + except Exception as exc: dispatch.routing_failed(exc) @@ -464,7 +464,7 @@ def tx_checkin(_dbapi_connection: Any, connection_record: Any) -> None: try: if connection_record is not None: _settle(connection_record.info) - except Exception as exc: # noqa: BLE001 - never affect the pool + except Exception as exc: dispatch.routing_failed(exc) @@ -475,21 +475,21 @@ def tx_savepoint(conn: Any, name: str | None) -> None: before = len(stack) _begin(conn, parents) _savepoints(conn.info).append((name, stack[before:])) - except Exception as exc: # noqa: BLE001 - never affect the application's transaction + except Exception as exc: dispatch.routing_failed(exc) def tx_rollback_savepoint(conn: Any, name: str, context: object) -> None: try: _end_savepoint(conn, name, "ROLLED_BACK") - except Exception as exc: # noqa: BLE001 - never affect the application's transaction + except Exception as exc: dispatch.routing_failed(exc) def tx_release_savepoint(conn: Any, name: str, context: object) -> None: try: _end_savepoint(conn, name, "COMMITTED") - except Exception as exc: # noqa: BLE001 - never affect the application's transaction + except Exception as exc: dispatch.routing_failed(exc) @@ -512,7 +512,7 @@ def tx_release_savepoint(conn: Any, name: str, context: object) -> None: def _release_attachment() -> None: - global _attach_count # noqa: PLW0603 + global _attach_count with _attach_lock: _attach_count -= 1 if _attach_count == 0: @@ -536,7 +536,7 @@ def _listen() -> list[Callable[[], None]] | None: def attach(ctx: SharpitContext | None = None) -> Callable[[], None] | None: """Attach the shared class listeners once and return a per-context reference-counted remover.""" - global _attach_count, _attach_removers # noqa: PLW0603 + global _attach_count, _attach_removers with _attach_lock: if _attach_count == 0: removers = _listen() diff --git a/src/sharpit/engine/capture/wraps.py b/src/sharpit/engine/capture/wraps.py index ff6e8da5f..537ecb0b5 100644 --- a/src/sharpit/engine/capture/wraps.py +++ b/src/sharpit/engine/capture/wraps.py @@ -82,7 +82,7 @@ def wrap( if owner.__dict__.get(name) is not entry: setattr(owner, name, entry) return None - except Exception: # noqa: BLE001 - a failed wrap never reaches the host + except Exception: return None def remove() -> bool: @@ -91,7 +91,7 @@ def remove() -> bool: if owner.__dict__.get(name) is not new: return False setattr(owner, name, entry) - except Exception: # noqa: BLE001 + except Exception: return False return True diff --git a/src/sharpit/engine/collectors/alembic.py b/src/sharpit/engine/collectors/alembic.py index 1814ad949..1de5f078a 100644 --- a/src/sharpit/engine/collectors/alembic.py +++ b/src/sharpit/engine/collectors/alembic.py @@ -451,7 +451,7 @@ async def _read( return DatabaseRead(name, None, f"Reading the database version timed out after {timeout:g}s", checked) except sqla.ReadOnlyUnavailable as exc: return DatabaseRead(name, None, exc.reason, checked) - except Exception as exc: # noqa: BLE001 # a failed read is reported for that database, never raised + except Exception as exc: # a failed read is reported for that database, never raised dialect = dialect_of_name(getattr(getattr(engine, "dialect", None), "name", None)) or Dialect.UNSUPPORTED reason = error_text(ctx.masker, exc, dialect) or type(exc).__name__ return DatabaseRead(name, None, reason, checked) @@ -563,7 +563,7 @@ def _child(ctx: SharpitContext, ini: Path, target: str, run: Runner, *command: s """Run ``python -m alembic ``; a failed run is the (status, DTO) answer, a good one the result.""" try: result = run([sys.executable, "-m", "alembic", "-c", str(ini), *command], str(ini.parent)) - except Exception as exc: # noqa: BLE001 - the action answers 500; SingleFlight.run releases the lock + except Exception as exc: return _answer(500, "failed", _capped(ctx, f"{type(exc).__name__}: {exc}") or "Alembic did not run.", target) if result.failure is not None or result.returncode != 0: return _answer(500, "failed", _failure(ctx, result), target) diff --git a/src/sharpit/engine/collectors/appsecurity.py b/src/sharpit/engine/collectors/appsecurity.py index 92ce5bc80..0dbd0e3f9 100644 --- a/src/sharpit/engine/collectors/appsecurity.py +++ b/src/sharpit/engine/collectors/appsecurity.py @@ -19,7 +19,7 @@ def model_of(ctx: Any) -> SecurityModel | None: return None try: return read() - except Exception as exc: # noqa: BLE001 - introspection degrades; never crashes the host (safety 5) + except Exception as exc: return SecurityModel(False, (), (), (), (f"FastAPI security could not be read ({type(exc).__name__}).",)) diff --git a/src/sharpit/engine/collectors/config/settings_source.py b/src/sharpit/engine/collectors/config/settings_source.py index 6347ab842..d64c7f8de 100644 --- a/src/sharpit/engine/collectors/config/settings_source.py +++ b/src/sharpit/engine/collectors/config/settings_source.py @@ -146,7 +146,7 @@ def emit(name: str, field: Any, value: object, found: list[Any]) -> None: ) for fname, field in cls.model_fields.items(): - key, env_name, _ = env_src._extract_field_info(field, fname)[0] # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + key, env_name, _ = env_src._extract_field_info(field, fname)[0] # pyright: ignore[reportPrivateUsage] found = [data.get(key, _MISSING) for _, data in sources] emit(env_name, field, getattr(instance, fname), found) return entries, [label for label, _ in sources] @@ -439,7 +439,7 @@ def _candidate_names(field: Any, fname: str, env_prefix: str, env_src: Any) -> s candidate_names.add(c) with contextlib.suppress(Exception): - for item in env_src._extract_field_info(field, fname): # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + for item in env_src._extract_field_info(field, fname): # pyright: ignore[reportPrivateUsage] if item[0]: candidate_names.add(item[0]) if item[1]: diff --git a/src/sharpit/engine/collectors/data.py b/src/sharpit/engine/collectors/data.py index a62870948..4ff81aef6 100644 --- a/src/sharpit/engine/collectors/data.py +++ b/src/sharpit/engine/collectors/data.py @@ -58,7 +58,7 @@ def _field(ctx: SharpitContext, warnings: list[str], label: str, read: Callable[ """One field of a row; a failure nulls that field with a masked warning and keeps the row.""" try: return read() - except Exception as error: # noqa: BLE001 - user mapping code must not fail the GET + except Exception as error: warnings.append(_warning(ctx, f"Could not read {label}", error)) return None @@ -124,7 +124,7 @@ def _scan(ctx: SharpitContext) -> _Scan: for registry in found: try: mappers = list(cast(Any, registry).mappers) - except Exception as error: # noqa: BLE001 + except Exception as error: warnings.append(_warning(ctx, "Skipping a registry that could not be read", error)) continue configured = mappers_configured(registry, mappers) @@ -132,7 +132,7 @@ def _scan(ctx: SharpitContext) -> _Scan: for mapper in mappers: try: rows.append(_row(ctx, warnings, mapper, configured)) - except Exception as error: # noqa: BLE001 - one bad mapper drops only its own row + except Exception as error: warnings.append(_warning(ctx, "Skipping a mapper that could not be read", error)) rows.sort(key=lambda row: row["repositoryInterface"]) if pending: diff --git a/src/sharpit/engine/collectors/database_advisor/catalog.py b/src/sharpit/engine/collectors/database_advisor/catalog.py index ae116a6fc..4e65ea3ed 100644 --- a/src/sharpit/engine/collectors/database_advisor/catalog.py +++ b/src/sharpit/engine/collectors/database_advisor/catalog.py @@ -119,7 +119,7 @@ def _pool(pool: Any) -> Pool | None: if isinstance(overflow, int) and callable(size): unbounded = overflow < 0 max_size = None if unbounded else int(cast("int", size())) + overflow - except Exception: # noqa: BLE001 - an unreadable number stays unknown + except Exception: max_size = None raw_timeout = getattr(pool, "_timeout", _MISSING) if not isinstance(raw_timeout, bool) and isinstance(raw_timeout, (int, float)) and raw_timeout >= 0: @@ -173,7 +173,7 @@ async def read_sources(ctx: SharpitContext, flight: Flight) -> list[Source]: def _catalog_and_vendor(conn: Any, bounds: CatalogBounds, masker: Masker) -> dict[str, Any]: """The catalog plus the vendor facts, in one read-only read.""" - from sharpit.engine.collectors.database_advisor.rules_vendor import read_vendor # noqa: PLC0415 - imports this module + from sharpit.engine.collectors.database_advisor.rules_vendor import read_vendor return {**catalog(conn, bounds, masker), "vendor": read_vendor(conn, bounds, masker)} @@ -196,7 +196,7 @@ async def _read( return "FAILED", exc.reason, {} except TimeoutError: return "FAILED", BUDGET_RAN_OUT, {} - except Exception as exc: # noqa: BLE001 - a failed engine is reported for that engine; never raised + except Exception as exc: return "FAILED", error_text(exc, ctx.masker, engine_dialect(engine)), {} partial = found["truncated"] or not found["complete"] return ("PARTIAL" if partial else "AVAILABLE"), None, found diff --git a/src/sharpit/engine/collectors/database_advisor/report.py b/src/sharpit/engine/collectors/database_advisor/report.py index 0ab71a05f..e30e6f1e8 100644 --- a/src/sharpit/engine/collectors/database_advisor/report.py +++ b/src/sharpit/engine/collectors/database_advisor/report.py @@ -101,7 +101,7 @@ def _run_rules(readable: Sequence[Source]) -> tuple[list[str], list[Finding], in rule_id = rule.definition.id try: outcomes = [rule.check(s) for s in readable] - except Exception as exc: # noqa: BLE001 - one failing rule is an analysis error; never a failed scan + except Exception as exc: errored += 1 diagnostics.append(_diagnostic(rule_id, "ERROR", f"The rule failed to evaluate ({type(exc).__name__}).")) continue @@ -246,7 +246,7 @@ def _with_app_facts(ctx: SharpitContext, sources: list[Source]) -> list[Source]: return sources try: declared = rules_orm.facts(ctx.models) - except Exception as exc: # noqa: BLE001 + except Exception as exc: reason = f"Entity discovery failed ({type(exc).__name__})." declared = {"skipped": reason, "known_absent": False, "errors": [reason]} trace = ctx.capture.sql_trace diff --git a/src/sharpit/engine/collectors/database_advisor/rules_orm.py b/src/sharpit/engine/collectors/database_advisor/rules_orm.py index 8e33ee20f..271dcdef1 100644 --- a/src/sharpit/engine/collectors/database_advisor/rules_orm.py +++ b/src/sharpit/engine/collectors/database_advisor/rules_orm.py @@ -54,7 +54,7 @@ def facts(models: tuple[object, ...]) -> dict[str, Any]: table = mapper.local_table # a configured mapper: reading it configures nothing if type(table).__name__ == "Table" and id(table) not in tables: tables[id(table)] = _declared(table) - except Exception as exc: # noqa: BLE001 - unreadable models skip the ORM rules; never fail the scan + except Exception as exc: reason = f"The models could not be read ({type(exc).__name__})." return {"skipped": reason, "known_absent": False, "errors": [reason]} return {"tables": list(tables.values()), "known_absent": False, "errors": []} diff --git a/src/sharpit/engine/collectors/database_advisor/rules_vendor.py b/src/sharpit/engine/collectors/database_advisor/rules_vendor.py index ae765a129..89018f555 100644 --- a/src/sharpit/engine/collectors/database_advisor/rules_vendor.py +++ b/src/sharpit/engine/collectors/database_advisor/rules_vendor.py @@ -113,7 +113,7 @@ def read_vendor(conn: Any, bounds: CatalogBounds, masker: Masker) -> dict[str, A keys, rows = _fetch(conn, sql, bounds.vendor_rows) else: keys, rows = _fetch(conn, sql, bounds.vendor_rows) - except Exception as exc: # noqa: BLE001 - one denied view skips its rules; never the scan + except Exception as exc: facts[name] = {"error": error_text(exc, masker, dialect)} continue kept = [dict(zip(keys, row, strict=True)) for row in rows[: bounds.vendor_rows]] diff --git a/src/sharpit/engine/collectors/github/client.py b/src/sharpit/engine/collectors/github/client.py index ed05ddb58..40c7c48db 100644 --- a/src/sharpit/engine/collectors/github/client.py +++ b/src/sharpit/engine/collectors/github/client.py @@ -202,7 +202,7 @@ def refresh(self, repo: Repository) -> dict[str, Any]: return _Refresh(self, repo, token, deadline).run(refreshed_at) except _Failed: return self.error(repo, refreshed_at, token, NETWORK_FAILED) - except Exception: # noqa: BLE001 # safety net: never a 500, never the exception text (it may hold data) + except Exception: # safety net: never a 500, never the exception text (it may hold data) return self.error(repo, refreshed_at, token, UNEXPECTED_FAILURE) def error(self, repo: Repository, refreshed_at: int, token: Token | None, message: str) -> dict[str, Any]: diff --git a/src/sharpit/engine/collectors/health.py b/src/sharpit/engine/collectors/health.py index df26e35ee..a73b6568e 100644 --- a/src/sharpit/engine/collectors/health.py +++ b/src/sharpit/engine/collectors/health.py @@ -182,7 +182,7 @@ async def _ping(self, name: str, engine: Any, flight: Flight, executor: DaemonEx status, details["error"] = "DOWN", self._timed_out() except sqla.ReadOnlyUnavailable as exc: # skipped: nothing is known about the database, so never DOWN status, details["error"] = "UNKNOWN", exc.reason - except Exception as exc: # noqa: BLE001 # a failed ping is this engine's DOWN, never the request's 500 + except Exception as exc: # a failed ping is this engine's DOWN, never the request's 500 status, details["error"] = "DOWN", self._failure(exc) return node(name, status, {**details, "checkedAt": _now_ms()}) @@ -202,7 +202,7 @@ async def _run( status, details = self._interpret(result) except TimeoutError: status, details = "DOWN", {"error": self._timed_out()} - except Exception as exc: # noqa: BLE001 - a raising check is DOWN with its masked class and message + except Exception as exc: status, details = "DOWN", {"error": self._failure(exc)} finally: if work is None: # never submitted: no thread will call it diff --git a/src/sharpit/engine/collectors/insights/agent_view.py b/src/sharpit/engine/collectors/insights/agent_view.py index a0ed90752..c9d281a19 100644 --- a/src/sharpit/engine/collectors/insights/agent_view.py +++ b/src/sharpit/engine/collectors/insights/agent_view.py @@ -39,7 +39,7 @@ _BARE = re.compile(r"<[A-Za-z]+>|[A-Za-z0-9._/:-]+") -class UnknownObservation(Exception): # noqa: N818 - BootUI's tool error (404) for an id this run does not have +class UnknownObservation(Exception): pass diff --git a/src/sharpit/engine/collectors/insights/not_exercised.py b/src/sharpit/engine/collectors/insights/not_exercised.py index 444eebd25..173499b5a 100644 --- a/src/sharpit/engine/collectors/insights/not_exercised.py +++ b/src/sharpit/engine/collectors/insights/not_exercised.py @@ -37,7 +37,7 @@ def list_for( return [] try: routes = declared() - except Exception: # noqa: BLE001 - an inventory failure must never crash the host + except Exception: routes = None if routes is None: limitations.append(INVENTORY_UNAVAILABLE) diff --git a/src/sharpit/engine/collectors/insights/service.py b/src/sharpit/engine/collectors/insights/service.py index f3d77f537..a580c5e52 100644 --- a/src/sharpit/engine/collectors/insights/service.py +++ b/src/sharpit/engine/collectors/insights/service.py @@ -357,7 +357,7 @@ def _capture(self) -> SqlCapture: """RuntimeInsightsService.sqlCapture: asked once per report; null is capturing, a failure is not recorded.""" try: return self.sql_capture() or SqlCapture.capturing() - except Exception as error: # noqa: BLE001 - the report never fails over this question + except Exception as error: return SqlCapture.not_recorded(SQL_CAPTURE_UNREADABLE.format(type(error).__name__)) def _evaluate( @@ -377,7 +377,7 @@ def _evaluate( unseen.append(caveat) try: evaluation: Evaluation = evaluate(snapshot) - except Exception: # noqa: BLE001 - a kind never crashes the host or the other kinds + except Exception: logger.debug("insights kind %s could not be evaluated", observation.kind) # the id only, never the error return _check(observation, "UNAVAILABLE", 0, 0, NOT_EVALUATED), [] reasons = _lead_reasons(partial, unseen, caveat) diff --git a/src/sharpit/engine/collectors/insights/snapshot.py b/src/sharpit/engine/collectors/insights/snapshot.py index f4a6a6c40..5464b6396 100644 --- a/src/sharpit/engine/collectors/insights/snapshot.py +++ b/src/sharpit/engine/collectors/insights/snapshot.py @@ -71,7 +71,7 @@ class Snapshot: @cached_property def request_index(self) -> RequestIndex: """The http requests, projected once per snapshot however many kinds read them.""" - from sharpit.engine.collectors.insights.requests import RequestIndex # noqa: PLC0415 - requests imports this + from sharpit.engine.collectors.insights.requests import RequestIndex return RequestIndex(self.records.get("http", ()), self.loss_horizon) @@ -100,7 +100,7 @@ def pool_size(self, data_source: str) -> int | None: return None try: size = self.pool_sizes(data_source) - except Exception: # noqa: BLE001 - BootUI swallows a RuntimeException: the size is then unknown + except Exception: return None return size if size is not None and size > 0 else None @@ -110,7 +110,7 @@ def shared_pool(self, data_source: str) -> str | None: return None try: return self.shared_pools(data_source) - except Exception: # noqa: BLE001 - as ``pool_size``: unknown is not shared + except Exception: return None def dropped(self, source: str) -> int: diff --git a/src/sharpit/engine/collectors/metrics/__init__.py b/src/sharpit/engine/collectors/metrics/__init__.py index c34a1d8c6..d30a818ca 100644 --- a/src/sharpit/engine/collectors/metrics/__init__.py +++ b/src/sharpit/engine/collectors/metrics/__init__.py @@ -171,7 +171,7 @@ def _families(ctx: Any) -> list[dict[str, Any]]: # prometheus_client internals; any other registry is read as one collector. target_info is not shown. try: collectors: Any = getattr(source, "_collector_to_names", None) - except Exception: # noqa: BLE001 - a host registry's property; degrade to one collector + except Exception: collectors = None candidates: list[Any] = list(collectors) if isinstance(collectors, dict) else [source] # pyright: ignore[reportUnknownArgumentType] families: list[dict[str, Any]] = [] @@ -179,7 +179,7 @@ def _families(ctx: Any) -> list[dict[str, Any]]: for collector in candidates: try: found = [meter for meter in (_family(ctx, family) for family in collector.collect()) if meter is not None] - except Exception: # noqa: BLE001 - host code; its message is never shown (it may carry a DSN) + except Exception: meter = _unavailable(ctx, collector) found = [] if meter["name"] in failed else [meter] # one entry per failing collector class failed.add(meter["name"]) diff --git a/src/sharpit/engine/collectors/mysql/sections.py b/src/sharpit/engine/collectors/mysql/sections.py index 42ce11f56..95f9df03a 100644 --- a/src/sharpit/engine/collectors/mysql/sections.py +++ b/src/sharpit/engine/collectors/mysql/sections.py @@ -93,7 +93,7 @@ def _read_section( """Run one section's query; a failure is ``FAILED`` with the masked driver error, never an empty success.""" try: retained, truncated = read_one_past(build(_rows(conn, sql)), limit) - except Exception as exc: # noqa: BLE001 - every driver error becomes the section's reason + except Exception as exc: return section_dto(section_id, "FAILED", _reason(masker, exc)) setattr(data, section_id.replace("-", "_"), retained) data.truncated = data.truncated or truncated @@ -335,7 +335,7 @@ def collect_metrics(conn: Any, data: DataSourceData, masker: Masker = _STRICT) - """SHOW GLOBAL STATUS counters; a failure is an ERROR diagnostic, never a silent empty list.""" try: rows = _rows(conn, STATUS_SQL) - except Exception as exc: # noqa: BLE001 - the driver error becomes the diagnostic + except Exception as exc: data.diagnostics.append(_diagnostic(f"{data.name}/metrics", "ERROR", _reason(masker, exc))) return [] status = {str(r["Variable_name"]): str(r["Value"]) for r in rows if "Variable_name" in r and "Value" in r} diff --git a/src/sharpit/engine/collectors/mysql/service.py b/src/sharpit/engine/collectors/mysql/service.py index 77b4aea80..64198f5b1 100644 --- a/src/sharpit/engine/collectors/mysql/service.py +++ b/src/sharpit/engine/collectors/mysql/service.py @@ -212,7 +212,7 @@ def read(conn: Any) -> DataSourceData: return _error_datasource(name, BUDGET_RAN_OUT, diagnostics) data, timed_out = _timed_out_data(partial), True diagnostics.append(_diagnostic(name, "WARNING", BUDGET_RAN_OUT)) - except Exception as exc: # noqa: BLE001 + except Exception as exc: return _error_datasource( name, error_text(ctx.masker, exc, Dialect.MYSQL_FAMILY, known=True) or type(exc).__name__, diff --git a/src/sharpit/engine/collectors/pentesting/cache_control.py b/src/sharpit/engine/collectors/pentesting/cache_control.py index 7c8882f02..00e763661 100644 --- a/src/sharpit/engine/collectors/pentesting/cache_control.py +++ b/src/sharpit/engine/collectors/pentesting/cache_control.py @@ -48,7 +48,7 @@ class CacheControl: def _unquote(value: str) -> str: - if len(value) >= 2 and value.startswith('"') and value.endswith('"'): # noqa: PLR2004 - two quotes + if len(value) >= 2 and value.startswith('"') and value.endswith('"'): return java_trim(value[1:-1]) return value diff --git a/src/sharpit/engine/collectors/pentesting/cookie_observation.py b/src/sharpit/engine/collectors/pentesting/cookie_observation.py index a5807ab1a..629df5fb8 100644 --- a/src/sharpit/engine/collectors/pentesting/cookie_observation.py +++ b/src/sharpit/engine/collectors/pentesting/cookie_observation.py @@ -53,7 +53,7 @@ def parse_set_cookie(raw: str) -> CookieObservation: """One ``Set-Cookie`` text as an observation; total, and it retains none of the text.""" try: return _parse(raw) - except Exception: # noqa: BLE001 - total by contract; the input is never echoed + except Exception: return _EMPTY diff --git a/src/sharpit/engine/collectors/pools.py b/src/sharpit/engine/collectors/pools.py index 0439bb681..5af944a4d 100644 --- a/src/sharpit/engine/collectors/pools.py +++ b/src/sharpit/engine/collectors/pools.py @@ -54,9 +54,9 @@ def _pool_dto(ctx: SharpitContext, name: str, engine: Any) -> dict[str, Any]: "driverClassName": f"{engine.url.get_backend_name()}+{engine.dialect.driver} ({kind})", "minimumIdle": None, "maximumPoolSize": sqla.maximum_pool_size(pool), - "connectionTimeoutMs": _ms(pool._timeout) if counted else None, # noqa: SLF001 + "connectionTimeoutMs": _ms(pool._timeout) if counted else None, "idleTimeoutMs": None, - "maxLifetimeMs": _ms(pool._recycle), # noqa: SLF001 - every Pool has it; -1 means never recycled + "maxLifetimeMs": _ms(pool._recycle), "validationTimeoutMs": None, "keepaliveTimeMs": None, "readOnly": None, diff --git a/src/sharpit/engine/collectors/postgresql/sections.py b/src/sharpit/engine/collectors/postgresql/sections.py index 4b9f159d8..44bb2eb10 100644 --- a/src/sharpit/engine/collectors/postgresql/sections.py +++ b/src/sharpit/engine/collectors/postgresql/sections.py @@ -194,7 +194,7 @@ def read_list(ctx: ReadContext, label: str, sql: str, max_rows: int, mapper: Cal break kept, truncated = read_one_past(read, max_rows) rows = [mapped for row in kept if (mapped := mapper(row)) is not None] - except Exception as exc: # noqa: BLE001 - every driver error becomes the section's reason + except Exception as exc: return Rows.failed(_describe(ctx, label, exc), _sqlstate(exc)) return Rows.of(rows, truncated) if reason is None else Rows.partial(rows, reason) @@ -211,7 +211,7 @@ def read_one(ctx: ReadContext, label: str, sql: str, mapper: Callable[[Row], Any with ctx.conn.begin_nested(): row = next(iter(ctx.conn.exec_driver_sql(sql).mappings()), None) mapped = None if row is None else mapper(row) - except Exception as exc: # noqa: BLE001 - every driver error becomes the section's reason + except Exception as exc: return Rows.failed(_describe(ctx, label, exc), _sqlstate(exc)) return Rows.of([] if mapped is None else [mapped]) diff --git a/src/sharpit/engine/collectors/postgresql/service.py b/src/sharpit/engine/collectors/postgresql/service.py index d85cf9dfe..e81d75fb4 100644 --- a/src/sharpit/engine/collectors/postgresql/service.py +++ b/src/sharpit/engine/collectors/postgresql/service.py @@ -194,7 +194,7 @@ def read(conn: Any) -> tuple[DatabaseData, Any]: sections += [_skipped(c.id, c.title) for c in COLLECTORS if c.id not in done] data, version, timed_out = replace(partial, sections=sections), None, True diagnostics.append(_diagnostic(name, "WARNING", BUDGET_RAN_OUT)) - except Exception as exc: # noqa: BLE001 # a failed engine is reported for that engine, never raised + except Exception as exc: # a failed engine is reported for that engine, never raised return _error_database( name, error_text(ctx.masker, exc, Dialect.POSTGRESQL, known=True) or type(exc).__name__, diff --git a/src/sharpit/engine/collectors/scheduled/__init__.py b/src/sharpit/engine/collectors/scheduled/__init__.py index 8fbf0c1c6..e1da1ed6c 100644 --- a/src/sharpit/engine/collectors/scheduled/__init__.py +++ b/src/sharpit/engine/collectors/scheduled/__init__.py @@ -36,7 +36,7 @@ def _read(readers: list[Reader], label: str, value: object) -> Discovery | None: for read in readers: try: part = read(label, value) - except Exception as exc: # noqa: BLE001 - an odd scheduler state: degrade; never crash the host + except Exception as exc: return Discovery(False, [], [f"{label}: not read ({type(exc).__name__})"]) if part is not None: return part diff --git a/src/sharpit/engine/collectors/security/report.py b/src/sharpit/engine/collectors/security/report.py index 1121df4c5..bad2f0e0b 100644 --- a/src/sharpit/engine/collectors/security/report.py +++ b/src/sharpit/engine/collectors/security/report.py @@ -192,7 +192,7 @@ def scan_evaluation(inputs: Inputs) -> Evaluation: continue # unknown, never a pass: the limitation says why try: found = rule.check(inputs) - except Exception: # noqa: BLE001 - one rule's failure is an analysis error; never a failed scan + except Exception: errors.append(definition) continue evaluated.append(definition.id) diff --git a/src/sharpit/engine/collectors/security/static_analysis.py b/src/sharpit/engine/collectors/security/static_analysis.py index 4f7007426..8e583d0f3 100644 --- a/src/sharpit/engine/collectors/security/static_analysis.py +++ b/src/sharpit/engine/collectors/security/static_analysis.py @@ -380,7 +380,7 @@ def _inspect_workflow_entry(repository_root: Path, entry: os.DirEntry[str]) -> t try: cleaned = strip_yaml_comments(read_text(repository_root, Path(entry.path))) return (True, False) if _has_known_workflow_declaration(cleaned) else (False, False) - except Exception: # noqa: BLE001 + except Exception: return False, True @@ -437,7 +437,7 @@ def _inspect_bounded_file( return None result = check(read_bounded(trusted_root, path)) return result if isinstance(result, tuple) else (result, False) - except Exception: # noqa: BLE001 - malformed or unsafe local config is indeterminate + except Exception: return False, True @@ -805,7 +805,7 @@ def inspect(self, project_root: Path | None) -> Inspection: indeterminate |= ind return Inspection(State.INDETERMINATE if indeterminate else State.NOT_CONFIGURED) - except Exception: # noqa: BLE001 - defensive: any unhandled failure is indeterminate + except Exception: return Inspection(State.INDETERMINATE) def _build_files(self, root: Path) -> list[Path]: diff --git a/src/sharpit/engine/collectors/threads.py b/src/sharpit/engine/collectors/threads.py index b0b696e0a..4b7a9602e 100644 --- a/src/sharpit/engine/collectors/threads.py +++ b/src/sharpit/engine/collectors/threads.py @@ -197,7 +197,7 @@ def _thread_rows( ) -> list[dict[str, Any]]: """One ``ThreadInfo`` per live thread, by id; CPU and user time are known only for the calling thread.""" # the state is metadata, so frames are read under METADATA_ONLY too; max_frames 0 hides only the stack text - current: dict[int, Any] = {} if names_only else sys._current_frames() # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + current: dict[int, Any] = {} if names_only else sys._current_frames() # pyright: ignore[reportPrivateUsage] current_thread_id = threading.get_ident() user_time_ms = _thread_user_time_ms() rows: list[dict[str, Any]] = [] diff --git a/src/sharpit/engine/models.py b/src/sharpit/engine/models.py index 309dfd2b8..96b47aa65 100644 --- a/src/sharpit/engine/models.py +++ b/src/sharpit/engine/models.py @@ -33,7 +33,7 @@ def registries(models: tuple[object, ...]) -> tuple[list[object], list[str]]: for entry in models: try: registry = _registry_of(entry) - except Exception: # noqa: BLE001 - a hostile attribute must not fail the GET + except Exception: registry = None if registry is None: kind = type(entry).__name__ @@ -46,7 +46,7 @@ def registries(models: tuple[object, ...]) -> tuple[list[object], list[str]]: def _is_configured(mapper: Any) -> bool: try: return bool(mapper.configured) - except Exception: # noqa: BLE001 + except Exception: return False @@ -65,7 +65,7 @@ def _registry_is_clear(registry: Any) -> bool: if getattr_static(current, "_new_mappers", True): # absent or True: fail closed return False pending.extend(getattr_static(current, "_dependencies", ())) - except Exception: # noqa: BLE001 + except Exception: return False return True diff --git a/src/sharpit/engine/otel.py b/src/sharpit/engine/otel.py index b46c643b4..e58ffda87 100644 --- a/src/sharpit/engine/otel.py +++ b/src/sharpit/engine/otel.py @@ -61,7 +61,7 @@ def current_trace_id() -> str | None: return None context = trace.get_current_span().get_span_context() return f"{context.trace_id:032x}" if context.is_valid else None - except Exception: # noqa: BLE001 - a host's tracing never changes a query + except Exception: return None @@ -87,7 +87,7 @@ def on_start(self, span: Any, parent_context: Any = None) -> None: # NOSONAR - on_start = getattr(sink, "on_start", None) if callable(on_start): on_start(span) - except Exception: # noqa: BLE001, S112 - never break the host's span pipeline + except Exception: # noqa: S112 - never break the host's span pipeline continue def _on_ending(self, span: Any) -> None: # newer SDKs call it on every processor @@ -98,7 +98,7 @@ def on_end(self, span: Any) -> None: for sink in self.sinks: try: sink.add(span) - except Exception: # noqa: BLE001, S112 - never break the host's span pipeline + except Exception: # noqa: S112 - never break the host's span pipeline continue def shutdown(self) -> None: diff --git a/src/sharpit/engine/probe.py b/src/sharpit/engine/probe.py index d1e21bc9a..dcd9d0f5c 100644 --- a/src/sharpit/engine/probe.py +++ b/src/sharpit/engine/probe.py @@ -408,7 +408,7 @@ async def run_probe( task.add_done_callback(lambda completed: _task_done(completed, on_complete)) transferred_slot = True raise - except Exception as exc: # noqa: BLE001 - app exceptions become a stable masked probe response + except Exception as exc: message = _exception_message(masker, exc, application) return _probe_result(500, {}, _body(bytes(channel.sent_body), None, masker), started, message, False) finally: diff --git a/src/sharpit/engine/sensors/audit.py b/src/sharpit/engine/sensors/audit.py index 2ed207eaa..c34aded35 100644 --- a/src/sharpit/engine/sensors/audit.py +++ b/src/sharpit/engine/sensors/audit.py @@ -144,7 +144,7 @@ def _dispatch(self, event: str, args: tuple[Any, ...]) -> None: self._deliver(sub, event, args) finally: busy.active = False - except Exception: # noqa: BLE001, S110 - an audit hook must never raise into the host's call + except Exception: # noqa: S110 - an audit hook must never raise into the host's call pass @staticmethod @@ -159,7 +159,7 @@ def _deliver(sub: _Subscription, event: str, args: tuple[Any, ...]) -> None: else: for row in sub.record(event, args): sink.offer(row) - except Exception: # noqa: BLE001, S110 - an audit hook must never raise into the host's call + except Exception: # noqa: S110 - an audit hook must never raise into the host's call pass diff --git a/src/sharpit/engine/sensors/rows.py b/src/sharpit/engine/sensors/rows.py index 3a8c461a9..d8479171d 100644 --- a/src/sharpit/engine/sensors/rows.py +++ b/src/sharpit/engine/sensors/rows.py @@ -68,7 +68,7 @@ def __init__(self, journal: JournalSink, rows: SensorRows) -> None: def offer(self, event: Event) -> bool: try: # noqa: SIM105 - publishing never raises into the host self._rows.append(dict(event)) - except Exception: # noqa: BLE001, S110 + except Exception: # noqa: S110 pass return self._journal.offer(event) @@ -78,7 +78,7 @@ def offer_flat(self, event: dict[str, str | int | bool | None], size: int | None if len(ring) == RING_CAPACITY: self._dropped[source] += 1 ring.append(event) # type: ignore[arg-type] - except Exception: # noqa: BLE001, S110 + except Exception: # noqa: S110 pass if self._flat: return self._journal.offer_flat(event, size, started) # type: ignore[attr-defined, no-any-return] diff --git a/src/sharpit/engine/sources/dispatch.py b/src/sharpit/engine/sources/dispatch.py index 13aab16a6..a806cdd2f 100644 --- a/src/sharpit/engine/sources/dispatch.py +++ b/src/sharpit/engine/sources/dispatch.py @@ -60,7 +60,7 @@ def register_app(self, app: object) -> None: ... def routing_failed(exc: BaseException) -> None: - global _warned # noqa: PLW0603 - one warning per process for a failure before any context is known + global _warned if not _warned: _warned = True logger.warning("sharpit SQL listener failed (%s); queries are unaffected", type(exc).__name__) @@ -268,7 +268,7 @@ def _record(event: SqlEvent, targets: list[SharpitContext]) -> None: continue try: text = _trace_text(ctx, recorder, event, info, thread, site) - except Exception as exc: # noqa: BLE001 + except Exception as exc: _context_failed(ctx, exc) continue journal = ctx.capture.journal @@ -276,7 +276,7 @@ def _record(event: SqlEvent, targets: list[SharpitContext]) -> None: try: # its own guard: a journal failure is never reported as the SQL hook's record, size, started = _journal_event(ctx, recorder, event, text, info, thread, site) journal.offer_flat(record, size, started) - except Exception as exc: # noqa: BLE001 + except Exception as exc: _context_failed(ctx, exc, "sql journal") @@ -286,7 +286,7 @@ def emit(event: SqlEvent) -> None: if INTERNAL.get(): return deliver(event, recording(event.engine, event.source)) - except Exception as exc: # noqa: BLE001 - a source never changes the host's query + except Exception as exc: routing_failed(exc) @@ -301,13 +301,13 @@ def deliver(event: SqlEvent, targets: list[SharpitContext]) -> None: if isinstance(driver, str): _drivers.add(driver) sink.on_sql(event, TEST.get()) - except Exception as exc: # noqa: BLE001 - a source never changes the host's query + except Exception as exc: routing_failed(exc) def set_session_sink(sink: SessionSink | None) -> None: # one sink per process, read lock-free by emit - global _sink # noqa: PLW0603 + global _sink _sink = sink if sink is None: _drivers.clear() @@ -319,7 +319,7 @@ def session_sink() -> SessionSink | None: def _refresh() -> None: # swapped whole under the lock, read lock-free - global _refs # noqa: PLW0603 + global _refs _refs = tuple(weakref.ref(c) for c in _contexts.values()) diff --git a/src/sharpit/engine/sources/sqlite.py b/src/sharpit/engine/sources/sqlite.py index 10915a5fa..daa455b16 100644 --- a/src/sharpit/engine/sources/sqlite.py +++ b/src/sharpit/engine/sources/sqlite.py @@ -181,7 +181,7 @@ class _TracedConnectionMixin: def cursor(self, factory: Any = None) -> Any: # a limitation flag, set once - global _passed_through # noqa: PLW0603 + global _passed_through if factory is None or factory is sqlite3.Cursor: cls: Any = TracedCursor elif isinstance(factory, type) and issubclass(factory, sqlite3.Cursor): @@ -208,7 +208,7 @@ class TracedConnection(_TracedConnectionMixin, sqlite3.Connection): def _caller_untraced(depth: int) -> bool: """Whether ``sqlite3.connect`` was called by one of ``UNTRACED_CALLERS``, or from inside SQLAlchemy's pool or engine (a ``creator`` callable): decided once per connection, over at most ``_CALLER_FRAMES`` frames.""" - frame = sys._getframe(depth) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + frame = sys._getframe(depth) # pyright: ignore[reportPrivateUsage] direct = True for _ in range(_CALLER_FRAMES): name = frame.f_globals.get("__name__", "") @@ -225,7 +225,7 @@ def _caller_untraced(depth: int) -> bool: def _make_connect(real: Callable[..., sqlite3.Connection]) -> Callable[..., sqlite3.Connection]: def connect(*args: Any, **kwargs: Any) -> sqlite3.Connection: - global _passed_through # noqa: PLW0603 + global _passed_through if not _holders or _caller_untraced(2): return real(*args, **kwargs) positional = ( @@ -281,7 +281,7 @@ def _owner_holds(obj: object, ids: Container[int]) -> set[int]: try: module = getattr(type(obj), "__module__", "") or "" return _referenced(obj, ids) if module.partition(".")[0] in _OWNERS_NOT_EARLY else set() - except Exception: # noqa: BLE001 - counting is best effort; one odd holder never fails the count + except Exception: return set() @@ -293,11 +293,11 @@ def _scan() -> tuple[int, bool, list[str]]: """``(pre-existing connections, count failed, early aliases)``; both walks are best effort.""" try: count, failed = _count_preexisting(), False - except Exception: # noqa: BLE001 - counting is best effort; attach never raises into the host + except Exception: count, failed = 0, True try: aliases = early_aliases() - except Exception: # noqa: BLE001 + except Exception: aliases = [] return count, failed, aliases diff --git a/src/sharpit/engine/sqla/connections.py b/src/sharpit/engine/sqla/connections.py index fb997af27..986287619 100644 --- a/src/sharpit/engine/sqla/connections.py +++ b/src/sharpit/engine/sqla/connections.py @@ -100,7 +100,7 @@ def checkout(dbapi_connection: Any, record: Any, proxy: Any) -> None: targets = dispatch.connection_targets(pool, SOURCE) if targets: # a source the journal does not record follows nothing and counts nothing, as BootUI's record.info[CHECKOUT_KEY] = Checkout(targets, pool, REQUEST.get()) - except Exception as exc: # noqa: BLE001 - a listener never changes the host's checkout + except Exception as exc: dispatch.routing_failed(exc) @@ -118,7 +118,7 @@ def checkin(dbapi_connection: Any, record: Any) -> None: ctx = ref() if ctx is not None: _offer(ctx, state, held, connection_id) - except Exception as exc: # noqa: BLE001 - a listener never changes the host's release + except Exception as exc: dispatch.routing_failed(exc) @@ -146,5 +146,5 @@ def _offer(ctx: SharpitContext, state: Checkout, held: int, connection_id: str) }, started=state.epoch_ms if state.request_id is not None or state.trace_id is not None else 0, ) - except Exception as exc: # noqa: BLE001 + except Exception as exc: dispatch._context_failed(ctx, exc, "connection journal") diff --git a/src/sharpit/engine/sqla/dialect_source.py b/src/sharpit/engine/sqla/dialect_source.py index 41089429f..cb08b8b11 100644 --- a/src/sharpit/engine/sqla/dialect_source.py +++ b/src/sharpit/engine/sqla/dialect_source.py @@ -19,7 +19,7 @@ def _attribute(value: object, name: str) -> object | None: return object.__getattribute__(value, name) except AttributeError: return None - except BaseException: # noqa: BLE001 # NOSONAR - a host object's property can raise anything: unreadable + except BaseException: # NOSONAR - a host object's property can raise anything: unreadable return _UNREADABLE diff --git a/src/sharpit/engine/sqla/inspect.py b/src/sharpit/engine/sqla/inspect.py index fedd8a822..1dd693e86 100644 --- a/src/sharpit/engine/sqla/inspect.py +++ b/src/sharpit/engine/sqla/inspect.py @@ -66,7 +66,7 @@ def _pkg_version(packages: list[str]) -> str | None: ver = importlib.metadata.version(pkg) if ver and str(ver).strip(): return str(ver).strip() - except Exception: # noqa: BLE001, S110 + except Exception: # noqa: S110 pass return None @@ -139,7 +139,7 @@ def catalog(conn: Any, bounds: CatalogBounds, masker: Masker) -> dict[str, Any]: engine = getattr(conn, "engine", None) sync = getattr(engine, "sync_engine", engine) url_val = getattr(sync, "url", None) - except Exception: # noqa: BLE001 + except Exception: complete = False diagnostics.append( _warning("The database URL could not be read; driver settings configured in it are not evaluated.") @@ -159,7 +159,7 @@ def catalog(conn: Any, bounds: CatalogBounds, masker: Masker) -> dict[str, Any]: break try: table, cut = _table(conn, inspector, name, bounds) - except Exception as exc: # noqa: BLE001 - one unreadable table is a diagnostic; never a failed scan + except Exception as exc: complete = False diagnostics.append(_warning(f"Table {name} could not be read: {error_text(exc, masker, dialect_enum)}")) continue @@ -184,7 +184,7 @@ def _warning(message: str) -> dict[str, str]: def _type_text(conn: Any, column_type: Any) -> str: try: return str(column_type.compile(dialect=conn.dialect)).upper() - except Exception: # noqa: BLE001 - a type the dialect cannot render is still named + except Exception: return type(column_type).__name__.upper() @@ -249,7 +249,7 @@ def _server( rows = conn.exec_driver_sql(sql).fetchmany(bounds.vendor_rows) else: rows = conn.exec_driver_sql(sql).fetchmany(bounds.vendor_rows) - except Exception as exc: # noqa: BLE001 - the pool rules then skip with the reason + except Exception as exc: dialect_enum = dialect_of_name(dialect) or Dialect.UNSUPPORTED diagnostics.append(_warning(f"Server settings could not be read: {error_text(exc, masker, dialect_enum)}")) return {} @@ -272,7 +272,7 @@ def live_engine_drivers() -> set[str]: for obj in gc.get_objects(): if type(obj) is engine_class: drivers.add(obj.dialect.driver) - except Exception: # noqa: BLE001 - best-effort evidence must not affect the host + except Exception: return drivers return drivers @@ -281,9 +281,9 @@ def maximum_pool_size(pool: Any) -> int | None: """A queue pool's maximum size (its size plus its overflow), else ``None``: other pools and an unbounded overflow have none. Counters only: nothing borrows a connection.""" sa = _sqla.sqlalchemy_module() - if sa is None or not isinstance(pool, sa.pool.QueuePool) or pool._max_overflow < 0: # noqa: SLF001 + if sa is None or not isinstance(pool, sa.pool.QueuePool) or pool._max_overflow < 0: return None - return pool.size() + pool._max_overflow # noqa: SLF001 + return pool.size() + pool._max_overflow def shared_connection_pool(pool: Any) -> str | None: diff --git a/src/sharpit/engine/sqla/listeners.py b/src/sharpit/engine/sqla/listeners.py index 92b3173b2..0f179787e 100644 --- a/src/sharpit/engine/sqla/listeners.py +++ b/src/sharpit/engine/sqla/listeners.py @@ -73,7 +73,7 @@ def engine_connect(conn: Any) -> None: for ctx in contexts: if ctx.capture.engine_registry is not None: ctx.capture.engine_registry.add(conn.engine) - except Exception as exc: # noqa: BLE001 - a listener never changes the host's query + except Exception as exc: dispatch.routing_failed(exc) @@ -90,10 +90,10 @@ def before_cursor_execute( return start = (time.perf_counter_ns(), targets) if context is not None: - context._sharpit_start = start # noqa: SLF001 + context._sharpit_start = start else: conn.info[START_KEY] = start - except Exception as exc: # noqa: BLE001 + except Exception as exc: dispatch.routing_failed(exc) @@ -135,7 +135,7 @@ def _emit( duration = time.perf_counter_ns() - started try: connection_id: str | None = hex(id(conn.connection.dbapi_connection)) - except Exception: # noqa: BLE001 - an invalidated connection has no DBAPI connection + except Exception: connection_id = None engine = conn.engine dialect = connection_dialect(conn, engine) @@ -166,7 +166,7 @@ def after_cursor_execute( if start is not None: parameters, rows = _named(parameters, context, executemany) _emit(start, conn, statement, parameters, executemany, getattr(cursor, "rowcount", -1), None, rows) - except Exception as exc: # noqa: BLE001 + except Exception as exc: dispatch.routing_failed(exc) @@ -180,7 +180,7 @@ def handle_error(exception_context: Any) -> None: executemany = bool(getattr(context, "executemany", False)) parameters, rows = _named(exception_context.parameters, context, executemany) _emit(start, conn, exception_context.statement or "", parameters, executemany, -1, error, rows) - except Exception as exc: # noqa: BLE001 + except Exception as exc: dispatch.routing_failed(exc) @@ -208,7 +208,7 @@ def _target(sa: Any, name: str) -> Any: def _sync_listeners() -> None: """Listen while a context needs the event, remove once none does (callers hold ``_lock``).""" # swapped whole under the lock, read lock-free - global _discovery_refs # noqa: PLW0603 + global _discovery_refs _discovery_refs = tuple(weakref.ref(c) for c in _discovery_contexts.values()) sa = _sqla.sqlalchemy_module() if sa is None: @@ -297,7 +297,7 @@ def routes_statements(ctx: SharpitContext) -> bool: def detach_all() -> None: """Forget every context and remove every listener (tests start from a clean slate with it).""" - global _session # noqa: PLW0603 + global _session with _lock: dispatch.clear_contexts() _statement_contexts.clear() @@ -314,7 +314,7 @@ def detach_all() -> None: def attach_session() -> bool: """Keep the statement listeners on for the test-session sink; False while SQLAlchemy is not imported (retry).""" - global _session # noqa: PLW0603 - read by _sync_listeners under the lock + global _session if _sqla.sqlalchemy_module() is None: return False with _lock: @@ -330,7 +330,7 @@ def attach_session() -> bool: def detach_session() -> None: - global _session # noqa: PLW0603 + global _session with _lock: _session = False sa = _sqla.sqlalchemy_module() diff --git a/src/sharpit/engine/sqla/orm.py b/src/sharpit/engine/sqla/orm.py index 6a34e5141..fe7494cbd 100644 --- a/src/sharpit/engine/sqla/orm.py +++ b/src/sharpit/engine/sqla/orm.py @@ -167,10 +167,10 @@ def _batched_query(context: Any) -> str: compiled = context.compiled where = compiled.statement.whereclause if where.operator is operator.eq: - mapper = compiled.compile_state._primary_entity.mapper # noqa: SLF001 + mapper = compiled.compile_state._primary_entity.mapper name = mapper.class_.__name__ return f"select({name}).where({name}.{mapper.get_property_by_column(where.left).key}.in_(ids))" - except Exception: # noqa: BLE001, S110 - introspection is defensive: a text or Core statement has no entity + except Exception: # noqa: S110 - introspection is defensive: a text or Core statement has no entity pass return GENERIC_BATCH @@ -369,7 +369,7 @@ def _record_unbounded_read_load(target: Any, context: Any, info: Any, tag: tuple def _mapper_load(target: Any, context: Any) -> None: # pyright: ignore[reportUnusedFunction] - listeners calls it - global _unbounded_read_capture_missing # noqa: PLW0603 + global _unbounded_read_capture_missing try: info = REQUEST.get() tag = TEST.get() @@ -384,7 +384,7 @@ def _mapper_load(target: Any, context: Any) -> None: # pyright: ignore[reportUn _unbounded_read_capture_missing = True return _record_unbounded_read_load(target, context, info, tag) - except Exception as exc: # noqa: BLE001 - a diagnostic listener never changes a query result + except Exception as exc: dispatch.routing_failed(exc) @@ -412,6 +412,6 @@ def set_identity_key(key: bytes | None) -> None: def set_unbounded_read_factor(factor: int) -> None: - global _unbounded_read_factor # noqa: PLW0603 + global _unbounded_read_factor with _lock: _unbounded_read_factor = factor diff --git a/src/sharpit/engine/sqla/readonly.py b/src/sharpit/engine/sqla/readonly.py index 0ef412d81..2ce7edc5c 100644 --- a/src/sharpit/engine/sqla/readonly.py +++ b/src/sharpit/engine/sqla/readonly.py @@ -168,7 +168,7 @@ def bounded[T](conn: Any, fn: Callable[[Any], T], timeout: float) -> T: variable, convert, value = "max_execution_time", int, max(1, int(timeout * 1000)) try: previous = convert(conn.exec_driver_sql(f"SELECT @@SESSION.{variable}").scalar() or 0) - except Exception: # noqa: BLE001 - MySQL before 5.7.8 has no such variable + except Exception: return fn(conn) conn.exec_driver_sql(f"SET SESSION {variable} = {value}") try: @@ -213,7 +213,7 @@ async def run_db_read[T]( raise ReadOnlyUnavailable(SHARED_CONNECTION_REFUSED) async with asyncio.timeout(wall): if sync.dialect.is_async: - from sqlalchemy.ext.asyncio import AsyncEngine # noqa: PLC0415 - only once the app imported it + from sqlalchemy.ext.asyncio import AsyncEngine # shortcut: on timeout `done` fires once the await is cancelled, while the driver's own thread # (aiosqlite) may still run the call, so one extra read can overlap; track the driver if it matters diff --git a/src/sharpit/engine/sqltext/dialect.py b/src/sharpit/engine/sqltext/dialect.py index 81f1f435b..c10c795d9 100644 --- a/src/sharpit/engine/sqltext/dialect.py +++ b/src/sharpit/engine/sqltext/dialect.py @@ -150,7 +150,7 @@ def _queue_group_children(current: BaseException, pending: list[BaseException], "tuple[BaseException, ...]", BaseExceptionGroup.__dict__["exceptions"].__get__(group, type(group)), ) - except BaseException: # noqa: BLE001 # NOSONAR - a hostile group subclass can raise anything: stop, fail closed + except BaseException: # NOSONAR - a hostile group subclass can raise anything: stop, fail closed return ChainReading(frozenset(), stopped=True, visited=visited) available = _CHAIN_LIMIT - visited if len(children) > available: @@ -166,7 +166,7 @@ def _queue_exception_links(current: BaseException, pending: list[BaseException]) context = _CONTEXT.__get__(current) suppressed = _SUPPRESS_CONTEXT.__get__(current) fields = cast("dict[str, object]", _INSTANCE_DICT.__get__(current)) - except BaseException: # noqa: BLE001 # NOSONAR - a host exception's links can raise anything: stop, fail closed + except BaseException: # NOSONAR - a host exception's links can raise anything: stop, fail closed return False if type(fields) is not dict: return False # a dict subclass's methods could run, so its ``orig`` cannot be read @@ -191,7 +191,7 @@ def read_chain(exc: BaseException) -> ChainReading: """Never raises: a chain whose classes cannot be read stops, so every caller fails closed.""" try: return _walk_chain(exc) - except BaseException: # noqa: BLE001 # NOSONAR - never raises into the host: a stopped chain fails closed + except BaseException: # NOSONAR - never raises into the host: a stopped chain fails closed return ChainReading(frozenset(), stopped=True) @@ -238,5 +238,5 @@ def resolve(event: object, sources: Sequence[DialectSource], context: DialectCon family = next(iter(proof)) return family if application in (None, family) else Dialect.UNSUPPORTED return application if application is not None else Dialect.UNSUPPORTED - except BaseException: # noqa: BLE001 # NOSONAR - sources read host objects: UNSUPPORTED hides it all + except BaseException: # NOSONAR - sources read host objects: UNSUPPORTED hides it all return Dialect.UNSUPPORTED diff --git a/src/sharpit/engine/sqltext/errors.py b/src/sharpit/engine/sqltext/errors.py index afef1d4cf..ec4320ea2 100644 --- a/src/sharpit/engine/sqltext/errors.py +++ b/src/sharpit/engine/sqltext/errors.py @@ -478,7 +478,7 @@ def error_text( if not args or sum(len(value) for value in args if type(value) is str) > 100_000: return None text = " ".join(value for value in args if type(value) is str) - except Exception: # noqa: BLE001 - unreadable exception objects fail closed + except Exception: return None if not text: return None diff --git a/src/sharpit/engine/testsession/sink.py b/src/sharpit/engine/testsession/sink.py index 590e42740..e54df487f 100644 --- a/src/sharpit/engine/testsession/sink.py +++ b/src/sharpit/engine/testsession/sink.py @@ -116,7 +116,7 @@ def on_http(self, method: str, state: str, route: str, status: int, header_names running = self.current_test if self._window is not None else None facts = self.facts.http_unassociated if running is None else running.http facts.record(method, state, route, status, present) - except Exception as exc: # noqa: BLE001 + except Exception as exc: self.record_failure(exc) @property @@ -149,7 +149,7 @@ def record_lost(self, reason: str) -> str: try: reason = self._mask(reason) # a failing masker must not reach the host, and the unmasked reason is never kept - except Exception as exc: # noqa: BLE001 + except Exception as exc: reason = HOOK_FAILURE_WARNING.format(type(exc).__name__) with self._lock: if reason not in self.facts.warnings: @@ -220,7 +220,7 @@ def on_sql(self, event: SqlEvent, test: TestTag | None) -> None: if category_of(sql) == "SELECT": phase.selects[key] += 1 phase.sql_of.setdefault(key, shape.text) - except Exception as exc: # noqa: BLE001 + except Exception as exc: self.record_failure(exc) def _count_unattributed(self, key: str, sql: str) -> None: @@ -264,7 +264,7 @@ def on_exception(self, exc: BaseException, source: str, test: TestTag | None) -> phase.exceptions += 1 self._seen[identity] = (exc, test[2], group) self._group_refs[test[2], group] += 1 - except Exception as error: # noqa: BLE001 + except Exception as error: self.record_failure(error) def on_escaped(self, exc: BaseException) -> None: @@ -281,14 +281,14 @@ def on_escaped(self, exc: BaseException) -> None: self._group_refs[phase_name, group] -= 1 if self._group_refs[phase_name, group] <= 0: phase.exception_groups.pop(group, None) - except Exception as error: # noqa: BLE001 + except Exception as error: self.record_failure(error) def register_app(self, app: object) -> None: try: with self._lock: self._registrations.append(_Registration(weakref.ref(app))) - except Exception as exc: # noqa: BLE001 + except Exception as exc: self.record_failure(exc) def _live_registrations(self) -> list[_Registration]: @@ -335,7 +335,7 @@ def snapshot_apps(self, model_of: Callable[[object], ApiModel], *, force: bool = self._models_by_signature[signature] = model registration.snapshot = (signature[0], model) registration.route_token = signature - except Exception as exc: # noqa: BLE001 + except Exception as exc: self.record_failure(exc) def app_snapshots(self) -> list[tuple[str, ApiModel]]: diff --git a/src/sharpit/engine/tool_dispatch.py b/src/sharpit/engine/tool_dispatch.py index 6b4fde034..aaa5af0e4 100644 --- a/src/sharpit/engine/tool_dispatch.py +++ b/src/sharpit/engine/tool_dispatch.py @@ -80,7 +80,7 @@ def run(self, name: str, fn: Callable[[], dict[str, Any]]) -> dict[str, Any]: def worker() -> None: try: outcome["value"] = fn() - except BaseException as exc: # noqa: BLE001 # NOSONAR - worker thread: re-raised or mapped by _raise_tool_error + except BaseException as exc: # NOSONAR - worker thread: re-raised or mapped by _raise_tool_error outcome["error"] = exc finally: with self._lock: diff --git a/src/sharpit/engine/tools.py b/src/sharpit/engine/tools.py index 3c61986e3..443b8a30d 100644 --- a/src/sharpit/engine/tools.py +++ b/src/sharpit/engine/tools.py @@ -707,7 +707,7 @@ def log_tail_lines(ctx: SharpitContext) -> list[dict[str, Any]]: "rest_api_scan": "rest-api scan", } -from sharpit.engine.panels04 import tool_definitions as _tool_definitions # noqa: E402, I001 +from sharpit.engine.panels04 import tool_definitions as _tool_definitions # noqa: E402 from sharpit.engine.tools_lowfootprint import COMMANDS as _LOW_FOOTPRINT_COMMANDS # noqa: E402 from sharpit.engine.tools_lowfootprint import tool_definitions as _low_footprint_definitions # noqa: E402 diff --git a/src/sharpit/engine/tools04/security.py b/src/sharpit/engine/tools04/security.py index d52f5230d..6c4c51666 100644 --- a/src/sharpit/engine/tools04/security.py +++ b/src/sharpit/engine/tools04/security.py @@ -35,7 +35,7 @@ def _facts(ctx: SharpitContext) -> SecurityFacts: return SecurityFacts(False, None, (), (), (_NO_ADAPTER,)) try: facts = read() - except Exception as exc: # noqa: BLE001 - introspection degrades; never crashes the host (safety 5) + except Exception as exc: return SecurityFacts(False, None, (), (), (f"Middleware options could not be read ({type(exc).__name__}).",)) return facts if isinstance(facts, SecurityFacts) else SecurityFacts(False, None, (), (), (_NO_ADAPTER,)) diff --git a/src/sharpit/fastapi/capture.py b/src/sharpit/fastapi/capture.py index 252a9144e..3c3b02b53 100644 --- a/src/sharpit/fastapi/capture.py +++ b/src/sharpit/fastapi/capture.py @@ -133,7 +133,7 @@ def _request_end_guard(wiring: CaptureWiring, lost: SharpitContext | None = None """``lost``: the context whose http completion a failure here loses (counted as an http drop).""" try: yield - except Exception as exc: # noqa: BLE001 + except Exception as exc: wiring.hook_failed("request end", exc) if lost is not None: _lose_http(lost) @@ -343,7 +343,7 @@ def detach(self, ctx: SharpitContext) -> None: while teardowns: # lanes' listener/processor removers (R17): newest first, once each, a failure stops none try: teardowns.pop()() - except Exception as exc: # noqa: BLE001 + except Exception as exc: self.hook_failed("teardown", exc) if ctx.capture.sensors is not None: ctx.capture.sensors.detach() # the audit hook stays installed, inert: it cannot be removed @@ -416,7 +416,7 @@ def _disarm(self, ctx: SharpitContext, attacher: object) -> None: ctx.capture.teardowns.remove(remover) try: remover() - except Exception as exc: # noqa: BLE001 + except Exception as exc: self.hook_failed("teardown", exc) def _run_attachers(self, ctx: SharpitContext, lane: str | None = None) -> None: @@ -428,7 +428,7 @@ def _run_attachers(self, ctx: SharpitContext, lane: str | None = None) -> None: continue try: remover = attacher() - except Exception as exc: # noqa: BLE001 - the host's startup never fails on sharpit + except Exception as exc: self.hook_failed("attacher", exc) continue if remover is not None: @@ -448,7 +448,7 @@ def _attach_sqla(self, ctx: SharpitContext) -> None: try: discovery = any(_panel_enabled(ctx, p) for p in sqla.DISCOVERY_PANELS) sqla.add(ctx, statements=ctx.capture.sql_trace is not None, discovery=discovery) - except Exception as exc: # noqa: BLE001 - the host's startup never fails on sharpit + except Exception as exc: self.hook_failed("sql listeners", exc) def _attach_sqlite(self, ctx: SharpitContext) -> None: @@ -458,7 +458,7 @@ def _attach_sqlite(self, ctx: SharpitContext) -> None: try: dispatch.add_context(ctx) # raw sqlite3 needs no SQLAlchemy: route its statements here too sqlite.attach(sqlite_holder(ctx)) - except Exception as exc: # noqa: BLE001 - the host's startup never fails on sharpit + except Exception as exc: self.hook_failed("sql listeners", exc) def log_handler_on_root(self) -> bool: @@ -541,7 +541,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: **scope, "headers": [h for h in scope.get("headers", ()) if not _is_probe_header_entry(h)], } - except Exception as exc: # noqa: BLE001 + except Exception as exc: if wiring is not None: wiring.hook_failed(REQUEST_START, exc) _lose_http(self.ctx) @@ -552,7 +552,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: **scope, "headers": [h for h in headers if not _is_probe_header_entry(h)], } - except Exception: # noqa: BLE001, S110 - best-effort defensive probe strip + except Exception: # noqa: S110 - best-effort defensive probe strip pass strip_failed = True if strip_failed: @@ -572,7 +572,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: wiring.on_first_request(self.ctx) if buffer is not None: buffer.count_hidden_self() - except Exception as exc: # noqa: BLE001 + except Exception as exc: wiring.hook_failed(REQUEST_START, exc) await self.app(scope, receive, send) return @@ -593,7 +593,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: None, scope=scope, ) - except Exception as exc: # noqa: BLE001 - a capture failure never changes the host's response + except Exception as exc: wiring.hook_failed(REQUEST_START, exc) _lose_http(self.ctx) else: @@ -625,7 +625,7 @@ async def capture_send(message: Message) -> None: if self._request_id_header_enabled: try: message = with_request_id_header(self.ctx, scope, message, info, response_headers) - except Exception as exc: # noqa: BLE001 - optional response decoration cannot alter host output + except Exception as exc: wiring.hook_failed("request id response header", exc) status = message["status"] if message is not original_message: @@ -634,7 +634,7 @@ async def capture_send(message: Message) -> None: size += len(message.get("body", b"")) if not message.get("more_body", False): end_ns = time.perf_counter_ns() - except Exception as exc: # noqa: BLE001 + except Exception as exc: wiring.hook_failed("response", exc) await send(message) # every chunk goes out as it comes: nothing is buffered @@ -657,7 +657,7 @@ async def capture_send(message: Message) -> None: if sent in (401, 403) and security is not None: # before reset: REQUEST names it (R12) try: security(scope, sent) - except Exception as exc: # noqa: BLE001 + except Exception as exc: wiring.hook_failed("security event", exc) REQUEST.reset(token) try: @@ -715,7 +715,7 @@ async def capture_send(message: Message) -> None: with _request_end_guard(wiring, self.ctx): journal.offer_flat(http_event(info, scope["headers"], started_epoch_ns, recorded, template)) # a failure here comes before the journal offer, the last step: that completion is lost - except Exception as exc: # noqa: BLE001 + except Exception as exc: wiring.hook_failed("request end", exc) _lose_http(self.ctx) return diff --git a/src/sharpit/fastapi/capture_exceptions.py b/src/sharpit/fastapi/capture_exceptions.py index 7132cf1dc..673fc329a 100644 --- a/src/sharpit/fastapi/capture_exceptions.py +++ b/src/sharpit/fastapi/capture_exceptions.py @@ -136,7 +136,7 @@ def route_template(scope: Scope, root_path: str, app: object) -> str | None: getattr(app, "routes", ()), route_path({"path": scope["path"], "root_path": root_path}), below ) return None if prefix is None or _template_regex(template).match(below) is None else prefix + template - except Exception: # noqa: BLE001 - a drifted router or a custom route degrades to the masked path; the row stays + except Exception: return None @@ -172,7 +172,7 @@ def record(conn: Any, exc: Exception) -> None: wiring._context, # pyright: ignore[reportPrivateUsage] wiring.app, # pyright: ignore[reportPrivateUsage] ) - except Exception as failure: # noqa: BLE001 - the host's handler always runs + except Exception as failure: wiring.hook_failed("exception handler", failure) if is_async_callable(original): diff --git a/src/sharpit/fastapi/install.py b/src/sharpit/fastapi/install.py index 48553821c..05b8bf1a9 100644 --- a/src/sharpit/fastapi/install.py +++ b/src/sharpit/fastapi/install.py @@ -292,7 +292,7 @@ def install( _bad_request = adapter._bad_request _json_http_error = adapter._json_http_error _not_found = adapter._not_found - caller_module: str | None = sys._getframe(1).f_globals.get("__name__") # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + caller_module: str | None = sys._getframe(1).f_globals.get("__name__") # pyright: ignore[reportPrivateUsage] router = app.router if (existing := _existing_handle(router, sharpit_mount_type)) is not None: return existing diff --git a/src/sharpit/fastapi/introspection_common.py b/src/sharpit/fastapi/introspection_common.py index 0b42940a4..7eb76ccb5 100644 --- a/src/sharpit/fastapi/introspection_common.py +++ b/src/sharpit/fastapi/introspection_common.py @@ -18,7 +18,7 @@ def attrs(obj: object) -> dict[str, object]: try: values = object.__getattribute__(obj, "__dict__") # __slots__ (a SQLAlchemy AsyncEngine passed as the app), a built-in, or framework drift: no attributes - except Exception: # noqa: BLE001 + except Exception: return {} return cast(dict[str, object], values) if isinstance(values, dict | types.MappingProxyType) else {} diff --git a/src/sharpit/fastapi/introspection_errors.py b/src/sharpit/fastapi/introspection_errors.py index da959552a..8ba142313 100644 --- a/src/sharpit/fastapi/introspection_errors.py +++ b/src/sharpit/fastapi/introspection_errors.py @@ -54,7 +54,7 @@ def handler_name(handler: object) -> tuple[str, bool]: try: module = getter(handler, "__module__") qualname = getter(handler, "__qualname__") - except Exception: # noqa: BLE001 + except Exception: return "UNRESOLVED", is_partial return f"{module if type(module) is str else '?'}.{qualname if type(qualname) is str else '?'}", is_partial @@ -123,10 +123,10 @@ def _handlers(app: object, scope: str, target: str | None) -> tuple[list[ErrorHa for key, handler in handler_map.items(): try: rows.append(_handler_row(key, handler, scope, target, limitations)) - except Exception: # noqa: BLE001 - one opaque host handler must not hide its siblings + except Exception: limitations.append(f"An exception handler at {target or '/'} could not be inspected.") return rows, limitations - except Exception: # noqa: BLE001 - framework drift must not break the host app + except Exception: return [], [f"Exception handlers at {target or '/'} could not be inspected."] diff --git a/src/sharpit/fastapi/introspection_security.py b/src/sharpit/fastapi/introspection_security.py index ea7d9bcc4..54c5dd44a 100644 --- a/src/sharpit/fastapi/introspection_security.py +++ b/src/sharpit/fastapi/introspection_security.py @@ -65,7 +65,7 @@ def _session_flags(options: dict[str, object]) -> set[str]: if type(same_site) is str and same_site.lower() == "none": flags.add("same_site_none") secret = _secret_text(options.get("secret_key")) - if type(secret) is str and len(secret) < 32: # noqa: PLR2004 - the length is the fact; never the value + if type(secret) is str and len(secret) < 32: flags.add("short_secret") return flags diff --git a/src/sharpit/fastapi/introspector.py b/src/sharpit/fastapi/introspector.py index 76a59d0ae..54a29220b 100644 --- a/src/sharpit/fastapi/introspector.py +++ b/src/sharpit/fastapi/introspector.py @@ -77,8 +77,8 @@ class _FastAPIClasses(NamedTuple): def _fastapi_classes() -> _FastAPIClasses: """FastAPI's app, route and websocket route classes; the extra is optional, and an empty tuple matches no class.""" try: - from fastapi.applications import FastAPI # noqa: PLC0415 - from fastapi.routing import APIRoute, APIWebSocketRoute # noqa: PLC0415 + from fastapi.applications import FastAPI + from fastapi.routing import APIRoute, APIWebSocketRoute except ImportError: return _FastAPIClasses((), (), ()) return _FastAPIClasses((FastAPI,), (APIRoute,), (APIWebSocketRoute,)) @@ -156,7 +156,7 @@ def _resource(obj: object) -> str | None: return None line = _first_line(target) return f"{source}:{line}" if line is not None else source - except Exception: # noqa: BLE001 # no source (built-in, C extension, exec'd): the bean stays, without a resource + except Exception: # no source (built-in, C extension, exec'd): the bean stays, without a resource return None @@ -197,13 +197,13 @@ def _host_lifespan(lifespan: object) -> object: return current current = cells["original_context"].cell_contents return current - except Exception: # noqa: BLE001 - private layout drifted: show what the router holds + except Exception: return lifespan def _dependant_of(call: object) -> object | None: """The sub-dependency tree FastAPI would build for an override (signature only; nothing is called).""" - from fastapi.dependencies.utils import get_dependant # noqa: PLC0415 - FastAPI is optional for sharpit + from fastapi.dependencies.utils import get_dependant return get_dependant(path="", call=call) # pyright: ignore[reportArgumentType] @@ -224,7 +224,7 @@ def _return_annotation(endpoint: object) -> object | None: """The resolved return annotation: None when there is none, ``type(None)`` for ``-> None``.""" try: return typing.get_type_hints(endpoint, include_extras=True).get("return") - except Exception: # noqa: BLE001 - an unresolvable forward reference: fall back to the raw annotation + except Exception: try: raw = inspect.signature(endpoint).return_annotation # pyright: ignore[reportArgumentType] except (TypeError, ValueError): @@ -365,7 +365,7 @@ def _path_regex(path: str, prefix_only: bool) -> str | None: return compile_path(path)[0].pattern pattern = compile_path(path.removesuffix(_MOUNT_SUFFIX) or "/")[0].pattern return pattern.removesuffix("$").removesuffix("/") + "(?:/.*)?$" - except Exception: # noqa: BLE001 - an unknown convertor: the route cannot be matched statically + except Exception: return None @@ -422,7 +422,7 @@ def _secured_route( unchecked = True elif _optional_nested(sub, 0, base): unchecked = True - except Exception as exc: # noqa: BLE001 - FastAPI internals drifted: list the route as unknown; never crash + except Exception as exc: limitations.append(f"Route {info.path} could not be inspected ({type(exc).__name__}).") return SecuredRoute(info.methods, info.path, info.handler, opaque=True, path_regex=regex, chain=chain) return SecuredRoute( @@ -685,7 +685,7 @@ def _leaf(route: BaseRoute, prefix: str, host: str | None) -> RouteInfo: def security_model(self) -> SecurityModel: """Middleware stacks and each route's security schemes, read from objects FastAPI built; nothing is called.""" try: - from fastapi.security.base import SecurityBase # noqa: PLC0415 + from fastapi.security.base import SecurityBase except ImportError: return SecurityModel(False, (), (), (), (NOT_FASTAPI,)) if not issubclass(type(self.app), _fastapi_classes().apps): # type(): a user ``__class__`` is never run @@ -815,7 +815,7 @@ def _collect_route_providers(self, graph: _ProviderGraph) -> None: key, new = graph.add(call, "request") if new: graph.visit(_dependant_of(call), key, 1) - except Exception: # noqa: BLE001,S112 - one odd route must not empty the panel + except Exception: # noqa: S112 - one odd route must not empty the panel continue def _collect_override_providers(self, graph: _ProviderGraph) -> dict[int, int]: @@ -828,7 +828,7 @@ def _collect_override_providers(self, graph: _ProviderGraph) -> dict[int, int]: overridden_by[id(original)] = key if new: graph.visit(_dependant_of(override), key, 1) - except Exception: # noqa: BLE001,S112 + except Exception: # noqa: S112 continue return overridden_by @@ -874,7 +874,7 @@ def providers(self) -> list[ProviderInfo]: def security_facts(self) -> SecurityFacts: """The security advisor's option facts (``vars()``-style reads only; no option value leaves as a value).""" try: - from fastapi.security.base import SecurityBase # noqa: PLC0415 + from fastapi.security.base import SecurityBase except ImportError: return SecurityFacts(False, None, (), (), (NOT_FASTAPI,)) if not issubclass(type(self.app), _fastapi_classes().apps): # type(): a user ``__class__`` is never run diff --git a/src/sharpit/fastapi/pentesting_exposure.py b/src/sharpit/fastapi/pentesting_exposure.py index 3ca7a16c4..4d6aeeb32 100644 --- a/src/sharpit/fastapi/pentesting_exposure.py +++ b/src/sharpit/fastapi/pentesting_exposure.py @@ -20,7 +20,7 @@ def read_security_facts(introspector: object) -> SecurityFacts | None: try: reader = getattr(introspector, "security_facts", None) facts = reader() if callable(reader) else None - except Exception: # noqa: BLE001 - degrade without a log record or a copied message + except Exception: return None return facts if isinstance(facts, SecurityFacts) else None @@ -86,5 +86,5 @@ def framework_evidence(introspector: object, facts: SecurityFacts | None) -> Fra declared and not documentation, config_incomplete, ) - except Exception: # noqa: BLE001 # NOSONAR - introspection degrades, never raises into the host + except Exception: # NOSONAR - introspection degrades, never raises into the host return _UNAVAILABLE diff --git a/src/sharpit/fastapi/sink_ownership.py b/src/sharpit/fastapi/sink_ownership.py index c63ae3196..67201e8fb 100644 --- a/src/sharpit/fastapi/sink_ownership.py +++ b/src/sharpit/fastapi/sink_ownership.py @@ -26,7 +26,7 @@ def _overrides_snapshot(scope: Mapping[str, Any]) -> tuple[int, ...]: if not isinstance(overrides, Mapping) or not overrides: return () return tuple(id(part) for pair in tuple(cast("Mapping[Any, Any]", overrides).items()) for part in pair) - except Exception: # noqa: BLE001 - this module never raises; an odd app gives the uncached-overrides answer + except Exception: return () diff --git a/src/sharpit/flask/introspector.py b/src/sharpit/flask/introspector.py index 9b630b79c..dd83f7605 100644 --- a/src/sharpit/flask/introspector.py +++ b/src/sharpit/flask/introspector.py @@ -31,7 +31,7 @@ def _app_values(app: object) -> dict[str, object]: return {} try: values = object.__getattribute__(app, "__dict__") - except Exception: # noqa: BLE001 - a slotted or unusual Flask subclass has no readable instance data + except Exception: return {} return cast(dict[str, object], values) if isinstance(values, dict) else {} diff --git a/src/sharpit/pytest_plugin/__init__.py b/src/sharpit/pytest_plugin/__init__.py index 4fa7d7e34..3d6582c6b 100644 --- a/src/sharpit/pytest_plugin/__init__.py +++ b/src/sharpit/pytest_plugin/__init__.py @@ -46,7 +46,7 @@ from sharpit.pytest_plugin.options import PluginOptions from sharpit.pytest_plugin.options import pytest_addoption as pytest_addoption from sharpit.pytest_plugin.options import resolve as resolve -from sharpit.pytest_plugin.report_io import write_report as _write_report # noqa: F401 - compatibility re-export +from sharpit.pytest_plugin.report_io import write_report as _write_report from sharpit.pytest_plugin.report_io import write_report_files from sharpit.pytest_plugin.session import MARKER_USAGE_ERROR from sharpit.pytest_plugin.session import pytest_collection_finish as pytest_collection_finish @@ -113,7 +113,7 @@ def emit(self, record: logging.LogRecord) -> None: validation_error = isinstance(validation_error_type, type) and isinstance(exc, validation_error_type) if not validation_error: self.sink.on_exception(exc, "log", TEST.get()) - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(self.sink, exc) @@ -173,7 +173,7 @@ def pytest_configure(config: Any) -> None: _attach(config) # also covers pytester.runpytest_inprocess, where initial conftests already ran except pytest.UsageError: raise - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_config_hook_failure(config, exc) @@ -258,7 +258,7 @@ def _record_sqlalchemy_source(state: _State) -> None: def _attach(config: Any) -> None: - global _active_state # noqa: PLW0603 + global _active_state options = resolve(config) if not options.enabled or _state(config) is not None: return @@ -327,7 +327,7 @@ def _attach(config: Any) -> None: def _detach(config: Any) -> None: - global _active_state # noqa: PLW0603 + global _active_state state = _state(config) if state is None: return @@ -339,7 +339,7 @@ def _detach(config: Any) -> None: ): try: cleanup() - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(state.sink, exc) if hasattr(config, _STATE_ATTR): delattr(config, _STATE_ATTR) @@ -358,7 +358,7 @@ def pytest_load_initial_conftests(early_config: Any, parser: Any, args: list[str except pytest.UsageError: _detach(early_config) raise - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_config_hook_failure(early_config, exc) try: hook_result = cast(Result[Any], (yield)) @@ -397,7 +397,7 @@ def pytest_sessionstart(session: Any) -> None: state.sqlalchemy_attached = True _record_sqlalchemy_source(state) sqla.set_unbounded_read_factor(state.settings.activity_unbounded_read_factor) - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(state.sink, exc) @@ -409,7 +409,7 @@ def pytest_runtest_protocol(item: Any, nextitem: Any) -> Any: try: state.partial_run_count += 1 state.sink.begin_test(item.nodeid) - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(state.sink, exc) try: yield @@ -417,7 +417,7 @@ def pytest_runtest_protocol(item: Any, nextitem: Any) -> Any: if state: try: state.sink.end_test() - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(state.sink, exc) @@ -453,7 +453,7 @@ def _phase(item: Any, name: str) -> Any: if state.sink.facts.exceptions_source_ok: exception_source.update(attached=True, reason=None) return state, token - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(state.sink, exc) return None @@ -473,12 +473,12 @@ def _phase_done(phase: Any) -> None: state.sink.facts.exceptions_source_ok = False exception_source = next(s for s in state.sink.facts.sources if s["name"] == "exceptions") exception_source.update(attached=False, reason="application reconfigured logging during a test phase") - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(state.sink, exc) finally: try: TEST.reset(token) - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(state.sink, exc) @@ -496,7 +496,7 @@ def pytest_runtest_setup(item: Any) -> Any: ): state.sink.begin_test(item.nodeid) phase = _phase(item, "setup") - except Exception as exc: # noqa: BLE001 + except Exception as exc: phase = None if state is not None: _record_hook_failure(state.sink, exc) @@ -527,7 +527,7 @@ async def run_in_context(*args: Any, **kwargs: Any) -> Any: TEST.reset(token) item.obj = run_in_context - except Exception as exc: # noqa: BLE001 + except Exception as exc: if state is not None: _record_hook_failure(state.sink, exc) try: @@ -543,7 +543,7 @@ def pytest_runtest_teardown(item: Any, nextitem: Any) -> Any: state = _state(item.config) try: phase = _phase(item, "teardown") - except Exception as exc: # noqa: BLE001 + except Exception as exc: phase = None if state is not None: _record_hook_failure(state.sink, exc) @@ -553,7 +553,7 @@ def pytest_runtest_teardown(item: Any, nextitem: Any) -> Any: if phase is not None: try: phase[0].sink.snapshot_apps(_model_of) - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(phase[0].sink, exc) _phase_done(phase) @@ -561,7 +561,7 @@ def pytest_runtest_teardown(item: Any, nextitem: Any) -> Any: def _advisors(state: _State) -> None: try: _run_advisors(state) - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(state.sink, exc) @@ -587,7 +587,7 @@ def _refresh_report_after_hook_failure(state: _State, config: Any, warning: str) data["warnings"].append(warning) try: write_report_files(state, data) - except Exception as write_exc: # noqa: BLE001 + except Exception as write_exc: _record_hook_failure(state.sink, write_exc) @@ -595,7 +595,7 @@ def _final_facts(state: _State) -> SessionFacts: sink = state.sink try: sink.snapshot_apps(_model_of, force=True) - except Exception as exc: # noqa: BLE001 + except Exception as exc: _record_hook_failure(sink, exc) facts = sink.facts facts.untraced_drivers.update(module for module in outcome.DRIVER_DIALECTS if module in sys.modules) @@ -615,12 +615,12 @@ def pytest_testnodedown(node: Any, error: Any) -> None: if state is None: return _collect_worker_data(state, node, error) - except Exception as exc: # noqa: BLE001 + except Exception as exc: if state is not None: _record_hook_failure(state.sink, exc) try: state.missing_workers.append(getattr(getattr(node, "gateway", None), "id", "unknown")) - except Exception as append_exc: # noqa: BLE001 + except Exception as append_exc: _record_hook_failure(state.sink, append_exc) @@ -642,7 +642,7 @@ def _collect_worker_data(state: _State, node: Any, error: Any) -> None: def pytest_unconfigure(config: Any) -> None: try: _detach(config) - except Exception as exc: # noqa: BLE001 + except Exception as exc: state = _state(config) if state is not None: _record_hook_failure(state.sink, exc) diff --git a/src/sharpit/pytest_plugin/apps.py b/src/sharpit/pytest_plugin/apps.py index 526c7665b..cbb47e5fb 100644 --- a/src/sharpit/pytest_plugin/apps.py +++ b/src/sharpit/pytest_plugin/apps.py @@ -107,7 +107,7 @@ def _mounted(app: object, mounts: frozenset[type]) -> list[int]: """Apps reachable through the candidate's Mount/Host routes (subclasses, middleware wrappers included).""" try: routes = list(cast("Any", app).routes) - except Exception: # noqa: BLE001 - introspection is defensive + except Exception: return [] # shortcut: one route level; a mount nested inside a mounted app is not followed return [i for r in routes if not mounts.isdisjoint(type(r).__mro__) for i in _unwrap(getattr(r, "app", None))] @@ -198,7 +198,7 @@ def _name_detecting_workers(parts: Sequence[Any]) -> None: def _signature(target: Callable[..., object]) -> inspect.Signature: """The call signature, annotations left unevaluated: only the parameters are read.""" if sys.version_info >= (3, 14): # deferred annotations (PEP 649): evaluating one may name a TYPE_CHECKING import - from annotationlib import Format # noqa: PLC0415 - Python 3.14+ only + from annotationlib import Format return inspect.signature(target, annotation_format=Format.FORWARDREF) return inspect.signature(target) @@ -225,7 +225,7 @@ def _type_name(target: object) -> str: kind = type(target) try: parts = (type.__getattribute__(kind, "__module__"), type.__getattribute__(kind, "__qualname__")) - except Exception: # noqa: BLE001 - a host metaclass never breaks the report + except Exception: return "?" return ".".join(part if type(part) is str else "?" for part in parts) @@ -281,7 +281,7 @@ def _configured_models( ) return None return [(name, model)] - except Exception as exc: # noqa: BLE001 + except Exception as exc: state.sink.facts.advisor_runs.append( AdvisorRun( "rest-api", diff --git a/src/sharpit/pytest_plugin/http_security_asgi.py b/src/sharpit/pytest_plugin/http_security_asgi.py index 27639be81..87861b9cd 100644 --- a/src/sharpit/pytest_plugin/http_security_asgi.py +++ b/src/sharpit/pytest_plugin/http_security_asgi.py @@ -73,7 +73,7 @@ def _is_sharpit(self, scope: MutableMapping[str, Any]) -> bool: self._sharpit_mounts = (len(routes), paths) path = str(scope.get("path", "")) return any(path == mount or path.startswith(f"{mount}/") for mount in self._sharpit_mounts[1]) - except Exception: # noqa: BLE001 - introspection is defensive + except Exception: return False def _observe(self, scope: MutableMapping[str, Any], status: int, names: list[str]) -> None: @@ -92,7 +92,7 @@ def _template(self, route: object) -> str | None: if cached is None or cached[0] is not route: try: found = _find_template(list(getattr(self.__wrapped__, "routes", ())), route) - except Exception: # noqa: BLE001 - introspection is defensive + except Exception: found = None cached = self._sharpit_templates[id(route)] = (route, found) return cached[1] diff --git a/src/sharpit/pytest_plugin/http_security_flask.py b/src/sharpit/pytest_plugin/http_security_flask.py index b23ae0c70..496e99124 100644 --- a/src/sharpit/pytest_plugin/http_security_flask.py +++ b/src/sharpit/pytest_plugin/http_security_flask.py @@ -35,7 +35,7 @@ def route_of(app: Any, environ: dict[str, Any]) -> tuple[str, str]: except NotFound: return "not_found", "" return "matched", normalize_route(str(rule.rule)) - except Exception: # noqa: BLE001 - introspection is defensive + except Exception: return "unobservable", "" diff --git a/src/sharpit/pytest_plugin/report_io.py b/src/sharpit/pytest_plugin/report_io.py index 826d4819d..0afe1fa72 100644 --- a/src/sharpit/pytest_plugin/report_io.py +++ b/src/sharpit/pytest_plugin/report_io.py @@ -76,7 +76,7 @@ def write_report(state: Any, session: Any, exitstatus: int) -> None: session.config._sharpit_report = data except pytest.UsageError: raise - except Exception as exc: # noqa: BLE001 + except Exception as exc: plugin._record_hook_failure(sink, exc) if exitstatus == 0: session.exitstatus = 1 diff --git a/src/sharpit/pytest_plugin/session.py b/src/sharpit/pytest_plugin/session.py index 3c320d3f2..ab2c3e199 100644 --- a/src/sharpit/pytest_plugin/session.py +++ b/src/sharpit/pytest_plugin/session.py @@ -122,7 +122,7 @@ def pytest_runtest_makereport(item: Any, call: Any) -> Any: report_obj.longrepr = f"{report_obj.longrepr}{'\n'.join(messages)}" report_obj.outcome = "failed" test.outcome = "failed" - except Exception as exc: # noqa: BLE001 + except Exception as exc: plugin._record_hook_failure(state.sink, exc) @@ -175,7 +175,7 @@ def _partial_facts(state: Any, session: Any) -> dict[str, Any]: def _finish_worker(plugin: Any, state: Any, session: Any, local_partial: dict[str, Any]) -> None: try: plugin._final_facts(state) - except Exception as exc: # noqa: BLE001 + except Exception as exc: plugin._record_hook_failure(state.sink, exc) plugin._advisors(state) try: @@ -186,7 +186,7 @@ def _finish_worker(plugin: Any, state: Any, session: Any, local_partial: dict[st names = getattr(state, "autodetected", None) snapshot = names is None and state.options.advisors and not state.options.app session.config.workeroutput[APPS_KEY] = {"names": names, "snapshot": snapshot} - except Exception as exc: # noqa: BLE001 + except Exception as exc: plugin._record_hook_failure(state.sink, exc) @@ -197,7 +197,7 @@ def _finish_controller(plugin: Any, state: Any, session: Any, exitstatus: int, l snapshot = getattr(state, "autodetect_snapshot", False) try: reconcile_workers(state.parts, names, state.options.require_app, snapshot) - except Exception as exc: # noqa: BLE001 + except Exception as exc: plugin._record_hook_failure(state.sink, exc) if snapshot: # an installed app was assessed: autodetect did not decide anything state.autodetected = None @@ -211,7 +211,7 @@ def pytest_sessionfinish(session: Any, exitstatus: int) -> None: state = None try: state = plugin._state(session.config) - except Exception as exc: # noqa: BLE001 + except Exception as exc: fallback = plugin._active_state if fallback is not None: plugin._record_hook_failure(fallback.sink, exc) diff --git a/src/sharpit/pytest_plugin/swallowed.py b/src/sharpit/pytest_plugin/swallowed.py index cbdeb3232..e0ca9f863 100644 --- a/src/sharpit/pytest_plugin/swallowed.py +++ b/src/sharpit/pytest_plugin/swallowed.py @@ -97,7 +97,7 @@ def _handled(self, code: CodeType, offset: int, exc: BaseException) -> None: fact = _fact(code, offset, type(exc), self._root, self._cwd) if fact is not None and self._sink is not None: self._sink(test, replace(fact, test_double=True) if self._is_double(test, fact, exc) else fact) - except Exception as error: # noqa: BLE001 - a raising callback would surface in the host's code + except Exception as error: if not self._failed and self._on_error is not None: self._failed = True self._on_error(error) @@ -147,7 +147,7 @@ def attach_session(config: Any, state: Any) -> None: "limitations": [], } state.sink.facts.sources.append(source) - except Exception as exc: # noqa: BLE001 + except Exception as exc: plugin._record_hook_failure(state.sink, exc) @@ -157,7 +157,7 @@ def detach_session(state: Any) -> None: return try: capture.detach() - except Exception as exc: # noqa: BLE001 + except Exception as exc: from sharpit import pytest_plugin cast(Any, pytest_plugin)._record_hook_failure(state.sink, exc) diff --git a/src/sharpit/pytest_plugin/terminal.py b/src/sharpit/pytest_plugin/terminal.py index 270c91db8..be57c5415 100644 --- a/src/sharpit/pytest_plugin/terminal.py +++ b/src/sharpit/pytest_plugin/terminal.py @@ -30,7 +30,7 @@ def pytest_terminal_summary(terminalreporter: Any, exitstatus: int, config: Any) if (notice := app_notice(getattr(state, "autodetected", None), state.options.require_app, data)) is not None: terminalreporter.write_line(notice) _write_summary(terminalreporter, config, state, plugin, data) - except Exception as exc: # noqa: BLE001 + except Exception as exc: plugin._refresh_report_after_hook_failure(state, config, plugin._record_hook_failure(state.sink, exc)) @@ -150,7 +150,7 @@ def _write_coverage(terminalreporter: Any, state: Any, data: dict[str, Any], *, checked.extend(f"{_advisor_name(advisor)} advisor" for advisor in sorted(ran)) unchecked = [_advisor_name(spec.id) for spec in ADVISORS if spec.id not in ran | {TEST_RUNTIME_GATES}] terminalreporter.write_line(f"sharpit checked: {', '.join(checked)}{capture_note}") - except Exception: # noqa: BLE001 + except Exception: terminalreporter.write_line("sharpit could not list what it checked") unchecked = [_advisor_name(spec.id) for spec in ADVISORS if spec.id != TEST_RUNTIME_GATES] terminalreporter.write_line( diff --git a/tests/conftest.py b/tests/conftest.py index dc28d7988..745ec86cf 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -31,7 +31,7 @@ Path(tempfile.gettempdir()) / f"sharpit-claude-code-{os.getpid()}" ) -from hypothesis import settings # noqa: E402 +from hypothesis import settings import sharpit.settings as sharpit_settings from sharpit.engine import sqla @@ -301,7 +301,7 @@ def _interpreter_state() -> dict[str, object]: def _exempt_caller() -> bool: - frame = sys._getframe(2) # noqa: SLF001 - the spy's caller and up + frame = sys._getframe(2) while frame is not None: name = str(frame.f_globals.get("__name__", "")) if any(name == e or name.startswith(e + ".") for e in SOURCE_READ_EXEMPT): diff --git a/tests/docs/test_agent_playbooks_and_guide.py b/tests/docs/test_agent_playbooks_and_guide.py index 3112f7194..f42aee0ff 100644 --- a/tests/docs/test_agent_playbooks_and_guide.py +++ b/tests/docs/test_agent_playbooks_and_guide.py @@ -354,7 +354,7 @@ def test_all_cited_cli_commands_parse(file_path: Path) -> None: parser.parse_args(tokens) except SystemExit as exc: failed_commands.append((raw_cmd, str(exc))) - except Exception as exc: # noqa: BLE001 + except Exception as exc: failed_commands.append((raw_cmd, str(exc))) assert not failed_commands, f"Failed to parse CLI commands in {file_path.name}: {failed_commands}" diff --git a/tests/docs/test_parity_matrix.py b/tests/docs/test_parity_matrix.py index 285cfaecf..d5afad6c5 100644 --- a/tests/docs/test_parity_matrix.py +++ b/tests/docs/test_parity_matrix.py @@ -9,14 +9,14 @@ pytest.importorskip("fastapi") -from fastapi.testclient import TestClient # noqa: E402 - -from fastapi import FastAPI # noqa: E402 -from sharpit import install # noqa: E402 -from sharpit.engine.collectors.insights.registry import KINDS # noqa: E402 -from sharpit.engine.collectors.insights.snapshot import PRODUCED_SOURCES # noqa: E402 -from sharpit.engine.panels import PANELS # noqa: E402 -from sharpit.engine.tools import TOOLS # noqa: E402 +from fastapi.testclient import TestClient + +from fastapi import FastAPI +from sharpit import install +from sharpit.engine.collectors.insights.registry import KINDS +from sharpit.engine.collectors.insights.snapshot import PRODUCED_SOURCES +from sharpit.engine.panels import PANELS +from sharpit.engine.tools import TOOLS ROOT = Path(__file__).resolve().parents[2] BOOTUI = ROOT / "tests" / "fixtures" / "bootui" / "2.5.0" diff --git a/tests/docs/test_readme_claims.py b/tests/docs/test_readme_claims.py index 819cb5708..582d96d23 100644 --- a/tests/docs/test_readme_claims.py +++ b/tests/docs/test_readme_claims.py @@ -8,10 +8,10 @@ pytest.importorskip("fastapi") -from fastapi.testclient import TestClient # noqa: E402 +from fastapi.testclient import TestClient -from fastapi import FastAPI # noqa: E402 -from sharpit import install # noqa: E402 +from fastapi import FastAPI +from sharpit import install ROOT = Path(__file__).resolve().parents[2] README = ROOT / "README.md" diff --git a/tests/engine/advisors/test_registry.py b/tests/engine/advisors/test_registry.py index b0271c994..a647a041c 100644 --- a/tests/engine/advisors/test_registry.py +++ b/tests/engine/advisors/test_registry.py @@ -90,9 +90,7 @@ def test_registry_is_static(): "from sharpit.engine.advisors.dismissals import owning_panel as o;" "print(o('RAPI-MAP-001'), o('V-1::pypi:w'), o('test-runtime:sharpit.x:0123456789abcdef'))" ) - out = subprocess.run( # noqa: S603 - fixed interpreter and code - [sys.executable, "-c", code], capture_output=True, text=True, check=True - ) + out = subprocess.run([sys.executable, "-c", code], capture_output=True, text=True, check=True) assert out.stdout.split() == ["rest-api", "vulnerabilities", "None"] diff --git a/tests/engine/capture/test_connection_journal.py b/tests/engine/capture/test_connection_journal.py index a2ebb2369..93633b902 100644 --- a/tests/engine/capture/test_connection_journal.py +++ b/tests/engine/capture/test_connection_journal.py @@ -184,7 +184,7 @@ def test_connection_journal_data_source_never_carries_the_url_or_password(exposu def test_connection_journal_second_checkin_is_ignored(): handle = _install() with handle.engine.connect() as conn: - record = conn.connection._connection_record # noqa: SLF001 + record = conn.connection._connection_record assert len(_records(handle)) == 1 connections.checkin(record.dbapi_connection, record) # a live release: None is skipped @@ -196,7 +196,7 @@ def test_connection_journal_a_stale_checkout_is_not_offered_at_a_later_release() handle = _install() with handle.engine.connect() as conn: - record = conn.connection._connection_record # noqa: SLF001 + record = conn.connection._connection_record baseline = len(_records(handle)) record.info[connections.CHECKOUT_KEY] = connections.Checkout( [handle.context], handle.engine.pool, None @@ -490,7 +490,7 @@ def test_connection_journal_count_is_unknown_when_the_rows_left_the_trace_ring() # review finding (0.9.0): a raw sqlite3 statement on the same thread was counted as the held connection's def test_connection_journal_never_counts_a_raw_sqlite3_statement_as_the_connections(): - import sqlite3 # noqa: PLC0415 + import sqlite3 handle = _install() raw = sqlite3.connect(":memory:") diff --git a/tests/engine/capture/test_exception_journal.py b/tests/engine/capture/test_exception_journal.py index 58d95d55f..e03871616 100644 --- a/tests/engine/capture/test_exception_journal.py +++ b/tests/engine/capture/test_exception_journal.py @@ -67,7 +67,7 @@ def _records(handle: Any) -> tuple[dict[str, object], ...]: def _raised(exc: Exception) -> Exception: try: raise exc - except Exception as caught: # noqa: BLE001 + except Exception as caught: return caught @@ -106,7 +106,7 @@ def fail(n: int) -> Exception: if n: raise Brewing("a") raise Brewing("b") - except Exception as caught: # noqa: BLE001 + except Exception as caught: return caught store.record(fail(1), "log", None, "t") @@ -232,7 +232,7 @@ def broken(*_args: object) -> list[str]: escaped: list[Exception] = [] try: store.record(_raised(Brewing("x")), "handler", None, "t") - except Exception as error: # noqa: BLE001 - the defect: a broken build reaches the host + except Exception as error: escaped.append(error) assert escaped == [] assert store.report()["totalExceptions"] == 1 diff --git a/tests/engine/capture/test_exception_literals.py b/tests/engine/capture/test_exception_literals.py index 6e0ed3067..1a2ec57b6 100644 --- a/tests/engine/capture/test_exception_literals.py +++ b/tests/engine/capture/test_exception_literals.py @@ -29,7 +29,7 @@ class Color(enum.Enum): def _raised(factory: Callable[[], object]) -> BaseException: try: factory() - except BaseException as exc: # noqa: BLE001 + except BaseException as exc: return exc raise AssertionError("the call did not raise") diff --git a/tests/engine/capture/test_exceptions.py b/tests/engine/capture/test_exceptions.py index d3b305a4e..9a8b3121e 100644 --- a/tests/engine/capture/test_exceptions.py +++ b/tests/engine/capture/test_exceptions.py @@ -42,7 +42,7 @@ def _store(groups: int = 100, occurrences: int = 25, frames: int = 50, masker: M def _raised(factory: Callable[[], BaseException]) -> BaseException: try: raise factory() - except BaseException as exc: # noqa: BLE001 + except BaseException as exc: return exc @@ -382,7 +382,7 @@ def test_no_locals_in_frames(): store = _store() def leaky() -> None: - password = "hunter2-local" # noqa: S105 + password = "hunter2-local" raise RuntimeError(len(password)) _record(store, _raised(lambda: leaky() or RuntimeError())) # type: ignore[func-returns-value] @@ -420,7 +420,7 @@ def spy(_masker: Masker, text: str, dialect: Dialect) -> str: return text monkeypatch.setattr(exceptions, "error_text", spy) - ExceptionStore(10, 5, 5, MASKED, application=lambda: Dialect.SQLITE)._message("failed") # noqa: SLF001 + ExceptionStore(10, 5, 5, MASKED, application=lambda: Dialect.SQLITE)._message("failed") assert seen == [Dialect.SQLITE] diff --git a/tests/engine/capture/test_log_handler_locking.py b/tests/engine/capture/test_log_handler_locking.py index bf7c3c636..92f406bd6 100644 --- a/tests/engine/capture/test_log_handler_locking.py +++ b/tests/engine/capture/test_log_handler_locking.py @@ -152,7 +152,7 @@ def _run_child(script: str, tmp_path: Path) -> str: never a ``TimeoutExpired`` crash.""" out, err = tmp_path / "child.out", tmp_path / "child.err" with out.open("w") as stdout, err.open("w") as stderr: - child = subprocess.Popen( # noqa: S603 - our own interpreter and a literal script + child = subprocess.Popen( [sys.executable, "-c", textwrap.dedent(script)], stdout=stdout, stderr=stderr, diff --git a/tests/engine/capture/test_log_journal.py b/tests/engine/capture/test_log_journal.py index 19ee03884..a07528057 100644 --- a/tests/engine/capture/test_log_journal.py +++ b/tests/engine/capture/test_log_journal.py @@ -300,7 +300,7 @@ def broken() -> str | None: escaped: list[Exception] = [] try: _emit(handle, "host log call") - except Exception as error: # noqa: BLE001 - the defect: a broken build reaches the host + except Exception as error: escaped.append(error) assert escaped == [] assert _records(handle) == () diff --git a/tests/engine/capture/test_logtail.py b/tests/engine/capture/test_logtail.py index b0c5b7899..6bf0253e7 100644 --- a/tests/engine/capture/test_logtail.py +++ b/tests/engine/capture/test_logtail.py @@ -323,7 +323,7 @@ def __iter__(self) -> Iterator[Any]: gc.collect() return super().__iter__() - buffer._lines = Collected(buffer._lines) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + buffer._lines = Collected(buffer._lines) # pyright: ignore[reportPrivateUsage] finished = threading.Event() def run() -> None: diff --git a/tests/engine/capture/test_mail.py b/tests/engine/capture/test_mail.py index b465fd368..39d8b425e 100644 --- a/tests/engine/capture/test_mail.py +++ b/tests/engine/capture/test_mail.py @@ -688,8 +688,8 @@ def test_uninstall_leaves_no_recorder_when_smtplib_cannot_be_wrapped(monkeypatch # code-review finding 1: a patched sendmail made arm() answer False and the teardown was never registered monkeypatch.setattr(smtplib.SMTP, "sendmail", unittest.mock.MagicMock(name="host_sendmail")) with harness(email_dev_trap=True): - assert mail._live() # noqa: SLF001 - assert mail._live() == [] # noqa: SLF001 + assert mail._live() + assert mail._live() == [] class _SeesTheImport(importlib.abc.MetaPathFinder): @@ -705,9 +705,9 @@ def find_spec(self, fullname: str, path: Any = None, target: Any = None) -> None def _behind_the_hook(monkeypatch: pytest.MonkeyPatch, finder: importlib.abc.MetaPathFinder) -> None: """Put ``finder`` right behind the trap hook, wherever an earlier test left the hook (it stays on ``meta_path``).""" monkeypatch.setattr(sys, "meta_path", list(sys.meta_path)) - if mail._FINDER not in sys.meta_path: # noqa: SLF001 - sys.meta_path.insert(0, mail._FINDER) # noqa: SLF001 - sys.meta_path.insert(sys.meta_path.index(mail._FINDER) + 1, finder) # noqa: SLF001 + if mail._FINDER not in sys.meta_path: + sys.meta_path.insert(0, mail._FINDER) + sys.meta_path.insert(sys.meta_path.index(mail._FINDER) + 1, finder) def test_a_late_import_still_reaches_the_finders_behind_the_trap_hook( @@ -868,7 +868,7 @@ def create_module(self, _spec: Any) -> None: return None def exec_module(self, module: types.ModuleType) -> None: - exec(self.sources[module.__name__], module.__dict__) # noqa: S102 - a test stand-in's own source + exec(self.sources[module.__name__], module.__dict__) class _SharedLoaderFinder(importlib.abc.MetaPathFinder): @@ -1094,14 +1094,14 @@ def other_thread() -> None: modules.append(late_aiosmtplib()) imported.set() - real_watch = mail._watch_import # noqa: SLF001 + real_watch = mail._watch_import def watch_after_the_import() -> None: reached.set() assert imported.wait(5) real_watch() - monkeypatch.setattr(sys, "meta_path", [f for f in sys.meta_path if f is not mail._FINDER]) # noqa: SLF001 + monkeypatch.setattr(sys, "meta_path", [f for f in sys.meta_path if f is not mail._FINDER]) monkeypatch.setattr(mail, "_watch_import", watch_after_the_import) worker = threading.Thread(target=other_thread) worker.start() @@ -1165,10 +1165,10 @@ def test_a_request_start_never_waits_for_the_mail_registry_lock( still_held: list[bool] = [] def holder() -> None: - with mail._LOCK: # noqa: SLF001 - another thread is inside arm() + with mail._LOCK: holding.set() release.wait(10) - still_held.append(mail._LOCK.locked()) # noqa: SLF001 + still_held.append(mail._LOCK.locked()) holder_thread = threading.Thread(target=holder) holder_thread.start() @@ -1196,7 +1196,7 @@ def test_a_reload_that_replaces_the_smtp_class_is_wrapped_again( mail.ensure_wrapped() assert _wrapped_after_late_import(module) namespace: dict[str, Any] = {} - exec(_LATE_AIOSMTPLIB, namespace) # noqa: S102 - what importlib.reload does to the same module object + exec(_LATE_AIOSMTPLIB, namespace) module.SMTP = namespace["SMTP"] # type: ignore[attr-defined] assert not _wrapped_after_late_import(module) mail.ensure_wrapped() @@ -1209,7 +1209,7 @@ def test_the_module_that_just_loaded_is_the_one_wrapped( # PR #182 r4 review: _wrap_senders looked "aiosmtplib" up again in sys.modules, not the module it was given with harness(email_dev_trap=True) as h: module = _loaded_past_the_hook(h, late_aiosmtplib, monkeypatch) - real_unwrap = mail._unwrap # noqa: SLF001 + real_unwrap = mail._unwrap def swap_then_unwrap(families: Any) -> None: sys.modules["aiosmtplib"] = types.ModuleType("aiosmtplib") # another thread replaced the entry @@ -1232,7 +1232,7 @@ def test_an_import_error_from_a_finder_behind_the_hook_is_not_replaced_by_the_re ): # PR #182 r4 review: a finder's own ImportError means nothing loads, so the host must see that error with harness(email_dev_trap=True): - behind = sys.meta_path.index(mail._FINDER) + 1 # noqa: SLF001 + behind = sys.meta_path.index(mail._FINDER) + 1 monkeypatch.setattr(sys, "meta_path", [*sys.meta_path[:behind], _FailingFinder(), *sys.meta_path[behind:]]) with pytest.raises(ImportError, match="behind failed"): late_aiosmtplib() @@ -1251,7 +1251,7 @@ def test_a_hostile_aiosmtplib_module_never_raises_into_the_request_start(monkeyp raised: Exception | None = None try: mail.ensure_wrapped() - except Exception as exc: # noqa: BLE001 - the assertion below names it + except Exception as exc: raised = exc assert raised is None diff --git a/tests/engine/capture/test_securitylogs.py b/tests/engine/capture/test_securitylogs.py index beb90b8e4..39b52b34f 100644 --- a/tests/engine/capture/test_securitylogs.py +++ b/tests/engine/capture/test_securitylogs.py @@ -209,7 +209,7 @@ def test_add_signals_the_change_stream() -> None: class _HostileUser: - calls: list[str] = [] # noqa: RUF012 - a class-level probe the properties append to + calls: list[str] = [] @property def identity(self) -> str: diff --git a/tests/engine/capture/test_sql_journal.py b/tests/engine/capture/test_sql_journal.py index e84138a9b..6f744c75c 100644 --- a/tests/engine/capture/test_sql_journal.py +++ b/tests/engine/capture/test_sql_journal.py @@ -151,8 +151,8 @@ def test_sql_journal_executemany_records_its_batch_size(): def test_sql_journal_event_content_is_this_exact_dict(monkeypatch: pytest.MonkeyPatch): """W5a P-sql r2: the hot-path rewrite changes no field; the clocks are frozen, so every value is known.""" - from sharpit.engine.sources import dispatch # noqa: PLC0415 - from sharpit.engine.sqltext import Dialect # noqa: PLC0415 + from sharpit.engine.sources import dispatch + from sharpit.engine.sqltext import Dialect handle, _ = _install(sql_trace_capture_call_site=False) monkeypatch.setattr("time.time_ns", lambda: 1_700_000_000_123_456_789) @@ -197,10 +197,10 @@ def test_sql_journal_event_size_is_what_the_flat_walk_charges( monkeypatch: pytest.MonkeyPatch, info: str | None, phase: str | None, site: str | None, trace_id: str | None ): """The producer charges the event's size itself (no walk per statement): it must equal the journal's own walk.""" - from sharpit.engine import otel # noqa: PLC0415 - from sharpit.engine.capture.journal import _flat # noqa: PLC0415 # pyright: ignore[reportPrivateUsage] - from sharpit.engine.sources import dispatch # noqa: PLC0415 - from sharpit.engine.sqltext import Dialect # noqa: PLC0415 + from sharpit.engine import otel + from sharpit.engine.capture.journal import _flat # pyright: ignore[reportPrivateUsage] + from sharpit.engine.sources import dispatch + from sharpit.engine.sqltext import Dialect monkeypatch.setattr(otel, "current_trace_id", lambda: trace_id) handle, _ = _install() @@ -222,8 +222,8 @@ def test_sql_journal_event_size_is_what_the_flat_walk_charges( def _event(**fields: Any) -> Any: - from sharpit.engine.sources import dispatch # noqa: PLC0415 - from sharpit.engine.sqltext import Dialect # noqa: PLC0415 + from sharpit.engine.sources import dispatch + from sharpit.engine.sqltext import Dialect values = { "source": "sqlalchemy", "sql": "select 1", "parameters": None, "executemany": False, "batch_size": None, @@ -254,7 +254,7 @@ def test_sql_journal_paused_panel_and_sql_not_a_journal_source_records_nothing() def test_sql_journal_phase_is_null_outside_a_request_even_in_the_lifespan(): """W5a P-sql r3: BootUI's RequestPhase is FILTERS/HANDLER/RESPONSE in a request, null outside (SqlPayload.java).""" - from sharpit.engine.sources import dispatch # noqa: PLC0415 + from sharpit.engine.sources import dispatch handle, _ = _install() handle.context.capture.sql_trace.lifespan_phase = "STARTUP" @@ -264,9 +264,9 @@ def test_sql_journal_phase_is_null_outside_a_request_even_in_the_lifespan(): def test_sql_journal_batch_size_of_a_sqlite3_executemany_fed_a_generator_is_unknown_zero(): """W5a P-sql r3: a batch whose size is not known is 0, never read as unbatched (SqlTraceRecorder.java:650-652).""" - import sqlite3 # noqa: PLC0415 + import sqlite3 - from sharpit.engine.sources import sqlite # noqa: PLC0415 + from sharpit.engine.sources import sqlite handle, _ = _install() try: @@ -300,7 +300,7 @@ def boom(*_args: object, **_kwargs: object) -> bool: def test_sql_journal_event_request_id_only_for_a_request_of_its_own_context(): """The context check in ``_journal_event`` itself: routing already guarantees it, the event does not rely on it.""" - from sharpit.engine.sources import dispatch # noqa: PLC0415 + from sharpit.engine.sources import dispatch handle, _ = _install() recorder = handle.context.capture.sql_trace @@ -315,7 +315,7 @@ def test_sql_journal_event_request_id_only_for_a_request_of_its_own_context(): @pytest.mark.parametrize("in_request", [True, False]) def test_the_loss_start_the_sql_producer_hands_the_ring_is_the_one_the_ring_would_read(in_request: bool): """``dispatch`` passes ``started`` so an eviction reads an int: it must equal what ``_started`` finds.""" - from sharpit.engine.capture.journal import _started # noqa: PLC0415 # pyright: ignore[reportPrivateUsage] + from sharpit.engine.capture.journal import _started # pyright: ignore[reportPrivateUsage] handle, engine = _install() journal = handle.context.capture.journal diff --git a/tests/engine/capture/test_sqlscan.py b/tests/engine/capture/test_sqlscan.py index 44d1e0950..bb424b5a3 100644 --- a/tests/engine/capture/test_sqlscan.py +++ b/tests/engine/capture/test_sqlscan.py @@ -130,7 +130,7 @@ def test_hidden_spans_may_overlap_and_run_off_the_text() -> None: def test_shown_scans_the_raw_text_once(monkeypatch: pytest.MonkeyPatch) -> None: - real, seen = sqlscan._scan, [] # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + real, seen = sqlscan._scan, [] # pyright: ignore[reportPrivateUsage] def spy(sql: str, dialect: Dialect) -> object: seen.append(sql) diff --git a/tests/engine/capture/test_sqltrace.py b/tests/engine/capture/test_sqltrace.py index df3494678..f75a30799 100644 --- a/tests/engine/capture/test_sqltrace.py +++ b/tests/engine/capture/test_sqltrace.py @@ -452,7 +452,7 @@ def reader() -> None: while not stop.is_set(): try: recorder.report([]) - except BaseException as exc: # noqa: BLE001 - surfaced by the assertion below + except BaseException as exc: errors.append(exc) def writer(n: int) -> None: @@ -661,7 +661,7 @@ def test_a_shape_without_a_fingerprint_is_not_aggregated(monkeypatch: pytest.Mon def _app_function() -> str | None: - return sqltrace.call_site(sys._getframe()) # noqa: SLF001 + return sqltrace.call_site(sys._getframe()) def test_call_site_is_first_application_frame(): @@ -691,7 +691,7 @@ def test_call_site_without_greenlet(monkeypatch: pytest.MonkeyPatch): def test_call_site_walk_is_bounded(): # derived: spec §7.3, at most 64 frames are walked - here = sys._getframe() # noqa: SLF001 + here = sys._getframe() assert sqltrace.call_site(_library_frames(63, here)) is not None # the app frame is the 64th assert sqltrace.call_site(_library_frames(64, here)) is None diff --git a/tests/engine/capture/test_sqltrace_reentry.py b/tests/engine/capture/test_sqltrace_reentry.py index aaf53b19b..22cd8c853 100644 --- a/tests/engine/capture/test_sqltrace_reentry.py +++ b/tests/engine/capture/test_sqltrace_reentry.py @@ -63,7 +63,7 @@ def append(self, item: Any) -> None: self.collecting = False _collect(lambda: _record(recorder, "select 2")) - recorder._entries = Collected(maxlen=recorder.max_entries) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + recorder._entries = Collected(maxlen=recorder.max_entries) # pyright: ignore[reportPrivateUsage] assert _finishes(lambda: _record(recorder)) @@ -80,7 +80,7 @@ def append(self, item: Any) -> None: self.collecting = False _collect(lambda: _record(recorder, "select 2")) - recorder._entries = Collected(maxlen=recorder.max_entries) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + recorder._entries = Collected(maxlen=recorder.max_entries) # pyright: ignore[reportPrivateUsage] assert _finishes(lambda: _record(recorder)) assert recorder.totals().statements == 2 @@ -101,7 +101,7 @@ def get(self, key: str, default: Any = None) -> Any: _collect(self.clear) return found - recorder._aggregates = Collected(recorder._aggregates) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + recorder._aggregates = Collected(recorder._aggregates) # pyright: ignore[reportPrivateUsage] assert _finishes(lambda: _record(recorder)) assert recorder.aggregate_count == 1 @@ -112,7 +112,7 @@ def test_a_read_waits_for_no_writer(read: Callable[[SqlTraceRecorder], object]): recorder = _recorder() _record(recorder) - with recorder._lock: # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + with recorder._lock: # pyright: ignore[reportPrivateUsage] assert _finishes(lambda: read(recorder)) @@ -132,7 +132,7 @@ def __getattr__(self, name: str) -> Any: _collect(lambda: _record(recorder, "select 1 from c")) return getattr(self.aggregate, name) - groups = recorder._aggregates # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + groups = recorder._aggregates # pyright: ignore[reportPrivateUsage] first = next(iter(groups)) groups[first] = Collecting(groups[first]) # pyright: ignore[reportArgumentType] errors: list[RuntimeError] = [] @@ -153,7 +153,7 @@ def test_a_report_waits_for_a_writer_so_it_reads_one_view(): _record(recorder) finished = threading.Event() - with recorder._lock: # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + with recorder._lock: # pyright: ignore[reportPrivateUsage] threading.Thread(target=lambda: (recorder.report([]), finished.set()), daemon=True).start() assert not finished.wait(0.5), "report read the recorder while a writer held it" diff --git a/tests/engine/capture/test_traces.py b/tests/engine/capture/test_traces.py index 50e8816e2..fce118472 100644 --- a/tests/engine/capture/test_traces.py +++ b/tests/engine/capture/test_traces.py @@ -584,7 +584,7 @@ def test_mysql_span_status_message_reads_as_the_span_dialect(): def test_span_surface_resolves_its_application_family() -> None: buf = SpanBuffer(MASKED, application=lambda: Dialect.POSTGRESQL, capacity=10, self_path="/sharpit") raw = span(kind="CLIENT", attributes={"db.system": "mysql", "db.statement": "select 1"}) - shown = attribute(buf._span(raw), "db.statement") # noqa: SLF001 + shown = attribute(buf._span(raw), "db.statement") assert shown == "[statement hidden: unsupported database]" diff --git a/tests/engine/collectors/architecture/test_architecture_report.py b/tests/engine/collectors/architecture/test_architecture_report.py index 714349cf8..fb5f28fac 100644 --- a/tests/engine/collectors/architecture/test_architecture_report.py +++ b/tests/engine/collectors/architecture/test_architecture_report.py @@ -46,10 +46,10 @@ def test_post_scan_golden_parity(tmp_path: Path) -> None: def test_post_scan_golden_parity_on_fixture_app(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: # ported: ArchitectureScannerTests.scanRefreshesCachedReportAndAppliesDismissals (review fix 8: a real scan) - import sys # noqa: PLC0415 - import types # noqa: PLC0415 + import sys + import types - from sharpit.engine.collectors.architecture.report import scan_application # noqa: PLC0415 + from sharpit.engine.collectors.architecture.report import scan_application pkg = tmp_path / "arch_golden_app" pkg.mkdir() diff --git a/tests/engine/collectors/architecture/test_graph.py b/tests/engine/collectors/architecture/test_graph.py index e38f4f697..8eecdbaf5 100644 --- a/tests/engine/collectors/architecture/test_graph.py +++ b/tests/engine/collectors/architecture/test_graph.py @@ -98,7 +98,7 @@ def test_external_imports_ignored(tmp_path: Path) -> None: def test_deep_import_chain_does_not_crash() -> None: # an import chain deeper than the interpreter's recursion limit (bound: 2,000 files), closed into one cycle - from sharpit.engine.collectors.architecture.graph import ImportEdge, ImportGraph # noqa: PLC0415 + from sharpit.engine.collectors.architecture.graph import ImportEdge, ImportGraph names = [f"deep_app.m{i:04d}" for i in range(3000)] graph = ImportGraph() diff --git a/tests/engine/collectors/fastapi_advisor/support.py b/tests/engine/collectors/fastapi_advisor/support.py index d09134bc3..1504fa160 100644 --- a/tests/engine/collectors/fastapi_advisor/support.py +++ b/tests/engine/collectors/fastapi_advisor/support.py @@ -22,7 +22,7 @@ def load_app(tmp_path: Path, source: str, name: str = "main") -> tuple[dict[str, text = textwrap.dedent(source) path.write_text(text, encoding="utf-8") namespace: dict[str, Any] = {"__name__": f"app_pkg.{name}"} - exec(compile(text, os.path.realpath(path), "exec"), namespace) # noqa: S102 - the test's own fixture source + exec(compile(text, os.path.realpath(path), "exec"), namespace) return namespace, root, build_index(root, thread=False) diff --git a/tests/engine/collectors/github/test_github_client.py b/tests/engine/collectors/github/test_github_client.py index be6787f96..018fe03ca 100644 --- a/tests/engine/collectors/github/test_github_client.py +++ b/tests/engine/collectors/github/test_github_client.py @@ -816,7 +816,7 @@ def _refresh(github: Any) -> dict[str, Any]: """``refresh``, with an escaped exception turned into a report the assertions can name (a crash is not a red).""" try: return github.refresh(repository()) - except Exception as error: # noqa: BLE001 + except Exception as error: return {"status": f"raised {type(error).__name__}", "message": None, "connected": None} diff --git a/tests/engine/collectors/pentesting/test_cookie_checks.py b/tests/engine/collectors/pentesting/test_cookie_checks.py index 757c0833c..f19f19f6a 100644 --- a/tests/engine/collectors/pentesting/test_cookie_checks.py +++ b/tests/engine/collectors/pentesting/test_cookie_checks.py @@ -60,7 +60,7 @@ def test_missing_httponly_is_medium_for_session_names_and_info_for_csrf_and_othe "so browser code can copy the token into a request header; confirm it carries no session or authentication " "material." ) - # ported: PentestingScannerTests.deletionCookiesAreIgnoredWhilePrefixedAndAdditionalSessionCookieNamesAreRecognized # noqa: E501 + # ported: PentestingScannerTests.deletionCookiesAreIgnoredWhilePrefixedAndAdditionalSessionCookieNamesAreRecognized for name in ("__Host-SESSION", "__Secure-JSESSIONID", "q_session", "q_session_admin", "remember-me"): flagged = _one(_observe(f"{name}=token; Path=/; Secure; SameSite=Lax"), "PT-A02-001") assert flagged.severity == "MEDIUM", name @@ -138,7 +138,7 @@ def test_presence_flags_and_last_samesite_silence_every_flag_check() -> None: def test_deletion_cookies_feed_no_flag_check() -> None: - # ported: PentestingScannerTests.deletionCookiesAreIgnoredWhilePrefixedAndAdditionalSessionCookieNamesAreRecognized # noqa: E501 + # ported: PentestingScannerTests.deletionCookiesAreIgnoredWhilePrefixedAndAdditionalSessionCookieNamesAreRecognized deletions = ( "JSESSIONID=; Path=/; Max-Age=0", "SESSION=expired; Path=/; Max-Age=-1", diff --git a/tests/engine/collectors/pentesting/test_cookie_observation.py b/tests/engine/collectors/pentesting/test_cookie_observation.py index 2b182b367..2b0e70b61 100644 --- a/tests/engine/collectors/pentesting/test_cookie_observation.py +++ b/tests/engine/collectors/pentesting/test_cookie_observation.py @@ -136,7 +136,7 @@ def test_samesite_and_path_classification_follow_the_last_trimmed_value() -> Non def test_deletion_cookies_are_marked_and_non_deletions_are_not() -> None: - # ported: PentestingScannerTests.deletionCookiesAreIgnoredWhilePrefixedAndAdditionalSessionCookieNamesAreRecognized # noqa: E501 + # ported: PentestingScannerTests.deletionCookiesAreIgnoredWhilePrefixedAndAdditionalSessionCookieNamesAreRecognized # Support.java:162-184: Max-Age at or below zero, or a blank/""/deleted value with a 1970 Expires. for deleted in ( "JSESSIONID=; Path=/; Max-Age=0", diff --git a/tests/engine/collectors/sideeffects/test_service.py b/tests/engine/collectors/sideeffects/test_service.py index b1a872c10..49778af6e 100644 --- a/tests/engine/collectors/sideeffects/test_service.py +++ b/tests/engine/collectors/sideeffects/test_service.py @@ -265,7 +265,7 @@ def test_a_file_row_reads_file_path_and_its_sentence() -> None: def test_a_report_written_outside_the_temporary_directory_is_an_application_write_of_its_route_by_pattern_only() -> ( None -): # noqa: E501 +): # ported: SideEffectsServiceTests.aReportWrittenOutsideTheTemporaryDirectoryIsAnApplicationWriteOfItsRouteByPatternOnly # noqa: E501 service, rows = _service_with_rows() _append( diff --git a/tests/engine/insights/test_insights_k1.py b/tests/engine/insights/test_insights_k1.py index 2b860b83f..b57c29ee8 100644 --- a/tests/engine/insights/test_insights_k1.py +++ b/tests/engine/insights/test_insights_k1.py @@ -271,7 +271,7 @@ def test_a_statement_straddling_the_request_end_is_clipped_to_it(run: Run) -> No def test_ai_calls_are_not_placed_and_the_breakdown_says_their_time_is_unattributed(run: Run) -> None: - from sharpit.engine.collectors.ai.recognizer import ai_journal_event # noqa: PLC0415 + from sharpit.engine.collectors.ai.recognizer import ai_journal_event for _ in range(6): request_id = run.request(ORDERS, 40, (10, 10)) diff --git a/tests/engine/insights/test_insights_loss.py b/tests/engine/insights/test_insights_loss.py index 5aa7b2e22..9e2837990 100644 --- a/tests/engine/insights/test_insights_loss.py +++ b/tests/engine/insights/test_insights_loss.py @@ -301,7 +301,7 @@ def test_a_view_during_a_clear_waits_for_the_loss_horizon_it_raises(monkeypatch: journal = RuntimeJournal() journal.offer({**sql("select 1", 1_005), "requestId": "r1"}) walking, release = threading.Event(), threading.Event() - real = journal_module._lost_start # noqa: SLF001 + real = journal_module._lost_start def slow(*args: Any) -> int | None: walking.set() # the clear is walking what it dropped, outside the ring lock @@ -340,7 +340,7 @@ class HostEvent(dict[str, object]): journal: RuntimeJournal def get(self, key: str, default: object = None) -> object: # type: ignore[override] - self.held.append(self.journal._owned()) # noqa: SLF001 + self.held.append(self.journal._owned()) return super().get(key, default) @@ -380,7 +380,7 @@ def test_an_eviction_is_accounted_before_the_horizon_moves() -> None: journal.offer({**sql("select 1", 1_005), "requestId": "r1"}) journal.offer({**sql("select 2", 2_005), "requestId": "r2"}) # the horizon raise fails: counted, never raised assert journal.status()["evictedEvents"] == 1 # r1 left the ring, so it is counted - assert journal._bytes == 0 # noqa: SLF001 # and its bytes are given back + assert journal._bytes == 0 # and its bytes are given back def test_clearing_walks_the_cleared_events_outside_the_ring_lock() -> None: diff --git a/tests/engine/insights/test_insights_sqlrecorded.py b/tests/engine/insights/test_insights_sqlrecorded.py index ceb9de277..9e4aff2a2 100644 --- a/tests/engine/insights/test_insights_sqlrecorded.py +++ b/tests/engine/insights/test_insights_sqlrecorded.py @@ -146,7 +146,7 @@ def _both_used(handles: list[Any]) -> Any: return ctx -# ported: RuntimeInsightsServiceTests.sqlCaptureNamesWhyStatementsAreNotRecorded # noqa: E501 +# ported: RuntimeInsightsServiceTests.sqlCaptureNamesWhyStatementsAreNotRecorded # (SqlCapture.of(wrapped, true, true): recordedExcept) # finding 3: one hook detached, the other still recording: recorded, naming what is missed def test_the_sqlalchemy_hook_suspended_is_recorded_except_sqlalchemy(handles: list[Any]) -> None: @@ -157,7 +157,7 @@ def test_the_sqlalchemy_hook_suspended_is_recorded_except_sqlalchemy(handles: li assert "SQLAlchemy" in str(capture.reason) -# ported: RuntimeInsightsServiceTests.sqlCaptureNamesWhyStatementsAreNotRecorded # noqa: E501 +# ported: RuntimeInsightsServiceTests.sqlCaptureNamesWhyStatementsAreNotRecorded # (SqlCapture.of(wrapped, true, true): recordedExcept) # finding 4: only the sqlite3 hook suspended def test_the_sqlite_hook_suspended_is_recorded_except_sqlite3(handles: list[Any]) -> None: @@ -185,7 +185,7 @@ def test_a_partly_suspended_capture_keeps_the_caveat_on_a_check_that_reads_sql(h assert SQLA_SUSPENDED in str(check["reason"]) -# ported: RuntimeInsightsServiceTests.sqlCaptureNamesWhyStatementsAreNotRecorded # noqa: E501 +# ported: RuntimeInsightsServiceTests.sqlCaptureNamesWhyStatementsAreNotRecorded # (SqlCapture.of(wrapped, true, true): recordedExcept R2DBC_NOT_RECORDED) # finding 9: SQLAlchemy older than 2.0 beside raw sqlite3: what is missed is said, and it is not "neither is in use" def test_an_unsupported_sqlalchemy_beside_sqlite3_names_the_version_it_cannot_record( @@ -199,7 +199,7 @@ def test_an_unsupported_sqlalchemy_beside_sqlite3_names_the_version_it_cannot_re assert UNSUPPORTED in str(capture.reason) -# ported: RuntimeInsightsServiceTests.sqlCaptureNamesWhyStatementsAreNotRecorded # noqa: E501 +# ported: RuntimeInsightsServiceTests.sqlCaptureNamesWhyStatementsAreNotRecorded # (SqlCapture.of(unwrapped, true, true): R2DBC_ONLY) def test_an_unsupported_sqlalchemy_and_no_sqlite3_is_not_recorded_and_names_the_version( handles: list[Any], monkeypatch: pytest.MonkeyPatch diff --git a/tests/engine/postgresql/test_sections.py b/tests/engine/postgresql/test_sections.py index 29ff54192..1699fa10e 100644 --- a/tests/engine/postgresql/test_sections.py +++ b/tests/engine/postgresql/test_sections.py @@ -456,11 +456,11 @@ def test_an_exhausted_budget_skips_the_remaining_sections() -> None: @NEEDS_PG def test_sections_on_real_server() -> None: - import asyncio # noqa: PLC0415 + import asyncio - import sqlalchemy as sa # noqa: PLC0415 + import sqlalchemy as sa - from sharpit.engine.sqla import run_db_read # noqa: PLC0415 + from sharpit.engine.sqla import run_db_read url = PG_URL.replace("postgresql://", "postgresql+psycopg://", 1) if "+" not in PG_URL.split("://")[0] else PG_URL engine = sa.create_engine(url) diff --git a/tests/engine/postgresql/test_service.py b/tests/engine/postgresql/test_service.py index ba682e87c..fe656e6e0 100644 --- a/tests/engine/postgresql/test_service.py +++ b/tests/engine/postgresql/test_service.py @@ -314,7 +314,7 @@ def test_a_connection_error_during_setup_reports_the_masked_driver_message() -> def test_a_wall_timeout_keeps_the_sections_already_read(monkeypatch: pytest.MonkeyPatch) -> None: # derived: review finding 3: the wall timeout leaves room past the read budget, and when it still fires the # sections read so far are reported (PARTIAL), not thrown away as an ERROR - import time # noqa: PLC0415 + import time monkeypatch.setattr(service, "_clock", lambda: 0.0) # the cooperative budget never runs out on its own monkeypatch.setattr(service, "READ_BUDGET", 0.2) diff --git a/tests/engine/sensors/test_sink_sensors.py b/tests/engine/sensors/test_sink_sensors.py index b4b72b005..0d2610eb3 100644 --- a/tests/engine/sensors/test_sink_sensors.py +++ b/tests/engine/sensors/test_sink_sensors.py @@ -71,7 +71,7 @@ def files( owns: bool = True, cwd: str = "/work/app", home: str = "/home/ann", - tmp: str = "/tmp", # noqa: S108 + tmp: str = "/tmp", ) -> FilesSensor: req = info(query, path) values = RequestValues() @@ -237,7 +237,7 @@ def test_without_a_matcher_every_row_is_unchanged() -> None: p_rows = p_sensor.record("subprocess.Popen", ("/usr/bin/convert", ["/usr/bin/convert", "file.pdf"], None, None)) assert [r["target"] for r in p_rows] == ["convert"] - f_sensor = FilesSensor(cwd="/work/app", home="/home/ann", tmp="/tmp") # noqa: S108 + f_sensor = FilesSensor(cwd="/work/app", home="/home/ann", tmp="/tmp") f_rows = f_sensor.record("open", ("/work/app/reports/report-42.csv", "w", 0)) assert [r["target"] for r in f_rows] == ["./reports/report-{n}.csv"] @@ -487,7 +487,7 @@ def test_a_row_of_another_install_has_no_request_id() -> None: def test_two_call_sites_of_one_pattern_share_the_first_ones() -> None: # adapted from: SideEffectsService.LIMITATION_FILES - sensor = FilesSensor(cwd="/work/app", home="/home/ann", tmp="/tmp") # noqa: S108 + sensor = FilesSensor(cwd="/work/app", home="/home/ann", tmp="/tmp") def first_helper() -> list[dict[str, Any]]: return [dict(r) for r in sensor.record("open", ("/work/app/reports/report-1.csv", "r", 0))] @@ -509,7 +509,7 @@ def second_helper() -> list[dict[str, Any]]: def test_a_file_rows_origin_follows_its_frames() -> None: # adapted from: SideEffectOrigins.origin - sensor = FilesSensor(cwd="/work/app", home="/home/ann", tmp="/tmp") # noqa: S108 + sensor = FilesSensor(cwd="/work/app", home="/home/ann", tmp="/tmp") app_rows = [dict(r) for r in sensor.record("open", ("/work/app/from_app.csv", "r", 0))] assert len(app_rows) == 1 assert app_rows[0].get("origin") == "unknown" @@ -518,7 +518,7 @@ def test_a_file_rows_origin_follows_its_frames() -> None: lib_rows: list[dict[str, Any]] = [] lib_file = os.path.join(sys.prefix, "Lib", "site-packages", "_sharpit_test_lib_origin.py") lib_ns: dict[str, Any] = {"__name__": "_sharpit_test_lib_origin", "sensor": sensor, "lib_rows": lib_rows} - exec( # noqa: S102 + exec( compile( "def lib_open():\n" " lib_rows.extend(dict(r) for r in sensor.record('open', ('/work/app/from_lib.csv', 'r', 0)))\n", @@ -537,7 +537,7 @@ def test_a_file_rows_origin_follows_its_frames() -> None: stdlib_rows: list[dict[str, Any]] = [] # Compile the target with a stdlib filename so no application or library frame is on the thread's stack stdlib_ns: dict[str, Any] = {"__name__": "os", "sensor": sensor, "stdlib_rows": stdlib_rows} - exec( # noqa: S102 + exec( compile( "def stdlib_open():\n" " stdlib_rows.extend(dict(r) for r in sensor.record('open', ('/work/app/from_stdlib.csv', 'r', 0)))\n", diff --git a/tests/engine/sensors/test_sink_values.py b/tests/engine/sensors/test_sink_values.py index 2780dc880..2011640a7 100644 --- a/tests/engine/sensors/test_sink_values.py +++ b/tests/engine/sensors/test_sink_values.py @@ -595,7 +595,7 @@ def worker(tid: int) -> None: try: held.match(info("name=alice", request_id=rid), "x/alice", "file") held.end(rid) - except Exception as exc: # noqa: BLE001 + except Exception as exc: errors.append(exc) old_interval = sys.getswitchinterval() diff --git a/tests/engine/sqltext/test_dialect_truth.py b/tests/engine/sqltext/test_dialect_truth.py index 116c9478c..0880c9b99 100644 --- a/tests/engine/sqltext/test_dialect_truth.py +++ b/tests/engine/sqltext/test_dialect_truth.py @@ -39,7 +39,7 @@ def test_a_named_driver_reads_its_block_whatever_the_dialect_is() -> None: @pytest.mark.usefixtures("falsy") def test_an_orm_owner_names_its_dialect() -> None: owner = types.SimpleNamespace(dialect=types.SimpleNamespace(name="sqlite")) - assert orm._dialect_of(owner) is Dialect.SQLITE # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + assert orm._dialect_of(owner) is Dialect.SQLITE # pyright: ignore[reportPrivateUsage] @pytest.mark.usefixtures("falsy") diff --git a/tests/engine/sqltext/test_identity_key.py b/tests/engine/sqltext/test_identity_key.py index 6219bae9c..d1d82a71a 100644 --- a/tests/engine/sqltext/test_identity_key.py +++ b/tests/engine/sqltext/test_identity_key.py @@ -43,7 +43,7 @@ def test_two_workers_create_one_key(tmp_path: Path) -> None: def _share_start_line(barrier: Any) -> None: - global _start_line # noqa: PLW0603 - a pool initializer has no other way to hand a worker its barrier + global _start_line _start_line = barrier diff --git a/tests/engine/sqltext/test_lexer.py b/tests/engine/sqltext/test_lexer.py index cd04f6444..2b9c8d045 100644 --- a/tests/engine/sqltext/test_lexer.py +++ b/tests/engine/sqltext/test_lexer.py @@ -126,7 +126,7 @@ def test_the_scan_is_frozen() -> None: def test_the_facade_reads_the_lexer_the_package_names(monkeypatch: pytest.MonkeyPatch) -> None: - from sharpit.engine.capture import sqlscan # noqa: PLC0415 + from sharpit.engine.capture import sqlscan real, seen = sqltext.LEXER, [] diff --git a/tests/engine/sqltext/test_no_mysql_flag.py b/tests/engine/sqltext/test_no_mysql_flag.py index bf29a65c2..5f91b92c1 100644 --- a/tests/engine/sqltext/test_no_mysql_flag.py +++ b/tests/engine/sqltext/test_no_mysql_flag.py @@ -296,7 +296,7 @@ def _profile(ctx: SharpitContext) -> list[dict[str, Any]]: def _mcp(ctx: SharpitContext) -> list[dict[str, Any]]: - return tools._sql_traces_view(ctx, None, 10)["entries"] # noqa: SLF001 + return tools._sql_traces_view(ctx, None, 10)["entries"] SURFACES: dict[str, Callable[[SharpitContext], list[dict[str, Any]]]] = { diff --git a/tests/engine/sqltext/test_resolver.py b/tests/engine/sqltext/test_resolver.py index fabae0a86..f13e96a44 100644 --- a/tests/engine/sqltext/test_resolver.py +++ b/tests/engine/sqltext/test_resolver.py @@ -269,7 +269,7 @@ class Unreadable: def _moduleless_error() -> type[Exception]: """A class whose dictionary has no ``__module__``: ``type`` raises when asked for it.""" namespace: dict[str, object] = {} - exec("E = type('Error', (Exception,), {})", namespace) # noqa: S102 - globals without __name__ + exec("E = type('Error', (Exception,), {})", namespace) return namespace["E"] # pyright: ignore[reportReturnType] @@ -277,7 +277,7 @@ def _moduleless_error() -> type[Exception]: def test_a_class_with_no_module_stops_the_walk() -> None: try: stopped = read_chain(_moduleless_error()("failed")).stopped - except Exception: # noqa: BLE001 - the defect; pytest cannot render a traceback holding this class + except Exception: stopped = None assert stopped is True @@ -357,7 +357,7 @@ def read(_cls: type) -> object: def test_a_class_with_no_module_hides_the_application_family() -> None: # a class built where globals have no ``__name__`` gets no ``__module__``; ``del`` refuses, this does not builtins = {"type": type, "Exception": Exception} - no_module = eval('type("NoModule", (Exception,), {})', {"__builtins__": builtins}) # noqa: S307 + no_module = eval('type("NoModule", (Exception,), {})', {"__builtins__": builtins}) assert resolve(no_module("failed"), [ExceptionDialectSource()], context(Dialect.POSTGRESQL)) is Dialect.UNSUPPORTED @@ -570,7 +570,7 @@ def __hash__(self) -> int: def test_the_name_table_cannot_be_changed() -> None: with pytest.raises(TypeError): - dialect_module._NAMES["oracle"] = Dialect.POSTGRESQL # noqa: SLF001 # pyright: ignore[reportIndexIssue] + dialect_module._NAMES["oracle"] = Dialect.POSTGRESQL # pyright: ignore[reportIndexIssue] def test_exception_leaves_are_bounded() -> None: diff --git a/tests/engine/test_application_family.py b/tests/engine/test_application_family.py index 5d47af3f5..421672c61 100644 --- a/tests/engine/test_application_family.py +++ b/tests/engine/test_application_family.py @@ -143,7 +143,7 @@ def test_family_reader_does_not_wait_for_registry_writer_lock() -> None: finished = threading.Event() def writer() -> None: - with registry._lock: # noqa: SLF001 - hold the writer lock while a separate reader runs + with registry._lock: held.set() release.wait(1) @@ -354,7 +354,7 @@ def test_a_statement_reads_its_own_connection_over_the_application(monkeypatch: _engine("mysql+pymysql://db/app"), Dialect.MYSQL_FAMILY, ) - dispatch._record(event, [handle.context]) # noqa: SLF001 + dispatch._record(event, [handle.context]) assert seen == [Dialect.MYSQL_FAMILY] @@ -441,7 +441,7 @@ def test_install_wires_the_application_family_to_capture_stores() -> None: assert wiring.log_handler.application() is Dialect.POSTGRESQL transactions = handle.context.capture.transactions assert transactions is not None - assert transactions._application() is Dialect.POSTGRESQL # noqa: SLF001 + assert transactions._application() is Dialect.POSTGRESQL def test_span_buffer_requires_an_application_family() -> None: diff --git a/tests/engine/test_appsource.py b/tests/engine/test_appsource.py index dbe0bec8c..abcf02a76 100644 --- a/tests/engine/test_appsource.py +++ b/tests/engine/test_appsource.py @@ -55,7 +55,7 @@ def test_appsource_never_imports_or_follows_symlinks(tmp_path: Path) -> None: _write(outside / "o.py", "def leaked():\n pass\n") linked: list[str] = [] if sys.platform == "win32": - import _winapi # noqa: PLC0415 - Windows only + import _winapi _winapi.CreateJunction(str(outside), str(pkg / "jlink")) linked.append("trap_pkg_appsource.jlink.o") diff --git a/tests/engine/test_data.py b/tests/engine/test_data.py index fb799549a..5268e2542 100644 --- a/tests/engine/test_data.py +++ b/tests/engine/test_data.py @@ -9,19 +9,19 @@ import pytest pytest.importorskip("sqlalchemy") -import sqlalchemy as sa # noqa: E402 -from sqlalchemy import exc, orm # noqa: E402 -from sqlalchemy.orm import DeclarativeBase, mapped_column, relationship # noqa: E402 - -from data_support import spy_on_configure # noqa: E402 -from fastapi import FastAPI # noqa: E402 -from sharpit import install # noqa: E402 -from sharpit.engine import sqla # noqa: E402 -from sharpit.engine.activation import ActivationStatus # noqa: E402 -from sharpit.engine.collectors import data # noqa: E402 -from sharpit.engine.context import SharpitContext # noqa: E402 -from sharpit.engine.sqltext import Dialect # noqa: E402 -from sharpit.settings import SharpitSettings # noqa: E402 +import sqlalchemy as sa +from sqlalchemy import exc, orm +from sqlalchemy.orm import DeclarativeBase, mapped_column, relationship + +from data_support import spy_on_configure +from fastapi import FastAPI +from sharpit import install +from sharpit.engine import sqla +from sharpit.engine.activation import ActivationStatus +from sharpit.engine.collectors import data +from sharpit.engine.context import SharpitContext +from sharpit.engine.sqltext import Dialect +from sharpit.settings import SharpitSettings pytestmark = pytest.mark.needs_sqlalchemy @@ -61,7 +61,7 @@ def observe(_error: BaseException, application: Any) -> Dialect: error = RuntimeError("failed") text = f"Could not read owner (RuntimeError: {error})" try: - data._masked(ctx, text, error) # noqa: SLF001 + data._masked(ctx, text, error) assert families == [Dialect.POSTGRESQL] finally: handle.uninstall_capture() @@ -78,7 +78,7 @@ def spy(_masker: object, text: str, dialect: Dialect) -> str: monkeypatch.setattr(data, "error_text", spy) handle = install(FastAPI(), enabled="ON", show_banner=False, engines=[sa.create_engine("sqlite://")]) try: - data._masked(handle.context, "Could not read owner") # noqa: SLF001 + data._masked(handle.context, "Could not read owner") assert seen == [Dialect.SQLITE] finally: handle.uninstall_capture() @@ -682,7 +682,7 @@ def test_an_unprintable_exception_keeps_the_get(site: str) -> None: warnings: list[str] | None = None try: warnings = data.repositories_report(make_ctx(registry))["warnings"] - except Exception as error: # noqa: BLE001 - the defect is an exception escaping the GET + except Exception as error: escaped = error assert escaped is None diff --git a/tests/engine/test_health.py b/tests/engine/test_health.py index 006973fca..9cfe57331 100644 --- a/tests/engine/test_health.py +++ b/tests/engine/test_health.py @@ -343,7 +343,7 @@ def observe(_error: BaseException, application: Callable[[], Dialect | None]) -> return Dialect.POSTGRESQL monkeypatch.setattr(health_module, "exception_dialect", observe) - service._failure(RuntimeError("failed")) # noqa: SLF001 + service._failure(RuntimeError("failed")) assert families == [Dialect.POSTGRESQL] @@ -387,14 +387,14 @@ def test_engines_only_guidance(tmp_path: Any): # derived: Task 27 Opus review r2 #1: a check raising a class with no __module__ is DOWN; the check never raises def test_a_check_raising_a_class_with_no_module_is_down() -> None: namespace: dict[str, Any] = {} - exec("E = type('Error', (Exception,), {})", namespace) # noqa: S102 - globals without __name__ + exec("E = type('Error', (Exception,), {})", namespace) def broken() -> bool: raise namespace["E"]("failed") try: report = _check(_service(health_checks={"odd": broken})) - except Exception: # noqa: BLE001 - the defect; pytest cannot render a traceback holding this class + except Exception: report = None assert report is not None assert _components(report)["odd"]["status"] == "DOWN" diff --git a/tests/engine/test_models.py b/tests/engine/test_models.py index e6cbcf5d5..e38e19bb4 100644 --- a/tests/engine/test_models.py +++ b/tests/engine/test_models.py @@ -5,12 +5,12 @@ import pytest pytest.importorskip("sqlalchemy") -import sqlalchemy as sa # noqa: E402 -from sqlalchemy.orm import DeclarativeBase, mapped_column, relationship # noqa: E402 +import sqlalchemy as sa +from sqlalchemy.orm import DeclarativeBase, mapped_column, relationship -from data_support import spy_on_configure # noqa: E402 -from sharpit.engine import models # noqa: E402 -from sharpit.engine.collectors import data # noqa: E402 +from data_support import spy_on_configure +from sharpit.engine import models +from sharpit.engine.collectors import data pytestmark = pytest.mark.needs_sqlalchemy diff --git a/tests/engine/test_pools.py b/tests/engine/test_pools.py index ac6ca2f74..1b3c9a2ec 100644 --- a/tests/engine/test_pools.py +++ b/tests/engine/test_pools.py @@ -70,7 +70,7 @@ def test_unlimited_overflow_and_no_recycle_null(tmp_path: Path): def test_async_adapted_queue_pool(tmp_path: Path): - from sqlalchemy.ext.asyncio import create_async_engine # noqa: PLC0415 + from sqlalchemy.ext.asyncio import create_async_engine engine = create_async_engine(f"sqlite+aiosqlite:///{tmp_path / 'a.db'}") (pool,) = pools_report(_ctx(engine))["pools"] diff --git a/tests/engine/test_sensors_audit.py b/tests/engine/test_sensors_audit.py index 31f98dd3d..38bad2b01 100644 --- a/tests/engine/test_sensors_audit.py +++ b/tests/engine/test_sensors_audit.py @@ -378,7 +378,7 @@ def test_the_processes_sensor_survives_odd_arguments() -> None: def _files(**options: Any) -> FilesSensor: - base = {"cwd": "/work/app", "home": "/home/ann", "tmp": "/tmp"} # noqa: S108 - a pattern under test, never opened + base = {"cwd": "/work/app", "home": "/home/ann", "tmp": "/tmp"} return FilesSensor(**{**base, **options}) @@ -497,7 +497,7 @@ def __getattr__(self, name: str) -> object: raised: BaseException | None = None try: recorder.fire("os.system", "prog") # interpreter shutdown can leave the thread-local unusable - except BaseException as error: # noqa: BLE001 - the test asserts the hook let nothing out + except BaseException as error: raised = error assert raised is None @@ -705,7 +705,7 @@ def test_no_argument_or_value_fragment_reaches_the_journal( ) def test_another_users_home_never_keeps_their_name(path: str, pattern: str) -> None: # ported: SideEffectPathsTests.anotherUsersHomeNeverKeepsTheirName - rows = _files(cwd="/srv/app", home="/home/ann", tmp="/tmp").record("open", (path, "r", 0)) # noqa: S108 + rows = _files(cwd="/srv/app", home="/home/ann", tmp="/tmp").record("open", (path, "r", 0)) assert [row["target"] for row in rows] == [pattern] diff --git a/tests/engine/test_sqla_inspect.py b/tests/engine/test_sqla_inspect.py index 666748145..940976bc7 100644 --- a/tests/engine/test_sqla_inspect.py +++ b/tests/engine/test_sqla_inspect.py @@ -78,7 +78,7 @@ def test_catalog_inside_read_only_wrapper(monkeypatch: pytest.MonkeyPatch) -> No def get_columns(self: Any, *args: Any, **kwargs: Any) -> Any: try: self.bind.exec_driver_sql("INSERT INTO probe VALUES (1)") - except Exception as exc: # noqa: BLE001 - the test asserts on the refusal + except Exception as exc: refused.append(str(exc)) return original(self, *args, **kwargs) diff --git a/tests/engine/test_sqla_read_only.py b/tests/engine/test_sqla_read_only.py index dc746ed8e..9f40c1b52 100644 --- a/tests/engine/test_sqla_read_only.py +++ b/tests/engine/test_sqla_read_only.py @@ -206,7 +206,7 @@ def test_read_only_wrapper_rejects_write() -> None: read_only=True, ) ) - except Exception as exc: # noqa: BLE001 + except Exception as exc: failed = "read-only" in str(exc).lower() or "readonly" in str(exc).lower() assert failed is True diff --git a/tests/engine/test_sqla_read_only_dialects.py b/tests/engine/test_sqla_read_only_dialects.py index 18bc8cd94..7b17068da 100644 --- a/tests/engine/test_sqla_read_only_dialects.py +++ b/tests/engine/test_sqla_read_only_dialects.py @@ -33,7 +33,7 @@ def _outcome(engine: Any, fn: Callable[[Any], Any]) -> Any: """The read's result, or the exception it raised (so a refusal fails on the test's assertion, not as a crash).""" try: return asyncio.run(sqla.run_db_read(engine, fn, 5.0, read_only=True)) - except Exception as exc: # noqa: BLE001 - the tests assert on what came back + except Exception as exc: return exc @@ -156,7 +156,7 @@ def test_a_sharing_pool_is_refused_on_every_dialect(dialect: str) -> None: try: outcome: Any = sqla.bounded_read_only(conn, lambda _c: None, 5.0) - except Exception as exc: # noqa: BLE001 - the assertion below names what came back + except Exception as exc: outcome = exc assert isinstance(outcome, sqla.ReadOnlyUnavailable) @@ -225,7 +225,7 @@ def default(c: Any) -> Any: try: return sqla.bounded_read_only(conn, fn or default, 5.0, 2.0), ran - except Exception as exc: # noqa: BLE001 - the tests assert on what came back + except Exception as exc: return exc, ran diff --git a/tests/engine/test_sqlite_source.py b/tests/engine/test_sqlite_source.py index c8b1338aa..3f6f6e55a 100644 --- a/tests/engine/test_sqlite_source.py +++ b/tests/engine/test_sqlite_source.py @@ -289,7 +289,7 @@ async def run() -> None: def _module_named(name: str) -> Callable[[], sqlite3.Connection]: namespace: dict[str, Any] = {"__name__": name} - exec("import sqlite3\ndef open_():\n return sqlite3.connect(':memory:')\n", namespace) # noqa: S102 + exec("import sqlite3\ndef open_():\n return sqlite3.connect(':memory:')\n", namespace) return namespace["open_"] @@ -335,7 +335,7 @@ def _owner_in(module: str, *, slots: bool = False) -> Any: body = " __slots__ = ('con',)\n" if slots else "" init = " def __init__(self):\n self.con = sqlite3.connect(':memory:')\n" source = f"import sqlite3\nclass Owner:\n{body}{init}" - exec(source, namespace) # noqa: S102 + exec(source, namespace) return namespace["Owner"]() @@ -493,7 +493,7 @@ def test_sharpit_imports_without_sqlite3(): "assert sqlite.is_attached() is False\n" "assert sqlite.limitations() == ['sqlite3 is not available in this Python build']\n" ) - done = subprocess.run([sys.executable, "-c", code], capture_output=True, text=True, timeout=60, check=False) # noqa: S603 + done = subprocess.run([sys.executable, "-c", code], capture_output=True, text=True, timeout=60, check=False) assert done.stderr.strip().splitlines()[-1:] == [] assert done.returncode == 0 diff --git a/tests/engine/test_swallowed_overhead.py b/tests/engine/test_swallowed_overhead.py index 8190081f7..baedb5204 100644 --- a/tests/engine/test_swallowed_overhead.py +++ b/tests/engine/test_swallowed_overhead.py @@ -45,7 +45,7 @@ def _library(tmp_path: Path) -> Callable[[], int]: path.parent.mkdir() path.write_text(LIBRARY, "utf-8") namespace: dict[str, Callable[[], int]] = {} - exec(compile(LIBRARY, str(path), "exec"), namespace) # noqa: S102 - a planted library module + exec(compile(LIBRARY, str(path), "exec"), namespace) return namespace["library_handles"] diff --git a/tests/engine/test_threads.py b/tests/engine/test_threads.py index 6f36be373..ad15a031a 100644 --- a/tests/engine/test_threads.py +++ b/tests/engine/test_threads.py @@ -125,8 +125,8 @@ def test_infer_state_runnable_cases(): @pytest.mark.parametrize("wait", ["event", "queue", "executor"]) def test_real_blocked_threads_waiting(wait: str): - import queue # noqa: PLC0415 - from concurrent.futures import ThreadPoolExecutor # noqa: PLC0415 + import queue + from concurrent.futures import ThreadPoolExecutor event, q = threading.Event(), queue.Queue[int]() executor = ThreadPoolExecutor(1, thread_name_prefix="t8-idle") diff --git a/tests/engine/testsession/test_doubles.py b/tests/engine/testsession/test_doubles.py index 4f0db8980..abde0fc35 100644 --- a/tests/engine/testsession/test_doubles.py +++ b/tests/engine/testsession/test_doubles.py @@ -14,7 +14,7 @@ def _caught(call: Callable[[], object]) -> BaseException: try: call() - except Exception as exc: # noqa: BLE001 + except Exception as exc: return exc raise AssertionError("nothing was raised") diff --git a/tests/engine/testsession/test_sink.py b/tests/engine/testsession/test_sink.py index 0fe052e70..4c6eb0aca 100644 --- a/tests/engine/testsession/test_sink.py +++ b/tests/engine/testsession/test_sink.py @@ -372,7 +372,7 @@ def _raised_here(error: BaseException) -> BaseException: """``error`` with the traceback a C driver leaves: one frame, the caller's, and nothing below it.""" try: raise error - except BaseException as exc: # noqa: BLE001 + except BaseException as exc: return exc @@ -384,7 +384,7 @@ def _raised_below(error: BaseException) -> BaseException: """``error`` raised by Python code below the catching frame (a host cursor class, a driver written in Python).""" try: _raise(error) - except BaseException as exc: # noqa: BLE001 + except BaseException as exc: return exc raise AssertionError("unreachable") diff --git a/tests/fastapi/test_architecture_api.py b/tests/fastapi/test_architecture_api.py index 4610c6bad..ad76fa2c6 100644 --- a/tests/fastapi/test_architecture_api.py +++ b/tests/fastapi/test_architecture_api.py @@ -91,7 +91,7 @@ def test_bounded_files_and_symlinks(tmp_path: Path) -> None: _write(outside / "secret.py", "SECRET = 42\n") if sys.platform == "win32": - import _winapi # noqa: PLC0415 + import _winapi _winapi.CreateJunction(str(outside), str(pkg / "jlink")) else: diff --git a/tests/fastapi/test_architecture_source_reads.py b/tests/fastapi/test_architecture_source_reads.py index e67cfd180..87934d916 100644 --- a/tests/fastapi/test_architecture_source_reads.py +++ b/tests/fastapi/test_architecture_source_reads.py @@ -70,7 +70,7 @@ def _link_dir(target: Path, link: Path) -> bool: """A directory link (a junction on Windows, a symlink elsewhere); False when the platform refuses it.""" try: if sys.platform == "win32": - import _winapi # noqa: PLC0415 + import _winapi _winapi.CreateJunction(str(target), str(link)) else: diff --git a/tests/fastapi/test_capture_wiring.py b/tests/fastapi/test_capture_wiring.py index 0a2bcae51..0b3c56008 100644 --- a/tests/fastapi/test_capture_wiring.py +++ b/tests/fastapi/test_capture_wiring.py @@ -813,7 +813,7 @@ def test_streams_the_full_pdf_despite_malformed_metadata_and_repository_failures monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture ): # ported: SpringHttpExchangeStreamingTest.streamsTheFullPdfDespiteMalformedMetadataAndRepositoryFailures - # ported: WebFluxHttpExchangeStreamingTest.streamsTheFullPdfDespiteARepositoryFailureDuringCommit # noqa: E501 + # ported: WebFluxHttpExchangeStreamingTest.streamsTheFullPdfDespiteARepositoryFailureDuringCommit app = FastAPI() body = b"%PDF-1.4\n" + b"x" * 200_000 diff --git a/tests/fastapi/test_capture_without_pydantic_core.py b/tests/fastapi/test_capture_without_pydantic_core.py index a369b716e..7eea4390e 100644 --- a/tests/fastapi/test_capture_without_pydantic_core.py +++ b/tests/fastapi/test_capture_without_pydantic_core.py @@ -16,7 +16,7 @@ def _raised(call: Any) -> BaseException | None: try: call() - except BaseException as exc: # noqa: BLE001 - the test asserts on what the hook let escape + except BaseException as exc: return exc return None diff --git a/tests/fastapi/test_data_api.py b/tests/fastapi/test_data_api.py index b3e189dfa..3a151c02b 100644 --- a/tests/fastapi/test_data_api.py +++ b/tests/fastapi/test_data_api.py @@ -10,16 +10,16 @@ import pytest pytest.importorskip("sqlalchemy") -import sqlalchemy as sa # noqa: E402 -from fastapi.testclient import TestClient # noqa: E402 -from sqlalchemy.orm import DeclarativeBase, mapped_column, relationship # noqa: E402 - -from conftest import SideEffectGuard # noqa: E402 -from data_support import spy_on_configure # noqa: E402 -from fastapi import FastAPI # noqa: E402 -from golden import ROOT, assert_parity # noqa: E402 -from sharpit import install # noqa: E402 -from sharpit.engine.panels import PANELS, disabled_reason # noqa: E402 +import sqlalchemy as sa +from fastapi.testclient import TestClient +from sqlalchemy.orm import DeclarativeBase, mapped_column, relationship + +from conftest import SideEffectGuard +from data_support import spy_on_configure +from fastapi import FastAPI +from golden import ROOT, assert_parity +from sharpit import install +from sharpit.engine.panels import PANELS, disabled_reason pytestmark = pytest.mark.needs_sqlalchemy diff --git a/tests/fastapi/test_database_advisor_leased.py b/tests/fastapi/test_database_advisor_leased.py index 53a0ef609..13543fd8b 100644 --- a/tests/fastapi/test_database_advisor_leased.py +++ b/tests/fastapi/test_database_advisor_leased.py @@ -54,7 +54,7 @@ def get_columns(self: Any, *args: Any, **kwargs: Any) -> Any: try: with self.bind.begin_nested(): self.bind.exec_driver_sql("INSERT INTO sharpit_dbadv_probe VALUES (1)") - except Exception as exc: # noqa: BLE001 - the test asserts on the refusal + except Exception as exc: refused.append(type(exc).__name__) return original(self, *args, **kwargs) @@ -108,7 +108,7 @@ def test_server_limits_are_read(url: str) -> None: def _vendor_scan(url: str, dialect: str) -> tuple[list[str], dict[str, str], int, set[str], set[str]]: """Evaluated rule ids, skip reasons, probe rows after, and the table names before/after the scan's read.""" - from sharpit.engine.collectors.database_advisor import catalog, report # noqa: PLC0415 - after importorskip + from sharpit.engine.collectors.database_advisor import catalog, report engine = _engine(url) try: @@ -118,7 +118,7 @@ def _vendor_scan(url: str, dialect: str) -> tuple[list[str], dict[str, str], int found = asyncio.run( sqla.run_db_read( engine, - lambda c: catalog._catalog_and_vendor(c, sqla_inspect.CatalogBounds(), Masker("MASKED", True, None)), # noqa: SLF001 + lambda c: catalog._catalog_and_vendor(c, sqla_inspect.CatalogBounds(), Masker("MASKED", True, None)), 5.0, read_only=True, ) diff --git a/tests/fastapi/test_dialect_conflict_surfaces.py b/tests/fastapi/test_dialect_conflict_surfaces.py index 7b58dd861..dc874caca 100644 --- a/tests/fastapi/test_dialect_conflict_surfaces.py +++ b/tests/fastapi/test_dialect_conflict_surfaces.py @@ -62,7 +62,7 @@ def logged() -> dict[str, bool]: # pyright: ignore[reportUnusedFunction] except sa.exc.OperationalError as error: self.failure = error conn.rollback() - logging.getLogger("host.db").error("query failed: %s", error) # noqa: TRY400 - a host's own line + logging.getLogger("host.db").error("query failed: %s", error) return {"ok": True} self.handle = install( diff --git a/tests/fastapi/test_exceptions_api.py b/tests/fastapi/test_exceptions_api.py index b29ce872b..6b783a2eb 100644 --- a/tests/fastapi/test_exceptions_api.py +++ b/tests/fastapi/test_exceptions_api.py @@ -589,7 +589,7 @@ def test_logged_classified_exception_ignores_message_override(case: str) -> None def logs() -> dict[str, bool]: # pyright: ignore[reportUnusedFunction] try: raise driver('invalid input syntax for type integer: "hunter2secret"') - except Exception as exc: # noqa: BLE001 + except Exception as exc: log.exception("failed: %s", exc) try: raise MyError diff --git a/tests/fastapi/test_introspector_providers.py b/tests/fastapi/test_introspector_providers.py index cdc6f5ea7..7db431287 100644 --- a/tests/fastapi/test_introspector_providers.py +++ b/tests/fastapi/test_introspector_providers.py @@ -28,7 +28,7 @@ def get_db() -> Iterator[str]: _other = types.ModuleType("beans_other_mod") -exec("def get_db():\n yield 'b'\n", _other.__dict__) # noqa: S102 - a second module defining the same name +exec("def get_db():\n yield 'b'\n", _other.__dict__) other_get_db: Any = _other.__dict__["get_db"] @@ -215,7 +215,7 @@ def a(db: str = Depends(get_db), t: str = Depends(OAuth2PasswordBearer(tokenUrl= def test_real_session_middleware_never_leaks_secret(): pytest.importorskip("itsdangerous") - from starlette.middleware.sessions import SessionMiddleware as RealSession # noqa: PLC0415 + from starlette.middleware.sessions import SessionMiddleware as RealSession app = FastAPI() app.add_middleware(RealSession, secret_key="s3cr3t") diff --git a/tests/fastapi/test_introspector_routes.py b/tests/fastapi/test_introspector_routes.py index 46145b98e..e2fb349f5 100644 --- a/tests/fastapi/test_introspector_routes.py +++ b/tests/fastapi/test_introspector_routes.py @@ -328,7 +328,7 @@ def _dep() -> str: def _outcome(read: Any) -> Any: try: return read() - except Exception as exc: # noqa: BLE001 - the defect: a user hook's exception escapes the introspector + except Exception as exc: return f"raised {type(exc).__name__}: {exc}" diff --git a/tests/fastapi/test_introspector_security.py b/tests/fastapi/test_introspector_security.py index f92b5e350..d562deb9d 100644 --- a/tests/fastapi/test_introspector_security.py +++ b/tests/fastapi/test_introspector_security.py @@ -392,7 +392,7 @@ def test_route_two_mounts_deep_is_explained(): def test_mount_without_middleware_keeps_its_parent_chain(): # council round 2 (Claude #7): a mount adding no middleware took the chain appended last (a sibling's) - from starlette.staticfiles import StaticFiles # noqa: PLC0415 + from starlette.staticfiles import StaticFiles api = FastAPI() api.get("/ping")(lambda: "p") diff --git a/tests/fastapi/test_metrics_route.py b/tests/fastapi/test_metrics_route.py index 59243e145..1dd2b45d4 100644 --- a/tests/fastapi/test_metrics_route.py +++ b/tests/fastapi/test_metrics_route.py @@ -174,7 +174,7 @@ def test_tool_survives_a_raising_collector(private: tuple[CollectorRegistry, Tes ctx = install(FastAPI(), enabled="ON", show_banner=False, config_scan=False).context try: result = call_tool(CallContext(ctx, {}), "get_metrics", {}, via=via) # type: ignore[arg-type] - except Exception as exc: # noqa: BLE001 - the unfixed tool lets the host error escape as an RPC error + except Exception as exc: result = {"meters": [], "escaped": repr(exc)} assert [m["description"] for m in result["meters"]] == [UNAVAILABLE] assert "S3cretPw" not in str(result) diff --git a/tests/fastapi/test_mysql_leased.py b/tests/fastapi/test_mysql_leased.py index 9c23fa695..1fae2e62b 100644 --- a/tests/fastapi/test_mysql_leased.py +++ b/tests/fastapi/test_mysql_leased.py @@ -31,7 +31,7 @@ def _engine(**kwargs: Any) -> Any: def _read(engine: Any, fn: Any) -> Any: try: return asyncio.run(sqla.run_db_read(engine, fn, 5.0, read_only=True)) - except Exception as exc: # noqa: BLE001 + except Exception as exc: return exc diff --git a/tests/fastapi/test_mysql_read_only_leased.py b/tests/fastapi/test_mysql_read_only_leased.py index 47234299f..0c05b55ed 100644 --- a/tests/fastapi/test_mysql_read_only_leased.py +++ b/tests/fastapi/test_mysql_read_only_leased.py @@ -31,7 +31,7 @@ def _engine(**kwargs: Any) -> Any: def _read(engine: Any, fn: Any) -> Any: try: return asyncio.run(sqla.run_db_read(engine, fn, 5.0, read_only=True)) - except Exception as exc: # noqa: BLE001 - the tests assert on what came back + except Exception as exc: return exc diff --git a/tests/fastapi/test_pentesting_exposure_adapter.py b/tests/fastapi/test_pentesting_exposure_adapter.py index 08bb3e56f..26a015847 100644 --- a/tests/fastapi/test_pentesting_exposure_adapter.py +++ b/tests/fastapi/test_pentesting_exposure_adapter.py @@ -54,7 +54,7 @@ def _read(introspector: object) -> object: """The result, or a marker when an exception escaped (so the test fails on its assertion, not by crashing).""" try: return read_security_facts(introspector) - except Exception as error: # noqa: BLE001 - the point of the test + except Exception as error: return f"{type(error).__name__} escaped" @@ -320,7 +320,7 @@ def _evidence(introspector: object, facts: SecurityFacts | None = None) -> objec """The result, or a marker when an exception escaped (so the test fails on its assertion, not by crashing).""" try: return framework_evidence(introspector, facts) - except Exception as error: # noqa: BLE001 - the point of the test + except Exception as error: return f"{type(error).__name__} escaped" @@ -361,7 +361,7 @@ def test_scan_action_degrades_to_partial_report_on_hostile_routes( outcome: dict[str, Any] = {} try: outcome = exposure_scan(hardened_app(), tmp_path) - except Exception as error: # noqa: BLE001 - malformed introspection must degrade, not crash + except Exception as error: assert not error, f"Scan action raised {type(error).__name__} instead of degrading" assert outcome.get("scan", {}).get("status") == "PARTIAL" diff --git a/tests/fastapi/test_transactions_listener_cost.py b/tests/fastapi/test_transactions_listener_cost.py index 3c9dd98c8..bf49aa4f3 100644 --- a/tests/fastapi/test_transactions_listener_cost.py +++ b/tests/fastapi/test_transactions_listener_cost.py @@ -103,7 +103,7 @@ class Gone: gone = Gone() dead = weakref.ref(gone) del gone - table: dict[str, Any] = getattr(transactions._contexts, "data") # noqa: B009, SLF001 # pyright: ignore[reportPrivateUsage] + table: dict[str, Any] = getattr(transactions._contexts, "data") # noqa: B009 # pyright: ignore[reportPrivateUsage] table["gone"] = dead try: _pairs(engine) diff --git a/tests/fastapi/test_w6_audit_sensors.py b/tests/fastapi/test_w6_audit_sensors.py index 4bbe37b2f..e1b7fae4b 100644 --- a/tests/fastapi/test_w6_audit_sensors.py +++ b/tests/fastapi/test_w6_audit_sensors.py @@ -199,7 +199,7 @@ def test_a_copy_records_one_row_per_side_not_the_files_copyfile_opens( def opener(file: Any, mode: str = "r", *args: Any, **kwargs: Any) -> Any: hook.fire("open", file, mode, 0) # the event the real hook delivers from inside shutil's own open - return open(file, mode, *args, **kwargs) # noqa: SIM115 - shutil closes what it opened + return open(file, mode, *args, **kwargs) with _client(app), monkeypatch.context() as patched: patched.setattr(sys, "audit", hook.fire) diff --git a/tests/fixtures/apps/swallow_twins/twinlib.py b/tests/fixtures/apps/swallow_twins/twinlib.py index 2681bc815..52a5d0207 100644 --- a/tests/fixtures/apps/swallow_twins/twinlib.py +++ b/tests/fixtures/apps/swallow_twins/twinlib.py @@ -11,7 +11,7 @@ def count_rows(table: str) -> int: connection = sqlite3.connect(":memory:") try: - return connection.execute(f"SELECT COUNT(*) FROM {table}").fetchone()[0] # noqa: S608 - a fixed fixture name + return connection.execute(f"SELECT COUNT(*) FROM {table}").fetchone()[0] except sqlite3.OperationalError: log.warning("no such table: %s", table) raise diff --git a/tests/live/conftest.py b/tests/live/conftest.py index fee5c5909..225bfa7b6 100644 --- a/tests/live/conftest.py +++ b/tests/live/conftest.py @@ -21,7 +21,7 @@ from sqlalchemy.engine import make_url HERE = Path(__file__).parent -PASSWORD = "sharpit" # noqa: S105 - a throwaway container +PASSWORD = "sharpit" DATABASE = "sharpit" BOOT_SECONDS = 120.0 @@ -119,7 +119,7 @@ def _wait_until_it_answers(url: str) -> None: with engine.connect() as connection: connection.execute(text("SELECT 1")) return - except Exception: # noqa: BLE001 - the server is still starting; the last error is raised at the deadline + except Exception: if time.monotonic() > deadline: raise time.sleep(1) @@ -132,7 +132,7 @@ def _docker_answers() -> bool: import docker # a testcontainers dependency, imported late so a default run never loads it docker.from_env(timeout=5).ping() - except Exception: # noqa: BLE001 - any failure to reach the daemon means no Docker here + except Exception: return False return True diff --git a/tests/live/oracle.py b/tests/live/oracle.py index d7b0fdf90..8eda66a51 100644 --- a/tests/live/oracle.py +++ b/tests/live/oracle.py @@ -133,9 +133,9 @@ def _routines(engine: sa.Engine) -> list[Any]: try: cursor = raw.cursor() where = "FROM information_schema.routines WHERE routine_schema = DATABASE()" - cursor.execute(f"SELECT routine_definition {where}") # noqa: S608 - two constants + cursor.execute(f"SELECT routine_definition {where}") bodies = list(cursor.fetchall()) - cursor.execute(f"SELECT routine_name, routine_type {where}") # noqa: S608 - two constants + cursor.execute(f"SELECT routine_name, routine_type {where}") for name, kind in cursor.fetchall(): quoted = name.replace("`", "``") cursor.execute(f"DROP {kind} `{quoted}`") @@ -202,7 +202,7 @@ def close(self) -> None: def _arm_spans() -> None: """What ``install`` looks for: an SDK imported, and a provider that takes processors. Undone by ``close``.""" trace = ModuleType("opentelemetry.trace") - trace._TRACER_PROVIDER = _Provider() # type: ignore[attr-defined] # noqa: SLF001 + trace._TRACER_PROVIDER = _Provider() # type: ignore[attr-defined] _sdk.setitem(sys.modules, "opentelemetry.trace", trace) _sdk.setitem(sys.modules, "opentelemetry.sdk.trace", ModuleType("opentelemetry.sdk.trace")) diff --git a/tests/masking/a10/test_exceptions.py b/tests/masking/a10/test_exceptions.py index 2111ccef5..47b9dec49 100644 --- a/tests/masking/a10/test_exceptions.py +++ b/tests/masking/a10/test_exceptions.py @@ -78,7 +78,7 @@ def test_exception_store_keeps_ordinary_value_error_cause_and_hides_sqlite_drive with sa.create_engine("sqlite://").connect() as connection: try: connection.exec_driver_sql(f"ATTACH DATABASE '/no/dir/{SECRET}' AS x") - except Exception as db_outer: # noqa: BLE001 + except Exception as db_outer: store.record(db_outer, "test", None, None) groups = {group["message"]: group["id"] for group in store.report()["groups"]} diff --git a/tests/masking/mutant_worker.py b/tests/masking/mutant_worker.py index 3a3abd279..1f40c4e99 100644 --- a/tests/masking/mutant_worker.py +++ b/tests/masking/mutant_worker.py @@ -38,7 +38,7 @@ def _scan_alone(dialect: Dialect, _masker: Masker, statement: str) -> str: def rows_for(surface: str, rows: int, seeds: Sequence[int]) -> list[Row]: """The corpus a surface is read against: its mode's dialect, the same rows in every process.""" - dialect = gates.DIALECTS[gates._mode(surface)] # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + dialect = gates.DIALECTS[gates._mode(surface)] # pyright: ignore[reportPrivateUsage] return [row for seed in seeds for row in sql_corpus.rows(seed, rows, dialect)] @@ -51,7 +51,7 @@ def counts(surface: str, rows: Sequence[Row]) -> dict[str, int]: def main(spec: dict[str, object]) -> dict[str, int]: - import sharpit # noqa: PLC0415 + import sharpit expected = os.path.realpath(os.environ["SHARPIT_MUTANT_SRC"]) assert os.path.realpath(sharpit.__file__).startswith(expected), sharpit.__file__ # the mutated copy, not the repo diff --git a/tests/masking/test_a12_resolver.py b/tests/masking/test_a12_resolver.py index 7f60c5bc6..9a0b4362f 100644 --- a/tests/masking/test_a12_resolver.py +++ b/tests/masking/test_a12_resolver.py @@ -116,7 +116,7 @@ def test_the_unseen_database_limit_is_pinned() -> None: def _stacktrace(masker: Masker, text: str, dialect: Dialect) -> str | None: - return gates._attribute("exception.stacktrace", masker, gates.stacktrace_text(text, SURFACE_SQL), dialect) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + return gates._attribute("exception.stacktrace", masker, gates.stacktrace_text(text, SURFACE_SQL), dialect) # pyright: ignore[reportPrivateUsage] SURFACES: dict[str, gates.Driver] = {**gates.ERROR_DRIVERS, "exception_stacktrace": _stacktrace} diff --git a/tests/masking/test_error_regions.py b/tests/masking/test_error_regions.py index 38cdbab0e..699a1fedf 100644 --- a/tests/masking/test_error_regions.py +++ b/tests/masking/test_error_regions.py @@ -572,7 +572,7 @@ def raised(sql: str, parameters: tuple[str, ...] | None = None, setup: tuple[str connection.exec_driver_sql(statement) try: connection.exec_driver_sql(sql, parameters) if parameters is not None else connection.exec_driver_sql(sql) - except Exception as exc: # noqa: BLE001 + except Exception as exc: return exc raise AssertionError(f"no error: {sql}") diff --git a/tests/masking/test_gates_bite.py b/tests/masking/test_gates_bite.py index 1d8cda506..11e110ae1 100644 --- a/tests/masking/test_gates_bite.py +++ b/tests/masking/test_gates_bite.py @@ -98,7 +98,7 @@ def test_the_regions_gate_passes_an_ideal_error_and_fails_a_blank_one() -> None: ideal = gates.failures_regions(_ideal_error(carrier), BASE_ROWS, carrier) planted = gates.failures_regions(_blank, BASE_ROWS, carrier) assert not ideal, f"{len(ideal)} rows fail an ideal error: the oracle is wrong" - assert len(planted) == sum(gates._closes(row) for row in BASE_ROWS) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + assert len(planted) == sum(gates._closes(row) for row in BASE_ROWS) # pyright: ignore[reportPrivateUsage] # --- mutants --------------------------------------------------------------------------------------------------------- diff --git a/tests/masking/test_live_anchors.py b/tests/masking/test_live_anchors.py index 7eb3bdc84..9f206be6b 100644 --- a/tests/masking/test_live_anchors.py +++ b/tests/masking/test_live_anchors.py @@ -14,8 +14,8 @@ pytest.importorskip("sqlalchemy") -from tests.live import test_server_oracle as live # noqa: E402 -from tests.masking.test_gates_bite import LEXER_MODULE, Mutant # noqa: E402 +from tests.live import test_server_oracle as live +from tests.masking.test_gates_bite import LEXER_MODULE, Mutant PACKAGE = Path(__file__).resolve().parents[2] / "src" / "sharpit" LEXER = Path(*LEXER_MODULE.split(".")[1:]).with_suffix(".py") diff --git a/tests/masking/test_mask_spans.py b/tests/masking/test_mask_spans.py index cad7e34fd..06eb1a670 100644 --- a/tests/masking/test_mask_spans.py +++ b/tests/masking/test_mask_spans.py @@ -231,7 +231,7 @@ def test_metadata_only_reports_nothing() -> None: "https://key@sentry.io/1", "Server=x;Password=y", "https://h/p?token=abc", - *(f"{prefix}{'a' * 20}" for prefix in masking._VENDOR_PREFIXES), # noqa: SLF001 + *(f"{prefix}{'a' * 20}" for prefix in masking._VENDOR_PREFIXES), ], ) def test_the_fast_path_lets_every_secret_shape_through(value: str) -> None: diff --git a/tests/masking/test_masking_scales_linearly.py b/tests/masking/test_masking_scales_linearly.py index b0daad670..3cdca1963 100644 --- a/tests/masking/test_masking_scales_linearly.py +++ b/tests/masking/test_masking_scales_linearly.py @@ -101,8 +101,8 @@ def _repeat(unit: str) -> Callable[[int], str]: def _pair_substitution(text: str) -> str: tracked = masking.Tracked(text) - masking._mask_pairs(masking._TEXT_QUOTED_PAIR, masking._QUOTED_PAIR_MASKED, tracked) # noqa: SLF001 - masking._mask_pairs(masking._TEXT_PAIR, masking._PAIR_MASKED, tracked) # noqa: SLF001 + masking._mask_pairs(masking._TEXT_QUOTED_PAIR, masking._QUOTED_PAIR_MASKED, tracked) + masking._mask_pairs(masking._TEXT_PAIR, masking._PAIR_MASKED, tracked) return tracked.text @@ -134,7 +134,7 @@ def _shown_at(size: int) -> Entry: def _flags_at(size: int) -> Entry: spans = _overlapping(size) - return lambda text: render._hidden_flags(spans, len(text)) # noqa: SLF001 # pyright: ignore[reportPrivateUsage] + return lambda text: render._hidden_flags(spans, len(text)) # pyright: ignore[reportPrivateUsage] _NORMALIZE = partial(normalize, dialect=Dialect.POSTGRESQL) diff --git a/tests/masking/test_scan_reads_raw.py b/tests/masking/test_scan_reads_raw.py index 4352a37e4..e819c39b0 100644 --- a/tests/masking/test_scan_reads_raw.py +++ b/tests/masking/test_scan_reads_raw.py @@ -45,7 +45,7 @@ def _grouping_surfaces() -> dict[str, gates.Surface]: for capture, flag in (("on", True), ("off", False)): masker = Masker(Exposure.MASKED, flag) surfaces[f"{name}_capture_{capture}-{mode}"] = ( - lambda _masker, statement, g=grouping, m=masker, d=dialect: g(d, m, statement) # noqa: B008 + lambda _masker, statement, g=grouping, m=masker, d=dialect: g(d, m, statement) ) return surfaces diff --git a/tests/masking/test_sql_error_surfaces.py b/tests/masking/test_sql_error_surfaces.py index 7d3b05e5f..fb8638bcf 100644 --- a/tests/masking/test_sql_error_surfaces.py +++ b/tests/masking/test_sql_error_surfaces.py @@ -224,7 +224,7 @@ def test_data_panel_warning() -> None: masker=Masker(Exposure.MASKED, True, None), capture=SimpleNamespace(raw_sqlite_seen=True, engine_registry=None), # Task 29: an application on SQLite ) - _assert_scanned(data._masked(ctx, f"Could not read a mapper (RuntimeError: {ERROR})")) # type: ignore[arg-type] # noqa: SLF001 + _assert_scanned(data._masked(ctx, f"Could not read a mapper (RuntimeError: {ERROR})")) # type: ignore[arg-type] # Task 35 council H1, end to end: a failing statement whose comment holds SQLAlchemy's docs-link line, through install() diff --git a/tests/masking/test_statement_surfaces.py b/tests/masking/test_statement_surfaces.py index a1f65207b..fab6d099a 100644 --- a/tests/masking/test_statement_surfaces.py +++ b/tests/masking/test_statement_surfaces.py @@ -123,7 +123,7 @@ def stacktrace_text(text: str, statement: str) -> str: def _attribute(key: str, masker: Masker, value: str, dialect: Dialect) -> str | None: - return _attributes(masker, {key: value}, dialect)[0]["value"] # noqa: SLF001 + return _attributes(masker, {key: value}, dialect)[0]["value"] def _recorded(masker: Masker, sql: str, dialect: Dialect, error: BaseException | None = None) -> dict[str, Any]: @@ -157,7 +157,7 @@ def _recorder_error(carrier: Carrier, dialect: Dialect, masker: Masker, statemen def _orm_statement(_masker: Masker, statement: str, dialect: Dialect) -> str | None: """``sqla/orm.py`` masks with ``report_masker()``, whatever the caller's masker, so the argument goes unused.""" bind = SimpleNamespace(dialect=SimpleNamespace(name=SERVER_NAMES[dialect])) - return _unbounded_read_statement_shape(SimpleNamespace(session=SimpleNamespace(bind=bind)), statement)[0] # noqa: SLF001 + return _unbounded_read_statement_shape(SimpleNamespace(session=SimpleNamespace(bind=bind)), statement)[0] def _test_session_sql(masker: Masker, statement: str, dialect: Dialect) -> str | None: @@ -234,7 +234,7 @@ def _trace_status(masker: Masker, text: str, dialect: Dialect) -> str | None: attributes={"db.system": SERVER_NAMES[dialect]}, events=[], ) - return SpanBuffer(masker, application=lambda: None)._span(span)["statusMessage"] # noqa: SLF001 + return SpanBuffer(masker, application=lambda: None)._span(span)["statusMessage"] def _transaction_error(masker: Masker, text: str, dialect: Dialect) -> str | None: @@ -266,7 +266,7 @@ def _data_warning(masker: Masker, text: str, dialect: Dialect) -> str | None: masker=masker, capture=SimpleNamespace(raw_sqlite_seen=False, engine_registry=_registry(dialect)), ) - return data._masked(ctx, f"Could not read a mapper (RuntimeError: {text})").removesuffix(")") # noqa: SLF001 + return data._masked(ctx, f"Could not read a mapper (RuntimeError: {text})").removesuffix(")") def _health_failure(masker: Masker, text: str, dialect: Dialect) -> str | None: @@ -276,7 +276,7 @@ def _health_failure(masker: Masker, text: str, dialect: Dialect) -> str | None: capture=SimpleNamespace(raw_sqlite_seen=False, engine_registry=_registry(dialect)), ) ) - return HealthService._failure(service, RuntimeError(text)) # noqa: SLF001 + return HealthService._failure(service, RuntimeError(text)) def _probe_error(masker: Masker, text: str, dialect: Dialect) -> str | None: @@ -290,11 +290,11 @@ async def app(_scope: Any, _receive: Any, _send: Any) -> None: def _postgresql_failure(masker: Masker, statement: str) -> str | None: ctx: Any = SimpleNamespace(masker=masker) - return postgresql_sections._describe(ctx, "Indexes", RuntimeError(error_text(statement, PSYCOPG))) # noqa: SLF001 + return postgresql_sections._describe(ctx, "Indexes", RuntimeError(error_text(statement, PSYCOPG))) def _mysql_failure(masker: Masker, statement: str) -> str | None: - return mysql_sections._reason(masker, RuntimeError(error_text(statement, PYMYSQL))) # noqa: SLF001 + return mysql_sections._reason(masker, RuntimeError(error_text(statement, PYMYSQL))) LAST_ERROR_HEAD = "Worker 1 failed executing transaction" diff --git a/tests/pytest_plugin/test_http_security_flask.py b/tests/pytest_plugin/test_http_security_flask.py index 8d1a3b534..69ebc579a 100644 --- a/tests/pytest_plugin/test_http_security_flask.py +++ b/tests/pytest_plugin/test_http_security_flask.py @@ -204,7 +204,7 @@ def test_http_security_flask_matcher_outcomes_map_to_route_states() -> None: def test_http_security_flask_matcher_failure_never_reaches_the_host() -> None: class Broken: - class url_map: # noqa: N801 - a stand-in whose matcher fails + class url_map: @staticmethod def bind_to_environ(*_args: Any, **_kwargs: Any) -> Any: raise ValueError("no matcher") diff --git a/tests/pytest_plugin/test_plugin_apps.py b/tests/pytest_plugin/test_plugin_apps.py index 586bb293c..a620d05b2 100644 --- a/tests/pytest_plugin/test_plugin_apps.py +++ b/tests/pytest_plugin/test_plugin_apps.py @@ -540,7 +540,7 @@ def test_load_app_never_calls_an_object_with_a_router_attribute(monkeypatch: pyt def test_inspectable_is_false_for_a_class_that_holds_a_route_list() -> None: class Holder: - routes: list[object] = [] # noqa: RUF012 - the class attribute is the point + routes: list[object] = [] assert inspectable(Holder) is False @@ -597,7 +597,7 @@ def test_load_app_calls_a_factory_annotated_with_a_type_checking_only_name(monke namespace: dict[str, object] = {"made": app} source = "def create_app(settings: Settings | None = None):\n return made\n" # dont_inherit: this file's `from __future__ import annotations` would turn the annotation into a string - exec(compile(source, "hostmod.py", "exec", dont_inherit=True), namespace) # noqa: S102 - a host module on 3.14 + exec(compile(source, "hostmod.py", "exec", dont_inherit=True), namespace) _fake_module(monkeypatch, target=namespace["create_app"]) try: diff --git a/tests/pytest_plugin/test_plugin_facts.py b/tests/pytest_plugin/test_plugin_facts.py index 092136643..ccb2a3ea6 100644 --- a/tests/pytest_plugin/test_plugin_facts.py +++ b/tests/pytest_plugin/test_plugin_facts.py @@ -60,7 +60,7 @@ def test_capture_still_attached_at_the_end_adds_no_plugin_source() -> None: def _emit(handler: logging.Handler, record: logging.LogRecord) -> BaseException | None: try: handler.emit(record) - except Exception as exc: # noqa: BLE001 + except Exception as exc: return exc return None diff --git a/tests/pytest_plugin/test_plugin_options.py b/tests/pytest_plugin/test_plugin_options.py index 4c5a53a40..ae28b3c6a 100644 --- a/tests/pytest_plugin/test_plugin_options.py +++ b/tests/pytest_plugin/test_plugin_options.py @@ -91,7 +91,7 @@ def getgroup(self, name: str) -> Parser: def addoption(self, *args: Any, **kwargs: Any) -> None: pass - def addini(self, name: str, help: str, type: Any = None, default: Any = None) -> None: # noqa: A002 + def addini(self, name: str, help: str, type: Any = None, default: Any = None) -> None: types[name] = type pytest_addoption(Parser()) diff --git a/tests/pytest_plugin/test_plugin_swallowed.py b/tests/pytest_plugin/test_plugin_swallowed.py index 6c1d1cc0b..1e6db436a 100644 --- a/tests/pytest_plugin/test_plugin_swallowed.py +++ b/tests/pytest_plugin/test_plugin_swallowed.py @@ -299,7 +299,7 @@ def test_library_handler_is_ignored( library.parent.mkdir() library.write_text(LIBRARY, "utf-8") namespace: dict[str, Any] = {} - exec(compile(LIBRARY, str(library), "exec"), namespace) # noqa: S102 - a planted library module + exec(compile(LIBRARY, str(library), "exec"), namespace) namespace["library_swallow"]() diff --git a/tests/safety/test_a_sqlalchemy_statistics_safety.py b/tests/safety/test_a_sqlalchemy_statistics_safety.py index 81e1b820c..93a45617f 100644 --- a/tests/safety/test_a_sqlalchemy_statistics_safety.py +++ b/tests/safety/test_a_sqlalchemy_statistics_safety.py @@ -9,10 +9,10 @@ except ImportError: sa = None -from examples.fastapi_sample.app import create_app # noqa: E402 -from fastapi.testclient import TestClient # noqa: E402 +from examples.fastapi_sample.app import create_app +from fastapi.testclient import TestClient -from conftest import SideEffectGuard # noqa: E402 +from conftest import SideEffectGuard pytestmark = pytest.mark.needs_sqlalchemy diff --git a/tests/safety/test_a_sqltrace_insights_safety.py b/tests/safety/test_a_sqltrace_insights_safety.py index e408558e0..787ca0376 100644 --- a/tests/safety/test_a_sqltrace_insights_safety.py +++ b/tests/safety/test_a_sqltrace_insights_safety.py @@ -9,10 +9,10 @@ except ImportError: sa = None -from examples.fastapi_sample.app import create_app # noqa: E402 -from fastapi.testclient import TestClient # noqa: E402 +from examples.fastapi_sample.app import create_app +from fastapi.testclient import TestClient -from conftest import SideEffectGuard # noqa: E402 +from conftest import SideEffectGuard PANEL = "sql-trace" GET_ROWS = ["/sharpit/api/sql-trace/insights"] diff --git a/tests/safety/test_b_security_safety.py b/tests/safety/test_b_security_safety.py index 569bf150e..22f3f8aa8 100644 --- a/tests/safety/test_b_security_safety.py +++ b/tests/safety/test_b_security_safety.py @@ -32,18 +32,18 @@ def _args(scanned: dict[str, Any]) -> dict[str, Any]: def _tool_args(handle: Any) -> dict[str, Any]: - from sharpit.engine.tools04.security import security_service # noqa: PLC0415 - only while the flag is on + from sharpit.engine.tools04.security import security_service return _args(security_service(handle.context).scan()) def _tool_seed(ctx: Any) -> dict[str, Any]: """A bare context has no app: seed the service with one violating app's inputs, then scan it.""" - from sharpit.engine.advisors.dismissals import DismissalStore # noqa: PLC0415 - from sharpit.engine.collectors.security import Inputs # noqa: PLC0415 - from sharpit.engine.collectors.security.report import SecurityService # noqa: PLC0415 - from sharpit.engine.singleflight import SingleFlight # noqa: PLC0415 - from sharpit.fastapi.introspector import FastApiIntrospector # noqa: PLC0415 + from sharpit.engine.advisors.dismissals import DismissalStore + from sharpit.engine.collectors.security import Inputs + from sharpit.engine.collectors.security.report import SecurityService + from sharpit.engine.singleflight import SingleFlight + from sharpit.fastapi.introspector import FastApiIntrospector introspector = FastApiIntrospector(_violating_app()) inputs = Inputs(introspector.security_model(), introspector.security_facts(), None) diff --git a/tests/safety/test_c_architecture_safety.py b/tests/safety/test_c_architecture_safety.py index 8b344c080..b0825c553 100644 --- a/tests/safety/test_c_architecture_safety.py +++ b/tests/safety/test_c_architecture_safety.py @@ -30,17 +30,17 @@ def _seeded_violations(ctx: Any) -> dict[str, Any]: The sample app is built by a factory no module holds, so its own scan has no source to read; the service is seeded (before first use) with one evaluated finding, then scanned through its normal path. """ - from sharpit.engine.advisors.findings import Finding # noqa: PLC0415 - from sharpit.engine.advisors.report import evidence # noqa: PLC0415 - from sharpit.engine.advisors.scan import Evaluation # noqa: PLC0415 - from sharpit.engine.collectors.architecture.report import ( # noqa: PLC0415 + from sharpit.engine.advisors.findings import Finding + from sharpit.engine.advisors.report import evidence + from sharpit.engine.advisors.scan import Evaluation + from sharpit.engine.collectors.architecture.report import ( RULES, ArchitectureScanDetail, ArchitectureService, architecture_service, ) - from sharpit.engine.singleflight import SingleFlight # noqa: PLC0415 - from sharpit.engine.tools import dismissal_store # noqa: PLC0415 + from sharpit.engine.singleflight import SingleFlight + from sharpit.engine.tools import dismissal_store rule = RULES[0] # ARCH-PKG-001 finding = Finding(rule.id, "architecture", rule.severity, "app.a cycle", "Circular package dependency: a -> b -> a") @@ -95,8 +95,8 @@ def test_inactive_install_answers_404(path: str) -> None: def test_architecture_violations_tool_uses_rule_violations_schema() -> None: # derived: BootUiMcpService.schema RULE_VIOLATIONS, as get_rest_api_rule_violations (review fix 1: GET /cli 500) - from sharpit.engine.tools import TOOLS # noqa: PLC0415 - from sharpit.engine.tools04.architecture import TOOLS as ARCHITECTURE_TOOLS # noqa: PLC0415 + from sharpit.engine.tools import TOOLS + from sharpit.engine.tools04.architecture import TOOLS as ARCHITECTURE_TOOLS rest_api = next(t for t in TOOLS if t.name == "get_rest_api_rule_violations") architecture = next(t for t in ARCHITECTURE_TOOLS if t.name == "get_architecture_rule_violations") diff --git a/tests/scripts/test_shard_weights.py b/tests/scripts/test_shard_weights.py index 50d0fe213..4de948e6d 100644 --- a/tests/scripts/test_shard_weights.py +++ b/tests/scripts/test_shard_weights.py @@ -21,7 +21,7 @@ def test_a_gates_artifact_beside_the_shard_artifacts_is_not_a_shard_leg(tmp_path _report(tmp_path, "junit-gates-windows-latest", 900.0) try: table = shard_weights.weights(tmp_path) - except Exception as exc: # noqa: BLE001 - the crash is the defect; the assertion below must name it + except Exception as exc: table = {"crashed": {type(exc).__name__: 0.0}} assert table == {"linux": {"tests/engine/test_guard.py": 4.0}} diff --git a/tests/surface.py b/tests/surface.py index 23dff05ed..c39698685 100644 --- a/tests/surface.py +++ b/tests/surface.py @@ -134,10 +134,10 @@ def catalogue_with_lanes( # from the base, not the current TOOLS: a lane implemented at import already has its tools there return tools.merge_lane_tools( - tools._BASE_TOOLS, # noqa: SLF001 - tools._BASE_COMMANDS, # noqa: SLF001 - (*lane_tools, *tools._LOW_FOOTPRINT_TOOLS), # noqa: SLF001 - the import appends these after the lanes - {**lane_commands, **tools._LOW_FOOTPRINT_COMMANDS}, # noqa: SLF001 + tools._BASE_TOOLS, + tools._BASE_COMMANDS, + (*lane_tools, *tools._LOW_FOOTPRINT_TOOLS), + {**lane_commands, **tools._LOW_FOOTPRINT_COMMANDS}, ) diff --git a/tests/test_ci_layout.py b/tests/test_ci_layout.py index 288e29dac..a6cab1407 100644 --- a/tests/test_ci_layout.py +++ b/tests/test_ci_layout.py @@ -843,7 +843,7 @@ def test_a_wall_clock_budget_runs_with_the_timing_files(monkeypatch: pytest.Monk # found on #144 CI: the insights read budget (an absolute 2000 ms, no check_budget call) ran inside a parallel # Windows shard and failed at 2088 ms beside busy xdist workers monkeypatch.syspath_prepend(str(Path(__file__).parent.parent)) - from tests._shard import timing_files # noqa: PLC0415 + from tests._shard import timing_files assert "tests/engine/insights/test_insights_service.py" in timing_files() diff --git a/tests/test_example_gate.py b/tests/test_example_gate.py index 4ed2bbc36..fec88053d 100644 --- a/tests/test_example_gate.py +++ b/tests/test_example_gate.py @@ -4,7 +4,7 @@ import json import shutil -import xml.etree.ElementTree as ET # noqa: S405 - parses the report this test just wrote +import xml.etree.ElementTree as ET from pathlib import Path from typing import Any diff --git a/tests/test_live_server_scope.py b/tests/test_live_server_scope.py index 54951296f..76c89d135 100644 --- a/tests/test_live_server_scope.py +++ b/tests/test_live_server_scope.py @@ -37,7 +37,7 @@ def fake_boot(key: str) -> Iterator[Any]: starts.append(key) yield conftest.LiveServer("sqlite://", key, "fake", key) - conftest._boot = fake_boot # noqa: SLF001 - the one seam that starts a container + conftest._boot = fake_boot oracle = session.items[0].module.oracle # type: ignore[attr-defined] oracle.drive = lambda *_: oracle.Observed([], False, {}) # no server: only the starts are counted diff --git a/tests/test_safety_lane_sweeps.py b/tests/test_safety_lane_sweeps.py index bd72705c0..1959d0a4a 100644 --- a/tests/test_safety_lane_sweeps.py +++ b/tests/test_safety_lane_sweeps.py @@ -104,7 +104,7 @@ def test_lane_file_that_skips_or_fails_is_reported_not_raised(lane_pkg: tuple[st try: lanes = safety.load(name) raised: str | None = None - except BaseException as exc: # noqa: BLE001 - a Skipped here would skip the shared route-table tests + except BaseException as exc: lanes, raised = safety.Lanes((), (), (), {}), repr(exc) assert raised is None @@ -207,7 +207,7 @@ def test_lane_tool_args_reach_the_matrix_tool_sweep( monkeypatch.setattr(matrix, "LANES", safety.load(name)) handle: Any = object() - assert matrix._tool_arguments("get_overview", handle) == {"handle": handle} # noqa: SLF001 + assert matrix._tool_arguments("get_overview", handle) == {"handle": handle} def test_malformed_tool_args_are_refused(lane_pkg: tuple[str, Path]) -> None: diff --git a/tests/test_safety_matrix.py b/tests/test_safety_matrix.py index ea55315d0..805ff2e18 100644 --- a/tests/test_safety_matrix.py +++ b/tests/test_safety_matrix.py @@ -844,7 +844,7 @@ def test_cli_action_tools_gated_is_parametrised_from_the_lanes(tmp_path: Path, m monkeypatch.setattr(safety, "load", lambda _package="safety": planted) fresh: dict[str, Any] = {"__name__": "safety_matrix_replica", "__file__": __file__} - exec(compile(Path(__file__).read_text(encoding="utf-8"), __file__, "exec"), fresh) # noqa: S102 + exec(compile(Path(__file__).read_text(encoding="utf-8"), __file__, "exec"), fresh) marks = fresh["test_cli_action_tools_gated"].pytestmark cases = next(m.args[1] for m in marks if m.name == "parametrize" and m.args[0] == ("tool", "panel", "seed")) diff --git a/tests/test_side_effect_guard.py b/tests/test_side_effect_guard.py index dec7babe6..f82ba1d9f 100644 --- a/tests/test_side_effect_guard.py +++ b/tests/test_side_effect_guard.py @@ -69,7 +69,7 @@ def _use_monitoring_tool(_root: Path) -> Callable[[], None]: def _open_source(root: Path) -> Callable[[], None]: - with open(root / "main.py", encoding="utf-8") as handle: # noqa: PTH123 - the builtin is what is spied on + with open(root / "main.py", encoding="utf-8") as handle: handle.read() return lambda: None @@ -140,7 +140,7 @@ def test_side_effect_guard_allows_config_getenv_scan(tmp_path: Path, monkeypatch # spec §14: config's lazy getenv scan on its first GET is the one declared exemption from "no app source read" root = _app_root(tmp_path, monkeypatch) scan: dict[str, Any] = {"__name__": "sharpit.engine.collectors.config.getenv_scan"} - exec("def read(path):\n return path.read_text(encoding='utf-8')\n", scan) # noqa: S102 - a frame in config + exec("def read(path):\n return path.read_text(encoding='utf-8')\n", scan) guard = SideEffectGuard(tmp_path / "state") guard.watch_sources(root) try: @@ -173,7 +173,7 @@ def test_side_effect_guard_reports_sharpit_monitoring_call_without_swallowing_it try: code = compile("import sys\nsys.monitoring.set_events(5, 0)", str(source), "exec") with pytest.raises(ValueError, match="tool"): - exec(code) # noqa: S102 + exec(code) finally: guard.unblock_network() guard.restore_runtime_state() From 3e4944035ae1605be07e8078d64fbfac419b6350 Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 15:46:53 +0000 Subject: [PATCH 03/14] test: record the GitHub repositoryContext gap and pin the tool status file Signed-off-by: Flavio Oliva --- docs/reference/BOOTUI-2.6.0-DELTA.md | 12 ++++++------ tests/parity/routes_status.json | 3 ++- tests/parity/test_routes_parity.py | 6 ++++++ tests/parity/test_tools_parity.py | 6 ++++++ tests/parity/tools_status.json | 4 ++-- 5 files changed, 22 insertions(+), 9 deletions(-) diff --git a/docs/reference/BOOTUI-2.6.0-DELTA.md b/docs/reference/BOOTUI-2.6.0-DELTA.md index b7acf25fb..440d5d536 100644 --- a/docs/reference/BOOTUI-2.6.0-DELTA.md +++ b/docs/reference/BOOTUI-2.6.0-DELTA.md @@ -8,31 +8,31 @@ The static capture uses BootUI tag `v2.6.0` at commit `6efc78d31c08baae0fca7d33b |---|---:|---:|---| | Panels | 65 | 65 | `BootUiPanels.java`; the panel catalogue is unchanged. | | Tools | 116 | 116 | `bootui-cli/src/main/resources/bootui-tools.json`; names, input schemas and action flags are unchanged. Several descriptions changed; the remaining sharpit gaps are recorded in `tests/parity/tools_status.json`. | -| Route contracts | 85 reads, 78 actions, 269 starter mappings | 85 reads, 78 actions, 269 starter mappings | `BootUiApiContractCatalog.java`; route counts are unchanged. The GitHub report contract adds `repositoryContext` as an object. | -| Properties | 212 | 219 | `BootUiProperties.java` and generated configuration metadata; adds seven activity persistence and memory scan properties listed below. | +| Route contracts | 85 reads, 78 actions, 269 starter mappings | 85 reads, 78 actions, 269 starter mappings | `BootUiApiContractCatalog.java`; route counts are unchanged. The GitHub report contract adds `repositoryContext` as an object. This response-key addition is read from `BootUiApiContractCatalog.java` at v2.6.0 because the route capture does not record response keys; the gap is recorded in `tests/parity/routes_status.json`. | +| Properties | 212 | 219 | `BootUiProperties.java` and generated configuration metadata; adds seven activity persistence and memory scan properties listed below. Four existing descriptions also change: `bootui.activity.persistence.instance-id` is now described as a legacy Live Activity partition key, alongside changes to `bootui.activity.persistence.table-name`, `bootui.github.max-api-calls`, and `bootui.github.max-security-alerts`. | | Rule identifiers | 688 | 692 | The captured union adds `HIB-FETCH-010`, `HIB-QUERY-010`, `SEC-AUTHZ-006`, and `SPRING-WIRING-012`; no identifiers are removed. `rule-ids-diff.json` records 0 documentation-only and 32 Java-only identifiers. | | Test inventory | 1,144 classes, 11,204 methods | 1,206 classes, 12,210 methods | Captured from the tagged Java test sources. | The new properties are `bootui.activity.persistence.application-id`, `bootui.activity.persistence.hot-max-entries`, `bootui.activity.persistence.max-pending-bytes`, `bootui.activity.persistence.max-pending-entries`, `bootui.activity.persistence.namespace-id`, `bootui.activity.persistence.reader-archive-cross-namespace`, and `bootui.memory.include-histogram`. The persistence settings relate to durable activity history; the histogram setting controls JVM memory scanning. -The `GET /github` report gains the `repositoryContext` object, which carries the selected remote and sanitized origin/upstream repository identities. `POST /github/refresh` remains the action route. The captured route inventory and starter mapping count do not change. +The `GET /github` report gains the `repositoryContext` object, which carries the selected remote and sanitized origin/upstream repository identities. This addition is read from `BootUiApiContractCatalog.java` at v2.6.0 because the route capture does not record response keys; the gap is recorded in `tests/parity/routes_status.json`. Sharpit adds it in Task 1.8 of the 0.11.0 plan (`docs/superpowers/plans/2026-12-05-sharpit-0.11.0/PLAN.md`). `POST /github/refresh` remains the action route. The captured route inventory and starter mapping count do not change. ## JSON specifications | BootUI source file | v2.5.0 to v2.6.0 change | Sharpit disposition | |---|---|---| -| `bootui-cli/src/main/resources/bootui-tools.json` | 116 tools; names, input schemas and action flags are unchanged. Descriptions change for `get_live_activity` (including `queryHelp`), `memory_scan`, and `get_spring_data_repositories`. The latter tool's summary changes as well. | `get_live_activity` retains sharpit's wording until Task 3.13 adds durable history. The JVM memory scan and Spring Data repository metadata descriptions are recorded as n-a in `tests/parity/tools_status.json`. | +| `bootui-cli/src/main/resources/bootui-tools.json` | 116 tools; names, input schemas and action flags are unchanged. Descriptions change for `get_live_activity` (including `queryHelp`), `memory_scan`, and `get_spring_data_repositories`. The latter tool's summary changes as well. | `get_live_activity` retains sharpit's wording until Task 3.13 of the 0.11.0 plan (`docs/superpowers/plans/2026-12-05-sharpit-0.11.0/PLAN.md`) adds durable history. The `memory_scan` and `get_spring_data_repositories` rows have status `missing`; each reason classifies the tool as not applicable in `tests/parity/tools_status.json`. | | `.github/actions/bootui/default-policy.json`; `examples/ci/bootui-policy.json` | Both retain `schemaVersion: 1`; no diff. | No change required. | | `plugins/bootui/plugin.json` | The version changes from `2.5.0` to `2.6.0`; other fields are unchanged. | Version metadata only. | | `plugins/bootui/mcp.json`; `plugins/bootui/.claude-plugin/plugin.json` | No diff. | No change required. | | `bootui-conformance/src/main/resources/io/github/jdubois/bootui/conformance/expected-panels-*.json`; `bootui-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json` | No diff. | No change required. | -| `bootui-conformance/src/main/java/io/github/jdubois/bootui/conformance/BootUiApiContractCatalog.java` | The GitHub report response contract adds `repositoryContext: OBJECT`. | Captured as a report contract addition; sharpit's GitHub lane is Task 1.8. | +| `bootui-conformance/src/main/java/io/github/jdubois/bootui/conformance/BootUiApiContractCatalog.java` | The GitHub report response contract adds `repositoryContext: OBJECT`. | Read from `BootUiApiContractCatalog.java` at v2.6.0 because the route capture does not record response keys; the gap is recorded in `tests/parity/routes_status.json`. Sharpit adds the field in Task 1.8. | The JSON comparison confirms the planned changes with one additional detail: `get_spring_data_repositories` changes both its summary and description. No names, schemas, action flags, policy schemas, MCP configuration, plugin integration metadata, panel lists, or additional Spring configuration metadata change. ## Status changes -The tools, properties and routes parity tests now use the 2.6.0 fixtures. Seven new property rows are classified as missing in `tests/parity/properties_status.json`; their `reason` fields identify the task that will address or classify each gap. Six activity persistence rows are tracked by Task 3.13; the JVM-only memory histogram property is classified as n-a by Task 2.13. Three tool-description rows are recorded in `tests/parity/tools_status.json`: `get_live_activity` remains partial until Task 3.13, while `memory_scan` and `get_spring_data_repositories` are n-a under Task 0.1. +The tools, properties and routes parity tests now use the 2.6.0 fixtures. Seven new property rows are classified as missing in `tests/parity/properties_status.json`; their `reason` fields identify the task that will address or classify each gap. Six activity persistence rows are tracked by Task 3.13; the JVM-only memory histogram property is classified as n-a by Task 2.13 of the 0.11.0 plan (`docs/superpowers/plans/2026-12-05-sharpit-0.11.0/PLAN.md`). Three tool-description rows are recorded in `tests/parity/tools_status.json`: `get_live_activity` remains partial until Task 3.13, while `memory_scan` and `get_spring_data_repositories` have status `missing`; each reason classifies the tool as not applicable under Task 0.1 of the 0.11.0 plan (`docs/superpowers/plans/2026-12-05-sharpit-0.11.0/PLAN.md`). The existing fixture inventory test remains pinned to its explicit version set because its version-specific count assertions do not cover the 2.6.0 inventory. diff --git a/tests/parity/routes_status.json b/tests/parity/routes_status.json index 5336b2ff2..ae75c67a3 100644 --- a/tests/parity/routes_status.json +++ b/tests/parity/routes_status.json @@ -326,7 +326,8 @@ "panel": "github", "route": "/sharpit/api/github", "status": "partial", - "difference": "github/captured.json parity: unavailableReason: null in payload, golden has string; not listed in nullable.json" + "difference": "github/captured.json parity: unavailableReason: null in payload, golden has string; not listed in nullable.json", + "reason": "BootUI 2.6.0 adds repositoryContext to the GitHub report; sharpit adds it in Task 1.8 of the 0.11.0 plan (docs/superpowers/plans/2026-12-05-sharpit-0.11.0/PLAN.md)." }, { "golden": "graalvm/captured.json", diff --git a/tests/parity/test_routes_parity.py b/tests/parity/test_routes_parity.py index 966595f8d..382c4407b 100644 --- a/tests/parity/test_routes_parity.py +++ b/tests/parity/test_routes_parity.py @@ -252,6 +252,12 @@ def test_inventory_uses_canonical_paths(bootui_route_catalog: dict[str, Any]) -> assert not unknown, f"GET routes absent from the BootUI catalogue: {unknown}" +def test_github_route_status_records_the_repository_context_gap() -> None: + status = json.loads(_STATUS_FILE.read_text(encoding="utf-8")) + row = next(route for route in status["routes"] if route["route"] == f"{_API}/github") + assert "repositoryContext" in row["reason"] + + def test_bootui_25_starter_declares_143_api_get_routes(bootui_route_catalog: dict[str, Any]) -> None: cross_check = bootui_route_catalog["crossCheck"] starter = [row for row in cross_check["starterMappings"] if row["verb"] == "GET"] diff --git a/tests/parity/test_tools_parity.py b/tests/parity/test_tools_parity.py index 71e378ebe..2d84d209a 100644 --- a/tests/parity/test_tools_parity.py +++ b/tests/parity/test_tools_parity.py @@ -13,6 +13,7 @@ ROOT = Path(__file__).parents[1] FIXTURE_CURRENT = ROOT / "fixtures" / "bootui" / "2.6.0" / "tools.json" +# The gap set compares 2.4.0 with 2.6.0; every 2.5.0 description change is in DESCRIPTION_MATCHED. FIXTURE_PREVIOUS = ROOT / "fixtures" / "bootui" / "2.4.0" / "tools.json" FIXTURE_OLD = ROOT / "fixtures" / "bootui" / "2.3.0" / "tools.json" BOOTUI_TOOLS = json.loads(FIXTURE_CURRENT.read_text("utf-8"))["tools"] @@ -404,6 +405,11 @@ def test_description_gaps_are_recorded_for_bootui_2_6_0() -> None: assert all(row["status"] in {"matched", "partial", "missing"} for row in _TOOL_STATUS["tools"]) +def test_tool_status_records_the_current_fixture_and_reasons() -> None: + assert _TOOL_STATUS["fixture"] == FIXTURE_CURRENT.relative_to(ROOT.parent).as_posix() + assert all(row["reason"].strip() for row in _TOOL_STATUS["tools"] if row["status"] != "matched") + + def test_matched_tools_ratchet() -> None: """Pinned count a lane raises when it closes a row; lowering a pin needs its reason in the PR body.""" assert len(MATCHED_TOOLS) == MATCHED_TOOLS_PIN diff --git a/tests/parity/tools_status.json b/tests/parity/tools_status.json index 52803a695..4c670a270 100644 --- a/tests/parity/tools_status.json +++ b/tests/parity/tools_status.json @@ -4,12 +4,12 @@ { "name": "get_live_activity", "status": "partial", - "reason": "Task 3.13 adds durable history needed for BootUI scope qualifiers; sharpit retains its current text until then." + "reason": "Task 3.13 of the 0.11.0 plan (docs/superpowers/plans/2026-12-05-sharpit-0.11.0/PLAN.md) adds durable history needed for BootUI scope qualifiers; sharpit retains its current text until then." }, { "name": "memory_scan", "status": "missing", - "reason": "Task 0.1 records BootUI JVM histogram behavior as n-a because sharpit has no JVM memory scan." + "reason": "Task 0.1 of the 0.11.0 plan (docs/superpowers/plans/2026-12-05-sharpit-0.11.0/PLAN.md) records BootUI JVM histogram behavior as n-a because sharpit has no JVM memory scan." }, { "name": "get_spring_data_repositories", From b1c4345765e7c079536128d00a01f2ca3f3b0a76 Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 15:49:04 +0000 Subject: [PATCH 04/14] chore: group Dependabot updates, add a cooldown and document the merge protocol Signed-off-by: Flavio Oliva --- .github/dependabot.yml | 19 ++++++++++ docs/development/ci.md | 17 +++++++++ tests/docs/test_procurement_docs.py | 58 ++++++++++++++++++++++------- 3 files changed, 81 insertions(+), 13 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5de1bea9a..3ef577beb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,9 +1,17 @@ version: 2 updates: + # Cooldowns do not delay Dependabot security updates. - package-ecosystem: "uv" directory: "/" schedule: interval: "weekly" + groups: + uv-minor-and-patch: + update-types: + - "minor" + - "patch" + cooldown: + default-days: 3 commit-message: prefix: "chore(deps)" @@ -11,6 +19,8 @@ updates: directory: "/website" schedule: interval: "weekly" + cooldown: + default-days: 3 commit-message: prefix: "chore(deps)" @@ -18,6 +28,13 @@ updates: directory: "/" schedule: interval: "weekly" + groups: + github-actions-minor-and-patch: + update-types: + - "minor" + - "patch" + cooldown: + default-days: 3 commit-message: prefix: "chore(deps)" @@ -26,6 +43,8 @@ updates: directory: "/ui" schedule: interval: "weekly" + cooldown: + default-days: 3 open-pull-requests-limit: 2 groups: ui-dependencies: diff --git a/docs/development/ci.md b/docs/development/ci.md index 8554a274a..2f2375cb1 100644 --- a/docs/development/ci.md +++ b/docs/development/ci.md @@ -80,6 +80,23 @@ full matrix runs on every merge before anything ships. of that branch, which refreshes the base analysis the PR scans compare against (a stale one made each PR's Python sensor re-parse ~848 files). Every push is its own concurrency group (`run_id`), so none cancels another. +## Dependency updates + +At the start of each release wave, list open Dependabot pull requests with `gh pr list --author "app/dependabot"`. +Land them one at a time. Main protection requires an up-to-date branch and auto-merge is off: merge `origin/main` into +the Dependabot branch, push it, wait for CI, then merge the pull request. + +Complete per-bump fixes before merging: + +- A SonarSource scan-action bump also updates the scanner cache key + `sonar-${{ runner.os }}-vX.Y.Z` in `.github/workflows/ci.yml`. The key is pinned by + `test_the_sonar_scanner_cache_is_keyed_and_pinned`. +- An npm bump rebuilds `src/sharpit/ui/static` with `cd ui && npm ci --ignore-scripts && npm run build`, then commits the + built assets. + +A maintainer commit on a Dependabot branch is signed off. A failed DCO check is fixed with a signed remediation commit, +never a force-push. When every Dependabot pull request fails the same shards, check `main` first. + ## CodeQL on release pull requests The classic branch protection rule for `release/*` enables CodeQL default setup on pull requests into version diff --git a/tests/docs/test_procurement_docs.py b/tests/docs/test_procurement_docs.py index 68570ba6a..a61597a91 100644 --- a/tests/docs/test_procurement_docs.py +++ b/tests/docs/test_procurement_docs.py @@ -196,29 +196,40 @@ def _clean_val(val: str) -> object: def _parse_block(block: str) -> dict[str, object]: entry: dict[str, object] = {} - for line in block.splitlines(): + stack: list[tuple[int, dict[str, object] | list[object]]] = [(-1, entry)] + lines = block.splitlines() + for index, line in enumerate(lines): + if not line.strip() or line.lstrip().startswith("#"): + continue + indent = len(line) - len(line.lstrip()) stripped = line.strip() - if not stripped or stripped.startswith("#") or ":" not in stripped: + while stack[-1][0] >= indent: + stack.pop() + parent = stack[-1][1] + if stripped.startswith("- "): + assert isinstance(parent, list) + parent.append(_clean_val(stripped[2:])) + continue + if ":" not in stripped: continue k, v = stripped.split(":", 1) key, val = k.strip(), v.strip() if val: - entry[key] = _clean_val(val) + assert isinstance(parent, dict) + parent[key] = _clean_val(val) else: - entry[key] = {} + next_line = next( + (line for line in lines[index + 1 :] if line.strip() and not line.lstrip().startswith("#")), + "", + ) + child: dict[str, object] | list[object] = [] if next_line.strip().startswith("- ") else {} + assert isinstance(parent, dict) + parent[key] = child + stack.append((indent, child)) return entry def _parse_yaml(text: str) -> dict[str, object]: - try: - import yaml # type: ignore[import-not-found] - - loaded = yaml.safe_load(text) - if isinstance(loaded, dict): - return loaded - except ImportError: - pass - result: dict[str, object] = {"version": 2, "updates": []} updates_list: list[dict[str, object]] = [] result["updates"] = updates_list @@ -251,6 +262,27 @@ def test_dependabot_covers_uv_pip_actions_and_ui_npm() -> None: assert ("github-actions", "/") in entries, "Dependabot must cover github-actions at /" assert ("npm", "/ui") in entries, "Dependabot must cover npm at /ui" + for update in updates: + assert isinstance(update, dict) + schedule = update.get("schedule") + assert isinstance(schedule, dict) + assert schedule.get("interval") == "weekly" + + for ecosystem in ("uv", "github-actions"): + entry = next(u for u in updates if u.get("package-ecosystem") == ecosystem and u.get("directory") == "/") + groups = entry.get("groups") + assert isinstance(groups, dict) + group = next(iter(groups.values())) + assert isinstance(group, dict) + assert {"minor", "patch"}.issubset(set(group.get("update-types", []))) + + for update in updates: + assert isinstance(update, dict) + cooldown = update.get("cooldown") + assert isinstance(cooldown, dict) + assert isinstance(cooldown.get("default-days"), int) + assert cooldown["default-days"] >= 3 + npm_entry = next( ( u From cea62cd439ffdb7253ed45c87e4ccef53f660f7b Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 15:56:55 +0000 Subject: [PATCH 05/14] test: name the ecosystem in each Dependabot assertion Signed-off-by: Flavio Oliva --- .github/dependabot.yml | 2 +- tests/docs/test_procurement_docs.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3ef577beb..40cdbb037 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -38,7 +38,7 @@ updates: commit-message: prefix: "chore(deps)" - # npm updates require running `npm --prefix ui run build` and committing built assets (checked by CI drift job) + # npm updates require rebuilding the committed UI with `npm --prefix ui run build` as described in docs/development/ci.md (Dependency updates); CI checks for drift - package-ecosystem: "npm" directory: "/ui" schedule: diff --git a/tests/docs/test_procurement_docs.py b/tests/docs/test_procurement_docs.py index a61597a91..c57d06a97 100644 --- a/tests/docs/test_procurement_docs.py +++ b/tests/docs/test_procurement_docs.py @@ -219,7 +219,7 @@ def _parse_block(block: str) -> dict[str, object]: parent[key] = _clean_val(val) else: next_line = next( - (line for line in lines[index + 1 :] if line.strip() and not line.lstrip().startswith("#")), + (later for later in lines[index + 1 :] if later.strip() and not later.lstrip().startswith("#")), "", ) child: dict[str, object] | list[object] = [] if next_line.strip().startswith("- ") else {} @@ -278,10 +278,11 @@ def test_dependabot_covers_uv_pip_actions_and_ui_npm() -> None: for update in updates: assert isinstance(update, dict) + ecosystem = update.get("package-ecosystem") cooldown = update.get("cooldown") - assert isinstance(cooldown, dict) - assert isinstance(cooldown.get("default-days"), int) - assert cooldown["default-days"] >= 3 + assert isinstance(cooldown, dict), f"{ecosystem} needs a cooldown block" + assert isinstance(cooldown.get("default-days"), int), f"{ecosystem} needs an integer cooldown.default-days" + assert cooldown["default-days"] >= 3, f"{ecosystem} needs cooldown.default-days >= 3" npm_entry = next( ( From 7b302a3d98af23acbce6c385f342059f0ee46676 Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 15:57:27 +0000 Subject: [PATCH 06/14] chore: keep the reasons on narrowed suppressions Signed-off-by: Flavio Oliva --- examples/fastapi_sqla/app.py | 2 +- pyproject.toml | 4 +- scripts/ci/fleet.py | 2 +- scripts/ci/timing_files.py | 2 +- scripts/dev/live_fuzz.py | 14 +++--- scripts/dev/masking_gate.py | 16 +++---- scripts/dev/profile_sql_listener.py | 20 ++++---- src/sharpit/__init__.py | 8 ++-- src/sharpit/cli/commands.py | 2 +- src/sharpit/engine/capture/logtail.py | 2 +- src/sharpit/engine/capture/mail.py | 10 ++-- src/sharpit/engine/capture/transactions.py | 10 ++-- src/sharpit/engine/capture/wraps.py | 2 +- src/sharpit/engine/collectors/data.py | 2 +- .../collectors/database_advisor/report.py | 2 +- .../engine/collectors/mysql/service.py | 2 +- src/sharpit/engine/collectors/pools.py | 2 +- .../collectors/security/static_analysis.py | 2 +- src/sharpit/engine/models.py | 4 +- src/sharpit/engine/sources/dispatch.py | 8 ++-- src/sharpit/engine/sources/sqlite.py | 6 +-- src/sharpit/engine/sqla/connections.py | 2 +- src/sharpit/engine/sqla/inspect.py | 6 +-- src/sharpit/engine/sqla/listeners.py | 14 +++--- src/sharpit/engine/sqla/orm.py | 6 +-- src/sharpit/engine/testsession/sink.py | 14 +++--- src/sharpit/fastapi/capture.py | 16 +++---- src/sharpit/fastapi/introspection_common.py | 2 +- src/sharpit/fastapi/introspection_errors.py | 2 +- src/sharpit/fastapi/introspector.py | 8 ++-- src/sharpit/pytest_plugin/__init__.py | 46 +++++++++---------- src/sharpit/pytest_plugin/apps.py | 2 +- src/sharpit/pytest_plugin/report_io.py | 2 +- src/sharpit/pytest_plugin/session.py | 10 ++-- src/sharpit/pytest_plugin/swallowed.py | 4 +- src/sharpit/pytest_plugin/terminal.py | 4 +- tests/docs/test_agent_playbooks_and_guide.py | 2 +- tests/engine/advisors/test_registry.py | 1 + .../engine/capture/test_connection_journal.py | 6 +-- .../engine/capture/test_exception_journal.py | 4 +- .../engine/capture/test_exception_literals.py | 2 +- tests/engine/capture/test_exceptions.py | 4 +- .../capture/test_log_handler_locking.py | 2 +- tests/engine/capture/test_mail.py | 24 +++++----- tests/engine/capture/test_sql_journal.py | 22 ++++----- tests/engine/capture/test_sqltrace.py | 4 +- tests/engine/capture/test_traces.py | 2 +- .../architecture/test_architecture_report.py | 6 +-- .../collectors/architecture/test_graph.py | 2 +- .../collectors/fastapi_advisor/support.py | 2 +- .../collectors/github/test_github_client.py | 2 +- tests/engine/insights/test_insights_k1.py | 2 +- tests/engine/sqltext/test_resolver.py | 2 +- tests/engine/test_sensors_audit.py | 2 +- tests/engine/test_swallowed_overhead.py | 2 +- tests/fastapi/test_w6_audit_sensors.py | 2 +- tests/fixtures/apps/swallow_twins/twinlib.py | 2 +- tests/live/conftest.py | 2 +- tests/pytest_plugin/test_plugin_apps.py | 2 +- tests/pytest_plugin/test_plugin_swallowed.py | 2 +- tests/test_example_gate.py | 2 +- tests/test_side_effect_guard.py | 2 +- 62 files changed, 185 insertions(+), 182 deletions(-) diff --git a/examples/fastapi_sqla/app.py b/examples/fastapi_sqla/app.py index 9aeb1625a..3ef48f9df 100644 --- a/examples/fastapi_sqla/app.py +++ b/examples/fastapi_sqla/app.py @@ -69,7 +69,7 @@ def otel_provider() -> object | None: """ try: from opentelemetry import trace - from opentelemetry.sdk.trace import TracerProvider + from opentelemetry.sdk.trace import TracerProvider # noqa: PLC0415 except ImportError: return None current = trace.get_tracer_provider() diff --git a/pyproject.toml b/pyproject.toml index 782c1c6d9..eacbe1cc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,7 +140,9 @@ src = ["src", "tests"] extend-exclude = ["scripts/pytest_speed"] # vendored verbatim; its VERSION hash catches local edits [tool.ruff.lint] -select = ["E", "F", "I", "UP", "B", "S", "SIM", "PERF", "C4", "FURB", "PT018", "PGH", "RUF100"] # PERF/C4/FURB: performance; PT018: one condition per assert +select = ["E", "F", "I", "UP", "B", "S", "SIM", "PERF", "C4", "FURB", "PT018", "PGH", "RUF100"] # PERF/C4/FURB: performance; PT018: one condition per assert; PGH/RUF100: no blanket or stale suppressions + +external = ["BLE", "SLF", "PLC", "PLW", "PLR", "RUF012", "A002", "TRY", "PTH", "N8", "C901"] [tool.ruff.lint.per-file-ignores] # S (security) guards what ships. Tests assert and use fake secrets by design; scripts and examples are not shipped. diff --git a/scripts/ci/fleet.py b/scripts/ci/fleet.py index d1ab7cc66..a3ee4cf69 100644 --- a/scripts/ci/fleet.py +++ b/scripts/ci/fleet.py @@ -332,7 +332,7 @@ def load_ledger() -> object | None: print(f"fleet: no spend ledger at {folder}; spend is not recorded", flush=True) return None sys.path.insert(0, str(folder)) - import sbx_ledger # type: ignore[import-not-found] + import sbx_ledger # type: ignore[import-not-found] # noqa: PLC0415 return sbx_ledger diff --git a/scripts/ci/timing_files.py b/scripts/ci/timing_files.py index 491a6acc5..0b5857b47 100644 --- a/scripts/ci/timing_files.py +++ b/scripts/ci/timing_files.py @@ -10,7 +10,7 @@ from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "tests")) -from _shard import timing_files +from _shard import timing_files # tests/ is no package; the planner is the single source def main(out: Path) -> None: diff --git a/scripts/dev/live_fuzz.py b/scripts/dev/live_fuzz.py index d912476cc..69b6193a3 100644 --- a/scripts/dev/live_fuzz.py +++ b/scripts/dev/live_fuzz.py @@ -111,7 +111,7 @@ def run(text: str) -> str: try: if text.startswith((ROUTINE, "CREATE FUNCTION")): # a JavaScript body is a string: its definition where = "FROM information_schema.routines WHERE routine_schema = DATABASE() AND routine_name = %s" - cursor.execute(f"SELECT routine_definition {where}", (name,)) + cursor.execute(f"SELECT routine_definition {where}", (name,)) # a constant else: # a SQL body's definition is its source, names included: what it returns is the value cursor.execute(f"CALL {name}()") return repr(cursor.fetchall()) @@ -163,10 +163,10 @@ def run(text: str) -> str: def _builds(family: str) -> dict[str, Callable[[str], str]]: - from sharpit.engine.capture.sqlscan import normalize_sql - from sharpit.engine.capture.statement import statement_text - from sharpit.engine.masking import Exposure, Masker - from sharpit.engine.sqltext import Dialect, dialect_of_name + from sharpit.engine.capture.sqlscan import normalize_sql # noqa: PLC0415 + from sharpit.engine.capture.statement import statement_text # noqa: PLC0415 + from sharpit.engine.masking import Exposure, Masker # noqa: PLC0415 + from sharpit.engine.sqltext import Dialect, dialect_of_name # noqa: PLC0415 dialect = dialect_of_name(family) or Dialect.UNSUPPORTED masker = Masker(Exposure.MASKED, True) @@ -194,7 +194,7 @@ def _twin_holds( swapped = text[: found.start()] + twin + text[found.end() :] try: rows = run(swapped) - except Exception: + except Exception: # a refused twin proves nothing either way continue out = read(swapped) in_name = names_quoted and re.search(rf'"[^"]*{twin}[^"]*"', out) @@ -215,7 +215,7 @@ def fuzz(key: str, session: str, seed: int, count: int, out: Path) -> dict[str, for index, text in enumerate(strings(family, seed, count)): try: rows = run(text) - except Exception: + except Exception: # the server refused it: no value came back continue parsed += 1 for name, read in builds.items(): diff --git a/scripts/dev/masking_gate.py b/scripts/dev/masking_gate.py index ff6da83ac..4a3f27f04 100644 --- a/scripts/dev/masking_gate.py +++ b/scripts/dev/masking_gate.py @@ -162,7 +162,7 @@ def corpus(seed: int, rows: int) -> list[dict[str, Any]]: def with_statements(data: list[dict[str, Any]], seed: int) -> list[dict[str, Any]]: """Each row also carries a real statement (``st``), its markers (``ss``) and its dialect (``sd``), in turn.""" - import importlib.util + import importlib.util # noqa: PLC0415 spec = importlib.util.spec_from_file_location("_gate_sql_corpus", ROOT / "tests/masking/sql_corpus.py") assert spec is not None @@ -291,11 +291,11 @@ def work(role: str, src: str, corpus_path: str, out_path: str, fields: list[str] """In the tree: every field through the tree's own production function. ``sharpit`` must be the tree's.""" sys.dont_write_bytecode = True sys.path.insert(0, src) - import inspect + import inspect # noqa: PLC0415 - import sharpit - from sharpit.engine.capture import sqltrace, traces - from sharpit.engine.masking import Exposure, Masker + import sharpit # noqa: PLC0415 + from sharpit.engine.capture import sqltrace, traces # noqa: PLC0415 + from sharpit.engine.masking import Exposure, Masker # noqa: PLC0415 assert Path(sharpit.__file__).resolve().is_relative_to(Path(src).resolve()), sharpit.__file__ off, on = Masker(Exposure.MASKED, True), Masker(Exposure.MASKED, True, capture_parameters=True) @@ -310,13 +310,13 @@ def work(role: str, src: str, corpus_path: str, out_path: str, fields: list[str] if names["trace"] == "none" else getattr(owners[names["trace"].split(".")[0]], names["trace"].split(".")[1]) ) - parameters = len(inspect.signature(traces._sql_attribute).parameters) + parameters = len(inspect.signature(traces._sql_attribute).parameters) # noqa: SLF001 # a tree before Task 12 takes the flag, a tree after it a Dialect; 0.4.0 takes neither here generic: object = False family: object = True extra: dict[str, object] = {} if "dialect" in inspect.signature(sqltrace.normalize).parameters: - from sharpit.engine.sqltext import Dialect + from sharpit.engine.sqltext import Dialect # noqa: PLC0415 generic, family = Dialect.UNSUPPORTED, Dialect.MYSQL_FAMILY extra = {"dialect": generic} @@ -325,7 +325,7 @@ def work(role: str, src: str, corpus_path: str, out_path: str, fields: list[str] def statement(row: dict[str, Any], masker: Masker) -> str | None: dialect = (Dialect(row["sd"]),) if parameters > 3 else () - return traces._sql_attribute(masker, "db.statement", row["st"], *dialect) + return traces._sql_attribute(masker, "db.statement", row["st"], *dialect) # noqa: SLF001 def recorded(masker: Masker, text: str, sql: str | None) -> str | None: recorder = sqltrace.SqlTraceRecorder(masker, max_sql_length=10**6) diff --git a/scripts/dev/profile_sql_listener.py b/scripts/dev/profile_sql_listener.py index cce4585ed..63915b8e7 100644 --- a/scripts/dev/profile_sql_listener.py +++ b/scripts/dev/profile_sql_listener.py @@ -317,7 +317,7 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: assert isinstance(journal, RuntimeJournal) targets = dispatch.recording(c_conn.engine) - named_params, rows = listeners._named(params, exec_ctx, False) + named_params, rows = listeners._named(params, exec_ctx, False) # noqa: SLF001 conn_id = hex(id(c_conn.connection.dbapi_connection)) dialect = dialect_source.engine_dialect(c_conn) or Dialect.UNSUPPORTED sql_event = dispatch.SqlEvent( @@ -325,9 +325,9 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: ) site = call_site(None) thread_name = threading.current_thread().name - shape = recorder._shape(sql_str, dialect) - text = _truncate(shape.text, recorder._max_sql_length) - j_record, j_size, j_started = dispatch._journal_event( + shape = recorder._shape(sql_str, dialect) # noqa: SLF001 + text = _truncate(shape.text, recorder._max_sql_length) # noqa: SLF001 + j_record, j_size, j_started = dispatch._journal_event( # noqa: SLF001 ctx, recorder, sql_event, text, None, thread_name, site ) @@ -343,7 +343,7 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: (" INTERNAL.get()", _time_call(statements, INTERNAL.get)), ( " orm._record_relationship(context)", - _time_call(statements, lambda: orm._record_relationship(exec_ctx)), + _time_call(statements, lambda: orm._record_relationship(exec_ctx)), # noqa: SLF001 ), ( " dispatch.recording(conn.engine)", @@ -351,7 +351,7 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: ), ( " dispatch._targets(conn.engine)", - _time_call(statements, lambda: dispatch._targets(c_conn.engine)), + _time_call(statements, lambda: dispatch._targets(c_conn.engine)), # noqa: SLF001 ), ( " EngineRegistry.holds(conn.engine)", @@ -376,13 +376,13 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: statements, lambda: ( setattr(exec_ctx, "_sharpit_start", (1000, targets)), - listeners._pop_start(c_conn, exec_ctx), + listeners._pop_start(c_conn, exec_ctx), # noqa: SLF001 ), ), ), ( " listeners._named(parameters, context, False)", - _time_call(statements, lambda: listeners._named(params, exec_ctx, False)), + _time_call(statements, lambda: listeners._named(params, exec_ctx, False)), # noqa: SLF001 ), ( " hex(id(conn.connection.dbapi_connection))", @@ -448,11 +448,11 @@ def run_component_timings(statements: int) -> list[tuple[str, float]]: ), ( " recorder._shape(sql, dialect) [lru_cache hit]", - _time_call(statements, lambda: recorder._shape(sql_str, dialect)), + _time_call(statements, lambda: recorder._shape(sql_str, dialect)), # noqa: SLF001 ), ( " _truncate(shape.text, max_sql_length)", - _time_call(statements, lambda: _truncate(shape.text, recorder._max_sql_length)), + _time_call(statements, lambda: _truncate(shape.text, recorder._max_sql_length)), # noqa: SLF001 ), (" category_of(sql) [lru_cache hit]", _time_call(statements, lambda: category_of(sql_str))), (" time.time_ns()", _time_call(statements, time.time_ns)), diff --git a/src/sharpit/__init__.py b/src/sharpit/__init__.py index 2aad8e668..a56da27d6 100644 --- a/src/sharpit/__init__.py +++ b/src/sharpit/__init__.py @@ -17,13 +17,13 @@ def __getattr__(name: str) -> object: """Load a public name on first use (PEP 562), so ``import sharpit`` does not import FastAPI or the adapter.""" if name == "install": - from sharpit.fastapi.adapter import install as value + from sharpit.fastapi.adapter import install as value # noqa: PLC0415 elif name == "attach_sql_sources": - from sharpit.fastapi.sources import attach_sql_sources as value + from sharpit.fastapi.sources import attach_sql_sources as value # noqa: PLC0415 elif name == "detach_sql_sources": - from sharpit.fastapi.sources import detach_sql_sources as value + from sharpit.fastapi.sources import detach_sql_sources as value # noqa: PLC0415 elif name == "record_security_event": - from sharpit.engine.capture.securitylogs import record_security_event as value + from sharpit.engine.capture.securitylogs import record_security_event as value # noqa: PLC0415 else: raise AttributeError(f"module 'sharpit' has no attribute {name!r}") globals()[name] = value diff --git a/src/sharpit/cli/commands.py b/src/sharpit/cli/commands.py index 8efad0f47..61223277a 100644 --- a/src/sharpit/cli/commands.py +++ b/src/sharpit/cli/commands.py @@ -720,7 +720,7 @@ def main(argv: Sequence[str] | None = None) -> int: os.dup2(devnull, sys.stdout.fileno()) finally: os.close(devnull) - except OSError: + except OSError: # preserve the non-success result if stdout cannot be redirected. pass return ExitCodes.ERROR except KeyboardInterrupt: diff --git a/src/sharpit/engine/capture/logtail.py b/src/sharpit/engine/capture/logtail.py index b8fa1e744..c4e3e8536 100644 --- a/src/sharpit/engine/capture/logtail.py +++ b/src/sharpit/engine/capture/logtail.py @@ -220,7 +220,7 @@ def emit(self, record: logging.LogRecord) -> None: line = self.line(record) if line is not None: self.log_tail.append(line) - except Exception as exc: + except Exception as exc: # noqa: BLE001 self._fail(exc) finally: local.busy = False diff --git a/src/sharpit/engine/capture/mail.py b/src/sharpit/engine/capture/mail.py index 44f8f0a88..4761d3abe 100644 --- a/src/sharpit/engine/capture/mail.py +++ b/src/sharpit/engine/capture/mail.py @@ -291,7 +291,7 @@ def arm(self) -> bool: """Wrap what can be wrapped now and watch for a later ``aiosmtplib``; ``True`` once ``smtplib`` and ``aiosmtplib`` are both wrapped (``False`` without it: retried by the attacher, torn down at uninstall).""" # _refs is swapped whole under the lock and read lock-free by the wrappers - global _refs + global _refs # noqa: PLW0603 with _LOCK: _prune() # also drops what a skipped ``_forget`` left me = cast("MailRecorder", self) @@ -336,7 +336,7 @@ def _unwrap(families: Sequence[str]) -> None: def _prune(*, dead: weakref.ref[MailRecorder] | None = None, drop: MailRecorder | None = None) -> None: """Under ``_LOCK``: forget the collected, ``dead`` and ``drop``; restore every wrap once no recorder is left, and the trap's once none has the trap on.""" - global _refs + global _refs # noqa: PLW0603 _refs = tuple(ref for ref in _refs if ref is not dead and (r := ref()) is not None and r is not drop) live = _live() if not live: @@ -600,7 +600,7 @@ def _wrap_loaded_or_refuse(module: Any) -> None: try: _wrap_loaded(module) # the capture never fails a host's import, unless a trap must hold - except Exception as exc: + except Exception as exc: # noqa: BLE001 if _trap_on(): # none of the package may stay loaded: ``from aiosmtplib.smtp import ...`` would skip the hook loaded = list(sys.modules) # a snapshot: another thread may import while this walks it for name in [n for n in loaded if n == "aiosmtplib" or n.startswith("aiosmtplib.")]: @@ -665,7 +665,7 @@ def ensure_wrapped() -> None: try: _wrap_loaded(module, blocking=False) # reported below, never raised into the request - except Exception: + except Exception: # noqa: BLE001 if _trap_on(): _report_untrapped(module) @@ -698,7 +698,7 @@ def _wrap_senders(module: Any, *, trap: bool) -> None: if not isinstance(owner, type): return _wrap_one("aiosmtplib", owner, "sendmail", _async_sendmail) - global _seen + global _seen # noqa: PLW0603 _seen = weakref.ref(owner) response = getattr(module, "SMTPResponse", None) if trap and callable(response): # without it the trap stays sendmail-only for this aiosmtplib diff --git a/src/sharpit/engine/capture/transactions.py b/src/sharpit/engine/capture/transactions.py index a7db31089..2ae8bc0d9 100644 --- a/src/sharpit/engine/capture/transactions.py +++ b/src/sharpit/engine/capture/transactions.py @@ -426,7 +426,7 @@ def tx_begin(conn: Any) -> None: try: _settle(conn.info) _begin(conn) - except Exception as exc: + except Exception as exc: # noqa: BLE001 dispatch.routing_failed(exc) @@ -435,7 +435,7 @@ def tx_commit(conn: Any) -> None: info = conn.info # a property chain: one read per listener info[PENDING_COMMIT] = list(_stack(info)) _end(info, "COMMITTED") - except Exception as exc: + except Exception as exc: # noqa: BLE001 dispatch.routing_failed(exc) @@ -443,7 +443,7 @@ def tx_rollback(conn: Any) -> None: try: _settle(conn.info) _end(conn.info, "ROLLED_BACK") - except Exception as exc: + except Exception as exc: # noqa: BLE001 dispatch.routing_failed(exc) @@ -512,7 +512,7 @@ def tx_release_savepoint(conn: Any, name: str, context: object) -> None: def _release_attachment() -> None: - global _attach_count + global _attach_count # noqa: PLW0603 with _attach_lock: _attach_count -= 1 if _attach_count == 0: @@ -536,7 +536,7 @@ def _listen() -> list[Callable[[], None]] | None: def attach(ctx: SharpitContext | None = None) -> Callable[[], None] | None: """Attach the shared class listeners once and return a per-context reference-counted remover.""" - global _attach_count, _attach_removers + global _attach_count, _attach_removers # noqa: PLW0603 with _attach_lock: if _attach_count == 0: removers = _listen() diff --git a/src/sharpit/engine/capture/wraps.py b/src/sharpit/engine/capture/wraps.py index 537ecb0b5..c67bf90e1 100644 --- a/src/sharpit/engine/capture/wraps.py +++ b/src/sharpit/engine/capture/wraps.py @@ -91,7 +91,7 @@ def remove() -> bool: if owner.__dict__.get(name) is not new: return False setattr(owner, name, entry) - except Exception: + except Exception: # noqa: BLE001 return False return True diff --git a/src/sharpit/engine/collectors/data.py b/src/sharpit/engine/collectors/data.py index 4ff81aef6..c3ce9955c 100644 --- a/src/sharpit/engine/collectors/data.py +++ b/src/sharpit/engine/collectors/data.py @@ -124,7 +124,7 @@ def _scan(ctx: SharpitContext) -> _Scan: for registry in found: try: mappers = list(cast(Any, registry).mappers) - except Exception as error: + except Exception as error: # noqa: BLE001 warnings.append(_warning(ctx, "Skipping a registry that could not be read", error)) continue configured = mappers_configured(registry, mappers) diff --git a/src/sharpit/engine/collectors/database_advisor/report.py b/src/sharpit/engine/collectors/database_advisor/report.py index e30e6f1e8..1719be73c 100644 --- a/src/sharpit/engine/collectors/database_advisor/report.py +++ b/src/sharpit/engine/collectors/database_advisor/report.py @@ -246,7 +246,7 @@ def _with_app_facts(ctx: SharpitContext, sources: list[Source]) -> list[Source]: return sources try: declared = rules_orm.facts(ctx.models) - except Exception as exc: + except Exception as exc: # noqa: BLE001 reason = f"Entity discovery failed ({type(exc).__name__})." declared = {"skipped": reason, "known_absent": False, "errors": [reason]} trace = ctx.capture.sql_trace diff --git a/src/sharpit/engine/collectors/mysql/service.py b/src/sharpit/engine/collectors/mysql/service.py index 64198f5b1..77b4aea80 100644 --- a/src/sharpit/engine/collectors/mysql/service.py +++ b/src/sharpit/engine/collectors/mysql/service.py @@ -212,7 +212,7 @@ def read(conn: Any) -> DataSourceData: return _error_datasource(name, BUDGET_RAN_OUT, diagnostics) data, timed_out = _timed_out_data(partial), True diagnostics.append(_diagnostic(name, "WARNING", BUDGET_RAN_OUT)) - except Exception as exc: + except Exception as exc: # noqa: BLE001 return _error_datasource( name, error_text(ctx.masker, exc, Dialect.MYSQL_FAMILY, known=True) or type(exc).__name__, diff --git a/src/sharpit/engine/collectors/pools.py b/src/sharpit/engine/collectors/pools.py index 5af944a4d..f11572108 100644 --- a/src/sharpit/engine/collectors/pools.py +++ b/src/sharpit/engine/collectors/pools.py @@ -54,7 +54,7 @@ def _pool_dto(ctx: SharpitContext, name: str, engine: Any) -> dict[str, Any]: "driverClassName": f"{engine.url.get_backend_name()}+{engine.dialect.driver} ({kind})", "minimumIdle": None, "maximumPoolSize": sqla.maximum_pool_size(pool), - "connectionTimeoutMs": _ms(pool._timeout) if counted else None, + "connectionTimeoutMs": _ms(pool._timeout) if counted else None, # noqa: SLF001 "idleTimeoutMs": None, "maxLifetimeMs": _ms(pool._recycle), "validationTimeoutMs": None, diff --git a/src/sharpit/engine/collectors/security/static_analysis.py b/src/sharpit/engine/collectors/security/static_analysis.py index 8e583d0f3..5b9442214 100644 --- a/src/sharpit/engine/collectors/security/static_analysis.py +++ b/src/sharpit/engine/collectors/security/static_analysis.py @@ -380,7 +380,7 @@ def _inspect_workflow_entry(repository_root: Path, entry: os.DirEntry[str]) -> t try: cleaned = strip_yaml_comments(read_text(repository_root, Path(entry.path))) return (True, False) if _has_known_workflow_declaration(cleaned) else (False, False) - except Exception: + except Exception: # noqa: BLE001 return False, True diff --git a/src/sharpit/engine/models.py b/src/sharpit/engine/models.py index 96b47aa65..36644ec0f 100644 --- a/src/sharpit/engine/models.py +++ b/src/sharpit/engine/models.py @@ -46,7 +46,7 @@ def registries(models: tuple[object, ...]) -> tuple[list[object], list[str]]: def _is_configured(mapper: Any) -> bool: try: return bool(mapper.configured) - except Exception: + except Exception: # noqa: BLE001 return False @@ -65,7 +65,7 @@ def _registry_is_clear(registry: Any) -> bool: if getattr_static(current, "_new_mappers", True): # absent or True: fail closed return False pending.extend(getattr_static(current, "_dependencies", ())) - except Exception: + except Exception: # noqa: BLE001 return False return True diff --git a/src/sharpit/engine/sources/dispatch.py b/src/sharpit/engine/sources/dispatch.py index a806cdd2f..a51e9bc0a 100644 --- a/src/sharpit/engine/sources/dispatch.py +++ b/src/sharpit/engine/sources/dispatch.py @@ -268,7 +268,7 @@ def _record(event: SqlEvent, targets: list[SharpitContext]) -> None: continue try: text = _trace_text(ctx, recorder, event, info, thread, site) - except Exception as exc: + except Exception as exc: # noqa: BLE001 _context_failed(ctx, exc) continue journal = ctx.capture.journal @@ -276,7 +276,7 @@ def _record(event: SqlEvent, targets: list[SharpitContext]) -> None: try: # its own guard: a journal failure is never reported as the SQL hook's record, size, started = _journal_event(ctx, recorder, event, text, info, thread, site) journal.offer_flat(record, size, started) - except Exception as exc: + except Exception as exc: # noqa: BLE001 _context_failed(ctx, exc, "sql journal") @@ -307,7 +307,7 @@ def deliver(event: SqlEvent, targets: list[SharpitContext]) -> None: def set_session_sink(sink: SessionSink | None) -> None: # one sink per process, read lock-free by emit - global _sink + global _sink # noqa: PLW0603 _sink = sink if sink is None: _drivers.clear() @@ -319,7 +319,7 @@ def session_sink() -> SessionSink | None: def _refresh() -> None: # swapped whole under the lock, read lock-free - global _refs + global _refs # noqa: PLW0603 _refs = tuple(weakref.ref(c) for c in _contexts.values()) diff --git a/src/sharpit/engine/sources/sqlite.py b/src/sharpit/engine/sources/sqlite.py index daa455b16..00bfcde4b 100644 --- a/src/sharpit/engine/sources/sqlite.py +++ b/src/sharpit/engine/sources/sqlite.py @@ -181,7 +181,7 @@ class _TracedConnectionMixin: def cursor(self, factory: Any = None) -> Any: # a limitation flag, set once - global _passed_through + global _passed_through # noqa: PLW0603 if factory is None or factory is sqlite3.Cursor: cls: Any = TracedCursor elif isinstance(factory, type) and issubclass(factory, sqlite3.Cursor): @@ -225,7 +225,7 @@ def _caller_untraced(depth: int) -> bool: def _make_connect(real: Callable[..., sqlite3.Connection]) -> Callable[..., sqlite3.Connection]: def connect(*args: Any, **kwargs: Any) -> sqlite3.Connection: - global _passed_through + global _passed_through # noqa: PLW0603 if not _holders or _caller_untraced(2): return real(*args, **kwargs) positional = ( @@ -297,7 +297,7 @@ def _scan() -> tuple[int, bool, list[str]]: count, failed = 0, True try: aliases = early_aliases() - except Exception: + except Exception: # noqa: BLE001 aliases = [] return count, failed, aliases diff --git a/src/sharpit/engine/sqla/connections.py b/src/sharpit/engine/sqla/connections.py index 986287619..fcd40696c 100644 --- a/src/sharpit/engine/sqla/connections.py +++ b/src/sharpit/engine/sqla/connections.py @@ -146,5 +146,5 @@ def _offer(ctx: SharpitContext, state: Checkout, held: int, connection_id: str) }, started=state.epoch_ms if state.request_id is not None or state.trace_id is not None else 0, ) - except Exception as exc: + except Exception as exc: # noqa: BLE001 dispatch._context_failed(ctx, exc, "connection journal") diff --git a/src/sharpit/engine/sqla/inspect.py b/src/sharpit/engine/sqla/inspect.py index 1dd693e86..6fd932261 100644 --- a/src/sharpit/engine/sqla/inspect.py +++ b/src/sharpit/engine/sqla/inspect.py @@ -139,7 +139,7 @@ def catalog(conn: Any, bounds: CatalogBounds, masker: Masker) -> dict[str, Any]: engine = getattr(conn, "engine", None) sync = getattr(engine, "sync_engine", engine) url_val = getattr(sync, "url", None) - except Exception: + except Exception: # noqa: BLE001 complete = False diagnostics.append( _warning("The database URL could not be read; driver settings configured in it are not evaluated.") @@ -281,9 +281,9 @@ def maximum_pool_size(pool: Any) -> int | None: """A queue pool's maximum size (its size plus its overflow), else ``None``: other pools and an unbounded overflow have none. Counters only: nothing borrows a connection.""" sa = _sqla.sqlalchemy_module() - if sa is None or not isinstance(pool, sa.pool.QueuePool) or pool._max_overflow < 0: + if sa is None or not isinstance(pool, sa.pool.QueuePool) or pool._max_overflow < 0: # noqa: SLF001 return None - return pool.size() + pool._max_overflow + return pool.size() + pool._max_overflow # noqa: SLF001 def shared_connection_pool(pool: Any) -> str | None: diff --git a/src/sharpit/engine/sqla/listeners.py b/src/sharpit/engine/sqla/listeners.py index 0f179787e..5c8ccfe1f 100644 --- a/src/sharpit/engine/sqla/listeners.py +++ b/src/sharpit/engine/sqla/listeners.py @@ -90,10 +90,10 @@ def before_cursor_execute( return start = (time.perf_counter_ns(), targets) if context is not None: - context._sharpit_start = start + context._sharpit_start = start # noqa: SLF001 else: conn.info[START_KEY] = start - except Exception as exc: + except Exception as exc: # noqa: BLE001 dispatch.routing_failed(exc) @@ -166,7 +166,7 @@ def after_cursor_execute( if start is not None: parameters, rows = _named(parameters, context, executemany) _emit(start, conn, statement, parameters, executemany, getattr(cursor, "rowcount", -1), None, rows) - except Exception as exc: + except Exception as exc: # noqa: BLE001 dispatch.routing_failed(exc) @@ -180,7 +180,7 @@ def handle_error(exception_context: Any) -> None: executemany = bool(getattr(context, "executemany", False)) parameters, rows = _named(exception_context.parameters, context, executemany) _emit(start, conn, exception_context.statement or "", parameters, executemany, -1, error, rows) - except Exception as exc: + except Exception as exc: # noqa: BLE001 dispatch.routing_failed(exc) @@ -208,7 +208,7 @@ def _target(sa: Any, name: str) -> Any: def _sync_listeners() -> None: """Listen while a context needs the event, remove once none does (callers hold ``_lock``).""" # swapped whole under the lock, read lock-free - global _discovery_refs + global _discovery_refs # noqa: PLW0603 _discovery_refs = tuple(weakref.ref(c) for c in _discovery_contexts.values()) sa = _sqla.sqlalchemy_module() if sa is None: @@ -297,7 +297,7 @@ def routes_statements(ctx: SharpitContext) -> bool: def detach_all() -> None: """Forget every context and remove every listener (tests start from a clean slate with it).""" - global _session + global _session # noqa: PLW0603 with _lock: dispatch.clear_contexts() _statement_contexts.clear() @@ -330,7 +330,7 @@ def attach_session() -> bool: def detach_session() -> None: - global _session + global _session # noqa: PLW0603 with _lock: _session = False sa = _sqla.sqlalchemy_module() diff --git a/src/sharpit/engine/sqla/orm.py b/src/sharpit/engine/sqla/orm.py index fe7494cbd..4ae7b70d0 100644 --- a/src/sharpit/engine/sqla/orm.py +++ b/src/sharpit/engine/sqla/orm.py @@ -167,7 +167,7 @@ def _batched_query(context: Any) -> str: compiled = context.compiled where = compiled.statement.whereclause if where.operator is operator.eq: - mapper = compiled.compile_state._primary_entity.mapper + mapper = compiled.compile_state._primary_entity.mapper # noqa: SLF001 name = mapper.class_.__name__ return f"select({name}).where({name}.{mapper.get_property_by_column(where.left).key}.in_(ids))" except Exception: # noqa: S110 - introspection is defensive: a text or Core statement has no entity @@ -369,7 +369,7 @@ def _record_unbounded_read_load(target: Any, context: Any, info: Any, tag: tuple def _mapper_load(target: Any, context: Any) -> None: # pyright: ignore[reportUnusedFunction] - listeners calls it - global _unbounded_read_capture_missing + global _unbounded_read_capture_missing # noqa: PLW0603 try: info = REQUEST.get() tag = TEST.get() @@ -412,6 +412,6 @@ def set_identity_key(key: bytes | None) -> None: def set_unbounded_read_factor(factor: int) -> None: - global _unbounded_read_factor + global _unbounded_read_factor # noqa: PLW0603 with _lock: _unbounded_read_factor = factor diff --git a/src/sharpit/engine/testsession/sink.py b/src/sharpit/engine/testsession/sink.py index e54df487f..590e42740 100644 --- a/src/sharpit/engine/testsession/sink.py +++ b/src/sharpit/engine/testsession/sink.py @@ -116,7 +116,7 @@ def on_http(self, method: str, state: str, route: str, status: int, header_names running = self.current_test if self._window is not None else None facts = self.facts.http_unassociated if running is None else running.http facts.record(method, state, route, status, present) - except Exception as exc: + except Exception as exc: # noqa: BLE001 self.record_failure(exc) @property @@ -149,7 +149,7 @@ def record_lost(self, reason: str) -> str: try: reason = self._mask(reason) # a failing masker must not reach the host, and the unmasked reason is never kept - except Exception as exc: + except Exception as exc: # noqa: BLE001 reason = HOOK_FAILURE_WARNING.format(type(exc).__name__) with self._lock: if reason not in self.facts.warnings: @@ -220,7 +220,7 @@ def on_sql(self, event: SqlEvent, test: TestTag | None) -> None: if category_of(sql) == "SELECT": phase.selects[key] += 1 phase.sql_of.setdefault(key, shape.text) - except Exception as exc: + except Exception as exc: # noqa: BLE001 self.record_failure(exc) def _count_unattributed(self, key: str, sql: str) -> None: @@ -264,7 +264,7 @@ def on_exception(self, exc: BaseException, source: str, test: TestTag | None) -> phase.exceptions += 1 self._seen[identity] = (exc, test[2], group) self._group_refs[test[2], group] += 1 - except Exception as error: + except Exception as error: # noqa: BLE001 self.record_failure(error) def on_escaped(self, exc: BaseException) -> None: @@ -281,14 +281,14 @@ def on_escaped(self, exc: BaseException) -> None: self._group_refs[phase_name, group] -= 1 if self._group_refs[phase_name, group] <= 0: phase.exception_groups.pop(group, None) - except Exception as error: + except Exception as error: # noqa: BLE001 self.record_failure(error) def register_app(self, app: object) -> None: try: with self._lock: self._registrations.append(_Registration(weakref.ref(app))) - except Exception as exc: + except Exception as exc: # noqa: BLE001 self.record_failure(exc) def _live_registrations(self) -> list[_Registration]: @@ -335,7 +335,7 @@ def snapshot_apps(self, model_of: Callable[[object], ApiModel], *, force: bool = self._models_by_signature[signature] = model registration.snapshot = (signature[0], model) registration.route_token = signature - except Exception as exc: + except Exception as exc: # noqa: BLE001 self.record_failure(exc) def app_snapshots(self) -> list[tuple[str, ApiModel]]: diff --git a/src/sharpit/fastapi/capture.py b/src/sharpit/fastapi/capture.py index 3c3b02b53..925145172 100644 --- a/src/sharpit/fastapi/capture.py +++ b/src/sharpit/fastapi/capture.py @@ -133,7 +133,7 @@ def _request_end_guard(wiring: CaptureWiring, lost: SharpitContext | None = None """``lost``: the context whose http completion a failure here loses (counted as an http drop).""" try: yield - except Exception as exc: + except Exception as exc: # noqa: BLE001 wiring.hook_failed("request end", exc) if lost is not None: _lose_http(lost) @@ -343,7 +343,7 @@ def detach(self, ctx: SharpitContext) -> None: while teardowns: # lanes' listener/processor removers (R17): newest first, once each, a failure stops none try: teardowns.pop()() - except Exception as exc: + except Exception as exc: # noqa: BLE001 self.hook_failed("teardown", exc) if ctx.capture.sensors is not None: ctx.capture.sensors.detach() # the audit hook stays installed, inert: it cannot be removed @@ -416,7 +416,7 @@ def _disarm(self, ctx: SharpitContext, attacher: object) -> None: ctx.capture.teardowns.remove(remover) try: remover() - except Exception as exc: + except Exception as exc: # noqa: BLE001 self.hook_failed("teardown", exc) def _run_attachers(self, ctx: SharpitContext, lane: str | None = None) -> None: @@ -541,7 +541,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: **scope, "headers": [h for h in scope.get("headers", ()) if not _is_probe_header_entry(h)], } - except Exception as exc: + except Exception as exc: # noqa: BLE001 if wiring is not None: wiring.hook_failed(REQUEST_START, exc) _lose_http(self.ctx) @@ -572,7 +572,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: wiring.on_first_request(self.ctx) if buffer is not None: buffer.count_hidden_self() - except Exception as exc: + except Exception as exc: # noqa: BLE001 wiring.hook_failed(REQUEST_START, exc) await self.app(scope, receive, send) return @@ -634,7 +634,7 @@ async def capture_send(message: Message) -> None: size += len(message.get("body", b"")) if not message.get("more_body", False): end_ns = time.perf_counter_ns() - except Exception as exc: + except Exception as exc: # noqa: BLE001 wiring.hook_failed("response", exc) await send(message) # every chunk goes out as it comes: nothing is buffered @@ -657,7 +657,7 @@ async def capture_send(message: Message) -> None: if sent in (401, 403) and security is not None: # before reset: REQUEST names it (R12) try: security(scope, sent) - except Exception as exc: + except Exception as exc: # noqa: BLE001 wiring.hook_failed("security event", exc) REQUEST.reset(token) try: @@ -715,7 +715,7 @@ async def capture_send(message: Message) -> None: with _request_end_guard(wiring, self.ctx): journal.offer_flat(http_event(info, scope["headers"], started_epoch_ns, recorded, template)) # a failure here comes before the journal offer, the last step: that completion is lost - except Exception as exc: + except Exception as exc: # noqa: BLE001 wiring.hook_failed("request end", exc) _lose_http(self.ctx) return diff --git a/src/sharpit/fastapi/introspection_common.py b/src/sharpit/fastapi/introspection_common.py index 7eb76ccb5..0b42940a4 100644 --- a/src/sharpit/fastapi/introspection_common.py +++ b/src/sharpit/fastapi/introspection_common.py @@ -18,7 +18,7 @@ def attrs(obj: object) -> dict[str, object]: try: values = object.__getattribute__(obj, "__dict__") # __slots__ (a SQLAlchemy AsyncEngine passed as the app), a built-in, or framework drift: no attributes - except Exception: + except Exception: # noqa: BLE001 return {} return cast(dict[str, object], values) if isinstance(values, dict | types.MappingProxyType) else {} diff --git a/src/sharpit/fastapi/introspection_errors.py b/src/sharpit/fastapi/introspection_errors.py index 8ba142313..5dc50e0d0 100644 --- a/src/sharpit/fastapi/introspection_errors.py +++ b/src/sharpit/fastapi/introspection_errors.py @@ -54,7 +54,7 @@ def handler_name(handler: object) -> tuple[str, bool]: try: module = getter(handler, "__module__") qualname = getter(handler, "__qualname__") - except Exception: + except Exception: # noqa: BLE001 return "UNRESOLVED", is_partial return f"{module if type(module) is str else '?'}.{qualname if type(qualname) is str else '?'}", is_partial diff --git a/src/sharpit/fastapi/introspector.py b/src/sharpit/fastapi/introspector.py index 54a29220b..8779d6add 100644 --- a/src/sharpit/fastapi/introspector.py +++ b/src/sharpit/fastapi/introspector.py @@ -77,8 +77,8 @@ class _FastAPIClasses(NamedTuple): def _fastapi_classes() -> _FastAPIClasses: """FastAPI's app, route and websocket route classes; the extra is optional, and an empty tuple matches no class.""" try: - from fastapi.applications import FastAPI - from fastapi.routing import APIRoute, APIWebSocketRoute + from fastapi.applications import FastAPI # noqa: PLC0415 + from fastapi.routing import APIRoute, APIWebSocketRoute # noqa: PLC0415 except ImportError: return _FastAPIClasses((), (), ()) return _FastAPIClasses((FastAPI,), (APIRoute,), (APIWebSocketRoute,)) @@ -685,7 +685,7 @@ def _leaf(route: BaseRoute, prefix: str, host: str | None) -> RouteInfo: def security_model(self) -> SecurityModel: """Middleware stacks and each route's security schemes, read from objects FastAPI built; nothing is called.""" try: - from fastapi.security.base import SecurityBase + from fastapi.security.base import SecurityBase # noqa: PLC0415 except ImportError: return SecurityModel(False, (), (), (), (NOT_FASTAPI,)) if not issubclass(type(self.app), _fastapi_classes().apps): # type(): a user ``__class__`` is never run @@ -874,7 +874,7 @@ def providers(self) -> list[ProviderInfo]: def security_facts(self) -> SecurityFacts: """The security advisor's option facts (``vars()``-style reads only; no option value leaves as a value).""" try: - from fastapi.security.base import SecurityBase + from fastapi.security.base import SecurityBase # noqa: PLC0415 except ImportError: return SecurityFacts(False, None, (), (), (NOT_FASTAPI,)) if not issubclass(type(self.app), _fastapi_classes().apps): # type(): a user ``__class__`` is never run diff --git a/src/sharpit/pytest_plugin/__init__.py b/src/sharpit/pytest_plugin/__init__.py index 3d6582c6b..d71a23d28 100644 --- a/src/sharpit/pytest_plugin/__init__.py +++ b/src/sharpit/pytest_plugin/__init__.py @@ -46,7 +46,7 @@ from sharpit.pytest_plugin.options import PluginOptions from sharpit.pytest_plugin.options import pytest_addoption as pytest_addoption from sharpit.pytest_plugin.options import resolve as resolve -from sharpit.pytest_plugin.report_io import write_report as _write_report +from sharpit.pytest_plugin.report_io import write_report as _write_report # compatibility re-export from sharpit.pytest_plugin.report_io import write_report_files from sharpit.pytest_plugin.session import MARKER_USAGE_ERROR from sharpit.pytest_plugin.session import pytest_collection_finish as pytest_collection_finish @@ -113,7 +113,7 @@ def emit(self, record: logging.LogRecord) -> None: validation_error = isinstance(validation_error_type, type) and isinstance(exc, validation_error_type) if not validation_error: self.sink.on_exception(exc, "log", TEST.get()) - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(self.sink, exc) @@ -173,7 +173,7 @@ def pytest_configure(config: Any) -> None: _attach(config) # also covers pytester.runpytest_inprocess, where initial conftests already ran except pytest.UsageError: raise - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_config_hook_failure(config, exc) @@ -258,7 +258,7 @@ def _record_sqlalchemy_source(state: _State) -> None: def _attach(config: Any) -> None: - global _active_state + global _active_state # noqa: PLW0603 options = resolve(config) if not options.enabled or _state(config) is not None: return @@ -327,7 +327,7 @@ def _attach(config: Any) -> None: def _detach(config: Any) -> None: - global _active_state + global _active_state # noqa: PLW0603 state = _state(config) if state is None: return @@ -339,7 +339,7 @@ def _detach(config: Any) -> None: ): try: cleanup() - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(state.sink, exc) if hasattr(config, _STATE_ATTR): delattr(config, _STATE_ATTR) @@ -358,7 +358,7 @@ def pytest_load_initial_conftests(early_config: Any, parser: Any, args: list[str except pytest.UsageError: _detach(early_config) raise - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_config_hook_failure(early_config, exc) try: hook_result = cast(Result[Any], (yield)) @@ -397,7 +397,7 @@ def pytest_sessionstart(session: Any) -> None: state.sqlalchemy_attached = True _record_sqlalchemy_source(state) sqla.set_unbounded_read_factor(state.settings.activity_unbounded_read_factor) - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(state.sink, exc) @@ -409,7 +409,7 @@ def pytest_runtest_protocol(item: Any, nextitem: Any) -> Any: try: state.partial_run_count += 1 state.sink.begin_test(item.nodeid) - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(state.sink, exc) try: yield @@ -417,7 +417,7 @@ def pytest_runtest_protocol(item: Any, nextitem: Any) -> Any: if state: try: state.sink.end_test() - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(state.sink, exc) @@ -453,7 +453,7 @@ def _phase(item: Any, name: str) -> Any: if state.sink.facts.exceptions_source_ok: exception_source.update(attached=True, reason=None) return state, token - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(state.sink, exc) return None @@ -473,12 +473,12 @@ def _phase_done(phase: Any) -> None: state.sink.facts.exceptions_source_ok = False exception_source = next(s for s in state.sink.facts.sources if s["name"] == "exceptions") exception_source.update(attached=False, reason="application reconfigured logging during a test phase") - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(state.sink, exc) finally: try: TEST.reset(token) - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(state.sink, exc) @@ -496,7 +496,7 @@ def pytest_runtest_setup(item: Any) -> Any: ): state.sink.begin_test(item.nodeid) phase = _phase(item, "setup") - except Exception as exc: + except Exception as exc: # noqa: BLE001 phase = None if state is not None: _record_hook_failure(state.sink, exc) @@ -527,7 +527,7 @@ async def run_in_context(*args: Any, **kwargs: Any) -> Any: TEST.reset(token) item.obj = run_in_context - except Exception as exc: + except Exception as exc: # noqa: BLE001 if state is not None: _record_hook_failure(state.sink, exc) try: @@ -543,7 +543,7 @@ def pytest_runtest_teardown(item: Any, nextitem: Any) -> Any: state = _state(item.config) try: phase = _phase(item, "teardown") - except Exception as exc: + except Exception as exc: # noqa: BLE001 phase = None if state is not None: _record_hook_failure(state.sink, exc) @@ -553,7 +553,7 @@ def pytest_runtest_teardown(item: Any, nextitem: Any) -> Any: if phase is not None: try: phase[0].sink.snapshot_apps(_model_of) - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(phase[0].sink, exc) _phase_done(phase) @@ -561,7 +561,7 @@ def pytest_runtest_teardown(item: Any, nextitem: Any) -> Any: def _advisors(state: _State) -> None: try: _run_advisors(state) - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(state.sink, exc) @@ -587,7 +587,7 @@ def _refresh_report_after_hook_failure(state: _State, config: Any, warning: str) data["warnings"].append(warning) try: write_report_files(state, data) - except Exception as write_exc: + except Exception as write_exc: # noqa: BLE001 _record_hook_failure(state.sink, write_exc) @@ -595,7 +595,7 @@ def _final_facts(state: _State) -> SessionFacts: sink = state.sink try: sink.snapshot_apps(_model_of, force=True) - except Exception as exc: + except Exception as exc: # noqa: BLE001 _record_hook_failure(sink, exc) facts = sink.facts facts.untraced_drivers.update(module for module in outcome.DRIVER_DIALECTS if module in sys.modules) @@ -615,12 +615,12 @@ def pytest_testnodedown(node: Any, error: Any) -> None: if state is None: return _collect_worker_data(state, node, error) - except Exception as exc: + except Exception as exc: # noqa: BLE001 if state is not None: _record_hook_failure(state.sink, exc) try: state.missing_workers.append(getattr(getattr(node, "gateway", None), "id", "unknown")) - except Exception as append_exc: + except Exception as append_exc: # noqa: BLE001 _record_hook_failure(state.sink, append_exc) @@ -642,7 +642,7 @@ def _collect_worker_data(state: _State, node: Any, error: Any) -> None: def pytest_unconfigure(config: Any) -> None: try: _detach(config) - except Exception as exc: + except Exception as exc: # noqa: BLE001 state = _state(config) if state is not None: _record_hook_failure(state.sink, exc) diff --git a/src/sharpit/pytest_plugin/apps.py b/src/sharpit/pytest_plugin/apps.py index cbb47e5fb..70fb1c4ab 100644 --- a/src/sharpit/pytest_plugin/apps.py +++ b/src/sharpit/pytest_plugin/apps.py @@ -281,7 +281,7 @@ def _configured_models( ) return None return [(name, model)] - except Exception as exc: + except Exception as exc: # noqa: BLE001 state.sink.facts.advisor_runs.append( AdvisorRun( "rest-api", diff --git a/src/sharpit/pytest_plugin/report_io.py b/src/sharpit/pytest_plugin/report_io.py index 0afe1fa72..826d4819d 100644 --- a/src/sharpit/pytest_plugin/report_io.py +++ b/src/sharpit/pytest_plugin/report_io.py @@ -76,7 +76,7 @@ def write_report(state: Any, session: Any, exitstatus: int) -> None: session.config._sharpit_report = data except pytest.UsageError: raise - except Exception as exc: + except Exception as exc: # noqa: BLE001 plugin._record_hook_failure(sink, exc) if exitstatus == 0: session.exitstatus = 1 diff --git a/src/sharpit/pytest_plugin/session.py b/src/sharpit/pytest_plugin/session.py index ab2c3e199..3c320d3f2 100644 --- a/src/sharpit/pytest_plugin/session.py +++ b/src/sharpit/pytest_plugin/session.py @@ -122,7 +122,7 @@ def pytest_runtest_makereport(item: Any, call: Any) -> Any: report_obj.longrepr = f"{report_obj.longrepr}{'\n'.join(messages)}" report_obj.outcome = "failed" test.outcome = "failed" - except Exception as exc: + except Exception as exc: # noqa: BLE001 plugin._record_hook_failure(state.sink, exc) @@ -175,7 +175,7 @@ def _partial_facts(state: Any, session: Any) -> dict[str, Any]: def _finish_worker(plugin: Any, state: Any, session: Any, local_partial: dict[str, Any]) -> None: try: plugin._final_facts(state) - except Exception as exc: + except Exception as exc: # noqa: BLE001 plugin._record_hook_failure(state.sink, exc) plugin._advisors(state) try: @@ -186,7 +186,7 @@ def _finish_worker(plugin: Any, state: Any, session: Any, local_partial: dict[st names = getattr(state, "autodetected", None) snapshot = names is None and state.options.advisors and not state.options.app session.config.workeroutput[APPS_KEY] = {"names": names, "snapshot": snapshot} - except Exception as exc: + except Exception as exc: # noqa: BLE001 plugin._record_hook_failure(state.sink, exc) @@ -197,7 +197,7 @@ def _finish_controller(plugin: Any, state: Any, session: Any, exitstatus: int, l snapshot = getattr(state, "autodetect_snapshot", False) try: reconcile_workers(state.parts, names, state.options.require_app, snapshot) - except Exception as exc: + except Exception as exc: # noqa: BLE001 plugin._record_hook_failure(state.sink, exc) if snapshot: # an installed app was assessed: autodetect did not decide anything state.autodetected = None @@ -211,7 +211,7 @@ def pytest_sessionfinish(session: Any, exitstatus: int) -> None: state = None try: state = plugin._state(session.config) - except Exception as exc: + except Exception as exc: # noqa: BLE001 fallback = plugin._active_state if fallback is not None: plugin._record_hook_failure(fallback.sink, exc) diff --git a/src/sharpit/pytest_plugin/swallowed.py b/src/sharpit/pytest_plugin/swallowed.py index e0ca9f863..c5f61aca9 100644 --- a/src/sharpit/pytest_plugin/swallowed.py +++ b/src/sharpit/pytest_plugin/swallowed.py @@ -147,7 +147,7 @@ def attach_session(config: Any, state: Any) -> None: "limitations": [], } state.sink.facts.sources.append(source) - except Exception as exc: + except Exception as exc: # noqa: BLE001 plugin._record_hook_failure(state.sink, exc) @@ -157,7 +157,7 @@ def detach_session(state: Any) -> None: return try: capture.detach() - except Exception as exc: + except Exception as exc: # noqa: BLE001 from sharpit import pytest_plugin cast(Any, pytest_plugin)._record_hook_failure(state.sink, exc) diff --git a/src/sharpit/pytest_plugin/terminal.py b/src/sharpit/pytest_plugin/terminal.py index be57c5415..270c91db8 100644 --- a/src/sharpit/pytest_plugin/terminal.py +++ b/src/sharpit/pytest_plugin/terminal.py @@ -30,7 +30,7 @@ def pytest_terminal_summary(terminalreporter: Any, exitstatus: int, config: Any) if (notice := app_notice(getattr(state, "autodetected", None), state.options.require_app, data)) is not None: terminalreporter.write_line(notice) _write_summary(terminalreporter, config, state, plugin, data) - except Exception as exc: + except Exception as exc: # noqa: BLE001 plugin._refresh_report_after_hook_failure(state, config, plugin._record_hook_failure(state.sink, exc)) @@ -150,7 +150,7 @@ def _write_coverage(terminalreporter: Any, state: Any, data: dict[str, Any], *, checked.extend(f"{_advisor_name(advisor)} advisor" for advisor in sorted(ran)) unchecked = [_advisor_name(spec.id) for spec in ADVISORS if spec.id not in ran | {TEST_RUNTIME_GATES}] terminalreporter.write_line(f"sharpit checked: {', '.join(checked)}{capture_note}") - except Exception: + except Exception: # noqa: BLE001 terminalreporter.write_line("sharpit could not list what it checked") unchecked = [_advisor_name(spec.id) for spec in ADVISORS if spec.id != TEST_RUNTIME_GATES] terminalreporter.write_line( diff --git a/tests/docs/test_agent_playbooks_and_guide.py b/tests/docs/test_agent_playbooks_and_guide.py index f42aee0ff..3112f7194 100644 --- a/tests/docs/test_agent_playbooks_and_guide.py +++ b/tests/docs/test_agent_playbooks_and_guide.py @@ -354,7 +354,7 @@ def test_all_cited_cli_commands_parse(file_path: Path) -> None: parser.parse_args(tokens) except SystemExit as exc: failed_commands.append((raw_cmd, str(exc))) - except Exception as exc: + except Exception as exc: # noqa: BLE001 failed_commands.append((raw_cmd, str(exc))) assert not failed_commands, f"Failed to parse CLI commands in {file_path.name}: {failed_commands}" diff --git a/tests/engine/advisors/test_registry.py b/tests/engine/advisors/test_registry.py index a647a041c..7d13907f7 100644 --- a/tests/engine/advisors/test_registry.py +++ b/tests/engine/advisors/test_registry.py @@ -90,6 +90,7 @@ def test_registry_is_static(): "from sharpit.engine.advisors.dismissals import owning_panel as o;" "print(o('RAPI-MAP-001'), o('V-1::pypi:w'), o('test-runtime:sharpit.x:0123456789abcdef'))" ) + # fixed interpreter and code out = subprocess.run([sys.executable, "-c", code], capture_output=True, text=True, check=True) assert out.stdout.split() == ["rest-api", "vulnerabilities", "None"] diff --git a/tests/engine/capture/test_connection_journal.py b/tests/engine/capture/test_connection_journal.py index 93633b902..a2ebb2369 100644 --- a/tests/engine/capture/test_connection_journal.py +++ b/tests/engine/capture/test_connection_journal.py @@ -184,7 +184,7 @@ def test_connection_journal_data_source_never_carries_the_url_or_password(exposu def test_connection_journal_second_checkin_is_ignored(): handle = _install() with handle.engine.connect() as conn: - record = conn.connection._connection_record + record = conn.connection._connection_record # noqa: SLF001 assert len(_records(handle)) == 1 connections.checkin(record.dbapi_connection, record) # a live release: None is skipped @@ -196,7 +196,7 @@ def test_connection_journal_a_stale_checkout_is_not_offered_at_a_later_release() handle = _install() with handle.engine.connect() as conn: - record = conn.connection._connection_record + record = conn.connection._connection_record # noqa: SLF001 baseline = len(_records(handle)) record.info[connections.CHECKOUT_KEY] = connections.Checkout( [handle.context], handle.engine.pool, None @@ -490,7 +490,7 @@ def test_connection_journal_count_is_unknown_when_the_rows_left_the_trace_ring() # review finding (0.9.0): a raw sqlite3 statement on the same thread was counted as the held connection's def test_connection_journal_never_counts_a_raw_sqlite3_statement_as_the_connections(): - import sqlite3 + import sqlite3 # noqa: PLC0415 handle = _install() raw = sqlite3.connect(":memory:") diff --git a/tests/engine/capture/test_exception_journal.py b/tests/engine/capture/test_exception_journal.py index e03871616..b75de470e 100644 --- a/tests/engine/capture/test_exception_journal.py +++ b/tests/engine/capture/test_exception_journal.py @@ -67,7 +67,7 @@ def _records(handle: Any) -> tuple[dict[str, object], ...]: def _raised(exc: Exception) -> Exception: try: raise exc - except Exception as caught: + except Exception as caught: # noqa: BLE001 return caught @@ -106,7 +106,7 @@ def fail(n: int) -> Exception: if n: raise Brewing("a") raise Brewing("b") - except Exception as caught: + except Exception as caught: # noqa: BLE001 return caught store.record(fail(1), "log", None, "t") diff --git a/tests/engine/capture/test_exception_literals.py b/tests/engine/capture/test_exception_literals.py index 1a2ec57b6..6e0ed3067 100644 --- a/tests/engine/capture/test_exception_literals.py +++ b/tests/engine/capture/test_exception_literals.py @@ -29,7 +29,7 @@ class Color(enum.Enum): def _raised(factory: Callable[[], object]) -> BaseException: try: factory() - except BaseException as exc: + except BaseException as exc: # noqa: BLE001 return exc raise AssertionError("the call did not raise") diff --git a/tests/engine/capture/test_exceptions.py b/tests/engine/capture/test_exceptions.py index 9a8b3121e..36d4f5518 100644 --- a/tests/engine/capture/test_exceptions.py +++ b/tests/engine/capture/test_exceptions.py @@ -42,7 +42,7 @@ def _store(groups: int = 100, occurrences: int = 25, frames: int = 50, masker: M def _raised(factory: Callable[[], BaseException]) -> BaseException: try: raise factory() - except BaseException as exc: + except BaseException as exc: # noqa: BLE001 return exc @@ -420,7 +420,7 @@ def spy(_masker: Masker, text: str, dialect: Dialect) -> str: return text monkeypatch.setattr(exceptions, "error_text", spy) - ExceptionStore(10, 5, 5, MASKED, application=lambda: Dialect.SQLITE)._message("failed") + ExceptionStore(10, 5, 5, MASKED, application=lambda: Dialect.SQLITE)._message("failed") # noqa: SLF001 assert seen == [Dialect.SQLITE] diff --git a/tests/engine/capture/test_log_handler_locking.py b/tests/engine/capture/test_log_handler_locking.py index 92f406bd6..f90514313 100644 --- a/tests/engine/capture/test_log_handler_locking.py +++ b/tests/engine/capture/test_log_handler_locking.py @@ -152,7 +152,7 @@ def _run_child(script: str, tmp_path: Path) -> str: never a ``TimeoutExpired`` crash.""" out, err = tmp_path / "child.out", tmp_path / "child.err" with out.open("w") as stdout, err.open("w") as stderr: - child = subprocess.Popen( + child = subprocess.Popen( # our own interpreter and a literal script [sys.executable, "-c", textwrap.dedent(script)], stdout=stdout, stderr=stderr, diff --git a/tests/engine/capture/test_mail.py b/tests/engine/capture/test_mail.py index 39d8b425e..395a9ec44 100644 --- a/tests/engine/capture/test_mail.py +++ b/tests/engine/capture/test_mail.py @@ -688,8 +688,8 @@ def test_uninstall_leaves_no_recorder_when_smtplib_cannot_be_wrapped(monkeypatch # code-review finding 1: a patched sendmail made arm() answer False and the teardown was never registered monkeypatch.setattr(smtplib.SMTP, "sendmail", unittest.mock.MagicMock(name="host_sendmail")) with harness(email_dev_trap=True): - assert mail._live() - assert mail._live() == [] + assert mail._live() # noqa: SLF001 + assert mail._live() == [] # noqa: SLF001 class _SeesTheImport(importlib.abc.MetaPathFinder): @@ -705,9 +705,9 @@ def find_spec(self, fullname: str, path: Any = None, target: Any = None) -> None def _behind_the_hook(monkeypatch: pytest.MonkeyPatch, finder: importlib.abc.MetaPathFinder) -> None: """Put ``finder`` right behind the trap hook, wherever an earlier test left the hook (it stays on ``meta_path``).""" monkeypatch.setattr(sys, "meta_path", list(sys.meta_path)) - if mail._FINDER not in sys.meta_path: - sys.meta_path.insert(0, mail._FINDER) - sys.meta_path.insert(sys.meta_path.index(mail._FINDER) + 1, finder) + if mail._FINDER not in sys.meta_path: # noqa: SLF001 + sys.meta_path.insert(0, mail._FINDER) # noqa: SLF001 + sys.meta_path.insert(sys.meta_path.index(mail._FINDER) + 1, finder) # noqa: SLF001 def test_a_late_import_still_reaches_the_finders_behind_the_trap_hook( @@ -868,7 +868,7 @@ def create_module(self, _spec: Any) -> None: return None def exec_module(self, module: types.ModuleType) -> None: - exec(self.sources[module.__name__], module.__dict__) + exec(self.sources[module.__name__], module.__dict__) # a test stand-in's own source class _SharedLoaderFinder(importlib.abc.MetaPathFinder): @@ -1094,14 +1094,14 @@ def other_thread() -> None: modules.append(late_aiosmtplib()) imported.set() - real_watch = mail._watch_import + real_watch = mail._watch_import # noqa: SLF001 def watch_after_the_import() -> None: reached.set() assert imported.wait(5) real_watch() - monkeypatch.setattr(sys, "meta_path", [f for f in sys.meta_path if f is not mail._FINDER]) + monkeypatch.setattr(sys, "meta_path", [f for f in sys.meta_path if f is not mail._FINDER]) # noqa: SLF001 monkeypatch.setattr(mail, "_watch_import", watch_after_the_import) worker = threading.Thread(target=other_thread) worker.start() @@ -1168,7 +1168,7 @@ def holder() -> None: with mail._LOCK: holding.set() release.wait(10) - still_held.append(mail._LOCK.locked()) + still_held.append(mail._LOCK.locked()) # noqa: SLF001 holder_thread = threading.Thread(target=holder) holder_thread.start() @@ -1196,7 +1196,7 @@ def test_a_reload_that_replaces_the_smtp_class_is_wrapped_again( mail.ensure_wrapped() assert _wrapped_after_late_import(module) namespace: dict[str, Any] = {} - exec(_LATE_AIOSMTPLIB, namespace) + exec(_LATE_AIOSMTPLIB, namespace) # what importlib.reload does to the same module object module.SMTP = namespace["SMTP"] # type: ignore[attr-defined] assert not _wrapped_after_late_import(module) mail.ensure_wrapped() @@ -1209,7 +1209,7 @@ def test_the_module_that_just_loaded_is_the_one_wrapped( # PR #182 r4 review: _wrap_senders looked "aiosmtplib" up again in sys.modules, not the module it was given with harness(email_dev_trap=True) as h: module = _loaded_past_the_hook(h, late_aiosmtplib, monkeypatch) - real_unwrap = mail._unwrap + real_unwrap = mail._unwrap # noqa: SLF001 def swap_then_unwrap(families: Any) -> None: sys.modules["aiosmtplib"] = types.ModuleType("aiosmtplib") # another thread replaced the entry @@ -1232,7 +1232,7 @@ def test_an_import_error_from_a_finder_behind_the_hook_is_not_replaced_by_the_re ): # PR #182 r4 review: a finder's own ImportError means nothing loads, so the host must see that error with harness(email_dev_trap=True): - behind = sys.meta_path.index(mail._FINDER) + 1 + behind = sys.meta_path.index(mail._FINDER) + 1 # noqa: SLF001 monkeypatch.setattr(sys, "meta_path", [*sys.meta_path[:behind], _FailingFinder(), *sys.meta_path[behind:]]) with pytest.raises(ImportError, match="behind failed"): late_aiosmtplib() diff --git a/tests/engine/capture/test_sql_journal.py b/tests/engine/capture/test_sql_journal.py index 6f744c75c..96738f44f 100644 --- a/tests/engine/capture/test_sql_journal.py +++ b/tests/engine/capture/test_sql_journal.py @@ -151,8 +151,8 @@ def test_sql_journal_executemany_records_its_batch_size(): def test_sql_journal_event_content_is_this_exact_dict(monkeypatch: pytest.MonkeyPatch): """W5a P-sql r2: the hot-path rewrite changes no field; the clocks are frozen, so every value is known.""" - from sharpit.engine.sources import dispatch - from sharpit.engine.sqltext import Dialect + from sharpit.engine.sources import dispatch # noqa: PLC0415 + from sharpit.engine.sqltext import Dialect # noqa: PLC0415 handle, _ = _install(sql_trace_capture_call_site=False) monkeypatch.setattr("time.time_ns", lambda: 1_700_000_000_123_456_789) @@ -197,10 +197,10 @@ def test_sql_journal_event_size_is_what_the_flat_walk_charges( monkeypatch: pytest.MonkeyPatch, info: str | None, phase: str | None, site: str | None, trace_id: str | None ): """The producer charges the event's size itself (no walk per statement): it must equal the journal's own walk.""" - from sharpit.engine import otel + from sharpit.engine import otel # noqa: PLC0415 from sharpit.engine.capture.journal import _flat # pyright: ignore[reportPrivateUsage] - from sharpit.engine.sources import dispatch - from sharpit.engine.sqltext import Dialect + from sharpit.engine.sources import dispatch # noqa: PLC0415 + from sharpit.engine.sqltext import Dialect # noqa: PLC0415 monkeypatch.setattr(otel, "current_trace_id", lambda: trace_id) handle, _ = _install() @@ -222,8 +222,8 @@ def test_sql_journal_event_size_is_what_the_flat_walk_charges( def _event(**fields: Any) -> Any: - from sharpit.engine.sources import dispatch - from sharpit.engine.sqltext import Dialect + from sharpit.engine.sources import dispatch # noqa: PLC0415 + from sharpit.engine.sqltext import Dialect # noqa: PLC0415 values = { "source": "sqlalchemy", "sql": "select 1", "parameters": None, "executemany": False, "batch_size": None, @@ -254,7 +254,7 @@ def test_sql_journal_paused_panel_and_sql_not_a_journal_source_records_nothing() def test_sql_journal_phase_is_null_outside_a_request_even_in_the_lifespan(): """W5a P-sql r3: BootUI's RequestPhase is FILTERS/HANDLER/RESPONSE in a request, null outside (SqlPayload.java).""" - from sharpit.engine.sources import dispatch + from sharpit.engine.sources import dispatch # noqa: PLC0415 handle, _ = _install() handle.context.capture.sql_trace.lifespan_phase = "STARTUP" @@ -264,9 +264,9 @@ def test_sql_journal_phase_is_null_outside_a_request_even_in_the_lifespan(): def test_sql_journal_batch_size_of_a_sqlite3_executemany_fed_a_generator_is_unknown_zero(): """W5a P-sql r3: a batch whose size is not known is 0, never read as unbatched (SqlTraceRecorder.java:650-652).""" - import sqlite3 + import sqlite3 # noqa: PLC0415 - from sharpit.engine.sources import sqlite + from sharpit.engine.sources import sqlite # noqa: PLC0415 handle, _ = _install() try: @@ -300,7 +300,7 @@ def boom(*_args: object, **_kwargs: object) -> bool: def test_sql_journal_event_request_id_only_for_a_request_of_its_own_context(): """The context check in ``_journal_event`` itself: routing already guarantees it, the event does not rely on it.""" - from sharpit.engine.sources import dispatch + from sharpit.engine.sources import dispatch # noqa: PLC0415 handle, _ = _install() recorder = handle.context.capture.sql_trace diff --git a/tests/engine/capture/test_sqltrace.py b/tests/engine/capture/test_sqltrace.py index f75a30799..28cc97002 100644 --- a/tests/engine/capture/test_sqltrace.py +++ b/tests/engine/capture/test_sqltrace.py @@ -661,7 +661,7 @@ def test_a_shape_without_a_fingerprint_is_not_aggregated(monkeypatch: pytest.Mon def _app_function() -> str | None: - return sqltrace.call_site(sys._getframe()) + return sqltrace.call_site(sys._getframe()) # noqa: SLF001 def test_call_site_is_first_application_frame(): @@ -691,7 +691,7 @@ def test_call_site_without_greenlet(monkeypatch: pytest.MonkeyPatch): def test_call_site_walk_is_bounded(): # derived: spec §7.3, at most 64 frames are walked - here = sys._getframe() + here = sys._getframe() # noqa: SLF001 assert sqltrace.call_site(_library_frames(63, here)) is not None # the app frame is the 64th assert sqltrace.call_site(_library_frames(64, here)) is None diff --git a/tests/engine/capture/test_traces.py b/tests/engine/capture/test_traces.py index fce118472..50e8816e2 100644 --- a/tests/engine/capture/test_traces.py +++ b/tests/engine/capture/test_traces.py @@ -584,7 +584,7 @@ def test_mysql_span_status_message_reads_as_the_span_dialect(): def test_span_surface_resolves_its_application_family() -> None: buf = SpanBuffer(MASKED, application=lambda: Dialect.POSTGRESQL, capacity=10, self_path="/sharpit") raw = span(kind="CLIENT", attributes={"db.system": "mysql", "db.statement": "select 1"}) - shown = attribute(buf._span(raw), "db.statement") + shown = attribute(buf._span(raw), "db.statement") # noqa: SLF001 assert shown == "[statement hidden: unsupported database]" diff --git a/tests/engine/collectors/architecture/test_architecture_report.py b/tests/engine/collectors/architecture/test_architecture_report.py index fb5f28fac..714349cf8 100644 --- a/tests/engine/collectors/architecture/test_architecture_report.py +++ b/tests/engine/collectors/architecture/test_architecture_report.py @@ -46,10 +46,10 @@ def test_post_scan_golden_parity(tmp_path: Path) -> None: def test_post_scan_golden_parity_on_fixture_app(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: # ported: ArchitectureScannerTests.scanRefreshesCachedReportAndAppliesDismissals (review fix 8: a real scan) - import sys - import types + import sys # noqa: PLC0415 + import types # noqa: PLC0415 - from sharpit.engine.collectors.architecture.report import scan_application + from sharpit.engine.collectors.architecture.report import scan_application # noqa: PLC0415 pkg = tmp_path / "arch_golden_app" pkg.mkdir() diff --git a/tests/engine/collectors/architecture/test_graph.py b/tests/engine/collectors/architecture/test_graph.py index 8eecdbaf5..e38f4f697 100644 --- a/tests/engine/collectors/architecture/test_graph.py +++ b/tests/engine/collectors/architecture/test_graph.py @@ -98,7 +98,7 @@ def test_external_imports_ignored(tmp_path: Path) -> None: def test_deep_import_chain_does_not_crash() -> None: # an import chain deeper than the interpreter's recursion limit (bound: 2,000 files), closed into one cycle - from sharpit.engine.collectors.architecture.graph import ImportEdge, ImportGraph + from sharpit.engine.collectors.architecture.graph import ImportEdge, ImportGraph # noqa: PLC0415 names = [f"deep_app.m{i:04d}" for i in range(3000)] graph = ImportGraph() diff --git a/tests/engine/collectors/fastapi_advisor/support.py b/tests/engine/collectors/fastapi_advisor/support.py index 1504fa160..7e94b76db 100644 --- a/tests/engine/collectors/fastapi_advisor/support.py +++ b/tests/engine/collectors/fastapi_advisor/support.py @@ -22,7 +22,7 @@ def load_app(tmp_path: Path, source: str, name: str = "main") -> tuple[dict[str, text = textwrap.dedent(source) path.write_text(text, encoding="utf-8") namespace: dict[str, Any] = {"__name__": f"app_pkg.{name}"} - exec(compile(text, os.path.realpath(path), "exec"), namespace) + exec(compile(text, os.path.realpath(path), "exec"), namespace) # the test's own fixture source return namespace, root, build_index(root, thread=False) diff --git a/tests/engine/collectors/github/test_github_client.py b/tests/engine/collectors/github/test_github_client.py index 018fe03ca..be6787f96 100644 --- a/tests/engine/collectors/github/test_github_client.py +++ b/tests/engine/collectors/github/test_github_client.py @@ -816,7 +816,7 @@ def _refresh(github: Any) -> dict[str, Any]: """``refresh``, with an escaped exception turned into a report the assertions can name (a crash is not a red).""" try: return github.refresh(repository()) - except Exception as error: + except Exception as error: # noqa: BLE001 return {"status": f"raised {type(error).__name__}", "message": None, "connected": None} diff --git a/tests/engine/insights/test_insights_k1.py b/tests/engine/insights/test_insights_k1.py index b57c29ee8..2b860b83f 100644 --- a/tests/engine/insights/test_insights_k1.py +++ b/tests/engine/insights/test_insights_k1.py @@ -271,7 +271,7 @@ def test_a_statement_straddling_the_request_end_is_clipped_to_it(run: Run) -> No def test_ai_calls_are_not_placed_and_the_breakdown_says_their_time_is_unattributed(run: Run) -> None: - from sharpit.engine.collectors.ai.recognizer import ai_journal_event + from sharpit.engine.collectors.ai.recognizer import ai_journal_event # noqa: PLC0415 for _ in range(6): request_id = run.request(ORDERS, 40, (10, 10)) diff --git a/tests/engine/sqltext/test_resolver.py b/tests/engine/sqltext/test_resolver.py index f13e96a44..cdc690163 100644 --- a/tests/engine/sqltext/test_resolver.py +++ b/tests/engine/sqltext/test_resolver.py @@ -269,7 +269,7 @@ class Unreadable: def _moduleless_error() -> type[Exception]: """A class whose dictionary has no ``__module__``: ``type`` raises when asked for it.""" namespace: dict[str, object] = {} - exec("E = type('Error', (Exception,), {})", namespace) + exec("E = type('Error', (Exception,), {})", namespace) # globals without __name__ return namespace["E"] # pyright: ignore[reportReturnType] diff --git a/tests/engine/test_sensors_audit.py b/tests/engine/test_sensors_audit.py index 38bad2b01..6abd9e464 100644 --- a/tests/engine/test_sensors_audit.py +++ b/tests/engine/test_sensors_audit.py @@ -378,7 +378,7 @@ def test_the_processes_sensor_survives_odd_arguments() -> None: def _files(**options: Any) -> FilesSensor: - base = {"cwd": "/work/app", "home": "/home/ann", "tmp": "/tmp"} + base = {"cwd": "/work/app", "home": "/home/ann", "tmp": "/tmp"} # a pattern under test, never opened return FilesSensor(**{**base, **options}) diff --git a/tests/engine/test_swallowed_overhead.py b/tests/engine/test_swallowed_overhead.py index baedb5204..8d44f87c9 100644 --- a/tests/engine/test_swallowed_overhead.py +++ b/tests/engine/test_swallowed_overhead.py @@ -45,7 +45,7 @@ def _library(tmp_path: Path) -> Callable[[], int]: path.parent.mkdir() path.write_text(LIBRARY, "utf-8") namespace: dict[str, Callable[[], int]] = {} - exec(compile(LIBRARY, str(path), "exec"), namespace) + exec(compile(LIBRARY, str(path), "exec"), namespace) # a planted library module return namespace["library_handles"] diff --git a/tests/fastapi/test_w6_audit_sensors.py b/tests/fastapi/test_w6_audit_sensors.py index e1b7fae4b..720bf4247 100644 --- a/tests/fastapi/test_w6_audit_sensors.py +++ b/tests/fastapi/test_w6_audit_sensors.py @@ -199,7 +199,7 @@ def test_a_copy_records_one_row_per_side_not_the_files_copyfile_opens( def opener(file: Any, mode: str = "r", *args: Any, **kwargs: Any) -> Any: hook.fire("open", file, mode, 0) # the event the real hook delivers from inside shutil's own open - return open(file, mode, *args, **kwargs) + return open(file, mode, *args, **kwargs) # shutil closes what it opened with _client(app), monkeypatch.context() as patched: patched.setattr(sys, "audit", hook.fire) diff --git a/tests/fixtures/apps/swallow_twins/twinlib.py b/tests/fixtures/apps/swallow_twins/twinlib.py index 52a5d0207..d382bd793 100644 --- a/tests/fixtures/apps/swallow_twins/twinlib.py +++ b/tests/fixtures/apps/swallow_twins/twinlib.py @@ -11,7 +11,7 @@ def count_rows(table: str) -> int: connection = sqlite3.connect(":memory:") try: - return connection.execute(f"SELECT COUNT(*) FROM {table}").fetchone()[0] + return connection.execute(f"SELECT COUNT(*) FROM {table}").fetchone()[0] # a fixed fixture name except sqlite3.OperationalError: log.warning("no such table: %s", table) raise diff --git a/tests/live/conftest.py b/tests/live/conftest.py index 225bfa7b6..9d1874107 100644 --- a/tests/live/conftest.py +++ b/tests/live/conftest.py @@ -21,7 +21,7 @@ from sqlalchemy.engine import make_url HERE = Path(__file__).parent -PASSWORD = "sharpit" +PASSWORD = "sharpit" # a throwaway container DATABASE = "sharpit" BOOT_SECONDS = 120.0 diff --git a/tests/pytest_plugin/test_plugin_apps.py b/tests/pytest_plugin/test_plugin_apps.py index a620d05b2..b8139da12 100644 --- a/tests/pytest_plugin/test_plugin_apps.py +++ b/tests/pytest_plugin/test_plugin_apps.py @@ -597,7 +597,7 @@ def test_load_app_calls_a_factory_annotated_with_a_type_checking_only_name(monke namespace: dict[str, object] = {"made": app} source = "def create_app(settings: Settings | None = None):\n return made\n" # dont_inherit: this file's `from __future__ import annotations` would turn the annotation into a string - exec(compile(source, "hostmod.py", "exec", dont_inherit=True), namespace) + exec(compile(source, "hostmod.py", "exec", dont_inherit=True), namespace) # a host module on 3.14 _fake_module(monkeypatch, target=namespace["create_app"]) try: diff --git a/tests/pytest_plugin/test_plugin_swallowed.py b/tests/pytest_plugin/test_plugin_swallowed.py index 1e6db436a..009b3e676 100644 --- a/tests/pytest_plugin/test_plugin_swallowed.py +++ b/tests/pytest_plugin/test_plugin_swallowed.py @@ -299,7 +299,7 @@ def test_library_handler_is_ignored( library.parent.mkdir() library.write_text(LIBRARY, "utf-8") namespace: dict[str, Any] = {} - exec(compile(LIBRARY, str(library), "exec"), namespace) + exec(compile(LIBRARY, str(library), "exec"), namespace) # a planted library module namespace["library_swallow"]() diff --git a/tests/test_example_gate.py b/tests/test_example_gate.py index fec88053d..26a967d81 100644 --- a/tests/test_example_gate.py +++ b/tests/test_example_gate.py @@ -4,7 +4,7 @@ import json import shutil -import xml.etree.ElementTree as ET +import xml.etree.ElementTree as ET # parses the report this test just wrote from pathlib import Path from typing import Any diff --git a/tests/test_side_effect_guard.py b/tests/test_side_effect_guard.py index f82ba1d9f..fdc8d674d 100644 --- a/tests/test_side_effect_guard.py +++ b/tests/test_side_effect_guard.py @@ -140,7 +140,7 @@ def test_side_effect_guard_allows_config_getenv_scan(tmp_path: Path, monkeypatch # spec §14: config's lazy getenv scan on its first GET is the one declared exemption from "no app source read" root = _app_root(tmp_path, monkeypatch) scan: dict[str, Any] = {"__name__": "sharpit.engine.collectors.config.getenv_scan"} - exec("def read(path):\n return path.read_text(encoding='utf-8')\n", scan) + exec("def read(path):\n return path.read_text(encoding='utf-8')\n", scan) # a frame in config guard = SideEffectGuard(tmp_path / "state") guard.watch_sources(root) try: From 3621dcca8dd4124e7caff7d150d5252a5cf867f1 Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 16:06:18 +0000 Subject: [PATCH 07/14] chore: restore the reasons on removed suppressions Signed-off-by: Flavio Oliva --- examples/fastapi_sqla/app.py | 2 +- scripts/ci/check_live_tests.py | 6 +++--- scripts/dev/capture_sql_errors.py | 8 ++++---- scripts/dev/live_fuzz.py | 4 ++-- src/sharpit/engine/advisors/registry.py | 2 +- src/sharpit/engine/appsource.py | 4 ++-- src/sharpit/engine/capture/__init__.py | 2 +- src/sharpit/engine/capture/journal.py | 8 ++++---- src/sharpit/engine/capture/lockfree.py | 2 +- src/sharpit/engine/capture/logtail.py | 4 ++-- src/sharpit/engine/capture/mail.py | 10 +++++----- src/sharpit/engine/capture/securitylogs.py | 2 +- src/sharpit/engine/capture/streams.py | 2 +- src/sharpit/engine/capture/transactions.py | 18 +++++++++--------- src/sharpit/engine/capture/wraps.py | 2 +- src/sharpit/engine/collectors/alembic.py | 2 +- src/sharpit/engine/collectors/appsecurity.py | 2 +- src/sharpit/engine/collectors/data.py | 4 ++-- .../collectors/database_advisor/catalog.py | 6 +++--- .../collectors/database_advisor/report.py | 2 +- .../collectors/database_advisor/rules_orm.py | 2 +- .../database_advisor/rules_vendor.py | 2 +- src/sharpit/engine/collectors/health.py | 2 +- .../engine/collectors/insights/agent_view.py | 2 +- .../collectors/insights/not_exercised.py | 2 +- .../engine/collectors/insights/service.py | 4 ++-- .../engine/collectors/insights/snapshot.py | 6 +++--- .../engine/collectors/metrics/__init__.py | 4 ++-- .../engine/collectors/mysql/sections.py | 4 ++-- .../collectors/pentesting/cache_control.py | 2 +- .../pentesting/cookie_observation.py | 2 +- src/sharpit/engine/collectors/pools.py | 2 +- .../engine/collectors/postgresql/sections.py | 4 ++-- .../engine/collectors/scheduled/__init__.py | 2 +- .../engine/collectors/security/report.py | 2 +- .../collectors/security/static_analysis.py | 4 ++-- src/sharpit/engine/models.py | 2 +- src/sharpit/engine/otel.py | 2 +- src/sharpit/engine/probe.py | 2 +- src/sharpit/engine/sources/dispatch.py | 6 +++--- src/sharpit/engine/sources/sqlite.py | 4 ++-- src/sharpit/engine/sqla/connections.py | 4 ++-- src/sharpit/engine/sqla/inspect.py | 8 ++++---- src/sharpit/engine/sqla/listeners.py | 6 +++--- src/sharpit/engine/sqla/orm.py | 2 +- src/sharpit/engine/sqla/readonly.py | 4 ++-- src/sharpit/engine/sqltext/errors.py | 2 +- src/sharpit/engine/tools04/security.py | 2 +- src/sharpit/fastapi/capture.py | 10 +++++----- src/sharpit/fastapi/capture_exceptions.py | 4 ++-- src/sharpit/fastapi/introspection_errors.py | 4 ++-- src/sharpit/fastapi/introspection_security.py | 2 +- src/sharpit/fastapi/introspector.py | 10 +++++----- src/sharpit/fastapi/pentesting_exposure.py | 2 +- src/sharpit/fastapi/sink_ownership.py | 2 +- src/sharpit/flask/introspector.py | 2 +- src/sharpit/pytest_plugin/apps.py | 6 +++--- .../pytest_plugin/http_security_asgi.py | 4 ++-- .../pytest_plugin/http_security_flask.py | 2 +- src/sharpit/pytest_plugin/swallowed.py | 2 +- tests/conftest.py | 2 +- tests/engine/capture/test_exception_journal.py | 2 +- tests/engine/capture/test_log_journal.py | 2 +- tests/engine/capture/test_mail.py | 4 ++-- tests/engine/capture/test_securitylogs.py | 2 +- tests/engine/capture/test_sqltrace.py | 2 +- tests/engine/sqltext/test_identity_key.py | 2 +- tests/engine/sqltext/test_resolver.py | 2 +- tests/engine/test_application_family.py | 2 +- tests/engine/test_appsource.py | 2 +- tests/engine/test_data.py | 2 +- tests/engine/test_health.py | 4 ++-- tests/engine/test_sensors_audit.py | 2 +- tests/engine/test_sqla_inspect.py | 2 +- tests/engine/test_sqla_read_only_dialects.py | 6 +++--- .../test_capture_without_pydantic_core.py | 2 +- tests/fastapi/test_database_advisor_leased.py | 4 ++-- .../fastapi/test_dialect_conflict_surfaces.py | 2 +- tests/fastapi/test_introspector_providers.py | 2 +- tests/fastapi/test_introspector_routes.py | 2 +- tests/fastapi/test_metrics_route.py | 2 +- tests/fastapi/test_mysql_read_only_leased.py | 2 +- .../test_pentesting_exposure_adapter.py | 6 +++--- tests/live/conftest.py | 4 ++-- tests/live/oracle.py | 4 ++-- .../pytest_plugin/test_http_security_flask.py | 2 +- tests/pytest_plugin/test_plugin_apps.py | 2 +- tests/safety/test_b_security_safety.py | 2 +- tests/scripts/test_shard_weights.py | 2 +- tests/surface.py | 2 +- tests/test_live_server_scope.py | 2 +- tests/test_safety_lane_sweeps.py | 2 +- tests/test_side_effect_guard.py | 2 +- 93 files changed, 158 insertions(+), 158 deletions(-) diff --git a/examples/fastapi_sqla/app.py b/examples/fastapi_sqla/app.py index 3ef48f9df..7fb8096a6 100644 --- a/examples/fastapi_sqla/app.py +++ b/examples/fastapi_sqla/app.py @@ -68,7 +68,7 @@ def otel_provider() -> object | None: The example installs it as the global provider (sharpit itself never does); without the SDK it returns None. """ try: - from opentelemetry import trace + from opentelemetry import trace # noqa: PLC0415 - optional, not a dependency of the sample from opentelemetry.sdk.trace import TracerProvider # noqa: PLC0415 except ImportError: return None diff --git a/scripts/ci/check_live_tests.py b/scripts/ci/check_live_tests.py index 971c2ada2..2928a1f5f 100644 --- a/scripts/ci/check_live_tests.py +++ b/scripts/ci/check_live_tests.py @@ -12,7 +12,7 @@ import argparse import re import sys -import xml.etree.ElementTree as ET +import xml.etree.ElementTree as ET # the report is pytest's own output, written in this job from collections.abc import Sequence from pathlib import Path @@ -20,7 +20,7 @@ ORACLE_LEG = re.compile(r"test_oracle_row\[(\w+)-(\w+)-\d+\]$") -def _suite_failures(suites: Sequence[ET.Element]) -> list[str]: +def _suite_failures(suites: Sequence[ET.Element]) -> list[str]: # one linear sequence of report checks failures: list[str] = [] for suite in suites: try: @@ -72,7 +72,7 @@ def _oracle_leg_failures(cases: Sequence[ET.Element], legs: Sequence[str]) -> li def check(report: Path, required: Sequence[str], legs: Sequence[str] = ()) -> list[str]: try: - root = ET.parse(report).getroot() + root = ET.parse(report).getroot() # as above except (ET.ParseError, OSError) as error: return [f"Cannot read test report {report.name}: {type(error).__name__}"] suites = [root] if root.tag == "testsuite" else list(root.iter("testsuite")) diff --git a/scripts/dev/capture_sql_errors.py b/scripts/dev/capture_sql_errors.py index 9a93c7f31..efa51b062 100644 --- a/scripts/dev/capture_sql_errors.py +++ b/scripts/dev/capture_sql_errors.py @@ -339,7 +339,7 @@ def work(conn: Any) -> None: try: run_conn(d, ctx, work, hide_parameters=c.hide) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the error text is the product return exc, handler.messages raise SystemExit(f"{d.name}/{c.name}: the statement did not fail") finally: @@ -397,7 +397,7 @@ def raw_run(d: Driver, ctx: Ctx, sql: str, params: tuple[str, ...]) -> BaseExcep asyncio.run(_RAW_ASYNC[d.name](ctx, mod, sql, params)) else: _raw_sync(d, ctx, mod, sql, params) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the error text is the product return exc raise SystemExit(f"{d.name} raw: the statement did not fail") @@ -515,7 +515,7 @@ def main() -> None: def create_database(flavor: str, port: int, sql: str) -> None: if flavor == "postgresql": - import psycopg2 + import psycopg2 # noqa: PLC0415 - test-only driver conn = psycopg2.connect(host="127.0.0.1", port=port, user="postgres", dbname="postgres") conn.autocommit = True @@ -525,7 +525,7 @@ def create_database(flavor: str, port: int, sql: str) -> None: finally: conn.close() else: - import pymysql + import pymysql # noqa: PLC0415 - test-only driver conn = pymysql.connect(host="127.0.0.1", port=port, user="root") try: diff --git a/scripts/dev/live_fuzz.py b/scripts/dev/live_fuzz.py index 69b6193a3..9c7a6f453 100644 --- a/scripts/dev/live_fuzz.py +++ b/scripts/dev/live_fuzz.py @@ -129,7 +129,7 @@ def server_runner(key: str, session: str) -> Iterator[tuple[str, Run]]: yield "sqlite", lambda text: repr(db.execute(text, _Null()).fetchall()) db.close() return - import sqlalchemy as sa + import sqlalchemy as sa # noqa: PLC0415 - the live profile's stack, not needed for sqlite from tests.live.conftest import _boot # pyright: ignore[reportPrivateUsage] with _boot(key) as server: @@ -152,7 +152,7 @@ def run(text: str) -> str: setup = raw.cursor() try: # as the oracle: a binary log refuses CREATE FUNCTION without it setup.execute("SET GLOBAL log_bin_trust_function_creators = 1") - except Exception as refused: + except Exception as refused: # noqa: BLE001 - those rows only stop counting print(f"live_fuzz: {key}: {refused}", file=sys.stderr) if session: setup.execute(f"SET SESSION sql_mode = '{session}'") diff --git a/src/sharpit/engine/advisors/registry.py b/src/sharpit/engine/advisors/registry.py index 63916a024..701599254 100644 --- a/src/sharpit/engine/advisors/registry.py +++ b/src/sharpit/engine/advisors/registry.py @@ -92,7 +92,7 @@ def _prefixed(advisor: str, *prefixes: str) -> AdvisorSpec: ) -def advisor_for(id: str) -> AdvisorSpec | None: +def advisor_for(id: str) -> AdvisorSpec | None: # noqa: A002 - the spec names this parameter `id` """The advisor that owns a rule id or finding fingerprint, else None. A fingerprint prefix decides first and is then validated whole, so ``test-runtime:...::pypi:...`` is never read as diff --git a/src/sharpit/engine/appsource.py b/src/sharpit/engine/appsource.py index 567dc43c6..9f7cf0d7c 100644 --- a/src/sharpit/engine/appsource.py +++ b/src/sharpit/engine/appsource.py @@ -76,7 +76,7 @@ def _loaded_location(module: ModuleType) -> Path | None: if paths is not None: try: first = next((p for p in paths if isinstance(p, str)), None) - except Exception: + except Exception: # noqa: BLE001 - a custom __path__ object: degrade; never crash the host return None return Path(first) if first else None file = namespace.get("__file__") @@ -384,7 +384,7 @@ def _fill(index: SourceIndex, root: Path, max_files: int, max_file_bytes: int, d def _guarded_fill(index: SourceIndex, root: Path, max_files: int, max_file_bytes: int, deadline: float) -> None: try: _fill(index, root, max_files, max_file_bytes, deadline) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - defensive: a scan failure is a limitation; never a crash index.limitations.append(f"source scan failed: {type(exc).__name__}") diff --git a/src/sharpit/engine/capture/__init__.py b/src/sharpit/engine/capture/__init__.py index a459ea6b3..7a0924c7b 100644 --- a/src/sharpit/engine/capture/__init__.py +++ b/src/sharpit/engine/capture/__init__.py @@ -63,7 +63,7 @@ def _each(self, hooks: Iterable[Suspendable], action: str, *, reset: bool = True method = getattr(hook, action, None) if method is not None: method() - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a failing hook never strands the others self.failures.append(f"{hook.name}: {type(exc).__name__}: {exc}") diff --git a/src/sharpit/engine/capture/journal.py b/src/sharpit/engine/capture/journal.py index 5d0baac25..4556a4e12 100644 --- a/src/sharpit/engine/capture/journal.py +++ b/src/sharpit/engine/capture/journal.py @@ -295,7 +295,7 @@ def offer_flat(self, event: dict[str, str | int | bool | None], size: int | None return False try: source = event["source"] - except Exception: + except Exception: # noqa: BLE001 - publishing never raises into the host self.count_dropped(FAILED) return False if type(source) is not str: @@ -304,7 +304,7 @@ def offer_flat(self, event: dict[str, str | int | bool | None], size: int | None with self._lock: try: return self._append((event, size, started), source) - except Exception: + except Exception: # noqa: BLE001 - publishing never raises into the host self._dropped[FAILED] += 1 return False @@ -316,7 +316,7 @@ def _offer(self, event: Event, store: Callable[[Event], tuple[object, int, int]] try: source = event.get("source") # the host's own value, as on release: a copy turns bytes into a string prepared = store(event) # host ``__str__``/``__repr__`` run here, before the lock: no one waits on them - except Exception: + except Exception: # noqa: BLE001 - publishing never raises into the host; the event is dropped and counted self.count_dropped(FAILED) return False finally: @@ -327,7 +327,7 @@ def _offer(self, event: Event, store: Callable[[Event], tuple[object, int, int]] with self._lock: try: return self._append(prepared, source) - except Exception: + except Exception: # noqa: BLE001 - as above self._dropped[FAILED] += 1 return False diff --git a/src/sharpit/engine/capture/lockfree.py b/src/sharpit/engine/capture/lockfree.py index 2d6f21c1f..fcb2c74ba 100644 --- a/src/sharpit/engine/capture/lockfree.py +++ b/src/sharpit/engine/capture/lockfree.py @@ -13,7 +13,7 @@ class LockFreeHandler(logging.Handler): - def createLock(self) -> None: + def createLock(self) -> None: # noqa: N802 - the stdlib hook name self.lock = None # ``acquire``/``release`` (used by ``logging.shutdown``) are no-ops without a lock def handle(self, record: logging.LogRecord) -> bool: diff --git a/src/sharpit/engine/capture/logtail.py b/src/sharpit/engine/capture/logtail.py index c4e3e8536..4e863162b 100644 --- a/src/sharpit/engine/capture/logtail.py +++ b/src/sharpit/engine/capture/logtail.py @@ -141,7 +141,7 @@ def _first_classified(values: Iterable[object]) -> BaseException | None: def _format_classified(msg: object, substituted: object, fallback: BaseException) -> str: try: return msg % substituted if type(msg) is str else type(fallback).__name__ - except Exception: + except Exception: # noqa: BLE001 - a bad format string falls back to the classified exception's class name return type(fallback).__name__ @@ -174,7 +174,7 @@ def _record_message(record: logging.LogRecord, masker: Masker, dialect: Dialect) return formatted try: return record.getMessage() - except Exception: + except Exception: # noqa: BLE001 - a bad format string return record.msg if type(record.msg) is str else type(record.msg).__name__ diff --git a/src/sharpit/engine/capture/mail.py b/src/sharpit/engine/capture/mail.py index 4761d3abe..62114b979 100644 --- a/src/sharpit/engine/capture/mail.py +++ b/src/sharpit/engine/capture/mail.py @@ -257,7 +257,7 @@ def _publish(self, entry: MailEntry) -> None: "codePathStamp": 0, } ) - except Exception: + except Exception: # noqa: BLE001 - publishing never disturbs the application's mail return # --- reads -------------------------------------------------------------------------------------------------------- @@ -375,7 +375,7 @@ def _trapping() -> bool: """Whether a session opened now is trapped.""" try: return _traps(_targets()) - except Exception: + except Exception: # noqa: BLE001 - never an error into the host's connect return False @@ -387,14 +387,14 @@ def _dispatch(sender: str, recipients: object, message: object, trapped: bool) - try: targets = _targets() want = _traps(targets) - except Exception: + except Exception: # noqa: BLE001 - the host's mail is never lost to the capture return trapped captured: list[tuple[MailRecorder, MailMessage]] = [] complete = True for recorder in targets: try: parsed = recorder.capture(sender, recipients, message) - except Exception: + except Exception: # noqa: BLE001 - the host's mail is never lost to the capture complete = False continue if parsed is not None: @@ -575,7 +575,7 @@ def wrapped(module: Any) -> None: spec.loader.exec_module = wrapped # type: ignore[union-attr] except ImportError: # a finder's own failure: nothing loads, so the host sees that error, not ours raise - except Exception as exc: + except Exception as exc: # noqa: BLE001 - never a bare error into the host's import return _refuse_or_pass(exc) return spec diff --git a/src/sharpit/engine/capture/securitylogs.py b/src/sharpit/engine/capture/securitylogs.py index 3cbc4d727..918db4d43 100644 --- a/src/sharpit/engine/capture/securitylogs.py +++ b/src/sharpit/engine/capture/securitylogs.py @@ -291,5 +291,5 @@ def record_security_event(type: str, principal: str | None = None, data: Mapping logger.warning("sharpit record_security_event dropped an event: data must be a mapping") return buffer.add(type.strip(), principal, data or {}, info.id) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the host's request never fails on sharpit logger.warning("sharpit record_security_event dropped an event (%s)", exc.__class__.__name__) diff --git a/src/sharpit/engine/capture/streams.py b/src/sharpit/engine/capture/streams.py index 9077f6bd7..ab773e911 100644 --- a/src/sharpit/engine/capture/streams.py +++ b/src/sharpit/engine/capture/streams.py @@ -76,7 +76,7 @@ def _wake(self) -> None: self._loop.call_later(delay, self._tick) else: self._tick() - except Exception: + except Exception: # noqa: BLE001 - never log here (§10); the next signal tries again self._dirty = False def _tick(self) -> None: diff --git a/src/sharpit/engine/capture/transactions.py b/src/sharpit/engine/capture/transactions.py index 2ae8bc0d9..6ae0492bd 100644 --- a/src/sharpit/engine/capture/transactions.py +++ b/src/sharpit/engine/capture/transactions.py @@ -323,7 +323,7 @@ def _targets(conn: Any) -> list[SharpitContext]: fallback: list[SharpitContext] = [] try: fallback = dispatch._targets(engine) # pyright: ignore[reportPrivateUsage] # SQL Trace fallback for unregistered engines - except Exception as exc: + except Exception as exc: # noqa: BLE001 - transaction listeners must not affect the host dispatch.routing_failed(exc) # a context whose transactions hook is suspended (low-footprint) is out of every fallback fallback = [ctx for ctx in fallback if SOURCE not in getattr(ctx.capture, "suspended_sources", ())] @@ -333,7 +333,7 @@ def _targets(conn: Any) -> list[SharpitContext]: def _connection_id(conn: Any) -> str | None: try: return hex(id(conn.connection.dbapi_connection)) - except Exception: + except Exception: # noqa: BLE001 - invalidated connection return None @@ -357,7 +357,7 @@ def _close(items: list[Tracked], status: str) -> None: if recorder is not None: try: recorder.end(entry_id, status, settle=status == "COMMITTED") - except Exception as exc: + except Exception as exc: # noqa: BLE001 - never alter the application's transaction dispatch.routing_failed(exc) @@ -395,7 +395,7 @@ def _begin(conn: Any, parent_ids: dict[int, int] | None = None) -> None: ) if entry_id >= 0: stack.append((weakref.ref(recorder), entry_id)) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - never alter the application's transaction dispatch._context_failed(ctx, exc) # pyright: ignore[reportPrivateUsage] @@ -455,7 +455,7 @@ def tx_handle_error(exception_context: Any) -> None: error = exception_context.sqlalchemy_exception or exception_context.original_exception # Only an error raised while the committing transaction is still active is the DBAPI commit failing. _settle(conn.info, error if conn.in_transaction() else None) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - never affect the application's transaction dispatch.routing_failed(exc) @@ -464,7 +464,7 @@ def tx_checkin(_dbapi_connection: Any, connection_record: Any) -> None: try: if connection_record is not None: _settle(connection_record.info) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - never affect the pool dispatch.routing_failed(exc) @@ -475,21 +475,21 @@ def tx_savepoint(conn: Any, name: str | None) -> None: before = len(stack) _begin(conn, parents) _savepoints(conn.info).append((name, stack[before:])) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - never affect the application's transaction dispatch.routing_failed(exc) def tx_rollback_savepoint(conn: Any, name: str, context: object) -> None: try: _end_savepoint(conn, name, "ROLLED_BACK") - except Exception as exc: + except Exception as exc: # noqa: BLE001 - never affect the application's transaction dispatch.routing_failed(exc) def tx_release_savepoint(conn: Any, name: str, context: object) -> None: try: _end_savepoint(conn, name, "COMMITTED") - except Exception as exc: + except Exception as exc: # noqa: BLE001 - never affect the application's transaction dispatch.routing_failed(exc) diff --git a/src/sharpit/engine/capture/wraps.py b/src/sharpit/engine/capture/wraps.py index c67bf90e1..ff6e8da5f 100644 --- a/src/sharpit/engine/capture/wraps.py +++ b/src/sharpit/engine/capture/wraps.py @@ -82,7 +82,7 @@ def wrap( if owner.__dict__.get(name) is not entry: setattr(owner, name, entry) return None - except Exception: + except Exception: # noqa: BLE001 - a failed wrap never reaches the host return None def remove() -> bool: diff --git a/src/sharpit/engine/collectors/alembic.py b/src/sharpit/engine/collectors/alembic.py index 1de5f078a..d518cd762 100644 --- a/src/sharpit/engine/collectors/alembic.py +++ b/src/sharpit/engine/collectors/alembic.py @@ -563,7 +563,7 @@ def _child(ctx: SharpitContext, ini: Path, target: str, run: Runner, *command: s """Run ``python -m alembic ``; a failed run is the (status, DTO) answer, a good one the result.""" try: result = run([sys.executable, "-m", "alembic", "-c", str(ini), *command], str(ini.parent)) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the action answers 500; SingleFlight.run releases the lock return _answer(500, "failed", _capped(ctx, f"{type(exc).__name__}: {exc}") or "Alembic did not run.", target) if result.failure is not None or result.returncode != 0: return _answer(500, "failed", _failure(ctx, result), target) diff --git a/src/sharpit/engine/collectors/appsecurity.py b/src/sharpit/engine/collectors/appsecurity.py index 0dbd0e3f9..92ce5bc80 100644 --- a/src/sharpit/engine/collectors/appsecurity.py +++ b/src/sharpit/engine/collectors/appsecurity.py @@ -19,7 +19,7 @@ def model_of(ctx: Any) -> SecurityModel | None: return None try: return read() - except Exception as exc: + except Exception as exc: # noqa: BLE001 - introspection degrades; never crashes the host (safety 5) return SecurityModel(False, (), (), (), (f"FastAPI security could not be read ({type(exc).__name__}).",)) diff --git a/src/sharpit/engine/collectors/data.py b/src/sharpit/engine/collectors/data.py index c3ce9955c..a62870948 100644 --- a/src/sharpit/engine/collectors/data.py +++ b/src/sharpit/engine/collectors/data.py @@ -58,7 +58,7 @@ def _field(ctx: SharpitContext, warnings: list[str], label: str, read: Callable[ """One field of a row; a failure nulls that field with a masked warning and keeps the row.""" try: return read() - except Exception as error: + except Exception as error: # noqa: BLE001 - user mapping code must not fail the GET warnings.append(_warning(ctx, f"Could not read {label}", error)) return None @@ -132,7 +132,7 @@ def _scan(ctx: SharpitContext) -> _Scan: for mapper in mappers: try: rows.append(_row(ctx, warnings, mapper, configured)) - except Exception as error: + except Exception as error: # noqa: BLE001 - one bad mapper drops only its own row warnings.append(_warning(ctx, "Skipping a mapper that could not be read", error)) rows.sort(key=lambda row: row["repositoryInterface"]) if pending: diff --git a/src/sharpit/engine/collectors/database_advisor/catalog.py b/src/sharpit/engine/collectors/database_advisor/catalog.py index 4e65ea3ed..ae116a6fc 100644 --- a/src/sharpit/engine/collectors/database_advisor/catalog.py +++ b/src/sharpit/engine/collectors/database_advisor/catalog.py @@ -119,7 +119,7 @@ def _pool(pool: Any) -> Pool | None: if isinstance(overflow, int) and callable(size): unbounded = overflow < 0 max_size = None if unbounded else int(cast("int", size())) + overflow - except Exception: + except Exception: # noqa: BLE001 - an unreadable number stays unknown max_size = None raw_timeout = getattr(pool, "_timeout", _MISSING) if not isinstance(raw_timeout, bool) and isinstance(raw_timeout, (int, float)) and raw_timeout >= 0: @@ -173,7 +173,7 @@ async def read_sources(ctx: SharpitContext, flight: Flight) -> list[Source]: def _catalog_and_vendor(conn: Any, bounds: CatalogBounds, masker: Masker) -> dict[str, Any]: """The catalog plus the vendor facts, in one read-only read.""" - from sharpit.engine.collectors.database_advisor.rules_vendor import read_vendor + from sharpit.engine.collectors.database_advisor.rules_vendor import read_vendor # noqa: PLC0415 - imports this module return {**catalog(conn, bounds, masker), "vendor": read_vendor(conn, bounds, masker)} @@ -196,7 +196,7 @@ async def _read( return "FAILED", exc.reason, {} except TimeoutError: return "FAILED", BUDGET_RAN_OUT, {} - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a failed engine is reported for that engine; never raised return "FAILED", error_text(exc, ctx.masker, engine_dialect(engine)), {} partial = found["truncated"] or not found["complete"] return ("PARTIAL" if partial else "AVAILABLE"), None, found diff --git a/src/sharpit/engine/collectors/database_advisor/report.py b/src/sharpit/engine/collectors/database_advisor/report.py index 1719be73c..0ab71a05f 100644 --- a/src/sharpit/engine/collectors/database_advisor/report.py +++ b/src/sharpit/engine/collectors/database_advisor/report.py @@ -101,7 +101,7 @@ def _run_rules(readable: Sequence[Source]) -> tuple[list[str], list[Finding], in rule_id = rule.definition.id try: outcomes = [rule.check(s) for s in readable] - except Exception as exc: + except Exception as exc: # noqa: BLE001 - one failing rule is an analysis error; never a failed scan errored += 1 diagnostics.append(_diagnostic(rule_id, "ERROR", f"The rule failed to evaluate ({type(exc).__name__}).")) continue diff --git a/src/sharpit/engine/collectors/database_advisor/rules_orm.py b/src/sharpit/engine/collectors/database_advisor/rules_orm.py index 271dcdef1..8e33ee20f 100644 --- a/src/sharpit/engine/collectors/database_advisor/rules_orm.py +++ b/src/sharpit/engine/collectors/database_advisor/rules_orm.py @@ -54,7 +54,7 @@ def facts(models: tuple[object, ...]) -> dict[str, Any]: table = mapper.local_table # a configured mapper: reading it configures nothing if type(table).__name__ == "Table" and id(table) not in tables: tables[id(table)] = _declared(table) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - unreadable models skip the ORM rules; never fail the scan reason = f"The models could not be read ({type(exc).__name__})." return {"skipped": reason, "known_absent": False, "errors": [reason]} return {"tables": list(tables.values()), "known_absent": False, "errors": []} diff --git a/src/sharpit/engine/collectors/database_advisor/rules_vendor.py b/src/sharpit/engine/collectors/database_advisor/rules_vendor.py index 89018f555..ae765a129 100644 --- a/src/sharpit/engine/collectors/database_advisor/rules_vendor.py +++ b/src/sharpit/engine/collectors/database_advisor/rules_vendor.py @@ -113,7 +113,7 @@ def read_vendor(conn: Any, bounds: CatalogBounds, masker: Masker) -> dict[str, A keys, rows = _fetch(conn, sql, bounds.vendor_rows) else: keys, rows = _fetch(conn, sql, bounds.vendor_rows) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - one denied view skips its rules; never the scan facts[name] = {"error": error_text(exc, masker, dialect)} continue kept = [dict(zip(keys, row, strict=True)) for row in rows[: bounds.vendor_rows]] diff --git a/src/sharpit/engine/collectors/health.py b/src/sharpit/engine/collectors/health.py index a73b6568e..31a033492 100644 --- a/src/sharpit/engine/collectors/health.py +++ b/src/sharpit/engine/collectors/health.py @@ -202,7 +202,7 @@ async def _run( status, details = self._interpret(result) except TimeoutError: status, details = "DOWN", {"error": self._timed_out()} - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a raising check is DOWN with its masked class and message status, details = "DOWN", {"error": self._failure(exc)} finally: if work is None: # never submitted: no thread will call it diff --git a/src/sharpit/engine/collectors/insights/agent_view.py b/src/sharpit/engine/collectors/insights/agent_view.py index c9d281a19..a0ed90752 100644 --- a/src/sharpit/engine/collectors/insights/agent_view.py +++ b/src/sharpit/engine/collectors/insights/agent_view.py @@ -39,7 +39,7 @@ _BARE = re.compile(r"<[A-Za-z]+>|[A-Za-z0-9._/:-]+") -class UnknownObservation(Exception): +class UnknownObservation(Exception): # noqa: N818 - BootUI's tool error (404) for an id this run does not have pass diff --git a/src/sharpit/engine/collectors/insights/not_exercised.py b/src/sharpit/engine/collectors/insights/not_exercised.py index 173499b5a..444eebd25 100644 --- a/src/sharpit/engine/collectors/insights/not_exercised.py +++ b/src/sharpit/engine/collectors/insights/not_exercised.py @@ -37,7 +37,7 @@ def list_for( return [] try: routes = declared() - except Exception: + except Exception: # noqa: BLE001 - an inventory failure must never crash the host routes = None if routes is None: limitations.append(INVENTORY_UNAVAILABLE) diff --git a/src/sharpit/engine/collectors/insights/service.py b/src/sharpit/engine/collectors/insights/service.py index a580c5e52..f3d77f537 100644 --- a/src/sharpit/engine/collectors/insights/service.py +++ b/src/sharpit/engine/collectors/insights/service.py @@ -357,7 +357,7 @@ def _capture(self) -> SqlCapture: """RuntimeInsightsService.sqlCapture: asked once per report; null is capturing, a failure is not recorded.""" try: return self.sql_capture() or SqlCapture.capturing() - except Exception as error: + except Exception as error: # noqa: BLE001 - the report never fails over this question return SqlCapture.not_recorded(SQL_CAPTURE_UNREADABLE.format(type(error).__name__)) def _evaluate( @@ -377,7 +377,7 @@ def _evaluate( unseen.append(caveat) try: evaluation: Evaluation = evaluate(snapshot) - except Exception: + except Exception: # noqa: BLE001 - a kind never crashes the host or the other kinds logger.debug("insights kind %s could not be evaluated", observation.kind) # the id only, never the error return _check(observation, "UNAVAILABLE", 0, 0, NOT_EVALUATED), [] reasons = _lead_reasons(partial, unseen, caveat) diff --git a/src/sharpit/engine/collectors/insights/snapshot.py b/src/sharpit/engine/collectors/insights/snapshot.py index 5464b6396..f4a6a6c40 100644 --- a/src/sharpit/engine/collectors/insights/snapshot.py +++ b/src/sharpit/engine/collectors/insights/snapshot.py @@ -71,7 +71,7 @@ class Snapshot: @cached_property def request_index(self) -> RequestIndex: """The http requests, projected once per snapshot however many kinds read them.""" - from sharpit.engine.collectors.insights.requests import RequestIndex + from sharpit.engine.collectors.insights.requests import RequestIndex # noqa: PLC0415 - requests imports this return RequestIndex(self.records.get("http", ()), self.loss_horizon) @@ -100,7 +100,7 @@ def pool_size(self, data_source: str) -> int | None: return None try: size = self.pool_sizes(data_source) - except Exception: + except Exception: # noqa: BLE001 - BootUI swallows a RuntimeException: the size is then unknown return None return size if size is not None and size > 0 else None @@ -110,7 +110,7 @@ def shared_pool(self, data_source: str) -> str | None: return None try: return self.shared_pools(data_source) - except Exception: + except Exception: # noqa: BLE001 - as ``pool_size``: unknown is not shared return None def dropped(self, source: str) -> int: diff --git a/src/sharpit/engine/collectors/metrics/__init__.py b/src/sharpit/engine/collectors/metrics/__init__.py index d30a818ca..c34a1d8c6 100644 --- a/src/sharpit/engine/collectors/metrics/__init__.py +++ b/src/sharpit/engine/collectors/metrics/__init__.py @@ -171,7 +171,7 @@ def _families(ctx: Any) -> list[dict[str, Any]]: # prometheus_client internals; any other registry is read as one collector. target_info is not shown. try: collectors: Any = getattr(source, "_collector_to_names", None) - except Exception: + except Exception: # noqa: BLE001 - a host registry's property; degrade to one collector collectors = None candidates: list[Any] = list(collectors) if isinstance(collectors, dict) else [source] # pyright: ignore[reportUnknownArgumentType] families: list[dict[str, Any]] = [] @@ -179,7 +179,7 @@ def _families(ctx: Any) -> list[dict[str, Any]]: for collector in candidates: try: found = [meter for meter in (_family(ctx, family) for family in collector.collect()) if meter is not None] - except Exception: + except Exception: # noqa: BLE001 - host code; its message is never shown (it may carry a DSN) meter = _unavailable(ctx, collector) found = [] if meter["name"] in failed else [meter] # one entry per failing collector class failed.add(meter["name"]) diff --git a/src/sharpit/engine/collectors/mysql/sections.py b/src/sharpit/engine/collectors/mysql/sections.py index 95f9df03a..42ce11f56 100644 --- a/src/sharpit/engine/collectors/mysql/sections.py +++ b/src/sharpit/engine/collectors/mysql/sections.py @@ -93,7 +93,7 @@ def _read_section( """Run one section's query; a failure is ``FAILED`` with the masked driver error, never an empty success.""" try: retained, truncated = read_one_past(build(_rows(conn, sql)), limit) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - every driver error becomes the section's reason return section_dto(section_id, "FAILED", _reason(masker, exc)) setattr(data, section_id.replace("-", "_"), retained) data.truncated = data.truncated or truncated @@ -335,7 +335,7 @@ def collect_metrics(conn: Any, data: DataSourceData, masker: Masker = _STRICT) - """SHOW GLOBAL STATUS counters; a failure is an ERROR diagnostic, never a silent empty list.""" try: rows = _rows(conn, STATUS_SQL) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the driver error becomes the diagnostic data.diagnostics.append(_diagnostic(f"{data.name}/metrics", "ERROR", _reason(masker, exc))) return [] status = {str(r["Variable_name"]): str(r["Value"]) for r in rows if "Variable_name" in r and "Value" in r} diff --git a/src/sharpit/engine/collectors/pentesting/cache_control.py b/src/sharpit/engine/collectors/pentesting/cache_control.py index 00e763661..7c8882f02 100644 --- a/src/sharpit/engine/collectors/pentesting/cache_control.py +++ b/src/sharpit/engine/collectors/pentesting/cache_control.py @@ -48,7 +48,7 @@ class CacheControl: def _unquote(value: str) -> str: - if len(value) >= 2 and value.startswith('"') and value.endswith('"'): + if len(value) >= 2 and value.startswith('"') and value.endswith('"'): # noqa: PLR2004 - two quotes return java_trim(value[1:-1]) return value diff --git a/src/sharpit/engine/collectors/pentesting/cookie_observation.py b/src/sharpit/engine/collectors/pentesting/cookie_observation.py index 629df5fb8..a5807ab1a 100644 --- a/src/sharpit/engine/collectors/pentesting/cookie_observation.py +++ b/src/sharpit/engine/collectors/pentesting/cookie_observation.py @@ -53,7 +53,7 @@ def parse_set_cookie(raw: str) -> CookieObservation: """One ``Set-Cookie`` text as an observation; total, and it retains none of the text.""" try: return _parse(raw) - except Exception: + except Exception: # noqa: BLE001 - total by contract; the input is never echoed return _EMPTY diff --git a/src/sharpit/engine/collectors/pools.py b/src/sharpit/engine/collectors/pools.py index f11572108..0439bb681 100644 --- a/src/sharpit/engine/collectors/pools.py +++ b/src/sharpit/engine/collectors/pools.py @@ -56,7 +56,7 @@ def _pool_dto(ctx: SharpitContext, name: str, engine: Any) -> dict[str, Any]: "maximumPoolSize": sqla.maximum_pool_size(pool), "connectionTimeoutMs": _ms(pool._timeout) if counted else None, # noqa: SLF001 "idleTimeoutMs": None, - "maxLifetimeMs": _ms(pool._recycle), + "maxLifetimeMs": _ms(pool._recycle), # noqa: SLF001 - every Pool has it; -1 means never recycled "validationTimeoutMs": None, "keepaliveTimeMs": None, "readOnly": None, diff --git a/src/sharpit/engine/collectors/postgresql/sections.py b/src/sharpit/engine/collectors/postgresql/sections.py index 44bb2eb10..4b9f159d8 100644 --- a/src/sharpit/engine/collectors/postgresql/sections.py +++ b/src/sharpit/engine/collectors/postgresql/sections.py @@ -194,7 +194,7 @@ def read_list(ctx: ReadContext, label: str, sql: str, max_rows: int, mapper: Cal break kept, truncated = read_one_past(read, max_rows) rows = [mapped for row in kept if (mapped := mapper(row)) is not None] - except Exception as exc: + except Exception as exc: # noqa: BLE001 - every driver error becomes the section's reason return Rows.failed(_describe(ctx, label, exc), _sqlstate(exc)) return Rows.of(rows, truncated) if reason is None else Rows.partial(rows, reason) @@ -211,7 +211,7 @@ def read_one(ctx: ReadContext, label: str, sql: str, mapper: Callable[[Row], Any with ctx.conn.begin_nested(): row = next(iter(ctx.conn.exec_driver_sql(sql).mappings()), None) mapped = None if row is None else mapper(row) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - every driver error becomes the section's reason return Rows.failed(_describe(ctx, label, exc), _sqlstate(exc)) return Rows.of([] if mapped is None else [mapped]) diff --git a/src/sharpit/engine/collectors/scheduled/__init__.py b/src/sharpit/engine/collectors/scheduled/__init__.py index e1da1ed6c..8fbf0c1c6 100644 --- a/src/sharpit/engine/collectors/scheduled/__init__.py +++ b/src/sharpit/engine/collectors/scheduled/__init__.py @@ -36,7 +36,7 @@ def _read(readers: list[Reader], label: str, value: object) -> Discovery | None: for read in readers: try: part = read(label, value) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - an odd scheduler state: degrade; never crash the host return Discovery(False, [], [f"{label}: not read ({type(exc).__name__})"]) if part is not None: return part diff --git a/src/sharpit/engine/collectors/security/report.py b/src/sharpit/engine/collectors/security/report.py index bad2f0e0b..1121df4c5 100644 --- a/src/sharpit/engine/collectors/security/report.py +++ b/src/sharpit/engine/collectors/security/report.py @@ -192,7 +192,7 @@ def scan_evaluation(inputs: Inputs) -> Evaluation: continue # unknown, never a pass: the limitation says why try: found = rule.check(inputs) - except Exception: + except Exception: # noqa: BLE001 - one rule's failure is an analysis error; never a failed scan errors.append(definition) continue evaluated.append(definition.id) diff --git a/src/sharpit/engine/collectors/security/static_analysis.py b/src/sharpit/engine/collectors/security/static_analysis.py index 5b9442214..4f7007426 100644 --- a/src/sharpit/engine/collectors/security/static_analysis.py +++ b/src/sharpit/engine/collectors/security/static_analysis.py @@ -437,7 +437,7 @@ def _inspect_bounded_file( return None result = check(read_bounded(trusted_root, path)) return result if isinstance(result, tuple) else (result, False) - except Exception: + except Exception: # noqa: BLE001 - malformed or unsafe local config is indeterminate return False, True @@ -805,7 +805,7 @@ def inspect(self, project_root: Path | None) -> Inspection: indeterminate |= ind return Inspection(State.INDETERMINATE if indeterminate else State.NOT_CONFIGURED) - except Exception: + except Exception: # noqa: BLE001 - defensive: any unhandled failure is indeterminate return Inspection(State.INDETERMINATE) def _build_files(self, root: Path) -> list[Path]: diff --git a/src/sharpit/engine/models.py b/src/sharpit/engine/models.py index 36644ec0f..309dfd2b8 100644 --- a/src/sharpit/engine/models.py +++ b/src/sharpit/engine/models.py @@ -33,7 +33,7 @@ def registries(models: tuple[object, ...]) -> tuple[list[object], list[str]]: for entry in models: try: registry = _registry_of(entry) - except Exception: + except Exception: # noqa: BLE001 - a hostile attribute must not fail the GET registry = None if registry is None: kind = type(entry).__name__ diff --git a/src/sharpit/engine/otel.py b/src/sharpit/engine/otel.py index e58ffda87..f08b0567f 100644 --- a/src/sharpit/engine/otel.py +++ b/src/sharpit/engine/otel.py @@ -61,7 +61,7 @@ def current_trace_id() -> str | None: return None context = trace.get_current_span().get_span_context() return f"{context.trace_id:032x}" if context.is_valid else None - except Exception: + except Exception: # noqa: BLE001 - a host's tracing never changes a query return None diff --git a/src/sharpit/engine/probe.py b/src/sharpit/engine/probe.py index dcd9d0f5c..d1e21bc9a 100644 --- a/src/sharpit/engine/probe.py +++ b/src/sharpit/engine/probe.py @@ -408,7 +408,7 @@ async def run_probe( task.add_done_callback(lambda completed: _task_done(completed, on_complete)) transferred_slot = True raise - except Exception as exc: + except Exception as exc: # noqa: BLE001 - app exceptions become a stable masked probe response message = _exception_message(masker, exc, application) return _probe_result(500, {}, _body(bytes(channel.sent_body), None, masker), started, message, False) finally: diff --git a/src/sharpit/engine/sources/dispatch.py b/src/sharpit/engine/sources/dispatch.py index a51e9bc0a..13aab16a6 100644 --- a/src/sharpit/engine/sources/dispatch.py +++ b/src/sharpit/engine/sources/dispatch.py @@ -60,7 +60,7 @@ def register_app(self, app: object) -> None: ... def routing_failed(exc: BaseException) -> None: - global _warned + global _warned # noqa: PLW0603 - one warning per process for a failure before any context is known if not _warned: _warned = True logger.warning("sharpit SQL listener failed (%s); queries are unaffected", type(exc).__name__) @@ -286,7 +286,7 @@ def emit(event: SqlEvent) -> None: if INTERNAL.get(): return deliver(event, recording(event.engine, event.source)) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a source never changes the host's query routing_failed(exc) @@ -301,7 +301,7 @@ def deliver(event: SqlEvent, targets: list[SharpitContext]) -> None: if isinstance(driver, str): _drivers.add(driver) sink.on_sql(event, TEST.get()) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a source never changes the host's query routing_failed(exc) diff --git a/src/sharpit/engine/sources/sqlite.py b/src/sharpit/engine/sources/sqlite.py index 00bfcde4b..6f6c94d8e 100644 --- a/src/sharpit/engine/sources/sqlite.py +++ b/src/sharpit/engine/sources/sqlite.py @@ -281,7 +281,7 @@ def _owner_holds(obj: object, ids: Container[int]) -> set[int]: try: module = getattr(type(obj), "__module__", "") or "" return _referenced(obj, ids) if module.partition(".")[0] in _OWNERS_NOT_EARLY else set() - except Exception: + except Exception: # noqa: BLE001 - counting is best effort; one odd holder never fails the count return set() @@ -293,7 +293,7 @@ def _scan() -> tuple[int, bool, list[str]]: """``(pre-existing connections, count failed, early aliases)``; both walks are best effort.""" try: count, failed = _count_preexisting(), False - except Exception: + except Exception: # noqa: BLE001 - counting is best effort; attach never raises into the host count, failed = 0, True try: aliases = early_aliases() diff --git a/src/sharpit/engine/sqla/connections.py b/src/sharpit/engine/sqla/connections.py index fcd40696c..fb997af27 100644 --- a/src/sharpit/engine/sqla/connections.py +++ b/src/sharpit/engine/sqla/connections.py @@ -100,7 +100,7 @@ def checkout(dbapi_connection: Any, record: Any, proxy: Any) -> None: targets = dispatch.connection_targets(pool, SOURCE) if targets: # a source the journal does not record follows nothing and counts nothing, as BootUI's record.info[CHECKOUT_KEY] = Checkout(targets, pool, REQUEST.get()) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a listener never changes the host's checkout dispatch.routing_failed(exc) @@ -118,7 +118,7 @@ def checkin(dbapi_connection: Any, record: Any) -> None: ctx = ref() if ctx is not None: _offer(ctx, state, held, connection_id) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a listener never changes the host's release dispatch.routing_failed(exc) diff --git a/src/sharpit/engine/sqla/inspect.py b/src/sharpit/engine/sqla/inspect.py index 6fd932261..66f3565b4 100644 --- a/src/sharpit/engine/sqla/inspect.py +++ b/src/sharpit/engine/sqla/inspect.py @@ -159,7 +159,7 @@ def catalog(conn: Any, bounds: CatalogBounds, masker: Masker) -> dict[str, Any]: break try: table, cut = _table(conn, inspector, name, bounds) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - one unreadable table is a diagnostic; never a failed scan complete = False diagnostics.append(_warning(f"Table {name} could not be read: {error_text(exc, masker, dialect_enum)}")) continue @@ -184,7 +184,7 @@ def _warning(message: str) -> dict[str, str]: def _type_text(conn: Any, column_type: Any) -> str: try: return str(column_type.compile(dialect=conn.dialect)).upper() - except Exception: + except Exception: # noqa: BLE001 - a type the dialect cannot render is still named return type(column_type).__name__.upper() @@ -249,7 +249,7 @@ def _server( rows = conn.exec_driver_sql(sql).fetchmany(bounds.vendor_rows) else: rows = conn.exec_driver_sql(sql).fetchmany(bounds.vendor_rows) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the pool rules then skip with the reason dialect_enum = dialect_of_name(dialect) or Dialect.UNSUPPORTED diagnostics.append(_warning(f"Server settings could not be read: {error_text(exc, masker, dialect_enum)}")) return {} @@ -272,7 +272,7 @@ def live_engine_drivers() -> set[str]: for obj in gc.get_objects(): if type(obj) is engine_class: drivers.add(obj.dialect.driver) - except Exception: + except Exception: # noqa: BLE001 - best-effort evidence must not affect the host return drivers return drivers diff --git a/src/sharpit/engine/sqla/listeners.py b/src/sharpit/engine/sqla/listeners.py index 5c8ccfe1f..92b3173b2 100644 --- a/src/sharpit/engine/sqla/listeners.py +++ b/src/sharpit/engine/sqla/listeners.py @@ -73,7 +73,7 @@ def engine_connect(conn: Any) -> None: for ctx in contexts: if ctx.capture.engine_registry is not None: ctx.capture.engine_registry.add(conn.engine) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a listener never changes the host's query dispatch.routing_failed(exc) @@ -135,7 +135,7 @@ def _emit( duration = time.perf_counter_ns() - started try: connection_id: str | None = hex(id(conn.connection.dbapi_connection)) - except Exception: + except Exception: # noqa: BLE001 - an invalidated connection has no DBAPI connection connection_id = None engine = conn.engine dialect = connection_dialect(conn, engine) @@ -314,7 +314,7 @@ def detach_all() -> None: def attach_session() -> bool: """Keep the statement listeners on for the test-session sink; False while SQLAlchemy is not imported (retry).""" - global _session + global _session # noqa: PLW0603 - read by _sync_listeners under the lock if _sqla.sqlalchemy_module() is None: return False with _lock: diff --git a/src/sharpit/engine/sqla/orm.py b/src/sharpit/engine/sqla/orm.py index 4ae7b70d0..3be214862 100644 --- a/src/sharpit/engine/sqla/orm.py +++ b/src/sharpit/engine/sqla/orm.py @@ -384,7 +384,7 @@ def _mapper_load(target: Any, context: Any) -> None: # pyright: ignore[reportUn _unbounded_read_capture_missing = True return _record_unbounded_read_load(target, context, info, tag) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a diagnostic listener never changes a query result dispatch.routing_failed(exc) diff --git a/src/sharpit/engine/sqla/readonly.py b/src/sharpit/engine/sqla/readonly.py index 2ce7edc5c..0ef412d81 100644 --- a/src/sharpit/engine/sqla/readonly.py +++ b/src/sharpit/engine/sqla/readonly.py @@ -168,7 +168,7 @@ def bounded[T](conn: Any, fn: Callable[[Any], T], timeout: float) -> T: variable, convert, value = "max_execution_time", int, max(1, int(timeout * 1000)) try: previous = convert(conn.exec_driver_sql(f"SELECT @@SESSION.{variable}").scalar() or 0) - except Exception: + except Exception: # noqa: BLE001 - MySQL before 5.7.8 has no such variable return fn(conn) conn.exec_driver_sql(f"SET SESSION {variable} = {value}") try: @@ -213,7 +213,7 @@ async def run_db_read[T]( raise ReadOnlyUnavailable(SHARED_CONNECTION_REFUSED) async with asyncio.timeout(wall): if sync.dialect.is_async: - from sqlalchemy.ext.asyncio import AsyncEngine + from sqlalchemy.ext.asyncio import AsyncEngine # noqa: PLC0415 - only once the app imported it # shortcut: on timeout `done` fires once the await is cancelled, while the driver's own thread # (aiosqlite) may still run the call, so one extra read can overlap; track the driver if it matters diff --git a/src/sharpit/engine/sqltext/errors.py b/src/sharpit/engine/sqltext/errors.py index ec4320ea2..9fee4d249 100644 --- a/src/sharpit/engine/sqltext/errors.py +++ b/src/sharpit/engine/sqltext/errors.py @@ -478,7 +478,7 @@ def error_text( if not args or sum(len(value) for value in args if type(value) is str) > 100_000: return None text = " ".join(value for value in args if type(value) is str) - except Exception: + except Exception: # unreadable exception objects fail closed return None if not text: return None diff --git a/src/sharpit/engine/tools04/security.py b/src/sharpit/engine/tools04/security.py index 6c4c51666..d52f5230d 100644 --- a/src/sharpit/engine/tools04/security.py +++ b/src/sharpit/engine/tools04/security.py @@ -35,7 +35,7 @@ def _facts(ctx: SharpitContext) -> SecurityFacts: return SecurityFacts(False, None, (), (), (_NO_ADAPTER,)) try: facts = read() - except Exception as exc: + except Exception as exc: # noqa: BLE001 - introspection degrades; never crashes the host (safety 5) return SecurityFacts(False, None, (), (), (f"Middleware options could not be read ({type(exc).__name__}).",)) return facts if isinstance(facts, SecurityFacts) else SecurityFacts(False, None, (), (), (_NO_ADAPTER,)) diff --git a/src/sharpit/fastapi/capture.py b/src/sharpit/fastapi/capture.py index 925145172..5d66a4e2d 100644 --- a/src/sharpit/fastapi/capture.py +++ b/src/sharpit/fastapi/capture.py @@ -428,7 +428,7 @@ def _run_attachers(self, ctx: SharpitContext, lane: str | None = None) -> None: continue try: remover = attacher() - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the host's startup never fails on sharpit self.hook_failed("attacher", exc) continue if remover is not None: @@ -448,7 +448,7 @@ def _attach_sqla(self, ctx: SharpitContext) -> None: try: discovery = any(_panel_enabled(ctx, p) for p in sqla.DISCOVERY_PANELS) sqla.add(ctx, statements=ctx.capture.sql_trace is not None, discovery=discovery) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the host's startup never fails on sharpit self.hook_failed("sql listeners", exc) def _attach_sqlite(self, ctx: SharpitContext) -> None: @@ -458,7 +458,7 @@ def _attach_sqlite(self, ctx: SharpitContext) -> None: try: dispatch.add_context(ctx) # raw sqlite3 needs no SQLAlchemy: route its statements here too sqlite.attach(sqlite_holder(ctx)) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the host's startup never fails on sharpit self.hook_failed("sql listeners", exc) def log_handler_on_root(self) -> bool: @@ -593,7 +593,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: None, scope=scope, ) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - a capture failure never changes the host's response wiring.hook_failed(REQUEST_START, exc) _lose_http(self.ctx) else: @@ -625,7 +625,7 @@ async def capture_send(message: Message) -> None: if self._request_id_header_enabled: try: message = with_request_id_header(self.ctx, scope, message, info, response_headers) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - optional response decoration cannot alter host output wiring.hook_failed("request id response header", exc) status = message["status"] if message is not original_message: diff --git a/src/sharpit/fastapi/capture_exceptions.py b/src/sharpit/fastapi/capture_exceptions.py index 673fc329a..7132cf1dc 100644 --- a/src/sharpit/fastapi/capture_exceptions.py +++ b/src/sharpit/fastapi/capture_exceptions.py @@ -136,7 +136,7 @@ def route_template(scope: Scope, root_path: str, app: object) -> str | None: getattr(app, "routes", ()), route_path({"path": scope["path"], "root_path": root_path}), below ) return None if prefix is None or _template_regex(template).match(below) is None else prefix + template - except Exception: + except Exception: # noqa: BLE001 - a drifted router or a custom route degrades to the masked path; the row stays return None @@ -172,7 +172,7 @@ def record(conn: Any, exc: Exception) -> None: wiring._context, # pyright: ignore[reportPrivateUsage] wiring.app, # pyright: ignore[reportPrivateUsage] ) - except Exception as failure: + except Exception as failure: # noqa: BLE001 - the host's handler always runs wiring.hook_failed("exception handler", failure) if is_async_callable(original): diff --git a/src/sharpit/fastapi/introspection_errors.py b/src/sharpit/fastapi/introspection_errors.py index 5dc50e0d0..da959552a 100644 --- a/src/sharpit/fastapi/introspection_errors.py +++ b/src/sharpit/fastapi/introspection_errors.py @@ -123,10 +123,10 @@ def _handlers(app: object, scope: str, target: str | None) -> tuple[list[ErrorHa for key, handler in handler_map.items(): try: rows.append(_handler_row(key, handler, scope, target, limitations)) - except Exception: + except Exception: # noqa: BLE001 - one opaque host handler must not hide its siblings limitations.append(f"An exception handler at {target or '/'} could not be inspected.") return rows, limitations - except Exception: + except Exception: # noqa: BLE001 - framework drift must not break the host app return [], [f"Exception handlers at {target or '/'} could not be inspected."] diff --git a/src/sharpit/fastapi/introspection_security.py b/src/sharpit/fastapi/introspection_security.py index 54c5dd44a..ea7d9bcc4 100644 --- a/src/sharpit/fastapi/introspection_security.py +++ b/src/sharpit/fastapi/introspection_security.py @@ -65,7 +65,7 @@ def _session_flags(options: dict[str, object]) -> set[str]: if type(same_site) is str and same_site.lower() == "none": flags.add("same_site_none") secret = _secret_text(options.get("secret_key")) - if type(secret) is str and len(secret) < 32: + if type(secret) is str and len(secret) < 32: # noqa: PLR2004 - the length is the fact; never the value flags.add("short_secret") return flags diff --git a/src/sharpit/fastapi/introspector.py b/src/sharpit/fastapi/introspector.py index 8779d6add..28bdff445 100644 --- a/src/sharpit/fastapi/introspector.py +++ b/src/sharpit/fastapi/introspector.py @@ -197,13 +197,13 @@ def _host_lifespan(lifespan: object) -> object: return current current = cells["original_context"].cell_contents return current - except Exception: + except Exception: # noqa: BLE001 - private layout drifted: show what the router holds return lifespan def _dependant_of(call: object) -> object | None: """The sub-dependency tree FastAPI would build for an override (signature only; nothing is called).""" - from fastapi.dependencies.utils import get_dependant + from fastapi.dependencies.utils import get_dependant # noqa: PLC0415 - FastAPI is optional for sharpit return get_dependant(path="", call=call) # pyright: ignore[reportArgumentType] @@ -224,7 +224,7 @@ def _return_annotation(endpoint: object) -> object | None: """The resolved return annotation: None when there is none, ``type(None)`` for ``-> None``.""" try: return typing.get_type_hints(endpoint, include_extras=True).get("return") - except Exception: + except Exception: # noqa: BLE001 - an unresolvable forward reference: fall back to the raw annotation try: raw = inspect.signature(endpoint).return_annotation # pyright: ignore[reportArgumentType] except (TypeError, ValueError): @@ -365,7 +365,7 @@ def _path_regex(path: str, prefix_only: bool) -> str | None: return compile_path(path)[0].pattern pattern = compile_path(path.removesuffix(_MOUNT_SUFFIX) or "/")[0].pattern return pattern.removesuffix("$").removesuffix("/") + "(?:/.*)?$" - except Exception: + except Exception: # noqa: BLE001 - an unknown convertor: the route cannot be matched statically return None @@ -422,7 +422,7 @@ def _secured_route( unchecked = True elif _optional_nested(sub, 0, base): unchecked = True - except Exception as exc: + except Exception as exc: # noqa: BLE001 - FastAPI internals drifted: list the route as unknown; never crash limitations.append(f"Route {info.path} could not be inspected ({type(exc).__name__}).") return SecuredRoute(info.methods, info.path, info.handler, opaque=True, path_regex=regex, chain=chain) return SecuredRoute( diff --git a/src/sharpit/fastapi/pentesting_exposure.py b/src/sharpit/fastapi/pentesting_exposure.py index 4d6aeeb32..4cec9e95b 100644 --- a/src/sharpit/fastapi/pentesting_exposure.py +++ b/src/sharpit/fastapi/pentesting_exposure.py @@ -20,7 +20,7 @@ def read_security_facts(introspector: object) -> SecurityFacts | None: try: reader = getattr(introspector, "security_facts", None) facts = reader() if callable(reader) else None - except Exception: + except Exception: # noqa: BLE001 - degrade without a log record or a copied message return None return facts if isinstance(facts, SecurityFacts) else None diff --git a/src/sharpit/fastapi/sink_ownership.py b/src/sharpit/fastapi/sink_ownership.py index 67201e8fb..c63ae3196 100644 --- a/src/sharpit/fastapi/sink_ownership.py +++ b/src/sharpit/fastapi/sink_ownership.py @@ -26,7 +26,7 @@ def _overrides_snapshot(scope: Mapping[str, Any]) -> tuple[int, ...]: if not isinstance(overrides, Mapping) or not overrides: return () return tuple(id(part) for pair in tuple(cast("Mapping[Any, Any]", overrides).items()) for part in pair) - except Exception: + except Exception: # noqa: BLE001 - this module never raises; an odd app gives the uncached-overrides answer return () diff --git a/src/sharpit/flask/introspector.py b/src/sharpit/flask/introspector.py index dd83f7605..9b630b79c 100644 --- a/src/sharpit/flask/introspector.py +++ b/src/sharpit/flask/introspector.py @@ -31,7 +31,7 @@ def _app_values(app: object) -> dict[str, object]: return {} try: values = object.__getattribute__(app, "__dict__") - except Exception: + except Exception: # noqa: BLE001 - a slotted or unusual Flask subclass has no readable instance data return {} return cast(dict[str, object], values) if isinstance(values, dict) else {} diff --git a/src/sharpit/pytest_plugin/apps.py b/src/sharpit/pytest_plugin/apps.py index 70fb1c4ab..526c7665b 100644 --- a/src/sharpit/pytest_plugin/apps.py +++ b/src/sharpit/pytest_plugin/apps.py @@ -107,7 +107,7 @@ def _mounted(app: object, mounts: frozenset[type]) -> list[int]: """Apps reachable through the candidate's Mount/Host routes (subclasses, middleware wrappers included).""" try: routes = list(cast("Any", app).routes) - except Exception: + except Exception: # noqa: BLE001 - introspection is defensive return [] # shortcut: one route level; a mount nested inside a mounted app is not followed return [i for r in routes if not mounts.isdisjoint(type(r).__mro__) for i in _unwrap(getattr(r, "app", None))] @@ -198,7 +198,7 @@ def _name_detecting_workers(parts: Sequence[Any]) -> None: def _signature(target: Callable[..., object]) -> inspect.Signature: """The call signature, annotations left unevaluated: only the parameters are read.""" if sys.version_info >= (3, 14): # deferred annotations (PEP 649): evaluating one may name a TYPE_CHECKING import - from annotationlib import Format + from annotationlib import Format # noqa: PLC0415 - Python 3.14+ only return inspect.signature(target, annotation_format=Format.FORWARDREF) return inspect.signature(target) @@ -225,7 +225,7 @@ def _type_name(target: object) -> str: kind = type(target) try: parts = (type.__getattribute__(kind, "__module__"), type.__getattribute__(kind, "__qualname__")) - except Exception: + except Exception: # noqa: BLE001 - a host metaclass never breaks the report return "?" return ".".join(part if type(part) is str else "?" for part in parts) diff --git a/src/sharpit/pytest_plugin/http_security_asgi.py b/src/sharpit/pytest_plugin/http_security_asgi.py index 87861b9cd..27639be81 100644 --- a/src/sharpit/pytest_plugin/http_security_asgi.py +++ b/src/sharpit/pytest_plugin/http_security_asgi.py @@ -73,7 +73,7 @@ def _is_sharpit(self, scope: MutableMapping[str, Any]) -> bool: self._sharpit_mounts = (len(routes), paths) path = str(scope.get("path", "")) return any(path == mount or path.startswith(f"{mount}/") for mount in self._sharpit_mounts[1]) - except Exception: + except Exception: # noqa: BLE001 - introspection is defensive return False def _observe(self, scope: MutableMapping[str, Any], status: int, names: list[str]) -> None: @@ -92,7 +92,7 @@ def _template(self, route: object) -> str | None: if cached is None or cached[0] is not route: try: found = _find_template(list(getattr(self.__wrapped__, "routes", ())), route) - except Exception: + except Exception: # noqa: BLE001 - introspection is defensive found = None cached = self._sharpit_templates[id(route)] = (route, found) return cached[1] diff --git a/src/sharpit/pytest_plugin/http_security_flask.py b/src/sharpit/pytest_plugin/http_security_flask.py index 496e99124..b23ae0c70 100644 --- a/src/sharpit/pytest_plugin/http_security_flask.py +++ b/src/sharpit/pytest_plugin/http_security_flask.py @@ -35,7 +35,7 @@ def route_of(app: Any, environ: dict[str, Any]) -> tuple[str, str]: except NotFound: return "not_found", "" return "matched", normalize_route(str(rule.rule)) - except Exception: + except Exception: # noqa: BLE001 - introspection is defensive return "unobservable", "" diff --git a/src/sharpit/pytest_plugin/swallowed.py b/src/sharpit/pytest_plugin/swallowed.py index c5f61aca9..cbdeb3232 100644 --- a/src/sharpit/pytest_plugin/swallowed.py +++ b/src/sharpit/pytest_plugin/swallowed.py @@ -97,7 +97,7 @@ def _handled(self, code: CodeType, offset: int, exc: BaseException) -> None: fact = _fact(code, offset, type(exc), self._root, self._cwd) if fact is not None and self._sink is not None: self._sink(test, replace(fact, test_double=True) if self._is_double(test, fact, exc) else fact) - except Exception as error: + except Exception as error: # noqa: BLE001 - a raising callback would surface in the host's code if not self._failed and self._on_error is not None: self._failed = True self._on_error(error) diff --git a/tests/conftest.py b/tests/conftest.py index 745ec86cf..44e1b1c3d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -301,7 +301,7 @@ def _interpreter_state() -> dict[str, object]: def _exempt_caller() -> bool: - frame = sys._getframe(2) + frame = sys._getframe(2) # noqa: SLF001 - the spy's caller and up while frame is not None: name = str(frame.f_globals.get("__name__", "")) if any(name == e or name.startswith(e + ".") for e in SOURCE_READ_EXEMPT): diff --git a/tests/engine/capture/test_exception_journal.py b/tests/engine/capture/test_exception_journal.py index b75de470e..58d95d55f 100644 --- a/tests/engine/capture/test_exception_journal.py +++ b/tests/engine/capture/test_exception_journal.py @@ -232,7 +232,7 @@ def broken(*_args: object) -> list[str]: escaped: list[Exception] = [] try: store.record(_raised(Brewing("x")), "handler", None, "t") - except Exception as error: + except Exception as error: # noqa: BLE001 - the defect: a broken build reaches the host escaped.append(error) assert escaped == [] assert store.report()["totalExceptions"] == 1 diff --git a/tests/engine/capture/test_log_journal.py b/tests/engine/capture/test_log_journal.py index a07528057..19ee03884 100644 --- a/tests/engine/capture/test_log_journal.py +++ b/tests/engine/capture/test_log_journal.py @@ -300,7 +300,7 @@ def broken() -> str | None: escaped: list[Exception] = [] try: _emit(handle, "host log call") - except Exception as error: + except Exception as error: # noqa: BLE001 - the defect: a broken build reaches the host escaped.append(error) assert escaped == [] assert _records(handle) == () diff --git a/tests/engine/capture/test_mail.py b/tests/engine/capture/test_mail.py index 395a9ec44..55d6f2e7f 100644 --- a/tests/engine/capture/test_mail.py +++ b/tests/engine/capture/test_mail.py @@ -1165,7 +1165,7 @@ def test_a_request_start_never_waits_for_the_mail_registry_lock( still_held: list[bool] = [] def holder() -> None: - with mail._LOCK: + with mail._LOCK: # noqa: SLF001 - another thread is inside arm() holding.set() release.wait(10) still_held.append(mail._LOCK.locked()) # noqa: SLF001 @@ -1251,7 +1251,7 @@ def test_a_hostile_aiosmtplib_module_never_raises_into_the_request_start(monkeyp raised: Exception | None = None try: mail.ensure_wrapped() - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the assertion below names it raised = exc assert raised is None diff --git a/tests/engine/capture/test_securitylogs.py b/tests/engine/capture/test_securitylogs.py index 39b52b34f..beb90b8e4 100644 --- a/tests/engine/capture/test_securitylogs.py +++ b/tests/engine/capture/test_securitylogs.py @@ -209,7 +209,7 @@ def test_add_signals_the_change_stream() -> None: class _HostileUser: - calls: list[str] = [] + calls: list[str] = [] # noqa: RUF012 - a class-level probe the properties append to @property def identity(self) -> str: diff --git a/tests/engine/capture/test_sqltrace.py b/tests/engine/capture/test_sqltrace.py index 28cc97002..df3494678 100644 --- a/tests/engine/capture/test_sqltrace.py +++ b/tests/engine/capture/test_sqltrace.py @@ -452,7 +452,7 @@ def reader() -> None: while not stop.is_set(): try: recorder.report([]) - except BaseException as exc: + except BaseException as exc: # noqa: BLE001 - surfaced by the assertion below errors.append(exc) def writer(n: int) -> None: diff --git a/tests/engine/sqltext/test_identity_key.py b/tests/engine/sqltext/test_identity_key.py index d1d82a71a..6219bae9c 100644 --- a/tests/engine/sqltext/test_identity_key.py +++ b/tests/engine/sqltext/test_identity_key.py @@ -43,7 +43,7 @@ def test_two_workers_create_one_key(tmp_path: Path) -> None: def _share_start_line(barrier: Any) -> None: - global _start_line + global _start_line # noqa: PLW0603 - a pool initializer has no other way to hand a worker its barrier _start_line = barrier diff --git a/tests/engine/sqltext/test_resolver.py b/tests/engine/sqltext/test_resolver.py index cdc690163..d0ecf8270 100644 --- a/tests/engine/sqltext/test_resolver.py +++ b/tests/engine/sqltext/test_resolver.py @@ -277,7 +277,7 @@ def _moduleless_error() -> type[Exception]: def test_a_class_with_no_module_stops_the_walk() -> None: try: stopped = read_chain(_moduleless_error()("failed")).stopped - except Exception: + except Exception: # noqa: BLE001 - the defect; pytest cannot render a traceback holding this class stopped = None assert stopped is True diff --git a/tests/engine/test_application_family.py b/tests/engine/test_application_family.py index 421672c61..8f07b9765 100644 --- a/tests/engine/test_application_family.py +++ b/tests/engine/test_application_family.py @@ -143,7 +143,7 @@ def test_family_reader_does_not_wait_for_registry_writer_lock() -> None: finished = threading.Event() def writer() -> None: - with registry._lock: + with registry._lock: # noqa: SLF001 - hold the writer lock while a separate reader runs held.set() release.wait(1) diff --git a/tests/engine/test_appsource.py b/tests/engine/test_appsource.py index abcf02a76..dbe0bec8c 100644 --- a/tests/engine/test_appsource.py +++ b/tests/engine/test_appsource.py @@ -55,7 +55,7 @@ def test_appsource_never_imports_or_follows_symlinks(tmp_path: Path) -> None: _write(outside / "o.py", "def leaked():\n pass\n") linked: list[str] = [] if sys.platform == "win32": - import _winapi + import _winapi # noqa: PLC0415 - Windows only _winapi.CreateJunction(str(outside), str(pkg / "jlink")) linked.append("trap_pkg_appsource.jlink.o") diff --git a/tests/engine/test_data.py b/tests/engine/test_data.py index 5268e2542..5844e6cc7 100644 --- a/tests/engine/test_data.py +++ b/tests/engine/test_data.py @@ -682,7 +682,7 @@ def test_an_unprintable_exception_keeps_the_get(site: str) -> None: warnings: list[str] | None = None try: warnings = data.repositories_report(make_ctx(registry))["warnings"] - except Exception as error: + except Exception as error: # noqa: BLE001 - the defect is an exception escaping the GET escaped = error assert escaped is None diff --git a/tests/engine/test_health.py b/tests/engine/test_health.py index 9cfe57331..6fbd1fb86 100644 --- a/tests/engine/test_health.py +++ b/tests/engine/test_health.py @@ -387,14 +387,14 @@ def test_engines_only_guidance(tmp_path: Any): # derived: Task 27 Opus review r2 #1: a check raising a class with no __module__ is DOWN; the check never raises def test_a_check_raising_a_class_with_no_module_is_down() -> None: namespace: dict[str, Any] = {} - exec("E = type('Error', (Exception,), {})", namespace) + exec("E = type('Error', (Exception,), {})", namespace) # globals without __name__ def broken() -> bool: raise namespace["E"]("failed") try: report = _check(_service(health_checks={"odd": broken})) - except Exception: + except Exception: # noqa: BLE001 - the defect; pytest cannot render a traceback holding this class report = None assert report is not None assert _components(report)["odd"]["status"] == "DOWN" diff --git a/tests/engine/test_sensors_audit.py b/tests/engine/test_sensors_audit.py index 6abd9e464..439fb8373 100644 --- a/tests/engine/test_sensors_audit.py +++ b/tests/engine/test_sensors_audit.py @@ -497,7 +497,7 @@ def __getattr__(self, name: str) -> object: raised: BaseException | None = None try: recorder.fire("os.system", "prog") # interpreter shutdown can leave the thread-local unusable - except BaseException as error: + except BaseException as error: # noqa: BLE001 - the test asserts the hook let nothing out raised = error assert raised is None diff --git a/tests/engine/test_sqla_inspect.py b/tests/engine/test_sqla_inspect.py index 940976bc7..666748145 100644 --- a/tests/engine/test_sqla_inspect.py +++ b/tests/engine/test_sqla_inspect.py @@ -78,7 +78,7 @@ def test_catalog_inside_read_only_wrapper(monkeypatch: pytest.MonkeyPatch) -> No def get_columns(self: Any, *args: Any, **kwargs: Any) -> Any: try: self.bind.exec_driver_sql("INSERT INTO probe VALUES (1)") - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the test asserts on the refusal refused.append(str(exc)) return original(self, *args, **kwargs) diff --git a/tests/engine/test_sqla_read_only_dialects.py b/tests/engine/test_sqla_read_only_dialects.py index 7b17068da..18bc8cd94 100644 --- a/tests/engine/test_sqla_read_only_dialects.py +++ b/tests/engine/test_sqla_read_only_dialects.py @@ -33,7 +33,7 @@ def _outcome(engine: Any, fn: Callable[[Any], Any]) -> Any: """The read's result, or the exception it raised (so a refusal fails on the test's assertion, not as a crash).""" try: return asyncio.run(sqla.run_db_read(engine, fn, 5.0, read_only=True)) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the tests assert on what came back return exc @@ -156,7 +156,7 @@ def test_a_sharing_pool_is_refused_on_every_dialect(dialect: str) -> None: try: outcome: Any = sqla.bounded_read_only(conn, lambda _c: None, 5.0) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the assertion below names what came back outcome = exc assert isinstance(outcome, sqla.ReadOnlyUnavailable) @@ -225,7 +225,7 @@ def default(c: Any) -> Any: try: return sqla.bounded_read_only(conn, fn or default, 5.0, 2.0), ran - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the tests assert on what came back return exc, ran diff --git a/tests/fastapi/test_capture_without_pydantic_core.py b/tests/fastapi/test_capture_without_pydantic_core.py index 7eea4390e..a369b716e 100644 --- a/tests/fastapi/test_capture_without_pydantic_core.py +++ b/tests/fastapi/test_capture_without_pydantic_core.py @@ -16,7 +16,7 @@ def _raised(call: Any) -> BaseException | None: try: call() - except BaseException as exc: + except BaseException as exc: # noqa: BLE001 - the test asserts on what the hook let escape return exc return None diff --git a/tests/fastapi/test_database_advisor_leased.py b/tests/fastapi/test_database_advisor_leased.py index 13543fd8b..7635cc84e 100644 --- a/tests/fastapi/test_database_advisor_leased.py +++ b/tests/fastapi/test_database_advisor_leased.py @@ -54,7 +54,7 @@ def get_columns(self: Any, *args: Any, **kwargs: Any) -> Any: try: with self.bind.begin_nested(): self.bind.exec_driver_sql("INSERT INTO sharpit_dbadv_probe VALUES (1)") - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the test asserts on the refusal refused.append(type(exc).__name__) return original(self, *args, **kwargs) @@ -108,7 +108,7 @@ def test_server_limits_are_read(url: str) -> None: def _vendor_scan(url: str, dialect: str) -> tuple[list[str], dict[str, str], int, set[str], set[str]]: """Evaluated rule ids, skip reasons, probe rows after, and the table names before/after the scan's read.""" - from sharpit.engine.collectors.database_advisor import catalog, report + from sharpit.engine.collectors.database_advisor import catalog, report # noqa: PLC0415 - after importorskip engine = _engine(url) try: diff --git a/tests/fastapi/test_dialect_conflict_surfaces.py b/tests/fastapi/test_dialect_conflict_surfaces.py index dc874caca..7b58dd861 100644 --- a/tests/fastapi/test_dialect_conflict_surfaces.py +++ b/tests/fastapi/test_dialect_conflict_surfaces.py @@ -62,7 +62,7 @@ def logged() -> dict[str, bool]: # pyright: ignore[reportUnusedFunction] except sa.exc.OperationalError as error: self.failure = error conn.rollback() - logging.getLogger("host.db").error("query failed: %s", error) + logging.getLogger("host.db").error("query failed: %s", error) # noqa: TRY400 - a host's own line return {"ok": True} self.handle = install( diff --git a/tests/fastapi/test_introspector_providers.py b/tests/fastapi/test_introspector_providers.py index 7db431287..8e0e0cafc 100644 --- a/tests/fastapi/test_introspector_providers.py +++ b/tests/fastapi/test_introspector_providers.py @@ -28,7 +28,7 @@ def get_db() -> Iterator[str]: _other = types.ModuleType("beans_other_mod") -exec("def get_db():\n yield 'b'\n", _other.__dict__) +exec("def get_db():\n yield 'b'\n", _other.__dict__) # a second module defining the same name other_get_db: Any = _other.__dict__["get_db"] diff --git a/tests/fastapi/test_introspector_routes.py b/tests/fastapi/test_introspector_routes.py index e2fb349f5..46145b98e 100644 --- a/tests/fastapi/test_introspector_routes.py +++ b/tests/fastapi/test_introspector_routes.py @@ -328,7 +328,7 @@ def _dep() -> str: def _outcome(read: Any) -> Any: try: return read() - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the defect: a user hook's exception escapes the introspector return f"raised {type(exc).__name__}: {exc}" diff --git a/tests/fastapi/test_metrics_route.py b/tests/fastapi/test_metrics_route.py index 1dd2b45d4..59243e145 100644 --- a/tests/fastapi/test_metrics_route.py +++ b/tests/fastapi/test_metrics_route.py @@ -174,7 +174,7 @@ def test_tool_survives_a_raising_collector(private: tuple[CollectorRegistry, Tes ctx = install(FastAPI(), enabled="ON", show_banner=False, config_scan=False).context try: result = call_tool(CallContext(ctx, {}), "get_metrics", {}, via=via) # type: ignore[arg-type] - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the unfixed tool lets the host error escape as an RPC error result = {"meters": [], "escaped": repr(exc)} assert [m["description"] for m in result["meters"]] == [UNAVAILABLE] assert "S3cretPw" not in str(result) diff --git a/tests/fastapi/test_mysql_read_only_leased.py b/tests/fastapi/test_mysql_read_only_leased.py index 0c05b55ed..47234299f 100644 --- a/tests/fastapi/test_mysql_read_only_leased.py +++ b/tests/fastapi/test_mysql_read_only_leased.py @@ -31,7 +31,7 @@ def _engine(**kwargs: Any) -> Any: def _read(engine: Any, fn: Any) -> Any: try: return asyncio.run(sqla.run_db_read(engine, fn, 5.0, read_only=True)) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the tests assert on what came back return exc diff --git a/tests/fastapi/test_pentesting_exposure_adapter.py b/tests/fastapi/test_pentesting_exposure_adapter.py index 26a015847..08bb3e56f 100644 --- a/tests/fastapi/test_pentesting_exposure_adapter.py +++ b/tests/fastapi/test_pentesting_exposure_adapter.py @@ -54,7 +54,7 @@ def _read(introspector: object) -> object: """The result, or a marker when an exception escaped (so the test fails on its assertion, not by crashing).""" try: return read_security_facts(introspector) - except Exception as error: + except Exception as error: # noqa: BLE001 - the point of the test return f"{type(error).__name__} escaped" @@ -320,7 +320,7 @@ def _evidence(introspector: object, facts: SecurityFacts | None = None) -> objec """The result, or a marker when an exception escaped (so the test fails on its assertion, not by crashing).""" try: return framework_evidence(introspector, facts) - except Exception as error: + except Exception as error: # noqa: BLE001 - the point of the test return f"{type(error).__name__} escaped" @@ -361,7 +361,7 @@ def test_scan_action_degrades_to_partial_report_on_hostile_routes( outcome: dict[str, Any] = {} try: outcome = exposure_scan(hardened_app(), tmp_path) - except Exception as error: + except Exception as error: # noqa: BLE001 - malformed introspection must degrade, not crash assert not error, f"Scan action raised {type(error).__name__} instead of degrading" assert outcome.get("scan", {}).get("status") == "PARTIAL" diff --git a/tests/live/conftest.py b/tests/live/conftest.py index 9d1874107..64ea1ff87 100644 --- a/tests/live/conftest.py +++ b/tests/live/conftest.py @@ -119,7 +119,7 @@ def _wait_until_it_answers(url: str) -> None: with engine.connect() as connection: connection.execute(text("SELECT 1")) return - except Exception: + except Exception: # noqa: BLE001 - the server is still starting; the last error is raised at the deadline if time.monotonic() > deadline: raise time.sleep(1) @@ -132,7 +132,7 @@ def _docker_answers() -> bool: import docker # a testcontainers dependency, imported late so a default run never loads it docker.from_env(timeout=5).ping() - except Exception: + except Exception: # noqa: BLE001 - any failure to reach the daemon means no Docker here return False return True diff --git a/tests/live/oracle.py b/tests/live/oracle.py index 8eda66a51..bddab14cd 100644 --- a/tests/live/oracle.py +++ b/tests/live/oracle.py @@ -133,9 +133,9 @@ def _routines(engine: sa.Engine) -> list[Any]: try: cursor = raw.cursor() where = "FROM information_schema.routines WHERE routine_schema = DATABASE()" - cursor.execute(f"SELECT routine_definition {where}") + cursor.execute(f"SELECT routine_definition {where}") # two constants bodies = list(cursor.fetchall()) - cursor.execute(f"SELECT routine_name, routine_type {where}") + cursor.execute(f"SELECT routine_name, routine_type {where}") # two constants for name, kind in cursor.fetchall(): quoted = name.replace("`", "``") cursor.execute(f"DROP {kind} `{quoted}`") diff --git a/tests/pytest_plugin/test_http_security_flask.py b/tests/pytest_plugin/test_http_security_flask.py index 69ebc579a..8d1a3b534 100644 --- a/tests/pytest_plugin/test_http_security_flask.py +++ b/tests/pytest_plugin/test_http_security_flask.py @@ -204,7 +204,7 @@ def test_http_security_flask_matcher_outcomes_map_to_route_states() -> None: def test_http_security_flask_matcher_failure_never_reaches_the_host() -> None: class Broken: - class url_map: + class url_map: # noqa: N801 - a stand-in whose matcher fails @staticmethod def bind_to_environ(*_args: Any, **_kwargs: Any) -> Any: raise ValueError("no matcher") diff --git a/tests/pytest_plugin/test_plugin_apps.py b/tests/pytest_plugin/test_plugin_apps.py index b8139da12..c9b490549 100644 --- a/tests/pytest_plugin/test_plugin_apps.py +++ b/tests/pytest_plugin/test_plugin_apps.py @@ -540,7 +540,7 @@ def test_load_app_never_calls_an_object_with_a_router_attribute(monkeypatch: pyt def test_inspectable_is_false_for_a_class_that_holds_a_route_list() -> None: class Holder: - routes: list[object] = [] + routes: list[object] = [] # noqa: RUF012 - the class attribute is the point assert inspectable(Holder) is False diff --git a/tests/safety/test_b_security_safety.py b/tests/safety/test_b_security_safety.py index 22f3f8aa8..ead283452 100644 --- a/tests/safety/test_b_security_safety.py +++ b/tests/safety/test_b_security_safety.py @@ -32,7 +32,7 @@ def _args(scanned: dict[str, Any]) -> dict[str, Any]: def _tool_args(handle: Any) -> dict[str, Any]: - from sharpit.engine.tools04.security import security_service + from sharpit.engine.tools04.security import security_service # noqa: PLC0415 - only while the flag is on return _args(security_service(handle.context).scan()) diff --git a/tests/scripts/test_shard_weights.py b/tests/scripts/test_shard_weights.py index 4de948e6d..50d0fe213 100644 --- a/tests/scripts/test_shard_weights.py +++ b/tests/scripts/test_shard_weights.py @@ -21,7 +21,7 @@ def test_a_gates_artifact_beside_the_shard_artifacts_is_not_a_shard_leg(tmp_path _report(tmp_path, "junit-gates-windows-latest", 900.0) try: table = shard_weights.weights(tmp_path) - except Exception as exc: + except Exception as exc: # noqa: BLE001 - the crash is the defect; the assertion below must name it table = {"crashed": {type(exc).__name__: 0.0}} assert table == {"linux": {"tests/engine/test_guard.py": 4.0}} diff --git a/tests/surface.py b/tests/surface.py index c39698685..0dd03d337 100644 --- a/tests/surface.py +++ b/tests/surface.py @@ -136,7 +136,7 @@ def catalogue_with_lanes( return tools.merge_lane_tools( tools._BASE_TOOLS, tools._BASE_COMMANDS, - (*lane_tools, *tools._LOW_FOOTPRINT_TOOLS), + (*lane_tools, *tools._LOW_FOOTPRINT_TOOLS), # noqa: SLF001 - the import appends these after the lanes {**lane_commands, **tools._LOW_FOOTPRINT_COMMANDS}, ) diff --git a/tests/test_live_server_scope.py b/tests/test_live_server_scope.py index 76c89d135..54951296f 100644 --- a/tests/test_live_server_scope.py +++ b/tests/test_live_server_scope.py @@ -37,7 +37,7 @@ def fake_boot(key: str) -> Iterator[Any]: starts.append(key) yield conftest.LiveServer("sqlite://", key, "fake", key) - conftest._boot = fake_boot + conftest._boot = fake_boot # noqa: SLF001 - the one seam that starts a container oracle = session.items[0].module.oracle # type: ignore[attr-defined] oracle.drive = lambda *_: oracle.Observed([], False, {}) # no server: only the starts are counted diff --git a/tests/test_safety_lane_sweeps.py b/tests/test_safety_lane_sweeps.py index 1959d0a4a..cda3ca08b 100644 --- a/tests/test_safety_lane_sweeps.py +++ b/tests/test_safety_lane_sweeps.py @@ -104,7 +104,7 @@ def test_lane_file_that_skips_or_fails_is_reported_not_raised(lane_pkg: tuple[st try: lanes = safety.load(name) raised: str | None = None - except BaseException as exc: + except BaseException as exc: # noqa: BLE001 - a Skipped here would skip the shared route-table tests lanes, raised = safety.Lanes((), (), (), {}), repr(exc) assert raised is None diff --git a/tests/test_side_effect_guard.py b/tests/test_side_effect_guard.py index fdc8d674d..c7ac54030 100644 --- a/tests/test_side_effect_guard.py +++ b/tests/test_side_effect_guard.py @@ -69,7 +69,7 @@ def _use_monitoring_tool(_root: Path) -> Callable[[], None]: def _open_source(root: Path) -> Callable[[], None]: - with open(root / "main.py", encoding="utf-8") as handle: + with open(root / "main.py", encoding="utf-8") as handle: # noqa: PTH123 - the builtin is what is spied on handle.read() return lambda: None From 1c6d4ebd209d17bb9a4c61e4fb3345b78cb068f9 Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 16:21:16 +0000 Subject: [PATCH 08/14] ci: audit workflows online with zizmor on a schedule Signed-off-by: Flavio Oliva --- .github/workflows/ci.yml | 2 +- .github/workflows/security-audit.yml | 27 +++++++++++++++++++++++++++ tests/test_ci_layout.py | 26 +++++++++++++++++++++++++- 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/security-audit.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc409bd5f..ff589f8a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -284,7 +284,7 @@ jobs: - run: uv run --no-sync ruff format --check - run: uv run --no-sync pyright - run: uvx --from actionlint-py==1.7.12.25 actionlint - - run: uvx zizmor@1.32.0 --offline --min-severity medium .github/workflows + - run: uvx zizmor@1.32.0 --offline --min-severity low .github/workflows # Dogfood: the example's fixed route must pass `pytest --sharpit`, its planted N+1 must fail it. - run: uv run --no-sync python -c "import os, sys; os.makedirs(sys.argv[1], exist_ok=True)" "${{ runner.temp }}/speed" # the speed plugins write here - run: uv run --no-sync python -m pytest examples/fastapi_sqla/tests_gate -k fixed --sharpit --sharpit-junit=sharpit-junit.xml -p scripts.pytest_speed.fixture_timer --fixture-times="${{ runner.temp }}/speed/ft-fixed.jsonl" -p scripts.pytest_speed.rebuild_log --rebuild-log="${{ runner.temp }}/speed/rb-fixed.json" --junitxml="${{ runner.temp }}/junit-fixed.xml" diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml new file mode 100644 index 000000000..fb92135a1 --- /dev/null +++ b/.github/workflows/security-audit.yml @@ -0,0 +1,27 @@ +name: security-audit +on: + schedule: + - cron: "17 5 * * 2" + workflow_dispatch: + +permissions: {} + +jobs: + zizmor: + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 + - name: Audit workflows with zizmor + run: uvx zizmor@1.32.0 --format sarif .github/workflows > zizmor.sarif || true # Findings produce SARIF and a non-zero status. + env: + GH_TOKEN: ${{ github.token }} + - uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5 + with: + sarif_file: zizmor.sarif + category: zizmor diff --git a/tests/test_ci_layout.py b/tests/test_ci_layout.py index a6cab1407..29fbc0c28 100644 --- a/tests/test_ci_layout.py +++ b/tests/test_ci_layout.py @@ -626,13 +626,37 @@ def test_workflow_lint_and_the_sharpit_gate_run_inside_lint() -> None: lint = JOBS["lint"] for step in ( "uvx --from actionlint-py==1.7.12.25 actionlint", - "uvx zizmor@1.32.0 --offline --min-severity medium .github/workflows", + "uvx zizmor@1.32.0 --offline --min-severity low .github/workflows", "pytest examples/fastapi_sqla/tests_gate -k fixed --sharpit --sharpit-junit=sharpit-junit.xml", '"! uv run --no-sync python -m pytest examples/fastapi_sqla/tests_gate -k n_plus_one --sharpit', ): assert step in lint, step +def test_zizmor_runs_online_on_a_schedule_and_uploads_sarif() -> None: + workflow_path = Path(__file__).parents[1] / ".github" / "workflows" / "security-audit.yml" + assert workflow_path.exists() + workflow = workflow_path.read_text(encoding="utf-8") + header, jobs = workflow.split("\njobs:\n", 1) + assert re.search(r"^ schedule:$", header, re.MULTILINE) + assert re.search(r"^ workflow_dispatch:$", header, re.MULTILINE) + assert re.search(r"^permissions:\s*\{\s*\}$", header, re.MULTILINE) + match = re.search(r"^ zizmor:\n(.*?)(?=^ [a-z-]+:|\Z)", jobs, re.MULTILINE | re.DOTALL) + assert match + job = match[1] + assert re.search(r"^ permissions:\n contents: read\n security-events: write$", job, re.MULTILINE) + assert all( + re.fullmatch(r".*uses: [^@\s]+@[0-9a-f]{40} # v[^\s]+", line.strip()) + for line in workflow.splitlines() + if "uses:" in line + ) + job_version = re.search(r"zizmor@([0-9.]+)", job) + assert job_version + ci_version = re.search(r"zizmor@([0-9.]+)", CI) + assert ci_version + assert job_version[1] == ci_version[1] + + def _matrix_jobs(body: str) -> int: """Jobs a matrix expands to: the product of its list keys plus its include rows (each a new combination here).""" lines = body.splitlines() From bc336e696039f55365f7cbbac500ed20dffd2312 Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 16:26:44 +0000 Subject: [PATCH 09/14] test: add trust-boundary property tests and state the reporting channel Signed-off-by: Flavio Oliva --- SECURITY.md | 3 +- tests/docs/test_procurement_docs.py | 15 +++++---- tests/fuzz/test_trust_boundary_fuzz.py | 43 ++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 10 deletions(-) create mode 100644 tests/fuzz/test_trust_boundary_fuzz.py diff --git a/SECURITY.md b/SECURITY.md index ba4bd6fb0..72e4959fc 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -15,8 +15,7 @@ Security updates are provided only for the latest release on PyPI: Please report suspected security vulnerabilities privately. **Do not post vulnerability details in public issues or discussions.** -- Once enabled on the repository, report privately via GitHub's "Report a vulnerability" button under the **Security** tab. -- Until private vulnerability reporting is enabled, please open a GitHub issue titled `"Security contact request"` containing **NO details**, and the maintainer will reply with a private channel to share details securely. +- Report privately using GitHub's "Report a vulnerability" button under the **Security** tab. The maintainer acknowledges reports within 7 days. ## Network Egress and Trust Boundaries diff --git a/tests/docs/test_procurement_docs.py b/tests/docs/test_procurement_docs.py index c57d06a97..493bd5859 100644 --- a/tests/docs/test_procurement_docs.py +++ b/tests/docs/test_procurement_docs.py @@ -127,15 +127,14 @@ def test_security_policy_has_private_reporting_route() -> None: assert end != -1, "SECURITY.md must contain '## Network Egress and Trust Boundaries' after reporting" reporting_section = security_text[start:end] - assert "Report a vulnerability" in reporting_section, ( - "SECURITY.md must mention GitHub's 'Report a vulnerability' feature on the Security tab once enabled" + assert '"Report a vulnerability" button' in reporting_section, ( + "SECURITY.md must direct private reports to GitHub's 'Report a vulnerability' button" ) - assert "Security contact request" in reporting_section, ( - "SECURITY.md must instruct opening an issue titled 'Security contact request' until private reporting is" - " enabled" - ) - assert "no details" in reporting_section.lower(), ( - "SECURITY.md must instruct that the contact request issue contain no vulnerability details" + assert "Security" in reporting_section, "SECURITY.md must identify the Security tab" + assert "7 days" in reporting_section, "SECURITY.md must state the 7-day acknowledgement window" + assert "once enabled" not in reporting_section.lower(), "SECURITY.md must not describe private reporting as pending" + assert "Security contact request" not in reporting_section, ( + "SECURITY.md must not direct reporters to a public issue" ) assert "48 hours" not in reporting_section, "SECURITY.md must remove unsupported 48-hour response promise" assert "48-hour" not in reporting_section, "SECURITY.md must remove unsupported 48-hour response promise" diff --git a/tests/fuzz/test_trust_boundary_fuzz.py b/tests/fuzz/test_trust_boundary_fuzz.py new file mode 100644 index 000000000..c76309023 --- /dev/null +++ b/tests/fuzz/test_trust_boundary_fuzz.py @@ -0,0 +1,43 @@ +"""Property tests for request-host and settings-mode parsing.""" + +from __future__ import annotations + +from hypothesis import given, settings +from hypothesis import strategies as st + +from sharpit.engine.guard import extract_request_host +from sharpit.settings import parse_mode + +_EXAMPLES = 500 +_MODE_INPUTS = st.one_of(st.none(), st.booleans(), st.text(), st.integers(), st.binary()) + + +@settings(max_examples=_EXAMPLES, deadline=None) +@given(value=st.one_of(st.text(), st.none())) +def test_extract_request_host_never_raises(value: str | None) -> None: + extract_request_host(value) + + +@settings(max_examples=_EXAMPLES, deadline=None) +@given(value=st.one_of(st.text(), st.none())) +def test_an_accepted_request_host_round_trips(value: str | None) -> None: + """Accepted means the parser returns a non-None host.""" + host = extract_request_host(value) + if host is not None: + authority = f"[{host}]" if ":" in host else host + assert extract_request_host(authority) == host + + +@settings(max_examples=_EXAMPLES, deadline=None) +@given(value=_MODE_INPUTS) +def test_parse_mode_never_raises(value: object) -> None: + parse_mode(value) + + +@settings(max_examples=_EXAMPLES, deadline=None) +@given(value=_MODE_INPUTS) +def test_an_accepted_mode_round_trips(value: object) -> None: + """Accepted means the parser returns one of its three mode strings.""" + mode = parse_mode(value) + if mode is not None: + assert parse_mode(mode) == mode From fdfa03df43fe7b9530be753f18b316b6aa385955 Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 16:30:23 +0000 Subject: [PATCH 10/14] ci: audit the Python and npm lock files for known vulnerabilities Signed-off-by: Flavio Oliva --- .github/workflows/security-audit.yml | 26 +++++++++++++++++++ .../decisions/004-dependency-audit-tooling.md | 24 +++++++++++++++++ docs/decisions/README.md | 1 + src/sharpit/cli/docs_catalog.py | 5 ++++ tests/test_ci_layout.py | 21 +++++++++++++++ 5 files changed, 77 insertions(+) create mode 100644 docs/decisions/004-dependency-audit-tooling.md diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index fb92135a1..4570b9a7d 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -3,10 +3,36 @@ on: schedule: - cron: "17 5 * * 2" workflow_dispatch: + pull_request: + paths: + - uv.lock + - ui/package-lock.json + - website/requirements.txt permissions: {} jobs: + dependencies: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 + - name: Export and audit locked Python dependencies + run: | + uv export --frozen --all-extras --all-groups --no-emit-project -o /tmp/sharpit-requirements.txt + uvx --from pip-audit==2.10.1 pip-audit -r /tmp/sharpit-requirements.txt --no-deps --disable-pip + uvx --from pip-audit==2.10.1 pip-audit -r website/requirements.txt --no-deps --disable-pip + - name: Audit locked npm dependencies + working-directory: ui + run: npm audit --audit-level=high + zizmor: runs-on: ubuntu-latest permissions: diff --git a/docs/decisions/004-dependency-audit-tooling.md b/docs/decisions/004-dependency-audit-tooling.md new file mode 100644 index 000000000..0877cf429 --- /dev/null +++ b/docs/decisions/004-dependency-audit-tooling.md @@ -0,0 +1,24 @@ +# Dependency audit tooling + +## Status + +Implemented in the weekly security audit workflow and on pull requests that change a dependency lock or the website requirements. + +## Decision + +OWASP Dependency-Check is not adopted for dependency auditing. Its [file type analyzer list](https://dependency-check.github.io/DependencyCheck/analyzers/index.html) does not include `uv.lock`. Its Python-related analyzers are “Pip”, which scans `requirements.txt` files, and “Python”, which scans Python source files and package metadata. Both appear under Experimental Analyzers; the documentation says these analyzers are experimental because of higher false positive and false negative rates. + +Python dependency coverage comes from `pip-audit` over a requirements file exported from `uv.lock`, plus `website/requirements.txt`. npm dependency coverage comes from `npm audit` on `ui/package-lock.json`. CodeQL uses the `extended` query suite for code analysis, and zizmor audits GitHub Actions workflows. + +## Rationale + +Dependency-Check cannot directly consume the project’s Python lock file, and its documented Python analyzer only recognizes requirements files and package metadata. Exporting the frozen uv lock gives `pip-audit` the resolved dependency set without asking it to resolve dependencies. npm’s own audit command consumes the committed lock file directly. CodeQL and zizmor cover source-code and workflow risks outside package advisory matching. + +## Consequences + +The Python audit workflow must keep its export flags aligned with the project’s locked extras and groups and must use `pip-audit` without dependency resolution. The website requirements file is audited separately. npm audit reports high and critical findings as failures. Dependency-Check remains unconfigured; its experimental Python analyzers are not treated as lock-file coverage. + +## Enforced by + +- `.github/workflows/security-audit.yml` audits the frozen Python export, the website requirements, the npm lock, and the workflow files. +- `tests/test_ci_layout.py` pins the dependency audit triggers and commands; `src/sharpit/cli/docs_catalog.py` includes this decision in the bundled documentation catalog. diff --git a/docs/decisions/README.md b/docs/decisions/README.md index 22123f4a1..1ddb24ada 100644 --- a/docs/decisions/README.md +++ b/docs/decisions/README.md @@ -6,3 +6,4 @@ Each record states the decision, its status, and the code or tests that enforce - [Baseline entry owner](baseline-owner.md) explains when a baselined test-runtime finding is reported fixed or inconclusive. - [WSGI request target validation](wsgi-request-target.md) describes how the WSGI adapter checks the original request target and Host header. - [Request values in memory](003-request-values-in-memory.md) records the bounded, request-lifetime matching used by the security-sinks sensor. +- [Dependency audit tooling](004-dependency-audit-tooling.md) records the decision not to adopt OWASP Dependency-Check and the package and workflow audit coverage. diff --git a/src/sharpit/cli/docs_catalog.py b/src/sharpit/cli/docs_catalog.py index 62c200e31..8d6f74538 100644 --- a/src/sharpit/cli/docs_catalog.py +++ b/src/sharpit/cli/docs_catalog.py @@ -42,6 +42,11 @@ "Request values in memory", "Bounded request-lifetime matching for command and file path sinks", ), + "decision-004-dependency-audit-tooling": ( + "docs/decisions/004-dependency-audit-tooling.md", + "Dependency audit tooling", + "Package and workflow audit coverage and the Dependency-Check decision", + ), } diff --git a/tests/test_ci_layout.py b/tests/test_ci_layout.py index 29fbc0c28..55be480e1 100644 --- a/tests/test_ci_layout.py +++ b/tests/test_ci_layout.py @@ -14,6 +14,7 @@ CI_PATH = Path(__file__).parent.parent / ".github" / "workflows" / "ci.yml" CI = CI_PATH.read_text(encoding="utf-8") +SECURITY_AUDIT = (CI_PATH.parent / "security-audit.yml").read_text(encoding="utf-8") def _jobs() -> dict[str, str]: @@ -53,6 +54,26 @@ def test_lint_runs_once_in_its_own_job_not_inside_a_test_shard() -> None: assert owners == ["lint"], "lint inside a shard lengthens that shard's critical path" +def test_dependency_audit_covers_the_python_and_npm_locks() -> None: + trigger = SECURITY_AUDIT.split("permissions:", 1)[0] + assert " pull_request:" in trigger + assert "uv.lock" in trigger + assert "ui/package-lock.json" in trigger + assert "website/requirements.txt" in trigger + assert re.search(r"^ dependencies:\n", SECURITY_AUDIT, re.MULTILINE) + dependencies = SECURITY_AUDIT.split(" dependencies:\n", 1)[1] + assert "schedule" in trigger.split("on:", 1)[1] + assert "uv export --frozen --all-extras --all-groups --no-emit-project" in dependencies + assert "-o /tmp/sharpit-requirements.txt" in dependencies + assert dependencies.count("pip-audit") >= 3 + assert "pip-audit==2.10.1" in dependencies + assert dependencies.count("--no-deps") == 2 + assert "pip-audit -r /tmp/sharpit-requirements.txt --no-deps" in dependencies + assert "pip-audit -r website/requirements.txt --no-deps" in dependencies + assert "npm audit --audit-level=high" in dependencies + assert re.search(r"working-directory: ui", dependencies) + + def test_pyright_and_format_run_in_the_lint_job_only() -> None: for command in (" pyright", " ruff format --check"): assert [name for name, body in JOBS.items() if command in body] == ["lint"] From a10177c3a7ca030c3c40c83f5969b2acb0a46556 Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 16:32:52 +0000 Subject: [PATCH 11/14] ci: keep the workflow audit off pull request runs Signed-off-by: Flavio Oliva --- .github/workflows/security-audit.yml | 1 + tests/test_ci_layout.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index 4570b9a7d..da623e251 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -35,6 +35,7 @@ jobs: zizmor: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' permissions: contents: read security-events: write diff --git a/tests/test_ci_layout.py b/tests/test_ci_layout.py index 55be480e1..ab1763056 100644 --- a/tests/test_ci_layout.py +++ b/tests/test_ci_layout.py @@ -74,6 +74,11 @@ def test_dependency_audit_covers_the_python_and_npm_locks() -> None: assert re.search(r"working-directory: ui", dependencies) +def test_zizmor_audit_does_not_run_on_pull_requests() -> None: + zizmor = SECURITY_AUDIT.split(" zizmor:\n", 1)[1] + assert " if: github.event_name != 'pull_request'" in zizmor + + def test_pyright_and_format_run_in_the_lint_job_only() -> None: for command in (" pyright", " ruff format --check"): assert [name for name, body in JOBS.items() if command in body] == ["lint"] From bcf6aa112e6f6fc1a428129d06f26c3b5bdfe95f Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 16:40:13 +0000 Subject: [PATCH 12/14] ci: attach a CycloneDX SBOM to each release Signed-off-by: Flavio Oliva --- .github/workflows/release.yml | 14 ++++++++++++++ skills/release/SKILL.md | 2 +- tests/test_ci_layout.py | 25 +++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dcb42d49c..3d123fc48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,6 +64,19 @@ jobs: exit 1 fi + - name: Generate the runtime dependency SBOM + id: sbom + env: + TAG: ${{ github.ref_name }} + run: | + version="${TAG#v}" + echo "version=$version" >> "$GITHUB_OUTPUT" + uv export --frozen --no-dev --no-default-groups --no-emit-project --format requirements.txt \ + -o "$RUNNER_TEMP/sharpit-${version}-requirements.txt" + uvx --from cyclonedx-bom==9.0.2 cyclonedx-py requirements \ + "$RUNNER_TEMP/sharpit-${version}-requirements.txt" --spec-version 1.5 \ + --output-file "$RUNNER_TEMP/sharpit-${version}.cdx.json" + - name: Smoke-test the wheel run: | uv venv "$RUNNER_TEMP/smoke" --python 3.12 @@ -77,5 +90,6 @@ jobs: files: | dist/*.whl dist/*.tar.gz + ${{ runner.temp }}/sharpit-${{ steps.sbom.outputs.version }}.cdx.json generate_release_notes: true prerelease: ${{ steps.kind.outputs.prerelease == 'true' }} diff --git a/skills/release/SKILL.md b/skills/release/SKILL.md index acf537bf8..20e7e0133 100644 --- a/skills/release/SKILL.md +++ b/skills/release/SKILL.md @@ -14,7 +14,7 @@ Follow this sequence in order. Ask the owner for anything under **Inputs** that > **How publishing works.** Nobody uploads to PyPI by hand. A signed tag `v` pushed to GitHub starts > `.github/workflows/release.yml`, which checks the signature, builds, checks the wheel version matches the tag, > smoke-tests the wheel, publishes to PyPI through Trusted Publishing (OIDC, no token anywhere) and creates the GitHub -> Release with the wheel and sdist. The tag push is therefore the **point of no return**. +> Release with the wheel, sdist and CycloneDX SBOM for runtime dependencies. The tag push is therefore the **point of no return**. ## Inputs diff --git a/tests/test_ci_layout.py b/tests/test_ci_layout.py index ab1763056..934436f5a 100644 --- a/tests/test_ci_layout.py +++ b/tests/test_ci_layout.py @@ -1034,3 +1034,28 @@ def test_the_nightly_passes_its_matrix_legs_to_the_check() -> None: def test_the_nightly_pins_the_oracle_legs_ci_pins() -> None: ci = {key: legs for key, _, legs in _live_rows(CI)} assert _live_rows(NIGHTLY_LIVE) == [(key, image, ci[key]) for key, image in NIGHTLY_IMAGES] + + +RELEASE = (Path(__file__).parent.parent / ".github" / "workflows" / "release.yml").read_text(encoding="utf-8") + + +def test_release_publishes_an_sbom_and_keeps_attestations_on() -> None: + publish = RELEASE.split(" publish:\n", 1)[1] + workflow_permissions = RELEASE.split("permissions:\n", 1)[1].split("jobs:\n", 1)[0] + job_permissions = publish.split(" permissions:\n", 1)[1].split(" environment:\n", 1)[0] + assert "id-token: write" not in workflow_permissions + assert "id-token: write" in job_permissions + assert "uv export --frozen --no-dev --no-default-groups --no-emit-project" in publish + assert "--format requirements.txt" in publish + assert "--no-default-groups" in publish + assert "cyclonedx-bom==9.0.2" in publish + assert "cyclonedx-py requirements" in publish + assert "--output-file" in publish + assert "--spec-version 1.5" in publish + sbom_step = publish.split(" - name: Generate the runtime dependency SBOM\n", 1)[1].split(" - name:", 1)[0] + assert "dist/" not in sbom_step + assert "files:" in publish + release_files = publish.split("files:", 1)[1].split("generate_release_notes:", 1)[0] + assert "${{ steps.sbom.outputs.version }}" in release_files + assert ".cdx.json" in release_files + assert "attestations: false" not in publish From f448fa6c4cab0c5b0365dbfbeb4d49964445a99d Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 16:43:27 +0000 Subject: [PATCH 13/14] ci: build the release SBOM in a job without publishing rights Signed-off-by: Flavio Oliva --- .github/workflows/release.yml | 53 ++++++++++++++++++++++++++--------- tests/test_ci_layout.py | 30 +++++++++++++------- 2 files changed, 59 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d123fc48..64fe8806d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,40 @@ permissions: contents: read jobs: + sbom: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + persist-credentials: false + + - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 + with: + enable-cache: false + + - name: Generate the runtime dependency SBOM + env: + TAG: ${{ github.ref_name }} + run: | + version="${TAG#v}" + mkdir -p "$RUNNER_TEMP/sbom" + uv export --frozen --no-dev --no-default-groups --no-emit-project --format requirements.txt \ + -o "$RUNNER_TEMP/sharpit-${version}-requirements.txt" + uvx --from cyclonedx-bom==9.0.2 cyclonedx-py requirements \ + "$RUNNER_TEMP/sharpit-${version}-requirements.txt" --spec-version 1.5 \ + --output-file "$RUNNER_TEMP/sbom/sharpit-${version}.cdx.json" + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: release-sbom + path: ${{ runner.temp }}/sbom/sharpit-*.cdx.json + if-no-files-found: error + retention-days: 1 + publish: + needs: sbom runs-on: ubuntu-latest permissions: contents: write # the GitHub Release @@ -64,23 +97,15 @@ jobs: exit 1 fi - - name: Generate the runtime dependency SBOM - id: sbom - env: - TAG: ${{ github.ref_name }} - run: | - version="${TAG#v}" - echo "version=$version" >> "$GITHUB_OUTPUT" - uv export --frozen --no-dev --no-default-groups --no-emit-project --format requirements.txt \ - -o "$RUNNER_TEMP/sharpit-${version}-requirements.txt" - uvx --from cyclonedx-bom==9.0.2 cyclonedx-py requirements \ - "$RUNNER_TEMP/sharpit-${version}-requirements.txt" --spec-version 1.5 \ - --output-file "$RUNNER_TEMP/sharpit-${version}.cdx.json" + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: release-sbom + path: ${{ runner.temp }}/sbom - name: Smoke-test the wheel run: | uv venv "$RUNNER_TEMP/smoke" --python 3.12 - uv pip install --python "$RUNNER_TEMP/smoke/bin/python" dist/sharpit-*.whl fastapi pydantic-settings uvicorn httpx + uv pip --python "$RUNNER_TEMP/smoke/bin/python" install dist/sharpit-*.whl fastapi pydantic-settings uvicorn httpx PYTHONPATH=. "$RUNNER_TEMP/smoke/bin/python" scripts/ci/wheel_smoke.py - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 @@ -90,6 +115,6 @@ jobs: files: | dist/*.whl dist/*.tar.gz - ${{ runner.temp }}/sharpit-${{ steps.sbom.outputs.version }}.cdx.json + ${{ runner.temp }}/sbom/*.cdx.json generate_release_notes: true prerelease: ${{ steps.kind.outputs.prerelease == 'true' }} diff --git a/tests/test_ci_layout.py b/tests/test_ci_layout.py index 934436f5a..2ad3c3042 100644 --- a/tests/test_ci_layout.py +++ b/tests/test_ci_layout.py @@ -1045,17 +1045,27 @@ def test_release_publishes_an_sbom_and_keeps_attestations_on() -> None: job_permissions = publish.split(" permissions:\n", 1)[1].split(" environment:\n", 1)[0] assert "id-token: write" not in workflow_permissions assert "id-token: write" in job_permissions - assert "uv export --frozen --no-dev --no-default-groups --no-emit-project" in publish - assert "--format requirements.txt" in publish - assert "--no-default-groups" in publish - assert "cyclonedx-bom==9.0.2" in publish - assert "cyclonedx-py requirements" in publish - assert "--output-file" in publish - assert "--spec-version 1.5" in publish - sbom_step = publish.split(" - name: Generate the runtime dependency SBOM\n", 1)[1].split(" - name:", 1)[0] - assert "dist/" not in sbom_step + assert "actions/download-artifact" in publish assert "files:" in publish release_files = publish.split("files:", 1)[1].split("generate_release_notes:", 1)[0] - assert "${{ steps.sbom.outputs.version }}" in release_files assert ".cdx.json" in release_files assert "attestations: false" not in publish + + +def test_release_sbom_is_built_outside_the_publishing_job() -> None: + sbom_match = re.search(r"(?ms)^ sbom:\n(.*?)(?=^ [\w-]+:\n|\Z)", RELEASE) + sbom = sbom_match.group(1) if sbom_match else "" + publish = RELEASE.split(" publish:\n", 1)[-1] + assert sbom_match is not None + permissions_match = re.search(r"(?ms)^ permissions:\n(.*?)(?=^ steps:)", sbom) + assert permissions_match is not None + assert permissions_match.group(1) == " contents: read\n" + assert "cyclonedx-py requirements" in sbom + assert "actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9" in sbom + assert "needs: sbom" in publish + assert "actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333" in publish + assert "uvx" not in publish + assert "cyclonedx" not in publish + assert "pip install" not in publish + release_files = publish.split("files:", 1)[1].split("generate_release_notes:", 1)[0] + assert ".cdx.json" in release_files From 8111e2b5b11228a716503fd4b7f06fda8741a8e4 Mon Sep 17 00:00:00 2001 From: Flavio Oliva Date: Sat, 5 Dec 2026 16:46:15 +0000 Subject: [PATCH 14/14] ci: keep the release smoke test on a valid uv command Signed-off-by: Flavio Oliva --- .github/workflows/release.yml | 2 +- tests/test_ci_layout.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64fe8806d..02b5c3d60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -105,7 +105,7 @@ jobs: - name: Smoke-test the wheel run: | uv venv "$RUNNER_TEMP/smoke" --python 3.12 - uv pip --python "$RUNNER_TEMP/smoke/bin/python" install dist/sharpit-*.whl fastapi pydantic-settings uvicorn httpx + uv pip install --python "$RUNNER_TEMP/smoke/bin/python" dist/sharpit-*.whl fastapi pydantic-settings uvicorn httpx PYTHONPATH=. "$RUNNER_TEMP/smoke/bin/python" scripts/ci/wheel_smoke.py - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 diff --git a/tests/test_ci_layout.py b/tests/test_ci_layout.py index 2ad3c3042..147bb6d57 100644 --- a/tests/test_ci_layout.py +++ b/tests/test_ci_layout.py @@ -1052,6 +1052,11 @@ def test_release_publishes_an_sbom_and_keeps_attestations_on() -> None: assert "attestations: false" not in publish +def test_release_smoke_test_installs_with_a_valid_uv_command() -> None: + publish = RELEASE.split(" publish:\n", 1)[1] + assert 'uv pip install --python "$RUNNER_TEMP/smoke/bin/python"' in publish + + def test_release_sbom_is_built_outside_the_publishing_job() -> None: sbom_match = re.search(r"(?ms)^ sbom:\n(.*?)(?=^ [\w-]+:\n|\Z)", RELEASE) sbom = sbom_match.group(1) if sbom_match else "" @@ -1066,6 +1071,5 @@ def test_release_sbom_is_built_outside_the_publishing_job() -> None: assert "actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333" in publish assert "uvx" not in publish assert "cyclonedx" not in publish - assert "pip install" not in publish release_files = publish.split("files:", 1)[1].split("generate_release_notes:", 1)[0] assert ".cdx.json" in release_files