| index 061669c8..5be0877a 100644 |
| --- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md |
| @@ -21130,3 +21130,1593 @@ and this controller report were added. No copy-review server, provider prompt, |
| subagent, credentials, server, scratch file, push or deployment was used. |
| Go caches stayed at their defaults. Task 11a must lower or remove the test |
| exemption after removing the named legacy coverage. No other concerns. |
| + |
| + |
| +--- |
| + |
| +# Task 10: Amadan description publication readback |
| + |
| +Status: DONE. Branch: `plan-2b`. Workspace: `/home/paulca/amadan.net/oficina/equipo-plan-2b`. |
| +Commit subject: `fix: verify Amadan descriptions through production readback`. |
| + |
| +## Built |
| + |
| +The runtime now constructs the production description transport with the installed |
| +Amadan command writer. The only runtime wiring change replaces the unavailable |
| +description placeholder; Task 9's launchers, namespaces, direct launch, checks, |
| +workspace, supervisor and workflow wiring remain intact. |
| + |
| +`DescriptionChannels` and `DescriptionContentHash` implement the four-channel |
| +contract: description, human, summary and notes, each prefixed by its unsigned |
| +8-byte big-endian UTF-8 byte length. The tests pin both required literal hashes: |
| + |
| +- Empty channels: `sha256:66687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f2925`. |
| +- `["Equipo café\n", "Paul", "Fixed\nchecked", "✓"]`, with actual newlines: |
| + `sha256:ac030712c32422e57053ff69f80ec87d1efdff87a000e9a08dd3e711d0995a88`. |
| + |
| +The GET reader accepts an unqualified review ref and escapes the entire name as |
| +one path segment. It validates the disclosed agent in `by`, the complete channel |
| +hash and structured optional `agent` metadata. It retains the channels, content |
| +hash, `at` and agent metadata in the returned Description. Its body digest is |
| +separate from the API channel hash. Text is preserved verbatim. Empty descriptions, |
| +malformed JSON, invalid UTF-8, oversized responses and unsuccessful HTTP responses |
| +cannot confirm publication. GET has a 15-second deadline, a 1 MiB response limit, |
| +no redirects and no inherited cookie credentials. |
| + |
| +The transport always reports `BeforePush() == false`. The publisher keeps the |
| +pending expected description in its journal before push. After checking the exact |
| +remote head it reads, journals the description attempt before Set, then reads again |
| +even if Set loses its reply. Reconciliation after restart reads without repeating |
| +Set or push. A visible ref remains incomplete until the exact expected repository, |
| +ref, agent, body and body digest match the validated readback. Existing candidate, |
| +head, default-ref, agent, isolation and evidence checks remain in place. |
| + |
| +The command writer uses `amadan branch describe <ns>/<repo> <name> -hub |
| +https://amadan.net -body -`. Body text goes through stdin. The child receives only |
| +its fixed HOME/PATH and a disposable AMADAN_HOME containing one supplied hub token |
| +in a 0600 credentials file under a 0700 directory. The command has a 15-second |
| +bound, process-group cancellation, discarded stdout/stderr and sanitized errors. |
| +Command state is removed on return. No credentials enter argv or application logs. |
| + |
| +Tests cover the carried `approved beyond profile` label in both GET readback and |
| +publication recovery, with whitespace and Unicode preserved. Production ordering |
| +is tested against a bare local Git repository and a loopback GET server. A fake |
| +Python describe command checks argv, stdin, environment, credential file modes, |
| +cleanup, errors and cancellation. The real installed CLI was never used to write. |
| + |
| +## Files |
| + |
| +- `internal/runner/forge/description.go`: channel hash and validated GET readback. |
| +- `internal/runner/forge/description_transport.go`: transport and scoped command writer. |
| +- `internal/runner/forge/publisher.go`: explicit expected-description comparison and durable write-attempt recovery. |
| +- `internal/runner/runtime_workflow.go`: replace only the description placeholder. |
| +- `internal/runner/forge/description_test.go`: hash, HTTP and fake-command tests. |
| +- `internal/runner/forge/publisher_test.go`: production-transport recovery and independent expected-field checks. |
| +- `internal/equipotest/publish_test.go`: production wiring assertion, including retained Task 9 fields. |
| +- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: appended this Task 10 report. |
| +- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-10-report.md`: this report, saved in the repository's ignored controller workspace. |
| + |
| +## Installed CLI evidence |
| + |
| +Read-only `amadan branch describe -h` reported `-body string`, with `"-" reads |
| +stdin`, and `-hub string`. `amadan branch -h` reported: |
| + |
| +```text |
| +amadan branch describe [<ns>/<repo>] <name> -body D|- |
| +``` |
| + |
| +Both help commands exit 1 with their usage output. There is no `branch show` in |
| +the installed contract. `amadan -h` also confirmed explicit hub/repository selection. |
| +No login, enrollment, provider prompt or live publication was run. |
| + |
| +To avoid inventing a token environment variable, read-only inspection of |
| +`/home/paulca/.local/bin/amadan` used `go tool nm`, `go tool objdump` and binary |
| +string extraction. `helper.Home` reads AMADAN_HOME; `helper.CredentialsPath` appends |
| +`credentials`; `helper.LoadCredentials` unmarshals the `tokens` map; and |
| +`cli.CredentialFor` indexes it by normalized hub. `main.readBodyArg` uses |
| +`io.ReadAll` and byte-to-string conversion without trimming. No other worktree or |
| +credential store was read or changed. The fake command pins this installed layout. |
| + |
| +## Interpretations |
| + |
| +1. New interface names initially did not exist. Tests were written first and the |
| + required command failed to compile, while the production-wiring assertion also |
| + failed. Minimal declarations then exposed the old JSON hashing and qualified-ref |
| + behavior, allowing the same command to produce behavioral RED before the fix. |
| +2. The old lost-reply test required the first Execute call to fail even when the |
| + description had been stored. The brief requires GET after a lost Set reply, so |
| + the updated test accepts immediate success only after confirmed GET. When GET |
| + remains empty, the result stays uncertain and later reconciliation only reads. |
| +3. A durable Set intent is treated as possibly dispatched even if a crash happened |
| + before the command began. This follows the security intent of avoiding a second |
| + send after a lost reply. The publisher does not guess that such a write failed. |
| +4. The ban on credential homes is applied to account provisioning, provider homes |
| + and real login state. The installed CLI's credential-scoped writer necessarily |
| + needs disposable command state. Tests create only temporary files containing |
| + `fake-only`, run a fake command and remove that state. No real credential home |
| + was created, copied or changed. |
| +5. These are controller evidence reports and code changes. The explicit instruction |
| + to avoid copy-review takes precedence over generic writing workflows. README |
| + and copy.go are unchanged. No handoff file or subagent was created. |
| +6. The task report directory is ignored by the repository. The report is saved at |
| + the requested path; the same complete evidence is appended to the tracked |
| + controller report and included in the commit. |
| + |
| +## RED evidence |
| + |
| +All test commands ran from the workspace above with CGO_ENABLED=0 and default Go |
| +caches. Tests were added before behavior changes. First run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublishDescription|TestPublishTransport' -count=1 |
| +``` |
| + |
| +Exit 1 from Go. Initial output: |
| + |
| +```text |
| +# amadan.net/oficina/equipo/internal/runner/forge [amadan.net/oficina/equipo/internal/runner/forge.test] |
| +internal/runner/forge/description_test.go:47:7: undefined: DescriptionChannels |
| +internal/runner/forge/description_test.go:48:240: undefined: DescriptionContentHash |
| +internal/runner/forge/description_test.go:52:46: undefined: DescriptionChannels |
| +internal/runner/forge/description_test.go:53:13: undefined: DescriptionChannels |
| +internal/runner/forge/description_test.go:54:12: undefined: DescriptionChannels |
| +internal/runner/forge/description_test.go:55:51: undefined: DescriptionContentHash |
| +internal/runner/forge/description_test.go:56:5: undefined: DescriptionContentHash |
| +internal/runner/forge/description_test.go:56:28: undefined: DescriptionChannels |
| +internal/runner/forge/description_test.go:56:81: undefined: DescriptionContentHash |
| +internal/runner/forge/description_test.go:56:104: undefined: DescriptionChannels |
| +internal/runner/forge/description_test.go:56:104: too many errors |
| +FAIL amadan.net/oficina/equipo/internal/runner/forge [build failed] |
| +ok amadan.net/oficina/equipo/internal/runner 0.006s [no tests to run] |
| +--- FAIL: TestPublishTransportIsProduction (0.00s) |
| + publish_test.go:102: runtime publication still uses unavailable description transport |
| +FAIL |
| +rastrillo-budget/v1 ran 6ms |
| +FAIL amadan.net/oficina/equipo/internal/equipotest 0.071s |
| +FAIL |
| + |
| +``` |
| + |
| +After adding only interface/data declarations, the old JSON hash helper, forwarding |
| +transport scaffold and an unavailable writer stub, repeat the same command: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublishDescription|TestPublishTransport' -count=1 |
| +``` |
| + |
| +Exit 1 from Go. Behavioral RED output: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionLengthHash (0.00s) |
| + --- FAIL: TestAmadanDescriptionLengthHash/empty (0.00s) |
| + description_test.go:58: hash = sha256:8c6e780bd03fbe1f0699ae90e38ca9d7af0f5ac91747c2a9b66ae942294f2cd9, want sha256:66687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f2925 |
| + --- FAIL: TestAmadanDescriptionLengthHash/utf8 (0.00s) |
| + description_test.go:58: hash = sha256:5a0cb8c4ae8f2bfba1ae730c81064829eeaa704deae924e9d8a464e1c2c0fdb5, want sha256:ac030712c32422e57053ff69f80ec87d1efdff87a000e9a08dd3e711d0995a88 |
| +--- FAIL: TestAmadanDescriptionReadback (0.08s) |
| + --- FAIL: TestAmadanDescriptionReadback/valid (0.00s) |
| + description_test.go:99: team: invalid |
| + --- FAIL: TestAmadanDescriptionReadback/optional_agent (0.00s) |
| + description_test.go:99: team: invalid |
| + --- FAIL: TestAmadanDescriptionReadback/reordered (0.00s) |
| + description_test.go:99: team: invalid |
| +--- FAIL: TestAmadanDescriptionCommand (0.00s) |
| + description_test.go:135: team: uncertain |
| +--- FAIL: TestPublishDescriptionIdentity (0.39s) |
| + --- FAIL: TestPublishDescriptionIdentity/lost_description_reply (0.23s) |
| + publisher_test.go:402: GET failed to confirm lost description reply team: uncertain |
| +--- FAIL: TestPublishDescriptionRecovery (1.10s) |
| + --- FAIL: TestPublishDescriptionRecovery/lost_reply (0.20s) |
| + publisher_test.go:591: description intent not durable before write |
| + --- FAIL: TestPublishDescriptionRecovery/delayed_readback (0.16s) |
| + publisher_test.go:591: description intent not durable before write |
| + --- FAIL: TestPublishDescriptionRecovery/empty (0.16s) |
| + publisher_test.go:591: description intent not durable before write |
| + --- FAIL: TestPublishDescriptionRecovery/trimmed (0.16s) |
| + publisher_test.go:591: description intent not durable before write |
| + --- FAIL: TestPublishDescriptionRecovery/wrong_digest (0.17s) |
| + publisher_test.go:591: description intent not durable before write |
| + --- FAIL: TestPublishDescriptionRecovery/wrong_ref (0.25s) |
| + publisher_test.go:591: description intent not durable before write |
| +FAIL |
| +rastrillo-budget/v1 ran 1.694s |
| +FAIL amadan.net/oficina/equipo/internal/runner/forge 1.697s |
| +ok amadan.net/oficina/equipo/internal/runner 0.005s [no tests to run] |
| +--- FAIL: TestPublishTransportIsProduction (0.00s) |
| + publish_test.go:102: runtime publication still uses unavailable description transport |
| +FAIL |
| +rastrillo-budget/v1 ran 3ms |
| +FAIL amadan.net/oficina/equipo/internal/equipotest 0.063s |
| +FAIL |
| + |
| +``` |
| + |
| +## GREEN evidence |
| + |
| +The first implemented run passed, followed by the extended cases and mutation |
| +checks. Final restored command and output: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublishDescription|TestPublishTransport' -count=1 |
| +``` |
| + |
| +Exit 0: |
| + |
| +```text |
| +ok amadan.net/oficina/equipo/internal/runner/forge 1.703s |
| +ok amadan.net/oficina/equipo/internal/runner 0.005s [no tests to run] |
| +ok amadan.net/oficina/equipo/internal/equipotest 0.055s |
| + |
| +``` |
| + |
| +Targeted existing publication regressions, including the carried approval label: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublish|TestApprovedBeyondProfilePublisher' -count=1 |
| +``` |
| + |
| +Exit 0: |
| + |
| +```text |
| +ok amadan.net/oficina/equipo/internal/runner/forge 7.216s |
| +ok amadan.net/oficina/equipo/internal/runner 0.006s [no tests to run] |
| +ok amadan.net/oficina/equipo/internal/equipotest 0.664s |
| + |
| +``` |
| + |
| +The runner package compiles in both commands; these name filters select no runner |
| +package tests. The runtime wiring assertion runs in equipotest. No whole suite, |
| +make ci, provider command or live Amadan gate was run. `git diff --check` passed. |
| + |
| +## Mutation evidence |
| + |
| +47 independent mutations compiled and failed their named tests. Each edit below |
| +was applied alone, the exact test command was run, and the original source bytes |
| +were restored in a finally block before the next mutation. No compilation failure |
| +is counted. The final GREEN runs above used restored code. Replacement strings |
| +below use Python literal notation; they identify the exact source edit. |
| + |
| +### M01: json_hash |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'return "sha256:" + hex.EncodeToString(hash.Sum(nil))' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'_ = hex.EncodeToString(hash.Sum(nil))\n raw, _ := json.Marshal(c)\n return "sha256:" + team.ContentDigest(raw)' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionLengthHash' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionLengthHash (0.00s) |
| + --- FAIL: TestAmadanDescriptionLengthHash/empty (0.00s) |
| + description_test.go:71: hash = sha256:8c6e780bd03fbe1f0699ae90e38ca9d7af0f5ac91747c2a9b66ae942294f2cd9, want sha256:66687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f2925 |
| + --- FAIL: TestAmadanDescriptionLengthHash/utf8 (0.00s) |
| + description_test.go:71: hash = sha256:5a0cb8c4ae8f2bfba1ae730c81064829eeaa704deae924e9d8a464e1c2c0fdb5, want sha256:ac030712c32422e57053ff69f80ec87d1efdff87a000e9a08dd3e711d0995a88 |
| +``` |
| + |
| +### M02: trim_text |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'metadata := bytes.TrimSpace(result.Agent)' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'result.Description = strings.TrimSpace(result.Description)\n metadata := bytes.TrimSpace(result.Agent)' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/valid (0.00s) |
| + description_test.go:159: lost verbatim content or metadata: {Repository:amadan.net/oficina/equipo Ref:review/trial Agent:equipo~owner@example.com Body:Equipo café |
| +``` |
| + |
| +### M03: ignore_by |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +' || result.By != cred.Agent' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/wrong_agent' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/wrong_agent (0.00s) |
| + description_test.go:153: accepted wrong_agent |
| +``` |
| + |
| +### M04: ignore_hash |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'if result.ContentHash != DescriptionContentHash(result.DescriptionChannels) {' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'if false {' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/(wrong_hash|tamper)' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/tamper (0.00s) |
| + description_test.go:153: accepted tamper |
| + --- FAIL: TestAmadanDescriptionReadback/wrong_hash (0.00s) |
| + description_test.go:153: accepted wrong_hash |
| +``` |
| + |
| +### M05: accept_empty |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +' || result.Empty' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/empty' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/empty (0.00s) |
| + description_test.go:153: accepted empty |
| +``` |
| + |
| +### M06: lose_at |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'At: result.At' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'At: 0' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/valid (0.00s) |
| + description_test.go:159: lost verbatim content or metadata: {Repository:amadan.net/oficina/equipo Ref:review/trial Agent:equipo~owner@example.com Body: Equipo café |
| +``` |
| + |
| +### M07: lose_metadata |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'AgentMetadata: result.Agent' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'AgentMetadata: nil' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/valid (0.00s) |
| + description_test.go:162: lost structured agent metadata |
| +``` |
| + |
| +### M08: accept_unstructured_metadata |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'len(metadata) > 0 && string(metadata) != "null" && metadata[0] != \'{\'' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'false && len(metadata) > 0' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/bad_metadata' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/bad_metadata (0.00s) |
| + description_test.go:153: accepted bad_metadata |
| +``` |
| + |
| +### M09: accept_invalid_utf8 |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'!utf8.Valid(data) || ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'!utf8.Valid(data) && false || ' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/invalid_utf8' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/invalid_utf8 (0.00s) |
| + description_test.go:153: accepted invalid_utf8 |
| +``` |
| + |
| +### M10: ignore_decode_error |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'json.Unmarshal(data, &result) != nil' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'json.Unmarshal(data, &result) != nil && false' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/malformed_at' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/malformed_at (0.00s) |
| + description_test.go:153: accepted malformed_at |
| +``` |
| + |
| +### M11: allow_oversized |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'1<<20' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'2<<20' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/oversized' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.01s) |
| + --- FAIL: TestAmadanDescriptionReadback/oversized (0.01s) |
| + description_test.go:153: accepted oversized |
| +``` |
| + |
| +### M12: follow_redirect |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'local.CheckRedirect = func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'local.CheckRedirect = nil' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/redirect' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/redirect (0.00s) |
| + description_test.go:89: followed redirect with credentials |
| +``` |
| + |
| +### M13: no_get_deadline |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'context.WithTimeout(ctx, 15*time.Second)' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'context.WithCancel(ctx)\n _ = time.Second' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/valid (0.00s) |
| + description_test.go:42: missing bounded GET deadline |
| + --- FAIL: TestAmadanDescriptionReadback/invalid_utf8 (0.00s) |
| + description_test.go:42: missing bounded GET deadline |
| +``` |
| + |
| +### M14: unescaped_slash |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'url.PathEscape(branch)' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'branch' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/valid (0.00s) |
| + description_test.go:94: wrong request: GET /api/v1/repos/oficina/equipo/branches/review/trial/description |
| + --- FAIL: TestAmadanDescriptionReadback/invalid_utf8 (0.00s) |
| + description_test.go:94: wrong request: GET /api/v1/repos/oficina/equipo/branches/review/trial/description |
| +``` |
| + |
| +### M15: require_qualified_ref |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'validRef(ref)' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'strings.HasPrefix(ref, "refs/heads/")' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/valid (0.00s) |
| + description_test.go:157: team: invalid |
| + description_test.go:170: invalid target reached HTTP |
| +``` |
| + |
| +### M16: ignore_invalid_ref |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'validRef(ref)' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'true' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.04s) |
| + description_test.go:170: invalid target reached HTTP |
| + description_test.go:170: invalid target reached HTTP |
| + description_test.go:170: invalid target reached HTTP |
| + description_test.go:170: invalid target reached HTTP |
| +``` |
| + |
| +### M17: description_before_push |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'BeforePush() bool { return false }' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'BeforePush() bool { return true }' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/lost_reply' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.02s) |
| + --- FAIL: TestPublishDescriptionRecovery/lost_reply (0.02s) |
| + publisher_test.go:625: production transport describes before push |
| +``` |
| + |
| +### M18: duplicate_set |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'r.DescriptionAttempted || (e != nil' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'false || (e != nil' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/empty' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.19s) |
| + --- FAIL: TestPublishDescriptionRecovery/empty (0.19s) |
| + publisher_test.go:658: duplicate write/push or skipped GET 3 1 6 |
| +``` |
| + |
| +### M19: skip_readback |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'if e != nil || !descriptionMatches(got, desc) {' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'if false {' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/empty' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.15s) |
| + --- FAIL: TestPublishDescriptionRecovery/empty (0.15s) |
| + publisher_test.go:638: unconfirmed description delivered success |
| +``` |
| + |
| +### M20: lose_write_journal |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'if e = runnerproto.JournalCredentials(p.path(r.Authorization.Ticket.Dispatch), *r); e != nil {' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'if false {' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/lost_reply' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.13s) |
| + --- FAIL: TestPublishDescriptionRecovery/lost_reply (0.13s) |
| + publisher_test.go:616: description intent not durable before write |
| +``` |
| + |
| +### M21: no_lost_reply_get |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'_ = p.cfg.Description.Set(ctx, cred, desc)' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'if e = p.cfg.Description.Set(ctx, cred, desc); e != nil { return team.ErrUncertain }' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/lost_reply' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.12s) |
| + --- FAIL: TestPublishDescriptionRecovery/lost_reply (0.12s) |
| + publisher_test.go:633: team: uncertain |
| +``` |
| + |
| +### M22: write_after_read_error |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'(e != nil && !errors.Is(e, team.ErrEvidence))' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'(false && !errors.Is(e, team.ErrEvidence))' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionReadFailureDoesNotWrite' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionReadFailureDoesNotWrite (0.17s) |
| + publisher_test.go:693: read failure caused a write or success team: uncertain 1 |
| +``` |
| + |
| +### M23: ignore_expected_repository |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'got.Repository == want.Repository' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'true' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_repo' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.15s) |
| + --- FAIL: TestPublishDescriptionRecovery/wrong_repo (0.15s) |
| + publisher_test.go:638: unconfirmed description delivered success |
| +``` |
| + |
| +### M24: ignore_expected_ref |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'got.Ref == want.Ref' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'true' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_ref' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.15s) |
| + --- FAIL: TestPublishDescriptionRecovery/wrong_ref (0.15s) |
| + publisher_test.go:638: unconfirmed description delivered success |
| +``` |
| + |
| +### M25: ignore_expected_agent |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'got.Agent == want.Agent' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'true' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_agent' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.11s) |
| + --- FAIL: TestPublishDescriptionRecovery/wrong_agent (0.11s) |
| + publisher_test.go:638: unconfirmed description delivered success |
| +``` |
| + |
| +### M26: ignore_expected_body |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'got.Body == want.Body' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'true' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_body' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.12s) |
| + --- FAIL: TestPublishDescriptionRecovery/wrong_body (0.12s) |
| + publisher_test.go:638: unconfirmed description delivered success |
| +``` |
| + |
| +### M27: ignore_expected_digest |
| + |
| +File: `internal/runner/forge/publisher.go`. Replace: |
| + |
| +```python |
| +'got.Digest == want.Digest' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'true' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_digest' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestPublishDescriptionRecovery (0.15s) |
| + --- FAIL: TestPublishDescriptionRecovery/wrong_digest (0.15s) |
| + publisher_test.go:638: unconfirmed description delivered success |
| +``` |
| + |
| +### M28: inherit_person_environment |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'cmd.Env = []string{"HOME=/nonexistent", "PATH=/usr/bin:/bin", "AMADAN_HOME=" + dir}' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'cmd.Env = append(os.Environ(), "HOME=/nonexistent", "PATH=/usr/bin:/bin", "AMADAN_HOME=" + dir)' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.02s) |
| + description_test.go:205: team: uncertain |
| +``` |
| + |
| +### M29: token_in_argv |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'"-body", "-")' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'"-body", "-", c.Bearer)' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.02s) |
| + description_test.go:205: team: uncertain |
| +``` |
| + |
| +### M30: trim_stdin |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'strings.NewReader(d.Body)' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'strings.NewReader(strings.TrimSpace(d.Body))' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.02s) |
| + description_test.go:205: team: uncertain |
| +``` |
| + |
| +### M31: public_token_file |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'credentials, 0600' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'credentials, 0644' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.02s) |
| + description_test.go:205: team: uncertain |
| +``` |
| + |
| +### M32: retain_token_scratch |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'defer os.RemoveAll(dir)' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'// mutation: keep scratch' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.02s) |
| + description_test.go:215: credential scratch was retained |
| +``` |
| + |
| +### M33: expose_command_output |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'cmd.Stdout, cmd.Stderr = io.Discard, io.Discard' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'_ = io.Discard\n cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.02s) |
| + description_test.go:261: command output escaped error boundary |
| +``` |
| + |
| +### M34: writer_agent |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'d.Agent != c.Agent || ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/agent' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.10s) |
| + --- FAIL: TestAmadanDescriptionCommand/agent (0.03s) |
| + description_test.go:245: invalid write reached command <nil> |
| +``` |
| + |
| +### M35: writer_body_digest |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'d.Digest != Digest([]byte(d.Body)) || ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/digest' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.08s) |
| + --- FAIL: TestAmadanDescriptionCommand/digest (0.02s) |
| + description_test.go:245: invalid write reached command <nil> |
| +``` |
| + |
| +### M36: writer_empty_body |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'d.Body == "" || ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/empty' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.09s) |
| + --- FAIL: TestAmadanDescriptionCommand/empty (0.02s) |
| + description_test.go:245: invalid write reached command team: uncertain |
| +``` |
| + |
| +### M37: writer_utf8 |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'!utf8.ValidString(d.Body) || ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'(!utf8.ValidString(d.Body) && false) || ' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/invalid_utf8' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.10s) |
| + --- FAIL: TestAmadanDescriptionCommand/invalid_utf8 (0.03s) |
| + description_test.go:245: invalid write reached command team: uncertain |
| +``` |
| + |
| +### M38: writer_size |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'len(d.Body) > 1<<20 || ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/oversized' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.08s) |
| + --- FAIL: TestAmadanDescriptionCommand/oversized (0.02s) |
| + description_test.go:245: invalid write reached command team: uncertain |
| +``` |
| + |
| +### M39: writer_scratch |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +' || !filepath.IsAbs(w.scratch)' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.01s) |
| + description_test.go:207: relative scratch accepted team: uncertain |
| +``` |
| + |
| +### M40: target_remote |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'cred.Remote == "https://"+repo && ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.07s) |
| + --- FAIL: TestAmadanDescriptionCommand/foreign_remote (0.01s) |
| + description_test.go:245: invalid write reached command <nil> |
| +``` |
| + |
| +### M41: target_agent |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'team.ValidPublicationAgent(cred.Agent) && ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.07s) |
| + --- FAIL: TestAmadanDescriptionCommand/person (0.01s) |
| + description_test.go:245: invalid write reached command <nil> |
| +``` |
| + |
| +### M42: target_header |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +' && !strings.ContainsAny(cred.Bearer, "\\r\\n\\x00")' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.07s) |
| + --- FAIL: TestAmadanDescriptionCommand/header (0.02s) |
| + description_test.go:245: invalid write reached command team: uncertain |
| +``` |
| + |
| +### M43: ignore_command_timeout |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'exec.CommandContext(ctx, w.path' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'exec.CommandContext(context.Background(), w.path' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (2.06s) |
| + description_test.go:268: command did not respect timeout <nil> |
| +``` |
| + |
| +### M44: forward_cookies |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'local.Jar = nil' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'// mutation: keep unrelated cookies' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionReadback (0.00s) |
| + --- FAIL: TestAmadanDescriptionReadback/valid (0.00s) |
| + description_test.go:95: forwarded unrelated client credentials |
| + --- FAIL: TestAmadanDescriptionReadback/invalid_utf8 (0.00s) |
| + description_test.go:95: forwarded unrelated client credentials |
| +``` |
| + |
| +### M45: missing_token |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'cred.Bearer != "" && ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/missing_token' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.07s) |
| + --- FAIL: TestAmadanDescriptionCommand/missing_token (0.02s) |
| + description_test.go:259: invalid write reached command team: uncertain |
| +``` |
| + |
| +### M46: invalid_repository |
| + |
| +File: `internal/runner/forge/description.go`. Replace: |
| + |
| +```python |
| +'validRepository(repo) && ' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/repository' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.07s) |
| + --- FAIL: TestAmadanDescriptionCommand/repository (0.02s) |
| + description_test.go:259: invalid write reached command team: uncertain |
| +``` |
| + |
| +### M47: missing_writer |
| + |
| +File: `internal/runner/forge/description_transport.go`. Replace: |
| + |
| +```python |
| +'if t.writer == nil {' |
| +``` |
| + |
| +with: |
| + |
| +```python |
| +'if false {' |
| +``` |
| + |
| +Run: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1 |
| +``` |
| + |
| +Exit 1; compiled test failure: |
| + |
| +```text |
| +--- FAIL: TestAmadanDescriptionCommand (0.01s) |
| +panic: runtime error: invalid memory address or nil pointer dereference [recovered, repanicked] |
| + /home/paulca/.local/go-dist/src/testing/testing.go:1974 +0x232 |
| + /home/paulca/.local/go-dist/src/testing/testing.go:1977 +0x349 |
| + /home/paulca/.local/go-dist/src/runtime/panic.go:860 +0x13a |
| +``` |
| + |
| +## User-facing strings |
| + |
| +No new application strings or copy.go entries. No copy review is pending for this |
| +task. Existing `team.ErrInvalid`, `team.ErrEvidence`, `team.ErrUncertain` and |
| +publication labels are reused. `approved beyond profile` is carried unchanged. |
| +New text consists of internal code comments, test diagnostics and this controller |
| +report. No README prose, UI copy or published branch description was written. |
| + |
| +## Concerns and limits |
| + |
| +No known failing task requirement. Live publication and installed-CLI network |
| +behavior were not exercised, as required by the brief. The runtime wiring test is |
| +a source assertion, supplemented by production transport and publisher behavior |
| +tests using local Git, loopback HTTP and a fake command. |
| + |
| +If the process dies after journaling a write attempt but before actually starting |
| +the command, GET may stay empty. That attempt remains incomplete; it needs an |
| +explicit recovery decision rather than an automatic duplicate Set. This is an |
| +intentional conservative outcome, not delivery success. |
| + |
| +All test servers close through cleanup. All fake commands exit or are killed on |
| +cancellation. Task scratch under `/home/paulca/t/e2b/task10` is removed after its |
| +evidence is copied here. Go caches are unchanged. No push, merge or deployment. |