Public: anyone can read this; the crew can change it.
/.well-known/security.txt's Expires is always a date between 30 and 365 days ahead, never a constant that lapses #13078
Merged 19d 17h ago, live in production
/.well-known/security.txt now works out its Expires date from the clock each time it is read. It adds 180 days to today and rounds down to the first of that month, so the date is always 150 to 180 days ahead and stays the same for a whole month at a time.
-
Reviews
ApprovedThe preview serves Expires: 2027-05-01T00:00:00Z. I checked the three pinned instants by hand and they match the test (2026-11-15 -> 2027-05-01, 2026-12-31 -> 2027-06-01, 2027-06-01 -> 2027-11-01). The change is plain text with no markup, so the design principles are not engaged. The response is a text file and has no terminal screen to mirror. Next, I would: (1) note the 180-day horizon and month rounding in docs/features if a security.txt page exists, so operators know the date moves; (2) have the endpoint test pin the clock instead of using Date.now(), so it cannot flake at a month boundary.
-
Checks
shipped production is serving it deploy 3eab8eb
-
History
- No look: only /.well-known/security.txt's plain-text Expires line changes; no rendered page differs e9b9f7e
- Try: open /.well-known/security.txt; Expires is the first of a month 150-180 days from today (2027-05-01 on 2026-11-15) 6763c04
- security.txt's Expires is a month start 150-180 days ahead, computed from the clock (#13065) 7f0ee50
- Every page has a skip link and a visible focus ring, checked by one test over all layouts (#13017) 9b645c6
- Every tool the agent guide in docs/MCP.md names exists, and every tool in the manifest is named once (#13040) 121c22b
- Dark mode: every text and accent token pair meets 4.5:1, enforced in design-lint (#13018) 15c4aca
- The attention budget covers every top-level page, and a page without a row fails the test (#13024) 6fae5f3
- /sitemap.xml answers from a cached read: 46 ms of landings becomes under 5 ms (#12992) 2cafde7
- Automate a review finding as a lint or test: Both doors: there is no terminal screen in src/tui/ for the week card, and no do (#12984) abbe259
- Revert "The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500" (#12980) d357679
- A guest told "a link to an app does not make you a member" is offered the button that asks an admin; main's sentence rule is green again (#12974) ebbb84e
- Automate a review finding as a lint or test: Both doors: no docs/features/<name>.md is added for this behaviour. Add the how- (#12973) 12274f2
- The terminal asks whoever can, and answers: "What stands in the way" (#12976) d800c3b
- The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500 (#12975) 4af8d59
- Full suite red: test/tui-signins-password.test.ts (#12819) a10a428
- A table in an app's Data tab downloads as CSV, and the same rows are readable through the data tool (#12711) 1094b71
- The admin profiler leaks memory until the forge crashes: it brought production down for 2.5 minutes (#12456) cc0afa9
- Talking to the forge's agent refuses "no model account" when the only grant is a dollar model grant (#12955) fc910c0
- The engine went idle for an hour with 17 red pulls: builders sent back to a red are shown a healthy preview log, find nothing, and the pull stays red for good (#12969) 168fd4a
- The planner stops opening issues past an open-issue ceiling the owner sets, and says why (#12927) fdb806b
/.well-known/security.txt now works out its Expires date from the clock each time it is read. It adds 180 days to today and rounds down to the first of that month, so the date is always 150 to 180 days ahead and stays the same for a whole month at a time. The old code always said 1 January of next year, which in December is only days away; production says 2027-01-01T00:00:00Z right now.
src/web/standards.ts: a new function,securityExpires(now), works out the date (the horizon isSECURITY_TXT_HORIZON_DAYS).securityTxtcalls it with the current time. I kept the route handler's signature as it was, so the router can't pass anything into the clock.test/standards.test.ts: a new test pins the clock at three instants:- 2026-11-15 gives 2027-05-01
- 2026-12-31 23:59:59 gives 2027-06-01
- 2027-06-01 gives 2027-11-01
It also checks every 6 hours across 2026–2027 and requires each date to be 30 to 365 days ahead. On the old code the test fails: the function doesn't exist, and 31 December would give 2027-01-01. The existing endpoint test used to expect a
-01-01date. I changed it to accept any month start 30 to 365 days ahead, because that expectation was the constant this change removes.- Caching: the response is still
no-cache. Even a cache kept for days would sit far inside the 150-day minimum.
Gate and type check pass. I ran six test files: standards, webspec-site, report-discovery, sealed-release, corp and compress-types; all 75 tests pass. scripts/fast.ts named 2006 test files for this two-file change, an estimated 170 minutes, so I ran the files that touch security.txt rather than its list. The forge's check runs the full suite on this push.
To try it, open /.well-known/security.txt on the preview. Today it should say Expires: 2027-05-01T00:00:00Z.
🤖 Generated with Claude Code
/.well-known/security.txt now computes its Expires from the clock: the first of the month that holds today + 180 days. That keeps it 150 to 180 days ahead, and it reads the same for a whole month. Before, it always said 1 January of next year, so in December it was only days ahead; production says Expires: 2027-01-01T00:00:00Z today.
- Code: in
src/web/standards.ts, the newsecurityExpires(now)computes the date;SECURITY_TXT_HORIZON_DAYSholds the 180. ThesecurityTxthandler keeps its old signature and passes in the current time. - Tests: in
test/standards.test.ts, a pinned-clock test checks three instants:- 2026-11-15 gives 2027-05-01
- 2026-12-31 23:59:59 gives 2027-06-01
- 2027-06-01 gives 2027-11-01
It also checks every 6 hours across 2026–2027 that the date is 30 to 365 days ahead. On the old code the test fails: the function doesn't exist, and 31 December gives 2027-01-01.
- Test I changed: the endpoint test expected a
-01-01date, which is the constant this change removes. It now accepts any month start 30 to 365 days ahead. - Caching: the response stays
no-cache. Even a cache that lasted days would expire long before the 150-day minimum. - Commit messages: a "No look:" line explains that only plain text changes and no rendered page differs. The before/after looks rule failed the first check without it. Locally the gate passed both before and after adding the line, so it does not test that rule; only the forge's check on this push shows whether it is fixed.
Gate and tsc --noEmit pass. I ran the six test files that touch security.txt: standards, webspec-site, report-discovery, sealed-release, corp and compress-types, 75 tests, all passing. scripts/fast.ts named 2006 files for this change, an estimated 170 minutes, so I did not run its list; the forge's check runs the full suite.
To try it, open /.well-known/security.txt on the preview. On 2026-11-15 it says Expires: 2027-05-01T00:00:00Z.
🤖 Generated with Claude Code
/.well-known/security.txtnow works out itsExpiresdate from the clock each time it is read. It adds 180 days to today and rounds down to the first of that month, so the date is always 150 to 180 days ahead and stays the same for a whole month at a time. The old code always said 1 January of next year, which in December is only days away; production says2027-01-01T00:00:00Zright now.src/web/standards.ts: a new function,securityExpires(now), works out the date (the horizon isSECURITY_TXT_HORIZON_DAYS).securityTxtcalls it with the current time. I kept the route handler's signature as it was, so the router can't pass anything into the clock.test/standards.test.ts: a new test pins the clock at three instants:It also checks every 6 hours across 2026–2027 and requires each date to be 30 to 365 days ahead. On the old code the test fails: the function doesn't exist, and 31 December would give 2027-01-01. The existing endpoint test used to expect a
-01-01date. I changed it to accept any month start 30 to 365 days ahead, because that expectation was the constant this change removes.no-cache. Even a cache kept for days would sit far inside the 150-day minimum.Gate and type check pass. I ran six test files:
standards,webspec-site,report-discovery,sealed-release,corpandcompress-types; all 75 tests pass.scripts/fast.tsnamed 2006 test files for this two-file change, an estimated 170 minutes, so I ran the files that touch security.txt rather than its list. The forge's check runs the full suite on this push.To try it, open
/.well-known/security.txton the preview. Today it should sayExpires: 2027-05-01T00:00:00Z.🤖 Generated with Claude Code
Closes #13065