Version bump to 2.3.1 with updated README (line count 2,823, assertion count 441/441), changelog with full v2.3.1 section covering Steps 1-5, and consistent claims across all files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 KiB
Changelog
All notable changes to Scaffold are documented here.
[v2.3.1] — 2026-03-30
Added
Tool Picker Search/Filter (Step 2)
- Search bar at the top of the tool picker with placeholder "Filter tools..."
- Filters by tool name, description, and path columns (case-insensitive)
- Clear button restores all rows; auto-focuses on picker display
Keyboard Navigation (Step 3)
- Enter/Return key opens the selected tool from the picker
- Tab order: search bar → table for natural keyboard flow
- Numpad Enter also supported
Enhanced Tooltips (Step 4)
- Tooltips now show flag, short_flag, type, separator mode, description, and validation regex
- Applied to both field labels and widgets
- Boolean fields hide separator; positional fields show placeholder name
Status Bar Improvements (Step 5)
- On tool load: shows field count and required count —
Loaded {tool} — {N} fields ({M} required) - During execution: elapsed timer ticks every second —
Running... (Ns) - On completion: elapsed time in exit message —
Exit 0 (N.1fs)orProcess stopped (N.1fs)
Exhaustive Preset Round-Trip Tests (Step 1)
- Section 18: all 9 widget types, edge cases (integer 0, float 0.0, empty multi_enum, paths with spaces), subcommand presets
Changed
- Version bump to 2.3.1
timeadded to stdlib imports (no new external dependencies)- scaffold.py line count: 2,739 → 2,823
- Test files and test schemas now tracked in git (removed
test_*.pyfrom .gitignore)
Tested
- Section 19 — Search/Filter (11 assertions): bar existence, placeholder, name/description/case filtering, clear restore, no-match
- Section 20 — Keyboard Navigation (6 assertions): Enter opens tool, no-selection safety, tab order, numpad Enter
- Section 21 — Tooltip Flag Reference (11 assertions): flag, short_flag, type, validation, separator, positional, widget/label match
- Section 22 — Status Bar Improvements (12 assertions): field counts, required counts, subcommand totals, timer attributes
Full suite results
- All 4 test suites pass: 441/441 assertions, 0 failures
- Functional: 271/271 (+98 new: 58 Step 1, 11 Step 2, 6 Step 3, 11 Step 4, 12 Step 5)
- Examples: 52/52 (unchanged)
- Manual Verification: 61/61 (unchanged)
- Smoke: 57/57 (unchanged)
- No debug prints, no TODO/FIXME/HACK, no
shell=True, no new external dependencies
[v2.3.0] — 2026-03-29
External Code Review Inputs
Suggestions from multiple external code reviews (ChatGPT, GitHub Copilot) were triaged and distilled into six implementation phases. Each phase was completed in order, with the full test suite run after every change. Phases were ordered by risk: pure tests and validation first, data changes second, small code changes third.
Implemented from ChatGPT review:
- Validate
depends_onreferences at schema load time, not during UI updates (Phase A) - Runtime dependency audit in the GUI as defense-in-depth (Phase F)
Implemented from combined review suggestions (ChatGPT + Copilot):
- Comprehensive command assembly property tests (Phase B)
- Widget creation fallback for malformed arguments (Phase C)
- Preset schema versioning with hash-based mismatch detection (Phase E)
- Flagship schema polish with beginner-friendly descriptions and presets (Phase D)
Declined or deferred: Command preview coloring (too large for a minor release — requires replacing the preview widget, touching the theme system, and rewriting multiple existing tests).
Added
Phase A — Dependency Validation at Schema Load Time
validate_tool() now checks that every depends_on reference points to an existing flag within the same scope (top-level arguments or within a single subcommand). Previously, a broken depends_on reference (e.g., depends_on: "--nonexistent") was silently ignored at load time and only failed at runtime when the GUI tried to wire up the dependency.
- New
_check_dependencies()validation helper, called for both top-level and per-subcommand argument lists — same pattern as_check_duplicate_flagsand_check_groups - Error message format:
{scope}: argument "{name}" depends on "{dep}" which does not exist in this scope - New test schemas:
tests/invalid_bad_dependency.json(catches broken dep, exits 1) andtests/valid_good_dependency.json(passes validation)
Phase C — Widget Creation Fallback
_build_widget() is now wrapped in a try/except. If an unexpected argument configuration causes an exception during widget construction, the form no longer crashes — instead, a plain QLineEdit fallback is returned with a tooltip explaining the rendering failure. The error is logged to stderr for debugging.
- New
_build_widget_inner()contains the original dispatch logic;_build_widget()is now the try/except wrapper - Fallback widget marked with
_is_fallback = Trueattribute soget_field_value,_raw_field_value, and_set_field_valuetreat it as a plain string regardless of the declared type - One bad field does not break the rest of the form — fields before and after render normally
- This is defense-in-depth:
validate_tool()still catches invalid types at load time; this catches edge cases that pass validation but fail rendering
Phase E — Preset Schema Versioning
Presets now include a _schema_hash field — an 8-character MD5 hash of the tool's argument flags at the time the preset was saved. When loading a preset against a schema that has changed (arguments added or removed), the status bar shows a non-blocking warning: "Note: This preset was saved with a different schema version. Some fields may not have loaded."
- New
schema_hash(data)helper computes the hash from sorted flag names across all scopes (global + subcommands) serialize_values()now includes_schema_hashin every saved preset_on_load_preset()compares the saved hash to the current schema's hash; shows warning on mismatch- Backwards compatible — old presets without
_schema_hashload normally with no warning - Existing behavior unchanged: missing fields get defaults, extra fields are silently skipped
Phase F — Runtime Dependency Audit (GUI)
Defense-in-depth layer for dependency wiring. After _apply_dependencies() fails to find a parent widget for a depends_on reference, it now logs a warning to stderr and leaves the dependent field enabled (fail-open) instead of silently skipping it.
_apply_dependencies()now prints a warning to stderr when a parent widget is missing:Warning: dependency wiring failed for "{name}" -- parent "{flag}" not found in form. Field left enabled (fail-open).- This is a startup-time check (runs once when the form is built), not a per-interaction check
- Complements Phase A's load-time validation — Phase A catches bad references in the schema, Phase F catches anything that slips through to the GUI
Improved
Phase D — Flagship Schema Polish (nmap)
No code changes to scaffold.py. Purely data work on the nmap schema and presets.
- Description rewrites — all 111 argument descriptions in
tools/nmap.jsonrewritten in plain English that a non-expert can understand. Key flags include beginner-friendly explanations of scan types, timing, port specification, OS detection, scripting, and output formats - Examples fields — populated on key string fields:
--script:["vuln", "safe", "default", "discovery", "auth", "brute", "http-title"]-p:["80", "443", "1-1000", "1-65535", "22,80,443,8080"]TARGET:["192.168.1.1", "192.168.1.0/24", "10.0.0.0/8", "scanme.nmap.org"]
- Three ready-to-use presets in
presets/nmap/:quick_ping_sweep.json— discover live hosts:-sn, target192.168.1.0/24full_port_scan.json— thorough scan:-sS -p 1-65535 -sV -T4, target192.168.1.1stealth_recon.json— slow careful scan:-sS -T2 -O --script=safe -oN results.txt, target192.168.1.1
Changed
- Version bump to 2.3.0
hashlibadded to stdlib imports (no new external dependencies)- scaffold.py line count: 2,661 -> 2,739
Tested
Phase B — Command Assembly Property Tests
New Section 14 in test_functional.py — 25 assertions testing build_command() directly with programmatically constructed tool dicts:
- Separator tests (6):
spaceproduces two list elements,equalsproduces one joined element,noneconcatenates flag+value, each with empty value excludes the flag entirely - Positional tests (5): positionals appear at end, two positionals maintain schema order, spaces preserved as single element, positionals always after all flagged args
- Repeatable tests (3): unchecked excluded, count 1 produces one flag, count 3 produces three separate flags
- Edge cases (11): all empty produces just
[binary], shell metacharacters ($,&,;,|, backticks) pass through as literal strings, integer 0 included in command, extra flags appended at end with correct ordering, empty extra flags append nothing, unclosed quote in extra flags falls back without crash
New test sections (Phases C, E, F)
- Section 15 — Widget Creation Fallback (7 assertions): form renders despite bad field, broken enum falls back to QLineEdit with fallback tooltip, stderr warning logged, good fields before and after render correctly
- Section 16 — Preset Schema Versioning (11 assertions): hash is deterministic and 8 chars, serialize_values includes hash, matching hash produces no warning, adding/removing arguments changes hash, old presets without hash load normally (backwards compat), mismatch detection works
- Section 17 — Runtime Dependency Audit (9 assertions): valid deps produce no warnings with correct enable/disable behavior, broken deps (bypassing validator) produce stderr warning with fail-open behavior, adjacent fields unaffected
Full suite results
- All 4 test suites pass: 343/343 assertions, 0 failures
- Functional: 173/173 (+52 new: 25 Phase B, 7 Phase C, 11 Phase E, 9 Phase F)
- Examples: 52/52 (unchanged)
- Manual Verification: 61/61 (unchanged)
- Smoke: 57/57 (unchanged)
- No debug prints, no TODO/FIXME/HACK, no
shell=True, no new external dependencies
[v2.2.0] — 2026-03-29
Release
Public release of Scaffold. All changes from v2.1.0 and v2.1.1 are included.
Changed
- Version bump to 2.2.0
- README disclaimer updated: assertion count corrected from 157 to 291
Tested
- Full pre-release audit passed — all recent fixes verified (spinbox 0 vs unset, extra flags validation, coverage field, CLI entry points), visual/theme review, core pipeline, presets, final scan
- All 4 test suites pass: 291/291 assertions, 0 failures
- Functional: 121/121
- Examples: 52/52
- Manual Verification: 61/61
- Smoke: 57/57
- No debug prints, no TODO/FIXME/HACK, no
shell=True, no new dependencies
[v2.1.1] — 2026-03-29
External Code Review — MiniMax M2.7
The full Scaffold codebase (scaffold.py, PROMPT.txt, README.md, all 9 tool schemas, and both test suites) was submitted to MiniMax M2.7 for an independent code review. The model evaluated the project across six categories — bugs, code quality, prompt design, documentation, feature requests, and testing gaps — and produced 27 discrete findings.
Each finding was triaged into one of four categories before implementation:
- FIX NOW — real bug or issue that affects users
- FIX IF QUICK — good improvement, worth doing if under ~10 lines changed
- LATER — good idea but not a v2.1.1 concern
- SKIP — over-engineering, already handled, or not applicable
Triage result: 3 fixed (BUG 1, BUG 3, P1), 7 deferred, 14 skipped, 3 new test sections added.
Fixed
BUG 1 — Spinbox value 0 silently dropped from command (HIGH)
Integer and float fields with no schema default used 0 as both the "empty/unset" sentinel and as a valid user value. This caused flags like -m 0 (hashcat MD5 mode), --max-retries 0, or --rate 0.0 to be silently omitted from the assembled command. The bug affected five code paths:
_build_widget— for integer/float fields without a default, the spinbox range now starts at -1 (integer) or -1.0 (float) instead of 0. The QtspecialValueText(" ")is set at this new minimum, making the spinbox appear blank when unset. Value 0 is now one step above the sentinel and is treated as a real user input._is_field_active— previously returnedw.value() != 0, which broke dependency chains (a child field depending on a spinbox parent would stay disabled when the parent was set to 0). Now checksw.specialValueText() and w.value() == w.minimum()— only the sentinel state is inactive. Spinboxes with defaults (no special value text) are always considered active.get_field_value— previously returnedNonewhenarg["default"] is None and w.value() == 0. Now returnsNoneonly whenw.specialValueText() and w.value() == w.minimum(). This means 0 is included in the command, and the sentinel -1 is not._raw_field_value— same fix asget_field_value(this method is used for preset serialization and ignores the widget's enabled state)._set_field_value— reset now sets the widget tow.minimum()(the sentinel) instead of hardcoded 0, so "Reset to Defaults" correctly returns the field to the unset state.
Boundary behavior after the fix:
| Widget state | get_field_value |
In command? | Dependency children |
|---|---|---|---|
| Unset (sentinel, -1) | None |
No | Disabled |
| Set to 0 | 0 |
Yes (-m 0) |
Enabled |
| Set to 5 | 5 |
Yes (-m 5) |
Enabled |
| Has default, set to 0 | 0 |
Yes | Enabled |
| Has default, set to -5 | -5 |
Yes | Enabled |
BUG 3 — No visual feedback on invalid Additional Flags input (MEDIUM)
The Additional Flags free-text field uses shlex.split() to tokenize user input. When the input contains unclosed quotes (e.g., --flag "unclosed), shlex.split() raises ValueError and the code silently falls back to naive text.split(). The user had no indication that their input was malformed.
Added _validate_extra_flags() method to ToolForm, connected to the textChanged signal of the extra flags editor. On every keystroke:
- If the field is empty: clear any error styling
- If
shlex.split()succeeds: clear any error styling - If
shlex.split()raisesValueError: apply a red border via_invalid_style()
The border color is theme-aware — uses #f38ba8 (Catppuccin error pink) in dark mode and red in light mode, matching the existing validation border style used by regex-validated string fields.
The fallback to text.split() is preserved — the command still runs with naively-split tokens if the user clicks Run with invalid quotes. The red border serves as a warning, not a blocker.
P1 — PROMPT.txt Rule 8 completeness directive (MEDIUM)
Rule 8 originally read: "Include ALL documented flags. For tools with 100+ flags, focus on the 30-50 most common." This contradicted itself within one sentence and also conflicted with Rule 9 ("Only include flags from the provided documentation. Do not invent flags.").
Updated Rule 8 to: "Include ALL documented flags, regardless of how many there are. If output is truncated, the user will re-prompt to continue."
This aligns with the project's goal of complete CLI coverage — if an LLM truncates output mid-JSON on a very large tool, scaffold.py --validate catches the broken output and the user can ask the LLM to continue where it left off.
PROMPT.txt Checklist item 8 — duplicate flag scoping (LOW)
The no-duplicates checklist rule previously read: "No duplicate entries for the same flag." This was ambiguous — it could be read as a global constraint, causing LLMs to deduplicate flags like --verbose that legitimately appear in multiple subcommands. Updated to: "No duplicate flags within the same scope (top-level arguments or a single subcommand). The same flag MAY appear in multiple subcommands."
This matches how Scaffold's _check_duplicate_flags() validator already works — it validates per-scope, not globally.
PROMPT.txt Coverage self-check section (NEW)
Added a new === COVERAGE SELF-CHECK === section after the checklist. Instructs the LLM to count arguments in its output, compare to the source documentation, and include a top-level _coverage field with value "full" or "partial: [list of omitted flags]". This provides a machine-readable way to verify completeness and catches silent truncation.
The _coverage field is silently accepted by validate_tool() — no code changes needed. Schemas without it (pre-update) continue to pass validation.
Regenerated Schemas
Three tool schemas were regenerated using the updated PROMPT.txt with full-coverage and self-check directives. The old schemas were generated under the previous Rule 8 which capped output at "30-50 most common" flags. The new schemas include all documented flags.
| Schema | Before | After | _coverage |
|---|---|---|---|
| nmap.json | 34 args | 111 args | full |
| curl.json | 50 args | 271 args | partial (3 meta flags skipped: --help, --manual, --version) |
| hashcat.json | 46 args | 136 args | full |
Schemas not regenerated (already comprehensive): gobuster (103 args), ffmpegv2 (123 args), openclaw (213 args), nikto (48 args), ping (19 args), git (76 args across 4 subcommands — regeneration deferred to a future release that adds more subcommands).
All 9 schemas pass scaffold.py --validate with zero errors.
Tested
Four test suites now cover the codebase. Total: 291 assertions, 0 failures.
Functional test suite — 121/121 pass (+16 new vs v2.1.0)
New Section 12 — Spinbox Value 0 (BUG 1 regression):
- Integer with no default: initially returns
None, not in command - Integer with no default set to 0: returns
0, flag appears as-m 0in command - Integer with no default set to 5: returns
5 - Float with no default: initially returns
None - Float with no default set to 0.0: returns
0.0, flag appears in command - Integer with default set to 0: returns
0(no sentinel interference) _is_field_activereturnsFalseat sentinel,Trueat 0
New Section 13 — Extra Flags Validation (BUG 3 regression):
- Valid input: no error border
- Unclosed quote: red error border appears
- Cleared field: error border removed
Note: functional test count increased from 118 to 121 because the regenerated nmap schema (111 args) adds additional tool picker rows, each of which is individually asserted.
Examples feature test suite — 52/52 pass (unchanged)
No changes to the examples feature. All existing tests continue to pass — schema normalization, validation rules, editable dropdowns, command assembly, preset round-trips, dependency interaction with examples fields, and validation on examples fields.
Manual verification test suite — 61/61 pass (NEW)
test_manual_verification.py — exercises edge cases that functional tests don't cover: visual behavior, command execution pipeline, preset persistence across sessions, elevation wrapping, dark mode styling, and boundary conditions.
Test A — Spinbox Value 0 (10 test groups, 38 assertions):
- A1: Zero appears in command preview (
-m 0visible in preview text) - A2: Zero and unset produce genuinely different commands (CRITICAL — the two states must never collapse into the same output)
- A3: Zero survives full preset round-trip: set to 0 -> serialize -> reset to defaults (confirms unset) -> load preset (confirms 0 restored) -> close app -> reopen -> load preset from disk (confirms 0 persists across sessions)
- A4: Zero persists through elevation wrapping (
gsudo echo -m 0orpkexec echo -m 0) - A5: Float 0.0 — same unset/zero distinction as integer,
--rate 0.0in command and preview - A6: Sentinel boundary — confirms -1 is unset, 0 is valid, integers with defaults have no sentinel (full range including negatives), dependency children enable at 0 and disable at sentinel
Test B — Extra Flags Validation (8 test groups, 23 assertions):
- B1: Valid input baseline — no border, flags in command and preview
- B2: Unclosed single quote — red border appears, closing quote clears it, flags parse correctly after fix
- B3: Unclosed double quote — same behavior as B2
- B4: Run with unclosed quote — command builds without crash, fallback split produces tokens, red border stays visible
- B5: Red border clears when field is emptied
- B6: Red border clears immediately when input becomes valid (closing a quote)
- B7: Dark mode — error border uses theme color
#f38ba8, not hardcodedred; clears correctly in dark mode - B8: Corrupted preset (manually edited
_extra_flagswith unclosed quote) — loads without crash, red border fires, rest of preset applies normally
Smoke test suite — 57/57 pass (NEW)
test_smoke.py — pre-deploy sanity check covering the full user workflow:
- Section 1 — Launch and load: tool picker renders all 9 tools, form loads with all fields, light/dark mode toggle, widget styling in both themes
- Section 2 — Form and preview: checkbox, dropdown, text input, positional field all respond to input; live preview updates; copy command works
- Section 3 — Run a command: process starts, output streams, command echo visible, exit code colored, run button state transitions
- Section 4 — Preset round-trip: save -> reset (fields clear) -> load (fields restore) -> command preview matches
- Section 5 — Window behavior: small/large resize, geometry persists across sessions, theme preference persists
Deferred (LATER)
Items from the MiniMax M2.7 review that are valid improvements but not v2.1.1 scope:
- BUG 5 — Tool picker search/filter — with many tools, the table is hard to navigate. Add a QLineEdit filter bar. Good for v2.2.
- R2 — README troubleshooting section — consolidate scattered platform notes (PySide6 install, xcb-cursor0, validation errors) into one section.
- P3 — Stdin/stdout sentinel guidance in PROMPT.txt — tools like
ffmpeg -o -use-as a special value. Niche but worth a one-line note. - T2 — Exhaustive preset round-trip tests — current preset tests don't cover every widget type. Medium effort.
- F1-F5 — Feature requests — environment variable expansion, command history, dry-run mode, schema wizard, keyboard navigation in tool picker. All good ideas, all out of scope for a bugfix release.
Skipped
Items from the MiniMax M2.7 review that were evaluated and intentionally not implemented:
- BUG 2 (repeat count on unchecked boolean) — design decision: unchecked = inactive = not saved. The repeat count is a sub-property of an inactive flag.
- BUG 4 (tool picker re-scans on back navigation) — scan performance was verified in v1.4.0 Part 3 review with 20+ schemas. Not worth caching complexity.
- BUG 6 (Qt < 6.8 scrollbar degradation) — already handled with
try/except AttributeErrorand documented in code comments and changelog. - CQ 1 (DARK_COLORS as dataclass) — works fine as a dict. No typo-related bugs have occurred.
- CQ 2 (_apply_widget_theme hasattr checks) — works, not buggy, refactoring would add complexity for no functional gain.
- CQ 3 (extract sub-methods from long methods) — constraint: don't refactor working code just to make it "cleaner."
- CQ 4 (slots on widget subclasses) — negligible memory impact for a desktop app with a handful of widget instances.
- CQ 5 (normalize isinstance checks) — cosmetic inconsistency, no behavioral impact.
- P2 (flag alias guidance) — already covered by Rule 10 ("Short + long forms = ONE entry") and the argument object spec ("Use the LONG form when available").
- P4 (elevated field description too brief) — the field spec already has concrete descriptions; Rule 6 adds examples (
nmap SYN scan,iptables). - P5 (version-gated flags) — already covered by Rule 11 ("If docs mention version requirements, note them").
- R1 (disclaimer mentions OpenClaw by name) — OpenClaw is a shipped example schema, not a third-party reference. The concrete example is more useful than a generic statement.
- R3 (no comparison with similar tools) — marketing concern, not a code issue.
- R4 (screenshots load slowly from GitHub) — cosmetic concern about image hosting.
[v2.1.0] — 2026-03-29
Added
- OpenClaw tool schema (
tools/openclaw.json) — AI agent platform with 10+ subcommands including gateway, channels, models, browser automation, and node management - Gateway
--restartflag — added missing--restartboolean to the openclaw gateway subcommand - Linux install troubleshooting — README note covering
--break-system-packagesworkaround andlibxcb-cursor0dependency for Ubuntu/Debian users - Crypto donation addresses — updated Support section with BTC, LTC, ETH, BCH, and SOL addresses
Fixed
- Dark mode scrollbars now match light mode exactly — replaced custom QSS scrollbar styling with
QStyleHints.setColorScheme(Qt.ColorScheme.Dark), which tells the Windows platform plugin to render scrollbars using the native dark-mode renderer. This preserves all native behavior — smooth animations, expand-on-hover, arrow buttons appearing — with dark colors, because the exact same native renderer draws both modes. Previous QSS and QProxyStyle approaches could not replicate native behavior because QSS bypasses the native renderer entirely and the Windows theme API ignores QPalette for scrollbar painting. Gracefully falls back on Qt < 6.8.
Improved
- Side-by-side screenshots in README — nmap and hashcat examples displayed at 48% width
- README updates — line-count badge updated to 2,646; assertion count updated to 157; openclaw added to example schemas table
Tested
- Functional test suite: 105/105 assertions pass
- Examples feature test suite: 52/52 assertions pass
- Scrollbar visual parity: dark mode scrollbars confirmed identical to light mode (size, animation, hover expansion, arrow buttons) on Windows 11 with PySide6 6.11.0
[v2.0.1] — 2026-03-29
Fixed
- README assertion count — second mention in "About This Project" section still said 661; corrected to 156
[v2.0.0] — 2026-03-29
Added
__version__constant (2.0.0) and--version/-VCLI flag for bug reports and preset compatibility- Shebang line (
#!/usr/bin/env python3) for direct execution on Unix (./scaffold.py) - Minimum Python version documented in module docstring (
3.10) - Resizable output panel — drag handle between command controls and output panel
- Custom
DragHandlewidget with two-line grip indicator and vertical resize cursor - Drag up to shrink, drag down to grow (80px–800px range)
- Panel height persisted across sessions via QSettings
- Custom
- Command options border — form area wrapped in a rounded
QFramewith a subtle border to visually distinguish it from the preview and output sections below - Separator line between tool header and command options for cleaner visual hierarchy
- UI polish — section labels, separator lines, and colored action button
- Centered, uppercase "Command Preview" and "Output" section labels with theme-aware styling
- Subtle horizontal separator lines before each section for visual clarity
- Run button styled green; switches to red when in "Stop" state
- All new elements update correctly on light/dark theme toggle
- New example tool schemas:
nikto.json,gobuster.json,hashcat.json,ffmpegv2.json- nikto: demonstrates string+examples for code-concatenation flags (-Tuning, -Display, -evasion)
- gobuster: demonstrates full subcommand architecture (7 modes with scoped flags)
- hashcat: demonstrates examples-vs-enum distinction (-m as string vs -a as enum)
- ffmpegv2: demonstrates large schema with 123 arguments across encoding, filtering, and I/O
- New screenshot:
hashcat example.png - Validation feedback tip in README — paste errors back into LLM to self-correct
Improved
- Tighter vertical spacing — reduced padding on section labels, status bar, action bar, and command preview to reclaim screen space for tools with many arguments
- Higher contrast light theme — borders for form frame, separators, and drag handle darkened from
#d0d0d0/#aaaaaato#999999/#888888for better visibility --helpoutput now includes version number and--versionflag; replaced em dash with ASCII dash to avoid encoding issues on Windows cp1252 terminals- Updated nmap screenshot — reflects new UI (form border, section labels, drag handle, colored Run button); optimized from 445 KB to 114 KB
- README updates — line-count badge updated to 2,634; assertion count corrected to 156; nikto, gobuster, hashcat added to example schemas table
- PROMPT.txt rewrite — 5-stage review, test, iterate, harden, slim
- Added complete example JSON (5 arguments demonstrating all key patterns)
- Added type hallucination guard table with wrong→correct name mappings
- Added JSON formatting rules (no comments, no trailing commas, null not "")
- Added completeness + accuracy rules (don't truncate, don't invent flags)
- Added no-duplicates rule (short+long forms = one entry, aliases merged)
- Strengthened positional placement rule (MUST be last in array)
- Clarified flag vs short_flag convention (long form in flag, short in short_flag)
- Expanded separator detection guidance (look for "=" in docs)
- Added unclear/incomplete docs handling ("inferred — verify" annotation, version notes)
- Added examples-vs-enum "why" explanation to prevent silent misclassification
- Collapsed self-check into compact 9-item checklist
- Compressed prompt to ~1,039 words while preserving all rules
Fixed
- QPushButton stylesheet parse error — added missing whitespace between QSS rule blocks in Run/Stop button styling (both dark and light mode)
nmap.json-sCmislabeled asshort_flagof--script—-sCis a distinct flag (--script=default), not the short form of--script. Split into separate "Default Scripts" boolean entry
Tested
- Full pre-release audit (9 sections): first impressions, dependencies, cross-platform, security, error handling, UI polish, file deliverables, CLI interface, final sanity
- Security audit passed — no
shell=True, noeval()/exec(), binary passed as single string toQProcess.setProgram(), extra flags useshlex.split(), JSON loaded withjson.loads()in try/except, no secrets in QSettings - Cross-platform audit passed — all paths use
pathlib.Path, elevation gated bysys.platform,shutil.which()for binary detection,QSettings("Scaffold", "Scaffold") - CLI entry points verified —
--help,--version,--validate,--prompt, direct path, missing file, invalid file all produce clean output with correct exit codes and no tracebacks - Functional test suite: 104/104 assertions pass (tool picker, all 9 widget types, tooltips, required fields, defaults, mutual exclusivity, dependencies, extra flags, command preview, process execution, stop, dark mode, presets, session persistence, subcommands, editable dropdowns, file/directory widgets, output batching, file size guard)
- Examples feature test suite: 52/52 assertions pass (schema normalization, validation rules, editable dropdowns, command assembly)
- Schema conformance check: all 8 bundled tool schemas (nmap, ping, git, curl, nikto, gobuster, hashcat, ffmpegv2) pass PROMPT.txt 15-field spec with all top-level keys present; original 4 schemas audited against new prompt conventions (flag/short_flag, no duplicates, positionals last, boolean separators)
- Prompt validated against 6 CLI tools across 3 complexity levels (ping, nmap, curl, nikto, gobuster, hashcat)
- All generated schemas pass
scaffold.py --validatewith zero structural errors - Cross-model testing: Opus 4.6 (zero failures) and Haiku 4.5 (structural pass, semantic improvements from guardrails)
--promptoutput verified on Windows (cp1252 encoding handled correctly)
[v1.4.0] — 2026-03-28
Improved
- Code review — Part 5: Final cleanup
- Added
--help/-hflag with usage summary listing all available CLI modes - Expanded module-level docstring with usage examples and dependency note
- Linted with
ruff check— all checks pass (E402 suppressed for intentional deferred PySide6 imports, E741 fixed by renamingl→lein browse lambdas) - Updated README line-count badge to 2,441
- Verified internal structure follows: constants → helpers → data layer → widget classes → main window → entry point
- Added
- Code review — Part 4: Functional test
- Fixed
UnicodeEncodeErrorin--prompton Windows terminals using cp1252 (PROMPT.txt contains U+2192 arrow character) - Added comprehensive automated functional test suite (
test_functional.py, 101 assertions) covering: launch/navigation, all 9 widget types, tooltips, required fields, defaults, mutual exclusivity, dependencies, extra flags, command preview, process execution, stop, dark mode, presets, session persistence, subcommands, editable dropdowns, file/directory widgets, output batching, and file size guard
- Fixed
- Code review — Part 3: Performance
- Output panel now buffers
readyReaddata and flushes every 100ms viaQTimer, preventing UI stalls on high-volume output - Output panel capped at 10,000 lines (
setMaximumBlockCount) — older lines are automatically discarded to bound memory usage - Tool schema loader rejects files over 1 MB with a clear error, preventing accidental hangs from oversized or malicious JSON files
- Verified: signal connections are not duplicated on subcommand switch (visibility toggle, not rebuild)
- Verified: live preview has no signal loops (
build_commanddoes not emit signals) - Verified:
ToolFormcleanup viadeleteLater()on tool switch — no memory leaks - Verified:
shutil.which()per-tool during picker scan is fast with 20+ schemas
- Output panel now buffers
- Code review — Part 1: Cleanup and consistency
- Organized imports: moved
tempfileto stdlib section, consolidated PySide6 imports (QPoint,QPolygon) at top level - Extracted magic numbers into named constants:
SPINBOX_RANGE,REPEAT_SPIN_MAX,REPEAT_SPIN_WIDTH,TEXT_WIDGET_HEIGHT,MULTI_ENUM_HEIGHT,DEFAULT_WINDOW_WIDTH,DEFAULT_WINDOW_HEIGHT - Extracted theme-independent output/status colors into named constants:
COLOR_OK,COLOR_ERR,COLOR_WARN,COLOR_CMD,COLOR_DIM,OUTPUT_BG,OUTPUT_FG,LIGHT_WARNING_BG,LIGHT_WARNING_FG,LIGHT_WARNING_BORDER - Converted
apply_themeQSS stylesheet from%dict formatting to f-strings - Renamed signal handlers for clarity:
_read_stdout→_on_stdout_ready,_read_stderr→_on_stderr_ready - Removed misleading phase-number comments from section banners
- Simplified
reset_to_defaultsby collapsing redundantelif/elsebranches - Simplified
_is_field_activewith tuple-formisinstance - Simplified
_on_run_stopempty-list check to idiomaticif not cmd: - Removed unused local variable in
_apply_widget_theme - Removed trivial inline comments in
_build_shortcuts - Removed stale comment referencing removed
radiofield type - Added docstrings to
MainWindow,ToolForm,ToolPicker, and 40+ methods - Added Python 3.10+ type hints (
str | Nonestyle) to all key function signatures
- Organized imports: moved
- Code review — Part 2: Error handling audit
load_tool: added separatePermissionErrorhandler before genericOSError_on_save_preset: wrappedwrite_text()in try/exceptOSErrorwith user-facing error dialog_on_delete_preset: wrappedunlink()in try/exceptOSErrorwith user-facing error dialog_tools_dir/_presets_dir: added guard against file-at-directory-path beforemkdir()print_prompt: wrappedread_text()in try/exceptOSErrorwith stderr fallback- Audited all QProcess error paths — confirmed Run button and command preview reset correctly in all cases
- Audited all empty-state edge cases — confirmed all already handled
[v1.3.1] — 2026-03-28
Improved
- Added right padding between form fields and scrollbar for cleaner layout
[v1.3.0] — 2026-03-28
Added
- Elevated execution (sudo/admin) support — run commands with elevated privileges from within Scaffold
- New
elevatedschema field:null,"never","optional", or"always" - Platform-specific elevation:
gsudoon Windows,pkexecon Linux,pkexecon macOS - Elevation checkbox in tool form with contextual notes for optional vs always
- "Running as administrator" status bar indicator when app is already elevated
- Elevation state included in preset save/load
- Graceful handling of missing elevation tools, cancelled password dialogs (exit 126/127), and binary-not-found errors
- Custom arrow icons for dropdown and spinbox controls in dark mode
- Updated
PROMPT.txtwithelevatedfield and decision rule - All example tool schemas updated with
elevatedfield (nmap: optional, others: null)
Security
- Full command injection audit passed — QProcess uses list-based execution, no shell invocation anywhere
- Malicious schema values (defaults, flags, binary) treated as literal strings, never interpreted
[v1.2.3] — 2026-03-28
Improved
- Added prerequisites section to Getting Started (Python version, pip, CLI tool installation, JSON schema)
- Added platform compatibility note (tested on Windows, should work on macOS/Linux)
[v1.2.2] — 2026-03-28
Added
- Dark mode with system detection and manual toggle (View > Theme menu, Ctrl+D shortcut)
- Three theme options: Light, Dark, and System Default — persisted across sessions
- Catppuccin Mocha-inspired dark color palette with full widget coverage
- Getting started instructions at the top of README
Improved
- Comprehensive dark mode styling for all widgets (dropdowns, checkboxes, spinboxes, tables, scrollbars, buttons, menus, tooltips, group boxes)
- README disclaimer now notes limitations with large/complex CLI tools
[v1.2.1] — 2026-03-28
Improved
- Command preview bar now uses a scrollable widget with a horizontal scrollbar for long commands
[v1.2.0] — 2026-03-28
Added
- Examples field for string arguments — editable dropdown (QComboBox) showing common values as suggestions while still allowing custom input
- Updated
PROMPT.txtto include examples field (15 fields per argument) - Updated all example tool schemas (nmap, ping, git, curl) with expanded argument coverage and examples support
- LLM context window note added to schema generation docs in README
[v1.1.0] — 2026-03-28
Added
- Binary availability check in tool picker — green checkmark for installed tools, red X for missing ones
- Tools sorted by availability (available first, unavailable second, invalid last)
- 4-column tool picker table (status, tool, description, path)
[v1.0.1] — 2026-03-28
Added
- ffmpeg example schema (later removed as incomplete)
[v1.0] — 2026-03-28
Added
- Initial release of Scaffold
- Single-file PySide6 application (
scaffold.py) - 9 widget types: boolean, string, text, integer, float, enum, multi_enum, file, directory
- Live command preview with copy-to-clipboard
- Process execution with colored stdout/stderr output
- Preset save/load/delete/reset with JSON persistence
- Subcommand support (e.g., git clone, git commit)
- Mutual exclusivity groups (radio-button behavior for conflicting flags)
- Dependency chains (fields activate when parent is set)
- Regex validation for string fields
- Repeatable boolean flags with count spinner
- Separator modes: space, equals, none
- Session persistence (window size/position, last opened tool)
- Drag-and-drop schema loading
- Keyboard shortcuts (Ctrl+Enter, Escape, Ctrl+S, Ctrl+L, etc.)
- CLI validation mode (
--validate) - LLM prompt for schema generation (
--prompt/PROMPT.txt) - Example schemas: nmap, ping, git, curl
- README with full documentation and schema reference
- MIT license