Title: Agents hallucinate incorrect dates — `CURRENT_DATE` not injected into spawn prompts · Issue #960 · github/squad · GitHub
Open Graph Title: Agents hallucinate incorrect dates — `CURRENT_DATE` not injected into spawn prompts · Issue #960 · github/squad
X Title: Agents hallucinate incorrect dates — `CURRENT_DATE` not injected into spawn prompts · Issue #960 · github/squad
Description: Editors note: The below issue text is completely generated by my Squad team lead, upon my request, when I encountered this issue when testing Squad on a local project. I have read through the issue, and it appears reasonable. But my know...
Open Graph Description: Editors note: The below issue text is completely generated by my Squad team lead, upon my request, when I encountered this issue when testing Squad on a local project. I have read through the issue...
X Description: Editors note: The below issue text is completely generated by my Squad team lead, upon my request, when I encountered this issue when testing Squad on a local project. I have read through the issue...
Opengraph URL: https://github.com/github/squad/issues/960
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Agents hallucinate incorrect dates — `CURRENT_DATE` not injected into spawn prompts","articleBody":"_Editors note: The below issue text is completely generated by my Squad team lead, upon my request, when I encountered this issue when testing Squad on a local project. I have read through the issue, and it *appears* reasonable. But my knowledge of the details referenced are limited, so please apologize for any errors._\n\n### Summary\n\nSpawned agents consistently write incorrect dates in documents, headings, and metadata fields. The root cause appears to be that the Squad coordinator does not pass the current date to agents in spawn prompts — leaving LLMs to infer the date from their training data, which is always wrong.\n\n### Observed behavior\n\nAcross a project where every file was created on **2026-04-11**, agents wrote dates including:\n\n- `July 2025`\n- `January 2025`\n- `2025-07-17`\n- `2025-07-19`\n- `2025-07-24`\n- `April 2026` (correct month/year, but not the full ISO date)\n\nThe errors appeared in:\n- `src/architecture/*.md` — design docs, assessments, test reports\n- `.squad/decisions.md` — the canonical decision ledger\n- `.squad/agents/*/history.md` — agent learning logs\n- `.squad/state.md` — squad state file\n- Research and analysis output files\n\nOnly a small fraction of entries had the correct date, and those appeared to be cases where the agent was explicitly given the current date as part of context (e.g. from a user message or system prompt injection).\n\n### Inconsistency\n\nBeyond correctness, the format is inconsistent across files:\n- Some files use ISO 8601: `2025-07-17`\n- Others use freeform: `July 2025`, `April 11, 2026`\n\nThis inconsistency suggests different agents/sessions resolved the date in different ways, further confirming the date is being guessed rather than sourced from a reliable injection point.\n\n### Root cause hypothesis\n\nThe Squad coordinator spawn template (in `squad.agent.md`) includes contextual identifiers like `TEAM ROOT` and `WORKTREE_PATH` but does **not** include a `CURRENT_DATE` field. Agents therefore rely on their LLM's internal sense of \"what time is it now\" — which is unreliable for models with training cutoffs in the past.\n\nThe coordinator **does** have access to the correct current date: in Copilot CLI environments it appears in the system prompt as `\u003ccurrent_datetime>`. This value is available to the coordinator but is not forwarded to spawned agents.\n\nThis affects **all three spawn templates** in `squad.agent.md`: the standard/full template, the lightweight template, and the Scribe spawn template. The Scribe case is particularly serious: the Scribe charter template (`.squad/templates/scribe-charter.md`) already contains an explicit **Date Format Mandate** requiring Scribe to write `today's date` (`YYYY-MM-DD`) into every decision heading it merges into `decisions.md`. The intent to use the correct date is already there — but because Scribe is also never given the current date in its spawn prompt, it still hallucinates. This means the canonical decision ledger is the most directly impacted file.\n\n### Suggested fix\n\n#### 1. Inject `CURRENT_DATE` into all three spawn templates in `squad.agent.md`\n\nThe standard/full template, lightweight template, and Scribe spawn template all need the same addition:\n\n```\nTEAM ROOT: {team_root}\nCURRENT_DATE: {YYYY-MM-DD} ← inject here, derived from \u003ccurrent_datetime>\nWORKTREE_PATH: {worktree_path}\n```\n\nThe coordinator should derive the value from `\u003ccurrent_datetime>` (available in Copilot CLI system prompt) and format it as `YYYY-MM-DD`. On surfaces where `\u003ccurrent_datetime>` is not injected, the coordinator should run `date` (or equivalent) to get the current date.\n\n#### 2. Add a date usage instruction to each spawn template\n\nImmediately after the `CURRENT_DATE` line, add:\n\n```\nWhen writing dates in any document or log, always use CURRENT_DATE ({YYYY-MM-DD})\nin ISO 8601 format. Never infer or guess the date.\n```\n\n#### 3. Update the Scribe charter template\n\n`.squad/templates/scribe-charter.md` already contains the right intent (\"add today's date\") but has no mechanism to know what today is. The Date Format Mandate section should be updated to reference the injected `CURRENT_DATE` value rather than asking Scribe to infer it:\n\n```diff\n- - If an inbox file is missing a date, add today's date (`YYYY-MM-DD`).\n+ - If an inbox file is missing a date, use the CURRENT_DATE value provided in\n+ your spawn prompt (`YYYY-MM-DD`). Never infer or guess the date.\n```\n\nThe same applies to the consolidated-entry heading line:\n\n```diff\n- b. Use today's date and a new heading: `### {today}: {consolidated topic} (consolidated)`\n+ b. Use CURRENT_DATE and a new heading: `### {CURRENT_DATE}: {consolidated topic} (consolidated)`\n```\n\n### Impact\n\n- Misleading audit trails — decision logs and history files carry wrong timestamps\n- False historical context — agents reading old files with wrong dates may incorrectly conclude when decisions were made\n- Reduced trust in documentation accuracy\n\n### Environment\n\n- Squad version: v0.9.1 (as reported by coordinator)\n- Platform: GitHub Copilot CLI (Windows)\n- Models affected: All tested (Claude Opus 4.6, Claude Sonnet 4.5, Claude Haiku 4.5)\n- Reproducibility: Consistent across all agents and sessions in this project\n\n### Workaround\n\nManually correct all dates after agent runs, or explicitly include the current date in user messages (e.g. *\"today is 2026-04-11\"*), which some agents do pick up correctly.\n","author":{"url":"https://github.com/juliank","@type":"Person","name":"juliank"},"datePublished":"2026-04-11T18:24:42Z","url":"https://github.com/github/squad/issues/960"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f055012d-49ca-a96f-251e-ca69012bba10 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7A8:14700E:1DD55A9:25CC78F:6B015EC2 |
| html-safe-nonce | 7b3497eb96843265dc395b53914f8514aafc7779e9cd2a12d74c482751ede635 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0E4OjE0NzAwRToxREQ1NUE5OjI1Q0M3OEY6NkIwMTVFQzIiLCJ2aXNpdG9yX2lkIjoiMzg5MjI1Njk2MzkzNzgwOTMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2e14d78544fd85a878763763556a6553579f8d91b4b0edf6b1b83b24212d4bb5 |
| hovercard-subject-tag | issue:4245470101 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/960/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7f2fb0dff67bfff0c296a75b3166f7cdcc837df2f38e189d4a33234af9de8450/github/squad/issues/960 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7f2fb0dff67bfff0c296a75b3166f7cdcc837df2f38e189d4a33234af9de8450/github/squad/issues/960 |
| og:image:alt | Editors note: The below issue text is completely generated by my Squad team lead, upon my request, when I encountered this issue when testing Squad on a local project. I have read through the issue... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | juliank |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width