Skip to content

Verify and enforce the public task-list wire projection #1075

Closed

Description

@athvin

Prerequisite to the jobs/tasks batch of #864, under API epic #857. Keep an intentional visibility correction separate from the later response-byte-preserving conversion.

The current list_job_tasks handler serializes generated TaskInstance storage rows through Json(json!({ "tasks": tasks })). entities/task_instance/entity.yaml declares token_hash internal; the storage struct serializes it, while the generated TaskInstanceWire omits it. This is a source-level candidate to verify, not a claim of live exploitation.

Plan and acceptance:

  • Reproduce the public task-list boundary in the existing Postgres-backed task-ledger harness using a synthetic active fallback credential. Assert that a viewer can read the permitted task fields but cannot receive token_hash; observe the regression fail before a fix. Never capture real credential material.
  • Have an independent fresh-context verifier check the reproducer and scope before treating this as a confirmed finding.
  • If confirmed, project the public task list through generated TaskInstanceWire. Preserve the existing tasks envelope, authorization behavior and every public field/value. Do not change entity columns, credential lifecycle, or the internal attempt-channel protocol.
  • Verify actual response bytes/fields before and after: only the internal field should disappear. Keep the regression in the existing harness and require unchanged contract artifacts unless a real contract correction is necessary.
  • Run make check, the appropriate real Postgres integration gate, and normal CI; complete the post-merge ledger.

Source anchors on main: rust/crates/er-server/src/lib.rs::list_job_tasks, entities/task_instance/read/by_job.yaml (returns: entity), and generated rust/crates/er-entities/src/task_instance.rs. No generated file should be edited by hand.

Activity

  1. added
    rust
    mvp
    followup
    on Nov 9, 2026
  2. self-assigned this
    on Nov 9, 2026
  3. athvin commented on Nov 9, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #1076 (draft). Closing that PR releases the claim. This verifies the task-list wire boundary before the jobs/tasks conversion in #864.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

followupmvprust

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions