Skip to content

Conversation

@tommcd
Copy link
Owner

@tommcd tommcd commented Nov 23, 2025

Summary

  • add an implementation plan outlining core API refactors and a new document graph feature
  • specify architecture, milestones, quality gates, and testing expectations for future work

Testing

  • not run (documentation changes only)

Codex Task

@gemini-code-assist
Copy link

Summary of Changes

Hello @tommcd, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a detailed implementation plan that will guide the future development of the project. It outlines two major tracks: significant improvements to the core API of the existing bookmarks-to-Markdown tool and the introduction of an entirely new document graph feature. The plan provides a structured approach with clear objectives, architectural considerations, and phased milestones, ensuring a well-defined path for upcoming work.

Highlights

  • Implementation Plan Added: A new document, IMPLEMENTATION_PLAN.md, has been added to outline future development.
  • Core API Improvements: The plan details objectives, work breakdown, error handling, extensibility, documentation, and testing for refactoring the existing bookmarks converter API.
  • New Document Graph Feature: A comprehensive plan for a new document graph feature is introduced, covering objectives, proposed architecture, data structures, parsing, transclusion semantics, rendering, and milestones.
  • Structured Development Approach: The plan specifies quality gates, suggested sequencing (milestones), and governance for both tracks of work, ensuring a structured and trackable development process.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a comprehensive implementation plan for core API refactoring and a new document graph feature. The plan is well-structured, detailed, and provides a clear roadmap for future development. My review includes a couple of suggestions to enhance the completeness of the plan, specifically by defining all proposed terms and by explicitly including security considerations in the architecture. Overall, this is an excellent planning document that sets a strong foundation for the upcoming work.

- Provide a declarative configuration/DSL for authoring and rendering graph-based documents.
- Offer rendering backends (Markdown/HTML) that can materialize slices or unified outputs with provenance.

### Proposed Architecture

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This is a very thorough architectural proposal. One aspect that could be explicitly included is security. Since the system will parse various documents and render them (potentially to HTML), addressing security from the design stage is crucial. I suggest adding a dedicated point under this section for security considerations, which could cover:

  • Input sanitization to prevent injection attacks.
  • Safe HTML rendering to mitigate Cross-Site Scripting (XSS) risks.
  • Policies for handling external resources and links.


### Proposed Architecture
1. **Core data structures**
- Immutable graph representation where nodes are content blocks (sections, paragraphs, snippets) and edges are typed (`contains`, `includes`, `refers`, `variant-of`).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The list of typed edges includes variant-of, but its semantics are not defined later in the document alongside contains, includes, and refers (line 69). To ensure clarity in the plan, it would be beneficial to add a definition for what this edge type represents. For instance, does it signify a translation, a summary, or another form of content derivation?

@tommcd
Copy link
Owner Author

tommcd commented Nov 23, 2025

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a comprehensive implementation plan document that outlines future development work for the mdtk (Markdown Toolkit) project. The plan proposes two parallel tracks: refactoring the existing bookmarks converter into a more modular library API, and introducing a new document graph feature that enables advanced document manipulation through splitting, transclusion, and graph-based rendering.

Key Changes

  • Detailed architecture and milestones for refactoring the bookmarks converter into reusable parsing, selection, and rendering layers
  • Specification of a new document graph feature with transclusion semantics, query capabilities, and multiple rendering backends
  • Quality gates, testing expectations, and governance structure for tracking progress

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tommcd
Copy link
Owner Author

tommcd commented Nov 23, 2025

@codex generated this PR for the wrong repo, it should have been for doctk.

@tommcd tommcd closed this Nov 23, 2025
@chatgpt-codex-connector
Copy link

I don’t have access to the doctk repository from here, so I can’t retarget or recreate this PR there. To proceed, please open the same implementation-plan changes in the doctk repo (or grant access to it), and I can reproduce the work in that repository. If you prefer, I can also close this PR or add a note indicating it belongs in doctk.

View task →

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants