Compare commits

..
6 Commits
5 changed files with 43 additions and 21 deletions

No files matched your search

+1 -1
View File
@@ -98,4 +98,4 @@ Inspect `00-inbox/commit-log.csv` to confirm the row exists and adheres to RFC 4
* **Producer**: `git-commit` invokes `commit-logger` upon verifying the created commit SHA. External or manual commits may trigger `scripts/log-commit.sh` via a Git `post-commit` hook. * **Producer**: `git-commit` invokes `commit-logger` upon verifying the created commit SHA. External or manual commits may trigger `scripts/log-commit.sh` via a Git `post-commit` hook.
* **Storage**: `00-inbox/commit-log.csv` is an append-only raw event ledger. It is exempt from `inbox-curation` triage. * **Storage**: `00-inbox/commit-log.csv` is an append-only raw event ledger. It is exempt from `inbox-curation` triage.
* **Consumer (planned, not built yet)**: a future `journal-builder` (`/journal`) would consume the accumulated records in `commit-log.csv` in batches to conduct retrospectives, drive Socratic learning loops, and synthesize daily journals in `03-records/journal/`. * **Consumer**: `journal-builder` (`/journal`) consumes the accumulated records in `commit-log.csv`, resolves project directories via the active agent profile, checks assessment provenance via journal frontmatters, conducts collaborative reconstruction, and drives the closed assessment loop to synthesize daily journals in `03-records/journal/`.
+2 -2
View File
@@ -28,7 +28,7 @@ This extension skill governs the systematic ingestion and curation of unprocesse
3. **Zero Dangling Drafts**: Once a draft is curated and relocated to its destination, the original file in the staging directory must be deleted. 3. **Zero Dangling Drafts**: Once a draft is curated and relocated to its destination, the original file in the staging directory must be deleted.
4. **Interactive Checkpoint**: The agent must present the proposed destination, frontmatter, and rationale to the user before relocating files, unless explicitly instructed to process autonomously. 4. **Interactive Checkpoint**: The agent must present the proposed destination, frontmatter, and rationale to the user before relocating files, unless explicitly instructed to process autonomously.
5. **Atomic Curation Boundary**: Each curated document or cohesive bundle is relocated and validated as an independent unit. Git history is mutated only through `git-commit`. 5. **Atomic Curation Boundary**: Each curated document or cohesive bundle is relocated and validated as an independent unit. Git history is mutated only through `git-commit`.
6. **Unique Daily Journal & Reconciliation**: A daily journal (`03-records/journal/YYYY-MM-DD.md`) is a unique daily artifact. When a curated draft targets a date whose journal already exists, reconcile it with the existing record rather than creating a duplicate file (`-2.md`) or blindly overwriting. Reconciliation must preserve existing human edits and integrate genuinely new wins, artifacts, objectives, and reflections while avoiding duplicate entries. 6. **Unique Daily Journal & Reconciliation**: A daily journal (`03-records/journal/YYYY-MM-DD.md`) is a unique daily artifact. When a curated draft targets a date whose journal already exists, reconcile it with the existing record rather than creating a duplicate file (`-2.md`) or blindly overwriting. Reconciliation must preserve existing human edits, union the `assessed_commits` frontmatter list, and integrate genuinely new wins, artifacts, objectives, and reflections while avoiding duplicate entries.
--- ---
@@ -91,7 +91,7 @@ Present a 4-point curation checkpoint to the user:
- Ensure external code links use forge Git URLs (never machine-specific `file:///` URIs). - Ensure external code links use forge Git URLs (never machine-specific `file:///` URIs).
2. **Write or Reconcile Target File**: 2. **Write or Reconcile Target File**:
- *New document*: Write the transformed document directly to the destination path. - *New document*: Write the transformed document directly to the destination path.
- *Existing daily journal*: Perform journal-aware reconciliation. Preserve existing human-authored edits, append new project sections/wins, append new decisions/artifacts, and record new learning edge outcomes without duplicating entries. - *Existing daily journal*: Perform journal-aware reconciliation. Preserve existing human-authored edits, append new project sections/wins, append new decisions/artifacts, union `assessed_commits` in YAML frontmatter, and record new learning edge outcomes without duplicating entries.
3. **Remove Staging File**: Delete the original file from `00-inbox/`. 3. **Remove Staging File**: Delete the original file from `00-inbox/`.
### Step 6: Validation Pass ### Step 6: Validation Pass
+10
View File
@@ -21,3 +21,13 @@ Use the ask-question tool if available; otherwise a numbered list.
- My skills live in `~/Projects/active/skills`. Edit them there, never in an installed copy. - My skills live in `~/Projects/active/skills`. Edit them there, never in an installed copy.
- Durable notes default to `~/Brain/00-inbox/`. Use `document` to decide if one is warranted. - Durable notes default to `~/Brain/00-inbox/`. Use `document` to decide if one is warranted.
## Workspaces and resolution
- Active codebases and workspaces resolve under:
- `~/Projects/active/` (active tools and applications)
- `~/Projects/tests/` (benchmarks, experiments, and spikes)
- `~/Homelab/Sites/` and `~/Homelab/Core/` (self-hosted services)
- `~/Brain/` (knowledge vault)
- `~/Config/` (system and NixOS configuration)
- When resolving a project from the commit ledger, search these workspace roots before asking the user.
@@ -9,6 +9,7 @@ A Daily Journal is a durable, evidence-grounded record of a day's engineering ac
* **Purpose**: Capture the terminal state of a day's work across projects, record verified mental models, and preserve active learning edges for future study. * **Purpose**: Capture the terminal state of a day's work across projects, record verified mental models, and preserve active learning edges for future study.
* **Grounding**: Derived from primary evidence (commit ledger, git history) and interactive reflection, never from passive memory or auto-summarized activity narration. * **Grounding**: Derived from primary evidence (commit ledger, git history) and interactive reflection, never from passive memory or auto-summarized activity narration.
* **Mutability**: Journals are date-scoped historical records. Once curated, existing human-authored content must be preserved; subsequent journal runs may extend the same day's record with genuinely new work, learning, and reflections. * **Mutability**: Journals are date-scoped historical records. Once curated, existing human-authored content must be preserved; subsequent journal runs may extend the same day's record with genuinely new work, learning, and reflections.
* **Assessment Provenance**: The `assessed_commits` list in YAML frontmatter contains the full 40-character Git commit SHAs incorporated into the journal's assessment loop. This provides a deterministic, machine-readable boundary distinguishing processed history from unassessed ledger events.
--- ---
@@ -22,6 +23,9 @@ date: YYYY-MM-DD
tags: tags:
- project-name - project-name
- technology-or-topic - technology-or-topic
assessed_commits:
- 42927b9858c1b091bb6e78d3abcf6f9500bd7547
- fee7429a1064193c066b8c20bd6927977599a67f
--- ---
``` ```
+26 -18
View File
@@ -2,7 +2,7 @@
name: journal-builder name: journal-builder
description: >- description: >-
Turn a day's accumulated engineering history into a structured journal through Turn a day's accumulated engineering history into a structured journal through
evidence-based reconstruction, locked learning objectives, and a closed assessment loop. collaborative reconstruction, locked learning objectives, and a closed assessment loop.
--- ---
# Journal Builder # Journal Builder
@@ -14,20 +14,19 @@ description: >-
- Not for deliberate coding practice drills; use `practice`. - Not for deliberate coding practice drills; use `practice`.
## Steps ## Steps
1. **Target the day and check history.** Establish the date window from argument or current day. 1. **Target the day and check history.** Establish the date window from argument or today.
Read events from the ledger (e.g. `commit-log.csv`) or recent repository `git log`. Read events from the ledger (e.g. `commit-log.csv`) or recent repository `git log`.
- **Provenance boundary**: A journal records the commit events incorporated into its - **Provenance check**: Read `assessed_commits` frontmatter across existing journals.
reconstruction (under Decisions & Artifacts). These references serve as the durable boundary Only events whose full 40-character SHA is absent proceed as unassessed work.
distinguishing previously assessed work from new ledger events. - **Backlog check**: If unassessed events exist from prior dates, surface them and ask
- **Backlog check**: If older ledger events exist that are not yet incorporated in any journal whether to process the older backlog chronologically first.
record, surface them and ask whether to process the older date first (preserve temporal fidelity). - **Resolve locations**: Resolve project identities to local paths using the agent profile.
- **Incremental run**: If a journal record already exists for the target date, compare ledger 2. **Reconstruct collaboratively.** Inspect resolved repositories (diffs, tests, docs).
events against incorporated commits. Only new substantive work proceeds to assessment. Formulate the reconstruction checkpoint (sources, narrative, domains, uncertainties).
2. **Reconstruct by project and domain.** Group new unassessed commits by project, then by Pause and confirm the context before formulating any questions.
technical domain (e.g. auth, deployment, architecture). Summarize what changed. 3. **Lock learning objectives.** Once reconstruction is confirmed, select the smallest useful
3. **Lock learning objectives.** Select the smallest useful set of independently assessable set of atomic learning objectives from substantive work. Formulate a hidden expected answer
learning objectives from substantive work. Objectives must be atomic (one independently and rubric before asking. Skip routine work.
testable understanding). Formulate a hidden expected answer before asking. Skip routine work.
4. **Run the assessment loop.** Present one objective and question at a time. 4. **Run the assessment loop.** Present one objective and question at a time.
Expect either `Answer: <explanation>` or `Skip: <reason>`. Expect either `Answer: <explanation>` or `Skip: <reason>`.
After every answer, give concise formative feedback: what was correct, what is missing After every answer, give concise formative feedback: what was correct, what is missing
@@ -37,18 +36,27 @@ description: >-
- **Incorrect / Unresolved**: provide smallest evidence (code line, diff, log) -> retry. - **Incorrect / Unresolved**: provide smallest evidence (code line, diff, log) -> retry.
- **Skip: I'm exhausted**: mark Deferred and move to next. - **Skip: I'm exhausted**: mark Deferred and move to next.
- **Retries fail or Skip: I don't get it**: mark Unresolved (learning edge) and continue. - **Retries fail or Skip: I don't get it**: mark Unresolved (learning edge) and continue.
5. **Synthesize the candidate journal.** Structure the entry with Wins by project, 5. **Synthesize the candidate journal.** Include `assessed_commits` in YAML frontmatter.
Decisions/Artifacts, Mistakes & Learning Edges (with objective outcomes), and Technical Reflections. Structure body with Wins by project, Decisions/Artifacts, Mistakes & Learning Edges
(with objective outcomes), and Technical Reflections.
6. **Hand off to `document`.** Pass the candidate journal to `document` to classify, 6. **Hand off to `document`.** Pass the candidate journal to `document` to classify,
author, and stage the draft. Do not choose or prompt for storage destinations. author, and stage the draft. Do not choose or prompt for storage destinations.
## Reconstruction checkpoint
Before locking objectives, present the reconstructed context:
- **Sources**: Inspected repos, commit SHAs, related docs or notes.
- **Narrative**: What was built, refactored, or tested, and observed results.
- **Domains**: Technical concepts involved (e.g. auth flows, token dynamics).
- **Uncertainties**: Missing context, unstated rationale, or ambiguous intent.
Pause for confirmation: "Does this reconstruction match the work you want to review?"
## Your call ## Your call
- **Backlog triage**: whether to process older unassessed work before today. - **Backlog triage**: whether to process older unassessed work before today.
- **Confirm the day's scope**: whether the detected projects and domains match the day's work. - **Confirm reconstruction**: whether sources, narrative, and domains match your actual work.
- **Respond to objectives**: provide `Answer: ...` or `Skip: <reason>`. - **Respond to objectives**: provide `Answer: ...` or `Skip: <reason>`.
## Done when ## Done when
- All locked learning objectives are assessed and the candidate journal is handed off to `document`. - All locked learning objectives are assessed and candidate journal is handed off to `document`.
## Hands off to ## Hands off to
- `document`: to author and stage the candidate journal draft. - `document`: to author and stage the candidate journal draft.