{"full_name":"swamp-club/swamp","owner":"swamp-club","name":"swamp","shard":"1","url":"https://github.com/swamp-club/swamp","description":"Stinemates, Watson, Adam, Mahir, Paul ","homepage":"","topics":[],"tag_pages":[],"language":"TypeScript","license":"NOASSERTION","avatar":"https://avatars.githubusercontent.com/u/284388325?v=4","created_at":"2026-01-28T17:27:17Z","pushed_at":"2026-11-27T22:22:38Z","metrics":{"stars":998,"forks":82,"watchers":7,"issues":511,"prs":3502,"releases":3177,"issues_open":0,"issues_closed":511,"prs_open":2,"prs_closed":43,"prs_merged":3457,"discussions":0},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-27"}},"history":{"dates":["2026-11-24","2026-11-25","2026-11-26","2026-11-27","2026-11-28"],"stars":[990,994,997,998,998],"forks":[82,82,82,82,82],"watchers":[7,7,7,7,7],"issues_open":[0,0,0,0,0],"prs_open":[2,2,2,2,2]},"boards":{},"same_owner":[],"issues":[],"discussions":[],"latest_release":{"name":"swamp 20261127.221724.0-sha.5dcc2ad6","tag":"v20261127.221724.0-sha.5dcc2ad6","published_at":"2026-11-27T22:22:39Z","body":"## What's Changed\n\n* fix(workflow): a key:json input key in YAML is refused with a hint, and a nested workflow checks its child's input keys (swamp-club#5155) (#4022)\n\n## Summary\n\nFixes swamp-club#5155. A `key:json` input key (for example `args:json: '{...}'`) was silently dropped when a workflow was invoked as a nested workflow. The child took the input's default (`args: {}`), and the failure surfaced deep inside the operation's own schema (`unit: expected string, received undefined`).\n\nThe `:json` suffix is parsed only from command-line arguments (`src/cli/input_parser.ts`). In YAML — a nested workflow step's `inputs`, an `--input-file`, a behavior step — the key arrived verbatim. Two gaps let it vanish:\n\n- the nested-workflow handoff only applied the child's input defaults and never checked its input keys, even for a child declaring `additionalProperties: false`;\n- `swamp workflow validate` only checked missing required inputs, never unknown keys.\n\nA direct run with `--input-file` had the same silent drop.\n\n## Changes\n\n- **`InputValidationService`** refuses a `name:json` key whose `name` is a declared input, with a hint (`args:json is not an input: the :json suffix only works in command-line arguments; elsewhere give args its value directly, under its own name`). Messages name the key, never the value. Strict schemas keep refusing other undeclared keys. The rule reaches every `validate()` caller: top-level workflow runs (including `--input-file`), `workflow evaluate`, resume overrides and behavior runs with definition inputs.\n- **Nested-workflow handoff** checks the child's input keys and fails the step before the child starts, the same way the depth and cycle refusals do (`allowFailure` honoured). It checks keys only: values there can still be expressions the child resolves.\n- **`swamp workflow validate`** fails on the same keys, reported together with any missing required input, so `args:json` explains a missing `args`. It warns (validation still passes) on undeclared keys to a child that leaves `additionalProperties` unset.\n- **Behavior steps** already refused `env:json` at run time; the message now carries the same hint.\n- **Docs**: `design/enablers/inputs.md`, `design/primitives/workflows.md`, and the swamp skill's workflow and behavior references state that `:json` is command-line only.\n\n## Behaviour change\n\nA parent that passes an undeclared key to a child declaring `additionalProperties: false` now fails at that step (and at `workflow validate`). Previously the nested path skipped validation entirely; a direct run of that child already refused the same key, so this enforces the child's own declared contract. A suspended run resumed past such a step also fails when it reaches the call. Children that leave `additionalProperties` unset keep receiving extra keys exactly as before.\n\n## Test Plan\n\n- Unit tests for the key rule (strict and non-strict schemas, schemas without the `properties` wrapper, a property literally named `x:json`, value never echoed, untrusted-policy stop-at-first), the nested handoff (refusal before the child runs, strict refusal, non-strict pass-through, `allowFailure`), `workflow validate` (failure, combined missing-required report, warning, no warning for open schemas or no inputs block, empty schema), the behavior-step hint, and libswamp workflow and behavior runs. Each new rule was mutation-checked.\n- Reproduced the issue in a scratch repo before the fix and re-ran it on the compiled binary after: the `:json` parent is refused by validate and at run with the hint; the mapping parent and the CLI `--input 'args:json=...'` form still succeed; strict and non-strict children behave as above.\n- verify-build, verify-reviews and verify-skills all passed on 28f1606; attestation b29efb06 posted.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\n---\n\n### Installation\n\n**macOS (Apple Silicon):**\n```bash\ncurl -L https://github.com/swamp-club/swamp/releases/download/v20261127.221724.0-sha.5dcc","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-28T10:06:57Z","history_start":"2026-09-06"}