SuperAPIAI Directory

tieline

github.com · AI coding

tieline is a business intent layer tool for codebases that links user stories to the code that implements them. Through an AI agent, it reads product context and code, generates capabilities, user stories, and acceptance criteria, and links them to specific code and tests as evidence, forming a semantic business intent layer. It supports reviewing intent in pull requests, grading evidence by the agent, compiling a code topology graph to trace impact scope, and optionally using Postgres to store observations for cross-agent querying.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

tieline is a business intent layer for codebases, designed to link user stories to the code that implements them and provide AI agents with persistent product intent grounded in the code actually delivered.

Purpose

Tieline generates Capabilities, User Stories, and Acceptance Criteria, and links them to the exact code and tests as evidence. By creating a semantic business intent layer grounded in production code, it ensures that information is not lost in transmission between humans and agents.

Main capabilities

  • Reviewed intent: Stories and acceptance criteria evolve alongside the implementation and are accepted through normal pull request review.
  • Graded evidence: A new grader evaluates changed acceptance criteria against bounded source evidence and a closed reference list, returning supported, partial, or unsupported.
  • Derived code topology:tieline code compile Records resolved symbols and static dependencies for exact source code snapshots, letting agents trace code and connect possible impact back to accepted acceptance criteria.
  • Feature tracking from idea to production: In addition to production status, it can also track "Observations" such as feature requests, ideas, and bug reports, thereby tracking a feature's journey from lifecycle to production.
  • Contracts and manifests: Contracts create manifests in the repository. Once synced to optional Postgres, any connected agent—including product, research, and support agents without codebase access—can query main's accepted state and review and update "Observations".

How to use

Agents propose intent: The Tieline skill reads product context and code, then drafts or updates stories, acceptance criteria, and evidence links for review.

Parsers establish code links: Tree-sitter extracts canonical symbols, source ranges, and bounded code snippets. Conservative parsers retain ambiguous and unresolved relationships as diagnostics.

A new agent grades evidence: The grader receives an acceptance criterion, its current evidence, and a closed reference list. Deterministic validation rejects stale or fabricated references.

Review establishes acceptance: YAML, compiled manifests, and code changes flow together. Merging accepts that version's relationships.

Checks make drift visible: When behavior changes, the skill updates intent, and tieline check flags changed evidence, broken links, invalid contracts, and stale artifacts.

Optional Postgres storage adds observations such as feature requests, ideas, and bugs, giving agents context about accepted behavior and future direction.

Quick start

Restart your agent, then run /tieline skill to start the guided setup. The skill will propose initial contracts and code links for review; the generated .tieline/review.html Provides a browser-friendly view.

Postgres is optional. Use it to let all agents query the product's current state and record "observations" such as feature requests alongside the product's current state. The Postgres database is updated on every merge. For configuration, see post-merge sync in Setup.

Acceptance criteria are the primary anchor for code, tests, and observation links. Story-level links remain available when the evidence applies to a broader user outcome.

What agents can query

The exact inventory and topology reads work in the repository. Database-backed reads expose the synced accepted contracts to agents without repository access. Planning tools can also capture observations and shape backlog stories.

How the code graph works

tieline code compile Uses Tree-sitter parsers to build a derived snapshot of the repository source code structure. By default, it is kept outside Git, in .tieline/topology/cache/ , keyed by the exact source and parser inputs it describes, so concurrent pull requests never conflict on the generated topology. Subsequent reads select the graph of the snapshot they inspect without starting parsers or writing to Postgres. Setting "topology_mode": "committed" can commit a reviewed .tieline/topology/graph.json.

Source ranges, source snippets, raw references and resolved facts, and parser diagnostics are not duplicated in the graph.

Explicit impact-scope analysis starts from the provided locators. Git-based comparison starts from every symbol in the changed files plus the endpoints of changed edges. Both traverse static edges in the selected direction—dependencies by default, or dependents on request—and then perform the authored locator-to-acceptance-criteria join. Cycles, external dependencies, ambiguities, and traversal limits remain visible. The result is a bounded impact signal, not a runtime call graph or a guarantee of breakage.

What a contract looks like

An acceptance criterion is complete on its own. Given/When/Then scenarios are optional examples for important conditions or edge cases.

How contracts stay up to date

During implementation, when behavior is added, the Tieline skill proposes new stories and acceptance criteria; when behavior changes, it updates existing definitions; reconciles evidence links; grades changed claims; and refreshes generated artifacts for review.

Run deterministic checks in CI:

Invalid YAML, broken links, and stale generated artifacts cause failures. Changed linked evidence identifies affected acceptance criteria for agent or human review. After merge, an idempotent sync publishes the accepted main to Postgres.

Learn more

See the project documentation for GitHub Actions examples and CLI reference.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools