Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ The update runs after the baseline is saved, stops itself after 10 minutes and n
| `depth_cap` | both | `2` | Positive integer maximum analysis depth, including full-analysis fallbacks. Changing it rebuilds incompatible state. |
| `github_token` | both | `${{ github.token }}` | Token for comments and sync delivery. |
| `codeboarding_analysis_location` | both | `codeboarding_branch` | Where the synced branch's analysis is stored: `codeboarding_branch` (on `codeboarding/baseline`, for the default branch; the code is never written) or `in_place` (committed as `.codeboarding/` on the synced branch). Sync saves it there and review reads it from there. |
| `warmstart_retention_days` | review | `1` | Days to keep the reusable analysis. Only the next run reads it. |
| `warmstart_retention_days` | review | `5` | Days to keep the reusable analysis. Only the next run reads it; a pull request idle for longer re-derives from the base. |
| `review_guide_url` | both | `https://jxivqwx4or6oip3krgdmdaiunm0iaybf.lambda-url.us-east-1.on.aws/` | Experimental. Shared base URL for `/v1/review-guide`, `/v1/architecture` and `/v1/merge-risk`, and for sync's `/v1/briefing` when `problem_history` is on. Saves `review_guide.json`, `closed/architecture.json`, `closed/merge_risk.json` and the guide's request (`closed/bundle.json.xz`) in the review artifact. Set to `''` to disable them all. Never fails the run. |
| `closed_features_source` | review | `true` | Whether architecture checks may read this repository's source. Only the architecture request carries it, capped in size, and the service keeps nothing. The model sees code around a finding, never the tree. With `false`, source-dependent checks and model review do not run, and the result says so; merge risk sends the changed files' paths and line counts without their patches. It does not change what the review guide's request carries. |
| `problem_history` | sync | `false` | Opt-in. With `'true'`, each sync sends this repository's issues and merged pull requests to `review_guide_url` and commits the returned problem list as `problems.json` on the orphan branch `codeboarding/briefing`. Needs `contents: write`, `issues: read`, `pull-requests: read`, `actions: read` and `id-token: write` on the sync job. See [Problem history](#problem-history). Never fails the run. |
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ inputs:
required: false
default: 'codeboarding_branch'
warmstart_retention_days:
description: 'Days to keep the reusable analysis. Only the next run reads it.'
description: 'Days to keep the reusable analysis. Only the next run reads it; a pull request idle for longer re-derives from the base.'
required: false
default: '1'
default: '5'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the default within repository retention limits

For repositories or organizations whose artifact-retention maximum is 1–4 days, this new default makes the Publish this analysis for the next run upload request exceed policy. GitHub documents that a custom period “cannot exceed the retention limit set by the repository, organization, or enterprise”; because the upload step has continue-on-error: true, reviews still appear successful but never publish a warm-start bundle, so every subsequent push silently re-derives from the base unless each affected consumer overrides this input.

Useful? React with 👍 / 👎.

# Deprecated inputs. scripts/action/old_api_migrator.sh is the only reader.
target_branch:
description: 'Deprecated: sync analyzes the branch the run is on. Accepted only when it names that branch.'
Expand Down
12 changes: 7 additions & 5 deletions docs/COMMIT_STRATEGY.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cache was free. Retention is the lever — see below.
|---|---|---|---|
| `codeboarding-review-<run>-<attempt>` | `analysis.json`, `health_report.json`, `metadata.json` | 14 days | the webview, humans |
| `codeboarding-base-<cfg>-<merge_base>` | the merge base's own analysis | 30 days, renewed while still referenced | any later review forking from that commit |
| `codeboarding-warmstart-<cfg>-pr<N>` | the working directory: graph, pickle, fingerprint, gate | **1 day**, configurable | only the next run of that pull request |
| `codeboarding-warmstart-<cfg>-pr<N>` | the working directory: graph, pickle, fingerprint, gate | **5 days**, configurable | only the next run of that pull request |

Bundles carry analysis state, not the engine's scratch: run logs and lock files
are stripped before publication, since no reader inflates them and every fetch
Expand Down Expand Up @@ -91,10 +91,12 @@ them:
- **30 days** for a base graph, which must outlive every review that names it.
The renewal threshold is the review's own retention, so the surplus — 16 days
here — is how long a base is reused before being republished.
- **1 day** for the warm-start bundle, since only the next run reads it. This is
`warmstart_retention_days` if a repository wants longer. It behaves like the
old cache eviction: a pull request left alone longer than the window
re-derives from the base.
- **5 days** for the warm-start bundle. Only the next run reads it, but a pull
request left alone longer than the window re-derives from the base, and that
run re-analyzes every file the pull request changed rather than the last push.
One day lost the chain over every weekend and every pause in review. Each push
stores its own copy (about 1.4 MB on a mid-size repository) until it expires,
so the cost is pushes × days. This is `warmstart_retention_days`.

## How a review resolves its two graphs

Expand Down
Loading