Pack Freshness and Refresh
Auto-Refresh Triggers
ADE’s Job Engine automatically refreshes packs when:| Event | Packs Refreshed |
|---|---|
| A commit is made in a lane | That lane’s pack |
| A PR is merged | Project Pack + originating lane’s pack |
| More than 10 files change | Project Pack |
| A Linear issue is updated | Corresponding Feature Pack (if any) |
| A new conflict is detected | Conflict Pack for that pair of lanes |
| A mission completes | Mission Pack (final phase snapshot) |
Manual Refresh
You can force a refresh at any time:- From the Context view: Right-click any pack entry → Refresh Pack
- From the Lane panel: Right-click a lane → Refresh Lane Pack
- Keyboard shortcut: Focus a lane in the Lanes panel and press
⌘⇧R - From the CTO: Ask the CTO agent to “refresh the pack for lane X”
**Screenshot: The Context view with a right-click context menu open on a Lane Pack entry. The menu shows options: “Refresh Pack”, “View History”, “Export Pack”, “Copy Pack ID”, and “Open in Editor”. The “Refresh Pack” item is highlighted.
Freshness Indicators
Each pack entry in the Context view shows a freshness badge:| Badge | Meaning |
|---|---|
| Green “Updated Xs ago” | Pack is current |
| Amber “Stale” | Pack is older than the configured threshold (default: 30 minutes after a change event) |
| Red “Very Stale” | Pack has not been updated in over 2 hours despite activity in the lane |
| Gray “Generating…” | Pack refresh is currently in progress |
**Screenshot: The Context view’s pack detail panel opened for a Lane Pack — showing the full pack content with section headers clearly visible (intent, criteria, touched-files, diff-summary), a “Generated 2 minutes ago” timestamp, version number “v7”, and action buttons (Refresh, Export, View History) in the top-right corner.
Packs in Missions
Missions consume and produce packs as first-class artifacts throughout their lifecycle. Planning Phase:- The Mission planner reads the Project Pack and all relevant Lane Pack(s) to understand scope.
- The resulting Plan Pack is created at the end of planning and must be approved before execution starts.
- The executor operates with the Plan Pack as its primary guidance document.
- Each phase boundary creates a new Mission Pack snapshot.
- The validator reads the Mission Pack’s execution snapshot to understand what was done.
- Validation results are appended to the Mission Pack.
- The full Mission Pack is archived in
.ade/artifacts/packs/missions/<mission-id>/. - It can be viewed in History → Missions → [Mission] → Context Packs.
Packs in Pull Requests
When a PR is created from a lane, ADE automatically:- Includes the Lane Pack’s
intentandcriteriasections as the PR description template. - Links any active Conflict Pack to the PR as a comment if conflicts were detected.
- Attaches the Lane Pack ID to the PR metadata so reviewers can access the full pack from the PR detail view.
Memory System Integration
Packs work together with ADE’s unified memory system. Understanding the relationship helps you predict what context agents will have in any session.| Memory Tier | Storage | Contents | Loaded When |
|---|---|---|---|
| Core | SQLite (always in RAM) | Project identity, active lanes, current mission state | Always |
| Hot | SQLite (recent rows) | Last 10 sessions, recent commits, open PRs | Every session start |
| Cold | Pack files (.ade/artifacts/) | Historical lane packs, archived mission packs, feature packs | On demand |
- At session start, ADE loads Core + Hot memory automatically.
- The agent’s context stack is assembled from the relevant packs (Cold tier).
- During a session, MCP tool calls can fetch additional Cold-tier context on demand.
- At session end, significant facts from the session are written back into Hot memory (SQLite), and the relevant pack is queued for refresh.
Troubleshooting
Pack appears stale despite recent commits
Pack appears stale despite recent commits
The Job Engine processes pack refreshes asynchronously. In normal operation, a pack refresh completes within 10–30 seconds of the triggering event. If a pack is still stale after a minute:
- Check that the Job Engine is running: Settings → Debug → Job Engine Status. If it is paused or erroring, restart it.
- Force a manual refresh from the Context view or with
⌘⇧Rin the lane panel. - If refresh fails repeatedly, check View → Developer Tools → Console for error output.
Agent seems to have incorrect or outdated context
Agent seems to have incorrect or outdated context
If an agent is acting on stale information, the most likely cause is that it received a stale pack at session start.
- Check the pack’s freshness badge — if it was stale when the session started, the agent had stale context.
- Force-refresh the relevant pack, then start a new chat session. The new session will pick up the refreshed pack.
- If the pack seems correct but the agent is still confused, the issue may be Hot-tier SQLite state. Try Settings → Debug → Clear Hot Memory (does not delete packs or commits, only clears the recent-sessions index).
Project Pack is missing or empty
Project Pack is missing or empty
The Project Pack is generated on first project open and after each significant event. If it is missing:
- Navigate to the Context view and click Generate Project Pack.
- If generation fails, ADE needs read access to your full repository — confirm there are no permission issues with
.ade/artifacts/packs/project/. - For monorepos with very large file trees, initial generation may take up to 2 minutes. Check Settings → Debug → Job Engine for the running job.
Pack history is not retained after a certain date
Pack history is not retained after a certain date
Pack history files are pruned based on the retention setting. Default is 30 days.
- Check the current setting in Settings → Context → Pack History Retention.
- Increase the retention period if you need longer history.
- Note that individual mission packs are retained independently of the standard retention policy — mission packs are kept as long as the mission record exists in the database.