Milestone [2] Fragment System and File Source#4
Merged
anchan77 merged 1 commit intomaster-modelcode-aifrom Jan 8, 2026
Merged
Conversation
…#2) from gitleaks-milestone_1-3fd64a into project_base Reviewed-on: https://repo.mcode-dev.eng.modelcode.ai/modelcode.ai/gitleaks-dst/pulls/2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
View Milestone
Table of Contents
Status
This milestone was not successfully completed. The milestone branch contains only the code from Milestone 1 (Core Configuration and Rule Engine) with no additional work for Milestone 2.
Task completion status:
The milestone branch
gitleaks-milestone_2-7cdba6is identical to theproject_basebranch, containing only the merged code from Milestone 1. No fragment system, file source, or stdin command implementation exists in the codebase.Feature overview
Milestone 2 was intended to implement the fragment system and file-based source functionality, which would have provided the first functional scanning capability for the Gitleaks Rust migration. The planned features included:
Intended but not implemented:
End-user impact:
Without this milestone, users cannot:
gitleaks stdincommandThe application remains at the configuration-only stage from Milestone 1, with no ability to process actual content.
Architecture
Overview
The architecture diagram below shows the planned system design that was not implemented:
graph TB subgraph "CLI Layer [Not Implemented]" STDIN[stdin Command] end subgraph "Source Layer [Not Implemented]" TRAIT[Source Trait] FILE[File Source] CHUNK[Chunked Reader] ARCHIVE[Archive Handler] end subgraph "Fragment System [Not Implemented]" FRAGMENT[Fragment Struct] COMMIT[CommitInfo Struct] end subgraph "Configuration Layer [From Milestone 1]" CONFIG[Config Parser] RULES[Rule Engine] ALLOWLIST[Allowlist Matcher] end STDIN -.-> FILE FILE -.-> CHUNK FILE -.-> ARCHIVE FILE -.-> FRAGMENT FRAGMENT -.-> COMMIT TRAIT -.-> FILE CONFIG --> RULES CONFIG --> ALLOWLIST style STDIN fill:#ffcccc style TRAIT fill:#ffcccc style FILE fill:#ffcccc style CHUNK fill:#ffcccc style ARCHIVE fill:#ffcccc style FRAGMENT fill:#ffcccc style COMMIT fill:#ffcccc style CONFIG fill:#ccffcc style RULES fill:#ccffcc style ALLOWLIST fill:#ccffcc classDef legend1 fill:#ffcccc classDef legend2 fill:#ccffcc LEGEND1[Not Implemented]:::legend1 LEGEND2[Existing from Milestone 1]:::legend2Legend:
Changes
No code changes were made in this milestone. The milestone branch is identical to the project base, containing only:
Existing from Milestone 1:
src/config/): TOML parsing, rule definitions, allowlist system, configuration extension/merging, keyword prefiltering indexsrc/version.rs): Semantic versioning supportNot implemented in Milestone 2:
FragmentorCommitInfostructs existSuggested order of review
Since no code changes exist in this milestone, there is nothing to review beyond the existing Milestone 1 implementation:
/l2l/mcode/task_specs/): Review what was planned but not delivered/l2l/mcode/MILESTONE.md): Understand the intended scopesrc/config/): The only functional code, carried over from Milestone 1Challenges
The milestone failed to produce any committed code, indicating significant implementation challenges that prevented completion:
Task 3 (Archive Detection and Recursive Extraction) - Failed:
SeekReaderAt, others supporting streaming)Tasks 1 & 2 - Not Committed:
Overall milestone coordination:
Recommended next steps: