From 515f7d06f521be9ddd590f32fada47e0765043ff Mon Sep 17 00:00:00 2001 From: Tom Softreck Date: Tue, 13 Oct 2026 22:58:37 +0200 Subject: [PATCH] fix(terminal): decouple hardcoded docstring path (ticket-008) --- code2logic/terminal.py | 2 +- project/TICKETS.md | 1 + project/ticket-008/README.md | 22 ++++++++++++++++++++++ project/ticket-008/intent.json | 24 ++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 project/ticket-008/README.md create mode 100644 project/ticket-008/intent.json diff --git a/code2logic/terminal.py b/code2logic/terminal.py index 3f081ba..6be69d7 100644 --- a/code2logic/terminal.py +++ b/code2logic/terminal.py @@ -4,7 +4,7 @@ Renders markdown codeblocks with ANSI colors in terminal. Provides syntax highlighting for YAML, JSON, Python, Bash, Markdown. -Based on: /home/tom/github/wronai/contract/src/python/reclapp/evolution/shell_renderer.py +Based on: contract:reclapp/evolution/shell_renderer.py Usage: from code2logic.terminal import render, ShellRenderer diff --git a/project/TICKETS.md b/project/TICKETS.md index b73eb25..b052bc2 100644 --- a/project/TICKETS.md +++ b/project/TICKETS.md @@ -8,4 +8,5 @@ | **ticket-004** | [`README.md`](./ticket-004/README.md) | - | - | - | - | - | | **ticket-005** | [`README.md`](./ticket-005/README.md) | - | - | - | - | - | | **ticket-006** | [`README.md`](./ticket-006/README.md) | - | - | - | - | - | +| **ticket-007** | [`README.md`](./ticket-007/README.md) | - | - | - | - | - | diff --git a/project/ticket-008/README.md b/project/ticket-008/README.md new file mode 100644 index 0000000..19027ae --- /dev/null +++ b/project/ticket-008/README.md @@ -0,0 +1,22 @@ +# Ticket 008: Fix hardcoded docstring path in terminal.py + +- **ID**: ticket-008 +- **Owner**: unresolved:human +- **Status**: IN_PROGRESS +- **Workflow state**: EDIT +- **Created**: 2026-10-13 + +## Goal and scope + +Eliminate hardcoded `/home/tom` user path in `code2logic/terminal.py` in accordance with `wellmanifest/nohardcode` (`NOHARDCODE-009`). + +## Acceptance criteria + +- [x] AC-01: Replace hardcoded absolute user home path in `code2logic/terminal.py` with relative contract reference. +- [x] AC-02: Governance check passes (`GOV-PASS`). +- [x] AC-03: Test suite passes. + +## Tracking boundary + +This directory contains the minimal reviewed intent. Optional participant prose +and raw command logs are not required delivery output. diff --git a/project/ticket-008/intent.json b/project/ticket-008/intent.json new file mode 100644 index 0000000..0fe456a --- /dev/null +++ b/project/ticket-008/intent.json @@ -0,0 +1,24 @@ +{ + "schema": "new-project.intent/v3", + "ticket": "ticket-008", + "summary": "Fix hardcoded docstring path in terminal.py", + "workstream": "application", + "classification": { + "kind": "SERVICE", + "priority": "P2", + "origin": "health" + }, + "allowedPaths": [ + "project/ticket-008/**", + "TODO.md", + "project/TICKETS.md", + "code2logic/terminal.py" + ], + "forbiddenPaths": [ + "project/ticket-*/user-*.md" + ], + "stacks": [], + "dependsOn": [], + "conflictsWith": [], + "integrationTicket": null +}