Repository navigation
fix(api): enforce the public task-list wire projection (#1075) - #1076
Merged
Merged
Conversation
athvin
marked this pull request as ready for review
November 9, 2026 23:50
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.
Closes #1075
What
Project public task-list rows through generated
TaskInstanceWire, omitting the internaltoken_hashfield. Every other response byte is preserved.Why
The handler serialized storage rows while the catalog marks
token_hashinternal. A real Viewer API key could read that hash. This fixes the visibility boundary before the byte-preserving response refactor in #864.Proof
make checkandmake check-e2epassed. Both OpenAPI snapshots, TypeScript schema, envelope ledger and MCP manifest remain unchanged.Risk & rollback
Only the undocumented internal field is removed; stored credentials and internal attempt responses are unchanged. Reverting the merge restores the disclosure, so prefer fixing compatibility issues forward.
Post-merge ledger
Closed by: unclosed
mainis green with this change on it — merged as7cad4ad9bb2262623deac0f83388ae9a442a1980at2026-11-09T23:55:55Z. Exact landed file bytes verified; the post-merge watch runs until2026-11-10T00:25:55Z.images— 42724372294 succeeded for merge7cad4ad9.deploy— blocked — 42724740181 successfully deployed exact7cad4ad9 in dev/prod;/readyzreturned200 in both. A process-emitted startup log for this image remains unverified. AWS MCP exposes documentation only, and guarded CLI access was rejected; workflow readiness is not substituted for process proof.deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change:
(a skill, a reference, memory) — or nothing new was learned:
Specific to this change
Context — plan, discoveries, measurements, files
Plan
pg_task_instances.rs, use the existing active fallback-token fixture and mint a viewer key through the real API; assert the public list omitstoken_hash, retains its other fields/bytes, and still refuses a cross-org read. Observe the omission assertion fail against the current handler.TaskInstanceWire, keeping the envelope and public values unchanged. Preserve internal attempt-channel behavior and the credential stored in Postgres; never edit generated files.make check, andmake check-e2e; verify the committed contract artifacts remain unchanged. Review the diff, refresh from main and land on exact-head checks.Discoveries
Post-merge main: Rust42724372257, infra42724372246, devcontainer42724372384 and images42724372294 succeeded. Frontend42724372420 failed in the unchanged marketing Chromium shard: paused audit controls remained enabled at
marketing-interactions.spec.ts:359, and the slider at line48 was flaky. Both signatures predate this PR and are documented in peer-owned #1074. No unrelated fix or additional retry was made here. The watch continues until00:25:55Z.token_hashremoved, cross-org404, and the existing fallback attempt authentication/start/heartbeat/finish lifecycle. Stored credentials and internal attempt responses are unchanged.make checkandmake check-e2epassed on the final diff. No generated artifacts changed. Manual review confirmed reuse of the generated visibility projection and no added SQL, authorization change or new failure path.Measurements
Files
rust/crates/er-server/src/lib.rs::list_job_tasksrust/crates/er-server/tests/pg_task_instances.rs.claude/skills/security/references/harness-map.md