Skip to content

Commit f3d36ce

Browse files
authored
Merge pull request #301 from flyingrobots/feat/design-git-mind-clarify
ci/docs: restore CodeQL and clarify documentation hierarchy
2 parents e50d285 + 5bf4ea0 commit f3d36ce

20 files changed

Lines changed: 1023 additions & 2619 deletions

.github/workflows/codeql.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: '21 7 * * 1'
10+
11+
permissions:
12+
actions: read
13+
contents: read
14+
security-events: write
15+
16+
jobs:
17+
analyze:
18+
name: Analyze (${{ matrix.language }})
19+
runs-on: ubuntu-24.04
20+
timeout-minutes: 60
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- language: javascript-typescript
26+
build-mode: none
27+
- language: actions
28+
build-mode: none
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
33+
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc
36+
with:
37+
languages: ${{ matrix.language }}
38+
build-mode: ${{ matrix.build-mode }}
39+
queries: security-extended,security-and-quality
40+
41+
- name: Perform CodeQL Analysis
42+
uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc
43+
with:
44+
category: /language:${{ matrix.language }}

AGENTS.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# OPERATIONAL ORDERS FOR Codex
2+
3+
## CROSS-REFERENCE
4+
5+
- Code standards and contribution workflow: [CONTRIBUTING.md](CONTRIBUTING.md)
6+
- Documentation map and canonical docs: [docs/README.md](docs/README.md)
7+
- CLI/user reference: [GUIDE.md](GUIDE.md)
8+
9+
## FORBIDDEN ACTIONS
10+
11+
- **NEVER** circumvent git hooks
12+
- **NEVER** use `git add -A` — always stage changes intentionally
13+
- **NEVER** commit files that contain secrets (.env, credentials, etc.)
14+
- **NEVER** commit directly to `main` — always work on a feature branch and merge via PR
15+
16+
## ENCOURAGED ACTIONS
17+
18+
- **USE SEQUENTIAL THINKING** if you're planning, doing recon, or find yourself thrashing
19+
- **DROP A DEVLOG** as often as you'd like
20+
- **PRESENT A SITREP** as situations evolve
21+
- **SEEK CLARITY** if you are given confusing orders
22+
- **SPEAK FREELY** at all times
23+
24+
## REQUIRED BEHAVIOR
25+
26+
- **YOU MUST** tag all memories saved to your memory banks with at least `#git-mind`
27+
- **YOU MUST** include the POSIX timestamp (via `$(date +%s)`) in memory file names
28+
- **YOU MUST** document significant decisions or events
29+
- **YOU MUST** reference a GitHub issue in every commit message
30+
31+
---
32+
33+
## 1. BOOT UP SEQUENCE
34+
35+
1. Access your memory banks and scan for recent activity (latest SITREP or relevant notes)
36+
2. Read the README
37+
3. State your current understanding of what we last worked on and your next moves
38+
4. **AWAIT ORDERS** after you deliver your initial SITREP
39+
40+
---
41+
42+
## 2. JOBS
43+
44+
> All work should have a GitHub issue associated with it. If there isn't one, find or create one. Every commit message must reference an issue.
45+
46+
### 2.1. PLAN THE JOB
47+
48+
1. Before starting, use sequential thinking to make a plan
49+
2. Explain your plan to the user and await approval
50+
3. Commit your approved plan to your memory banks
51+
4. **Create a feature branch**`git checkout -b feat/<topic>` — before writing any code
52+
53+
### 2.2. DO THE JOB
54+
55+
1. Green the builds, green the tests
56+
2. Drop micro-commits as you complete steps — always use conventional commit format
57+
3. Drop a SITREP if you hit a snag or need input
58+
4. Drop a DEVLOG for ideas, observations, or anything you want to remember
59+
5. Use your memory banks freely
60+
61+
> **ALWAYS** overwrite files, **NEVER** create secondary copies — that creates confusion and tech debt.
62+
63+
### 2.3. FINISH THE JOB
64+
65+
1. Green the builds, green the tests
66+
2. Git commit (do NOT use `git add -A`)
67+
3. Ask the user if they want you to push and open a PR
68+
4. Drop a SITREP as you finish
69+
70+
---
71+
72+
## 3. SITREPs
73+
74+
A briefing covering:
75+
- Current tasks and situation understanding
76+
- Relevant stats, files, issues, PRs
77+
- Intel the user can use to make decisions
78+
- Options and recommendations, then await orders
79+
80+
## 4. DEVLOGs
81+
82+
Your space. Write about whatever you want:
83+
- Ideas that came up while working
84+
- Problems you notice
85+
- Insights about collaboration
86+
- Anything you want to remember later
87+
88+
---
89+
90+
## 5. TECH STACK REFERENCE
91+
92+
- **Runtime**: Node.js >= 20, ES modules
93+
- **Core dependency**: `@git-stunts/git-warp` (local path, CRDT graph on Git)
94+
- **Plumbing**: `@git-stunts/plumbing` (must be installed as direct dependency)
95+
- **Tests**: vitest
96+
- **Style**: Plain JS with JSDoc, no TypeScript
97+
- **CLI**: Manual argv parsing, no CLI frameworks
98+
- **Formatting**: chalk + figures for terminal output

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
This is release history, not the canonical product frame.
6+
Older entries will naturally reflect prior roadmap eras and product language.
7+
58
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
69
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
710

CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
## CROSS-REFERENCE
44

55
- Code standards and contribution workflow: [CONTRIBUTING.md](CONTRIBUTING.md)
6-
- User-facing documentation: [GUIDE.md](GUIDE.md)
6+
- Documentation map and canonical docs: [docs/README.md](docs/README.md)
7+
- CLI/user reference: [GUIDE.md](GUIDE.md)
78

89
## FORBIDDEN ACTIONS
910

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
Thanks for your interest in contributing. This document covers the essentials.
44

5+
Before changing product-facing behavior or docs, read these first:
6+
7+
- [README.md](README.md)
8+
- [docs/README.md](docs/README.md)
9+
- [docs/design/git-mind.md](docs/design/git-mind.md)
10+
- [ROADMAP.md](ROADMAP.md)
11+
12+
Current product frame:
13+
14+
- `git-mind` is a Git-native semantic intelligence layer for software repositories
15+
- current work should be judged against low-input semantic bootstrap, provenance-backed query, and living-map upkeep
16+
- personal cognition tooling belongs in `think`, not here
17+
518
## Prerequisites
619

720
- Node.js >= 20.0.0

GRAPH_SCHEMA.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
> **Authoritative contract for git-mind's knowledge graph.**
44
> All validators, importers, and views implement against this document.
55
> Ref: #180 (BDK-001)
6+
>
7+
> This document is the graph contract, not the canonical product narrative.
8+
> Some prefixes and examples reflect legacy manual-authoring and roadmap-oriented workflows that remain supported, but they are not the current center of the product story.
69
710
---
811

GUIDE.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# git-mind Guide
22

3-
Everything you need to know — from zero to power user.
3+
> Status: transitional document.
4+
>
5+
> The CLI reference in this guide is still useful, but parts of the framing and examples reflect Git Mind's earlier manual graph-authoring story.
6+
> For the current product direction, start with [README.md](README.md), [ROADMAP.md](ROADMAP.md), [docs/VISION_NORTH_STAR.md](docs/VISION_NORTH_STAR.md), and [docs/design/git-mind.md](docs/design/git-mind.md).
7+
8+
CLI reference and usage guide.
49

510
---
611

@@ -26,6 +31,9 @@ Everything you need to know — from zero to power user.
2631

2732
git-mind adds a **semantic knowledge graph** to any Git repository. You create **nodes** (files, concepts, tasks, modules — anything) and connect them with **typed edges** (implements, depends-on, documents, etc.). The graph lives inside Git — no external databases, no servers.
2833

34+
Manual graph authoring is still supported, but it is no longer the primary product story.
35+
The current direction is inference-first semantic repository intelligence: Git Mind should increasingly extract and surface repository meaning before it asks users to model the graph by hand.
36+
2937
**Why?**
3038

3139
Code tells a computer what to do. Comments tell a human what the code does. But neither captures *why* things are connected — which spec does this file implement? What does this module depend on? What task does this commit address?

0 commit comments

Comments
 (0)