Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
release(v1.0.1): HTML report security fixes and scoring corrections #473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
release(v1.0.1): HTML report security fixes and scoring corrections #473
Changes from 1 commit
b1b862f3d6253e6d6c24b87d82fd235d5f185d0417919a7887b227da36840071db070b65ff59a49ef56e50d89e17a89848d249ef7479aba879f7d532882442682b7e2e55270d4d4008731d7ed4381ff52e4bf08e93509722874db69f56ab51dcfdce382b87935f982cc1f0b1f1c4b28f83d8981e9ab483c26020760f8165f343f6b5ffb4205b2f656fee37b6778a4160efc87cbfd6a34f91882a5c0ba1b6c2cfbfbc8e561addba73a6a50633477a69cd3e891182d7206d2c6e4f6993443bf2fe3337ff7d49dc382f8d8c9eef7ae2a3bf141822a84e9ad16f2f4869dd9ce3a19e420645f13701937c57f2c3ded5ea0d020c3a7cdb6a5ab530a35e6de1ecc857d3f994a9e7633802fca87f79316cf1a3103f6cbcc74d81e7c292ca3cd57601ff20e8e7d4e813a9c4996f96fbb4258bdf811bab977f6580ecbd1983e8cf896ffc8cbe864235f73631b3c66b40201bfe69ffffa59f143a573d73e9bc6ea20ed72d62a014211f3d6c2a707ce398197ae20479747bf2ca40bbb476a1a881574c0f7c92cf26a3baa348dc59a9b8bd29c24e11f32e6cf864cefbe638ea21479c3dbc6c17e7fefbbbb147fb863da7e136fb938766471981dafd30f289160b9602b0a7f68b6a259d8fc063e49fa562bac23eae44f68ceb32d3ff115b35070e9afb20d13e75305811854fc006034791869bc28a2db932a2f5d4cafc1b0cad19ac8b88d81b9db859d6abbf26693a3dee57a48dde3dfd2ddbd94bd1f0f809a6f13de1445a495fee3ff81a33ebaa3ca2dd0048a50497092ca4fe0aad6ebd6385efc1e743e0e403b9bc3dfee314963ad7faefc0003b5f1b53e2f75e17922be316a699cc2feb5903a9bcc24ded90c7f63554406c346ee8c45b00bd37730bace4572cc2bd10f59b247a1a58ce84b890b0921f4a776d42d8cda4fde6163d759e39ceb8efbdc2db699d35bf5378f2d66f86372b519f8618f72dc4befbe6a9ce23e8a49fa64bbaef6c5b6c40799eaf895de0d3c9215ac16063037f319cac6ff179d64f4f4b52ce08cf1f46ece13a4523251f3331df32da4a6ef0089cb5878187b856825739c7a943a04146993ad0c4abe1755d38ff23aaaaff130d166746af633f0b694bdc24055c9fd99e28a1d736e94dc213265ee962323bc01f6fffdafdaa0434631c1878d48d7b32141619dd24969aba008432d05a21b35d60b6846b9336a72aee152e8ef41f1119fa9d451034867f94e659e7File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…essing Self-review before sending for review. Eight findings, each reproduced first and each new test checked to FAIL with the source reverted: 26 of 35 fail pre-fix, the other 9 are opposite-case controls that pass in both states by design. 1 The schema path read `comparator_config` into a local and dropped it, so `auto` + `absolute_tolerance: 0.5` built `abs=0.0` while the identical config through `model_from_json` built `abs=0.5` -- the "one flag, two answers" defect this feature exists to close, and the opposite of what the CHANGELOG claimed. Now merged as `{**inferred, **author}`. A bare config with no `auto` reaches the type default too, which the config path already did. 2 `auto` on an object or array-of-objects property was accepted and did nothing, while `"Nonsense"` in the same position raised. Chose to RAISE rather than honour: a container has no comparator to infer, so honouring it would mean silently aliasing it to `x-aws-stickler-infer-unspecified` and inventing a second spelling for an existing key. The error names the key that does work, and the remedy it recommends is tested. 3 `_infer_spec` never passed `match_threshold` to inference, so a mapping field under `match_threshold=0.9` got `ANLSStar@0.7` where `eval_for` gives `@0.9`. Threaded through both paths; on the schema path it is swapped and restored per subtree in the existing `finally`, and a test pins that a nested override does not leak to a sibling declared after it. 4 A nested config field could not scope the flag in either direction, and opting in on the nested field alone produced an error advising exactly what the author had already written. The schema path supported this; the config path now matches. 5 The docs claimed unlisted `format` values fall to the `string` row. Measured: `uri`, `time`, `const` and a property-less `object` all get `Exact@1.0`. Confirmed the cause in the parser (`resolvers.py:138` maps exactly `date-time`, `date`, `time`, `uri`, `uuid` to distinct types, and `email` to `str`), so the sentence was right about `email` alone. Table rows added. 6 `InferredSpec.source` reported `name-token` whenever any provenance line started with that prefix, including the REFUSAL, so this feature's headline example (`issued_date` declared `str`) claimed the name was honoured in the one case where it was refused. Fixed the code, not the docs: the docstring says the label is the origin of the final decision, and the comparator came from the type. Refusals now carry `name-token-unused:`, making `source` structural rather than a substring guess. 7 The `__init__` comment said a nested object cannot scope the flag; the code and its own tests do the opposite. 8 A test docstring'd "one flag must not mean two things depending on the entry point" asserted that the two paths disagree. Measuring corrected the premise twice: the config path CAN declare an element type (`List[float]`), and that was a real divergence, now fixed; and a bare `{"type": "list"}` is not whole-list equality -- elements are compared one by one, so `[1,2,3]` vs `[1,2,99]` scores 0.67. What is actually lost is the element comparator. Renamed to the invariant that is true, asserted across all three entry points, with the residue pinned separately and documented -- `eval_for` answers the same for a bare `list`, so it is one rule on the same information, not an entry-point split. 2406 passed, 12 skipped (+35) ruff check clean mkdocs: 9 warnings, the dev baseline Deliberately not fixed, found while reproducing 2: the object branch also hardcodes `threshold=0.7` and ignores `comparator-config`. Pre-existing, a separate silent drop, and worth its own issue rather than widening this one.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.