An illustrative walkthrough
One question. More of the story.
Ask
Start with a question.
What does this customer-profile change affect? Trellis connects it to the code, the decision, the data and the work item behind it.
What does this change affect?
- Source code
updateCustomer()
customer-service / profile.ts
- Decision
Keep a change history
Why earlier values are kept
- Data
customer_history
Related tables and procedures
- Work item
Profile update flow
Work items linked to their sources
Explore
Follow the connections.
Follow the route into the code it calls, see which procedure in the connected database writes the history table, and read the decision behind the behavior.
What depends on this?
Code relationships
PATCH /customers/:id
calls ↓
updateCustomer()
customer-service / profile.ts
calls ↓
saveProfile()
recordChange()
Source: customer-service / profile.ts
What writes the history table?
SQL → data
record_change
writes to ↓
customer_history
- customer_id
- Which customer
- previous_value
- The earlier value
- changed_at
- When it changed
Source: customer database · record_change
Why was it built this way?
Supporting decision
Keep a change history.
Customers need to see what changed in their account and when.
Implication for this change
Review whether the new update flow still records the previous value.
Source: docs / decisions / 014-profile-history.md
Adopt
Bring the team onto a shared setup.
Coming soon: an admin saves the team’s settings once in the Trellis console. Each installation picks them up and reports the version it holds.
Configuration version12
- Install A reports 12Up to date
- Install B reports 12Up to date
- Install C reports 11Behind
- Install D last seen 9 days agoNot heard from
On your own code
Try it on your own code.
The platform
The platform behind the walkthrough.
Code Intelligence
Explore symbols, callers and routes, then follow the connection to the documents and decisions that reference them.
Data Relationships
Trace how views, procedures and triggers in a connected database read and write tables and columns, alongside the code in the same investigation.
Managed Configuration
Coming soon: publish your team’s settings once and see which installations have picked them up.
Your question