Repository navigation
fix: apply the 0.12.0 review findings: forge's secret rules, an anchored statement target, harnesses that match forge - #28
Merged
Conversation
…anchor the statement target The option-key rule is forge-cli's secret_option_key, by whole words (it no longer passes private_key, signingKey, auth, key, pwd and the like, and no longer refuses max_tokens or secretary). A string a route gives (name, kind, connection, format, options) is refused when it has a vendored redactor shape: provider key prefixes, Bearer, JWT, PEM, URL user info, key=value with a credential-named key, and the incident and chat webhook URLs. forge-cli stays the authority and may refuse more. Without sqlglot the statement target is now read right after DELETE FROM, UPDATE or MERGE INTO (after a leading WITH clause), with word boundaries, backticks and spaces around dots, instead of a substring match. sample_alert follows forge-cli's make_alert wording. Tables of forge-cli's own outcomes pin all of it.
…e-cli does Plain classes and objects skip the subclass tests; check is optional (a missing one is no problems) and a maintenance check must return a list; a function that returns a kind or action is called, and a function set on the class is not bound as a method. Adds a test that at least one sample route passes the kind's check, positional labels instead of route names, to/from/format passed through the shape test, a warning when sqlglot is absent, forge-cli's arity rule for func, no invented command-name pattern, and a restore of the cwd and environment even when a plugin raises.
…group history; harness behaviour
…ain__, cite the forge PR not a commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#27 merged before its review fixes were pushed. This brings them in before the 0.12.0 tag.
secret_option_keyis ported from forge-cli PR #1063, which ships in forge-cli 0.38.0. The redactor's key parts and names are vendored. 38 keys are pinned to forge's own outcomes.DELETE FROM,UPDATEorMERGE INTO. Without sqlglot the harness warns, and the docs say what can pass.checkmeans no problems;checkmust return a list;check;fluid_build.commandshistory: lazy loading, the allow/block policy and the one-argumentfuncare 0.11.0 and later.sample_alertmirrors forge's alerts. The command harness follows forge's arity and restores cwd and env.Checked: ruff, black, pytest (415+ pass on 3.10, 3.11, 3.12 and 3.14), each example's tests,
python -m buildandtwine check. It was also checked end to end against forge-cli 0.38.0 (validate, generate schedule, plan, the example command).