Files
taskgraph_ts/tasks/implementation/graph/export.md
glm-5.1 131e3e929b Decompose architecture into 28 atomic implementation tasks
Break the @alkdev/taskgraph architecture specs into dependency-ordered
implementation tasks across 8 component directories: setup, schema,
error, graph, analysis, cost-benefit, frontmatter, api, and review.
Each task has clear acceptance criteria referencing specific architecture
docs. Three review tasks serve as quality gates at critical junction
points (schemas-and-errors, graph-complete, complete-library). The
dependency graph is validated acyclic with 9 topological levels enabling
significant parallelism across independent work streams.
2026-04-27 08:30:05 +00:00

1.1 KiB

id, name, status, depends_on, scope, risk, impact, level
id name status depends_on scope risk impact level
graph/export Implement TaskGraph export methods (export, toJSON) pending
graph/taskgraph-class
single trivial component implementation

Description

Implement the export() and toJSON() methods on TaskGraph. These wrap graphology's export() to produce TaskGraphSerialized output.

Acceptance Criteria

  • export(): TaskGraphSerialized — wraps graph.export() and validates the output conforms to the TaskGraphSerialized schema
  • toJSON(): TaskGraphSerialized — alias for export() (enables JSON.stringify(graph) to work)
  • Exported data includes all node attributes and edge attributes (including qualityRetention)
  • Round-trip: TaskGraph.fromJSON(graph.export()) produces an equivalent graph
  • Unit test: create graph, add tasks/edges, export, round-trip through fromJSON, verify equivalence

References

  • docs/architecture/api-surface.md — export/toJSON methods
  • docs/architecture/schemas.md — TaskGraphSerialized schema

Notes

To be filled by implementation agent

Summary

To be filled on completion