TraceFact: Taking Runtime Evidence Beyond the Local Database
A follow up to TraceFact's runtime observability work, covering CLI-based evidence export, evidence bundles, and the effort to make application behaviour easier to investigate, preserve, and review.
In my previous article, I introduced TraceFact, a local-first runtime observability tool that records application behaviour and helps investigate changes between runs.
Since then, my work has moved towards another part of the problem: what happens after runtime evidence has been collected?
Recording process activity and comparing runs are useful, but debugging often requires more. You may need to export the observations, inspect them outside the original environment, or preserve them for later investigation.
That is what I have been working on recently.
1. Moving Beyond Runtime Collection
TraceFact already records process information, process start and exit events, and experimental TCP connection metadata.
The observations are stored locally in SQLite, where completed runs can be inspected and compared against named baselines.
However, keeping everything inside a local database creates a practical limitation.
What happens when you want to examine a particular run separately, preserve its evidence, or share relevant findings with someone else?
I wanted to make that workflow easier without changing TraceFact's local-first approach.
2. Adding CLI-Based Evidence Export
One of the recent additions is a command-line export capability.
The idea is to make recorded runtime information accessible through the CLI instead of making users depend entirely on the application's internal storage.
A command-line workflow also makes it easier to incorporate evidence export into debugging routines and other developer workflows.
For a tool focused on observability, exporting collected information should be part of the normal workflow, not an afterthought.
3. Working on Evidence Bundles
Another area I have been working on is evidence bundle support.
There is a difference between exporting an individual observation and collecting related evidence into a package that can be examined together.
For example, investigating an application after an update may involve looking at:
- Process information and process relationships.
- Process start and exit events.
- Available network connection metadata.
- Differences between a previous baseline and a newer run.
These observations provide different pieces of information about application behaviour.
The goal of evidence bundles is to make relevant recorded information easier to preserve and review together.
I also want to keep the distinction between an observation and an interpretation clear. A change in process behaviour or a new network endpoint may be worth investigating, but it does not automatically explain why that change occurred.
TraceFact should preserve the evidence rather than present an assumption as a confirmed cause.
4. Keeping Evidence Local and Reviewable
Privacy remains an important part of TraceFact's design.
The project follows a local-first approach, with SQLite used for local storage. The experimental TCP observer records connection metadata rather than network payloads.
Exported evidence still needs careful handling. Process details and network endpoints can contain information that users may not want to share publicly.
An export workflow should make evidence accessible without making users forget what that evidence contains.
5. What I Am Working Towards
TraceFact is still under active development.
My current focus is improving the existing observation and export workflows before expanding into more areas.
Some of the areas I want to continue working on include:
- More consistent evidence export and inspection.
- Better comparisons between runtime observations.
- Filesystem and dependency observation.
- Additional security checks.
- A more complete user interface.
- LLM-assisted analysis that remains connected to the original recorded evidence.
I am particularly interested in the last point. An LLM could help explain differences between two runs, but its explanations should always be traceable to the actual observations collected by TraceFact.
6. A Question for Other Developers
When debugging an unexpected application change, collecting information is only part of the work. Being able to preserve and revisit that information matters too.
I am interested in how other developers handle this.
When you investigate a runtime issue, would you prefer a single evidence bundle containing the relevant observations and comparisons, or separate exports for each type of observation?
TraceFact is still evolving, and feedback from people who work with debugging, observability, and developer tooling would be useful as I continue building it.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article