Trellis

Knowledge Discovery

Some answers span four tools.

“The week ends Sunday, so why does the weekly report close on Monday?” The definition is in the wiki, the boundary is in the code, and the reason is in an old rollout issue and a decision note. Connect all four and Trellis records which document names which, so you or your agent can search each one and follow the references to the answer.
Sunday night into Monday morningTimes in UTC · an illustrative team
  1. Sunday 13 Seplast day of the reporting week
  2. A customer uses the productThe activity belongs to the week ending Sunday.

    Team wiki · Reporting period

    “A reporting week runs from Monday 00:00 UTC up to, but not including, the following Monday.”

    names inWeeklyReport()

  3. Monday 14 Sepfirst day of the next week
  4. The week endsNew activity counts toward next week.

    Repository · weekly-report.ts

    occurred_at < week_end_utc

    the boundary in inWeeklyReport()

  5. Sunday’s record arrivesThe import runs late, but the activity still belongs to last week.

    Rollout issue · WR-218

    “Weekend import missing from the weekly report.”

  6. The report is finalizedLate records have had nine hours to arrive.

    Decision note · DR-021

    “Keep the week; finalize at 09:00 Monday so late imports count.”

    names WR-218 · about inWeeklyReport()

Synthetic documents, code, issue and decision. Links shown are references: a wiki page or a decision naming a function, and a decision naming an issue key. Linking wiki pages to code and finding decisions are settings you turn on (decisions use the model you configure). Free includes six connectors (GitHub, GitHub Actions, GitHub Issues, and Claude Code, Codex and Cursor sessions); paid plans include every connector.

What the sources say

Two clocks, not a wrong label

occurred_at

Decides which week an event belongs to. Sunday 23:50 is last week, whenever it arrives.

received_at

Decides whether the event reached this report before it was finalized at 09:00 Monday.

Read both clocks in the code
function inWeeklyReport(event) {
  const inReportingWeek =
    event.occurred_at >= week_start_utc && event.occurred_at < week_end_utc;
  const arrivedBeforeClose = event.received_at <= finalize_after;
  return inReportingWeek && arrivedBeforeClose;
}

The answer

The answer, with its sources

Two colleagues leaning over printed reports and a process sketch on a table
AI-generated illustration.

“The week does end on Sunday. The report waits until 09:00 Monday so weekend records that arrive late still count. See DR-021 and WR-218.”

Written by a teammate, citing what the search turned up.

Write the answer down next to the documents it came from, in the wiki page or the decision note, so the next person who asks finds it too.

Try it

Bring a question that spans your tools.

Connect the sources behind a question your team keeps asking, and see which references Trellis records between them.