Skip to content

docs(task): define cache trust requirements - #11628

Merged
jdx merged 1 commit into
agent/task-cache-remote-integrityfrom
agent/task-cache-trust-docs
Aug 3, 2026
Merged

docs(task): define cache trust requirements#11628
jdx merged 1 commit into
agent/task-cache-remote-integrityfrom
agent/task-cache-trust-docs

Conversation

@jdx

@jdx jdx commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • document remote cache namespaces, bearer-token handling, HTTPS, retention, and writer trust boundaries
  • explain how cached logs and filesystem artifacts can retain sensitive task output
  • define the determinism, complete-input, and complete-output requirements for correct cache hits
  • update local-only guidance now that remote cache configuration exists

Tests

  • markdownlint-cli2 docs/tasks/task-configuration.md TASK_CACHE_PARITY.md
  • prettier --check docs/tasks/task-configuration.md TASK_CACHE_PARITY.md

AI-assisted — Tool: Codex; model: unavailable/unavailable; version: unavailable.


Note

Low Risk
Documentation-only changes with no runtime or configuration behavior modifications.

Overview
Adds operator-facing guidance for the experimental task output cache in task-configuration.md, and marks the corresponding parity tracker items complete in TASK_CACHE_PARITY.md.

local-only is documented as bypassing any configured remote cache (replacing the prior “equivalent to read-write” note). New sections cover remote cache and sensitive data: namespace isolation, bearer tokens via MISE_TASK_CACHE_REMOTE_TOKEN, HTTPS expectations, what cache entries contain (logs and outputs), redaction limits, remote retention, and writer trust boundaries (checksums vs signatures, PR read-only / separate namespaces).

A cache correctness and deterministic tasks section states that enabling cache asserts identical key material yields equivalent results, lists what must be in the key, warns about pass-through env and undeclared side effects, and gives troubleshooting steps (--task-cache off, separate namespaces).

Reviewed by Cursor Bugbot for commit 7186d55. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 290a37c8-011f-4df6-adcd-1c82394d248c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Documents the trust and correctness requirements for the experimental remote task cache.

  • Clarifies that local-only bypasses configured remote services.
  • Documents remote namespaces, bearer-token handling, HTTPS requirements, sensitive cached data, retention, and writer trust boundaries.
  • Defines deterministic-task, complete-input, and complete-output requirements for correct cache hits.
  • Marks the corresponding documentation work complete in the parity tracker.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
docs/tasks/task-configuration.md Adds remote-cache security guidance and deterministic-cache correctness requirements without changing runtime behavior.
TASK_CACHE_PARITY.md Marks the secret-handling and cache-correctness documentation tasks complete.

Reviews (12): Last reviewed commit: "docs(task): define cache trust requireme..." | Re-trigger Greptile

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 8fe4174 to 926b71d Compare August 2, 2026 13:10
@greptile-apps
greptile-apps Bot dismissed their stale review August 2, 2026 13:10

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

Instruction counts

benchmark trend instructions Δ wall (min) Δ
env ▂▄▂▁▁▁▃▃▃█ 80,074,952 → 80,209,136 +0.17% 17.64 → 17.39ms -1.45%
hook-env ▅▄▁▃▂▂▃▃▄█ 82,190,914 → 82,353,618 +0.20% 18.34 → 18.34ms +0.00%
ls ▄▃▁▁▁▅▅▅▅█ 73,127,800 → 73,235,463 +0.15% 15.71 → 15.84ms +0.82%
registry ▁▁▂▂▃▆▆█▂▆ 49,102,713 → 49,163,148 +0.12% 11.64 → 12.25ms +5.18%
startup ▃▃▁▂▂▁▁▂▂█ 15,784,751 → 15,850,302 +0.42% 9.04 → 9.43ms +4.33%

No instruction-count regression above 1%.

Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run.

Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes.

7186d55addb6 vs e5230aa14775 · measured on the runner, not pushed to the history.

@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 926b71d to 0009db2 Compare August 2, 2026 15:18
@greptile-apps
greptile-apps Bot dismissed their stale review August 2, 2026 15:18

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 0009db2 to 0c6d811 Compare August 2, 2026 15:20
@greptile-apps
greptile-apps Bot dismissed their stale review August 2, 2026 15:20

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 0c6d811 to 3affb55 Compare August 2, 2026 15:27
@greptile-apps
greptile-apps Bot dismissed their stale review August 2, 2026 15:27

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 3affb55 to 4680ef9 Compare August 2, 2026 17:33
@greptile-apps
greptile-apps Bot dismissed their stale review August 2, 2026 17:33

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 4680ef9 to a3f0ff6 Compare August 2, 2026 18:18
@greptile-apps
greptile-apps Bot dismissed their stale review August 2, 2026 18:18

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from a3f0ff6 to 2b1e4b5 Compare August 2, 2026 18:58
@greptile-apps
greptile-apps Bot dismissed their stale review August 2, 2026 18:58

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 2b1e4b5 to 4bc0484 Compare August 2, 2026 19:10
@greptile-apps
greptile-apps Bot dismissed their stale review August 2, 2026 19:10

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 4bc0484 to 592a2a7 Compare August 2, 2026 21:25
@greptile-apps
greptile-apps Bot dismissed their stale review August 2, 2026 21:25

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 2, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 592a2a7 to 4420472 Compare August 3, 2026 00:38
@greptile-apps
greptile-apps Bot dismissed their stale review August 3, 2026 00:38

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 3, 2026
@jdx
jdx force-pushed the agent/task-cache-trust-docs branch from 4420472 to 7186d55 Compare August 3, 2026 00:46
@greptile-apps
greptile-apps Bot dismissed their stale review August 3, 2026 00:46

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

@jdx
jdx merged commit 0233940 into main Aug 3, 2026
38 of 45 checks passed
@jdx
jdx deleted the agent/task-cache-trust-docs branch August 3, 2026 03:04
donbeave pushed a commit to donbeave/mise that referenced this pull request Aug 3, 2026
## Summary
- document remote cache namespaces, bearer-token handling, HTTPS,
retention, and writer trust boundaries
- explain how cached logs and filesystem artifacts can retain sensitive
task output
- define the determinism, complete-input, and complete-output
requirements for correct cache hits
- update local-only guidance now that remote cache configuration exists

## Tests
- `markdownlint-cli2 docs/tasks/task-configuration.md
TASK_CACHE_PARITY.md`
- `prettier --check docs/tasks/task-configuration.md
TASK_CACHE_PARITY.md`

*AI-assisted — Tool: Codex; model: unavailable/unavailable; version:
unavailable.*

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only changes with no runtime or configuration behavior
modifications.
> 
> **Overview**
> Adds operator-facing guidance for the experimental task output cache
in **`task-configuration.md`**, and marks the corresponding parity
tracker items complete in **`TASK_CACHE_PARITY.md`**.
> 
> **`local-only`** is documented as bypassing any configured remote
cache (replacing the prior “equivalent to read-write” note). New
sections cover **remote cache and sensitive data**: namespace isolation,
bearer tokens via **`MISE_TASK_CACHE_REMOTE_TOKEN`**, HTTPS
expectations, what cache entries contain (logs and outputs), redaction
limits, remote retention, and writer trust boundaries (checksums vs
signatures, PR **`read-only`** / separate namespaces).
> 
> A **cache correctness and deterministic tasks** section states that
enabling **`cache`** asserts identical key material yields equivalent
results, lists what must be in the key, warns about pass-through env and
undeclared side effects, and gives troubleshooting steps
(**`--task-cache off`**, separate namespaces).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
7186d55. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant