# TimeForge: Deterministic Event Timeline & Causal Audit

> Builds one UTC timeline from mixed logs, CSVs, Slack exports and git, then answers what-led-to-X with line-cited evidence and honesty flags.

TimeForge: Deterministic Event Timeline & Causal Audit is a paid AI agent skill on Agensi by Prince Jain, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [Prince Jain](https://www.agensi.io/creators/prince-jain)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-10-17
- Security: scan passed (2026-10-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/timeforge-deterministic-event-timeline-causal-audit
- Tags: devops, testing, database, node-js, incident-response, forensics, log-analysis, timeline

## About this skill

Most temporal-reasoning skills ship a prompt telling the agent how to think about time. The agent then has to sort 5,000 log lines inside its context window, guess at naive timestamps, and invent causality. TimeForge ships the engine instead.

### What it actually runs

`node timeforge.mjs app.log gateway.jsonl deploys.csv alerts.json slack.json gitlog.txt` produces a single normalized timeline.json and a self-contained HTML report:

- Parses 9 timestamp shapes including ISO with ms/us precision, syslog dates, git log stamps, Slack decimal epochs, and Unix ms
- Merges exact duplicates and collapses structurally identical bursts (500 identical retries become one line with count and rate)
- Flags what it cannot prove: TZ-naive stamps, mixed second vs sub-second ordering, non-monotonic write order, clock skew
- Cites every event to its source file, line, or JSON path

`node timeforge-query.mjs timeline.json chain E019` reconstructs the evidence chain around any event. Each link is labeled HARD_LINK (shared trace_id, request_id, span, commit or PR number) or TEMPORAL_PROXIMITY (adjacent in time, nothing else). A baseline-rate check separates NEW_EVENT and ANOMALOUS_SPIKE from BACKGROUND_NOISE so pre-existing error sources are not blamed for the outage.

### What it refuses to do

- It never asserts causation. HARD_LINK means shared identifier, TEMPORAL_PROXIMITY means nothing else.
- It does not silently normalize ambiguous input. Naive timestamps are tagged assumedTZ, not rewritten.
- It emits no confidence scores, root-cause verdicts, or severity ratings. Those are judgement calls; this tool reports evidence.

### Package contents

- 3 zero-dependency Node CLIs (timeline build, query, report)
- 20-test suite (node:test, `npm test`)
- Methodology and input-format reference docs
- Runnable example incident with real fixture inputs and captured output

Node 18+. Works with any SKILL.md-compatible agent.

## Requires

- Git

## Known limitations

Timestamps without explicit offsets are tagged assumedTZ and treated as UTC - verify before trusting cross-source ordering. Ordering inside a second-resolution bucket mixed with sub-second stamps is flagged unprovable. Baseline-rate labels are heuristics over the loaded window, not a traffic model. No cloud ingestion: it reads files you supply, it does not pull from Datadog/CloudWatch itself. Kind classification is lexical, so domain-specific phrasing may land as note.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the TimeForge: Deterministic Event Timeline & Causal Audit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does this replace Datadog or an observability platform?

No. It is a local evidence layer for the files you already have: logs, CSVs, chat exports, git history. It builds the cited timeline your postmortem or agent needs; it does not collect telemetry.

### What counts as a causal link?

Only a shared identifier: trace_id, request_id, span_id, commit SHA or PR number. Everything else is labeled temporal proximity. The tool deliberately cannot assert cause from adjacency alone.

### How is this different from pasting logs into the chat?

Determinism and citations. The same inputs always produce the same timeline, every event links back to file:line, and the agent reads a compact digested slice instead of a 10MB paste that exceeds context.

### What if my logs have no timezone or inconsistent formats?

They are parsed anyway and flagged: assumedTZ for missing offsets, ORDER_AMBIGUOUS for mixed precision, NON_MONOTONIC and CLOCK_SKEW for write-order violations. The output says exactly what it could not prove.

### Is anything sent to a third-party service?

No. Pure Node standard library, runs offline, no network calls, no telemetry. Output files are written locally under DRAFT markers.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
