René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f055012d-49ca-a96f-251e-ca69012bba10
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD7A8:14700E:1DD55A9:25CC78F:6B015EC2
html-safe-nonce7b3497eb96843265dc395b53914f8514aafc7779e9cd2a12d74c482751ede635
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0E4OjE0NzAwRToxREQ1NUE5OjI1Q0M3OEY6NkIwMTVFQzIiLCJ2aXNpdG9yX2lkIjoiMzg5MjI1Njk2MzkzNzgwOTMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2e14d78544fd85a878763763556a6553579f8d91b4b0edf6b1b83b24212d4bb5
hovercard-subject-tagissue:4245470101
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/960/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7f2fb0dff67bfff0c296a75b3166f7cdcc837df2f38e189d4a33234af9de8450/github/squad/issues/960
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7f2fb0dff67bfff0c296a75b3166f7cdcc837df2f38e189d4a33234af9de8450/github/squad/issues/960
og:image:altEditors 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejuliank
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/github/squad git https://github.com/github/squad.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id1151205052
octolytics-dimension-repository_nwogithub/squad
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1151205052
octolytics-dimension-repository_network_root_nwogithub/squad
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/squad/issues/960#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fsquad%2Fissues%2F960
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fsquad%2Fissues%2F960
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fsquad
Reloadhttps://github.com/github/squad/issues/960
Reloadhttps://github.com/github/squad/issues/960
Reloadhttps://github.com/github/squad/issues/960
githubhttps://github.com/github
squadhttps://github.com/github/squad
Codehttps://github.com/github/squad
Issues108 (108)https://github.com/github/squad/issues
Pull requests26 (26)https://github.com/github/squad/pulls
Discussionshttps://github.com/github/squad/discussions
Actionshttps://github.com/github/squad/actions
Projectshttps://github.com/github/squad/projects
Security and qualityhttps://github.com/github/squad/security
Insightshttps://github.com/github/squad/insights
https://github.com/github/squad
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/960
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/960
#961https://github.com/github/squad/pull/961
Agents hallucinate incorrect dates — CURRENT_DATE not injected into spawn promptshttps://github.com/github/squad/issues/960#top
#961https://github.com/github/squad/pull/961
https://github.com/juliank
juliankhttps://github.com/juliank
on Apr 11, 2026https://github.com/github/squad/issues/960#issue-4245470101
tamirdresherhttps://github.com/tamirdresher
on Apr 12, 2026https://github.com/github/squad/issues/960#event-24418107173
fix: inject CURRENT_DATE into all spawn templates (#960)https://github.com/github/squad/commit/8dbf13066b57e4bfc65034ccd7712493e76f155a
#960https://github.com/github/squad/issues/960
8dbf130https://github.com/github/squad/commit/8dbf13066b57e4bfc65034ccd7712493e76f155a
tamirdresherhttps://github.com/tamirdresher
completedhttps://github.com/github/squad/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#961https://github.com/github/squad/pull/961
on Apr 12, 2026https://github.com/github/squad/issues/960#event-24418868202
jazz127https://github.com/jazz127
on Apr 12, 2026https://github.com/github/squad/issues/960#event-24419698628
fix: inject CURRENT_DATETIME into all spawn templates (github#960)https://github.com/jazz127/squaddev/commit/3579a23ca5d294c59ce4d7b7d259d4c1ba7ff801
github#960https://github.com/github/squad/issues/960
3579a23https://github.com/jazz127/squaddev/commit/3579a23ca5d294c59ce4d7b7d259d4c1ba7ff801
tamirdresherhttps://github.com/tamirdresher
on Apr 21, 2026https://github.com/github/squad/issues/960#event-24709584104
fix: inject CURRENT_DATETIME into all spawn templates (#960)https://github.com/github/squad/commit/35dc3f03c7f84b791aac2d43912040435dc29eb5
#960https://github.com/github/squad/issues/960
35dc3f0https://github.com/github/squad/commit/35dc3f03c7f84b791aac2d43912040435dc29eb5
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/squad/issues/960
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/squad/issues/960
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.