Skip to content

Commit 8580b99

Browse files
committed
feat: add TestDescKeyYAMLLinkage, quarantine 20 orphan YAML entries
Bidirectional linkage check between DescKey constants and YAML asset files. Every YAML key must have a DescKey constant; every DescKey value must exist as a YAML key. Caught and quarantined 20 orphan YAML entries left behind by the dead export cleanup in the previous commit. Signed-off-by: Jose Alekhinne <jose@ctx.ist>
1 parent 6a39186 commit 8580b99

5 files changed

Lines changed: 243 additions & 74 deletions

File tree

internal/assets/commands/text/errors.yaml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,8 @@ err.add.file-not-found:
55
short: "context file %s not found. Run 'ctx init' first"
66
err.add.index-update:
77
short: 'failed to update index in %s: %w'
8-
err.add.missing-decision:
9-
short: |-
10-
decisions require complete ADR format
11-
12-
Missing required flags: %s
13-
14-
Usage:
15-
ctx add decision "Decision title" \
16-
--context "What prompted this decision" \
17-
--rationale "Why this choice over alternatives" \
18-
--consequence "What changes as a result"
19-
20-
Example:
21-
ctx add decision "Use PostgreSQL for primary database" \
22-
--context "Need a reliable database for production workloads" \
23-
--rationale "PostgreSQL offers ACID compliance, JSON support, and team familiarity" \
24-
--consequence "Team needs PostgreSQL training; must set up replication"
258
err.add.missing-fields:
269
short: '%s missing required fields: %s'
27-
err.add.missing-learning:
28-
short: |-
29-
learnings require complete format
30-
31-
Missing required flags: %s
32-
33-
Usage:
34-
ctx add learning "Learning title" \
35-
--context "What prompted this learning" \
36-
--lesson "The key insight" \
37-
--application "How to apply this going forward"
38-
39-
Example:
40-
ctx add learning "Go embed requires files in same package" \
41-
--context "Tried to embed files from parent directory, got compile error" \
42-
--lesson "go:embed only works with files in same or child directories" \
43-
--application "Keep embedded files in internal/templates/, not project root"
4410
err.add.no-content:
4511
short: no content provided
4612
err.add.no-content-provided:
@@ -70,8 +36,6 @@ err.backup.create-archive-dir:
7036
short: 'failed to create archive directory: %w'
7137
err.backup.create-backup:
7238
short: 'failed to create backup %s: %w'
73-
err.backup.create-backup-generic:
74-
short: 'failed to create backup: %w'
7539
err.backup.invalid-backup-scope:
7640
short: 'invalid scope %q: must be project, global, or all'
7741
err.backup.invalid-smb-url:
@@ -148,8 +112,6 @@ err.date.invalid-date-value:
148112
short: invalid date %q (expected YYYY-MM-DD)
149113
err.deps.cargo-metadata-failed:
150114
short: 'cargo metadata failed: %w'
151-
err.deps.cargo-not-found:
152-
short: 'cargo not found in PATH: install Rust toolchain to analyze Cargo projects'
153115
err.deps.parse-cargo-metadata:
154116
short: 'parsing cargo metadata: %w'
155117
err.fs.boundary-violation:

internal/assets/commands/text/hooks.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ skill-discovery.content:
102102
choice, or discover something surprising.
103103
skill-discovery.relay-prefix:
104104
short: 'Session tip: skills available for mid-session use.'
105-
skill-discovery.relay-message:
106-
short: Skill discovery nudge
107105
check-context-size.billing-box-title:
108106
short: Billing Threshold
109107
check-context-size.billing-fallback:
@@ -329,13 +327,6 @@ context-load-gate.footer:
329327
context-load-gate.header:
330328
short: |
331329
PROJECT CONTEXT (auto-loaded by system hook - already in your context window)
332-
context-load-gate.index-fallback:
333-
short: (no index entries)
334-
context-load-gate.index-header:
335-
short: |+
336-
--- %s (index - read full entries by date when relevant) ---
337-
%s
338-
339330
context-load-gate.oversize-action:
340331
short: |
341332
Action: Run /ctx-consolidate to distill context files.

internal/assets/commands/text/ui.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,6 @@ memory.publish-title:
348348
short: |+
349349
# Project Context (managed by ctx)
350350
351-
pad.key-created:
352-
short: Scratchpad key created at %s
353351
prune.dry-run-line:
354352
short: ' would prune: %s (age: %s)'
355353
prune.dry-run-summary:
@@ -358,8 +356,6 @@ prune.error-line:
358356
short: ' error removing %s: %v'
359357
prune.summary:
360358
short: Pruned %d files (skipped %d recent, preserved %d global)
361-
rc.parse_warning:
362-
short: 'ctx: warning: failed to parse %s: %v (using defaults)'
363359
stats.empty:
364360
short: No stats recorded yet.
365361
stats.header-format:
@@ -457,38 +453,22 @@ task-snapshot.saved:
457453
short: ✓ Snapshot saved to %s
458454
time.ago:
459455
short: ' ago'
460-
time.commit:
461-
short: commit
462456
time.commit-count:
463457
short: 1 commit
464-
time.commits:
465-
short: commits
466458
time.commits-count:
467459
short: '%d commits'
468-
time.day:
469-
short: day
470460
time.day-count:
471461
short: 1 day
472-
time.days:
473-
short: days
474462
time.days-count:
475463
short: '%d days'
476-
time.hour:
477-
short: hour
478464
time.hour-count:
479465
short: 1 hour
480-
time.hours:
481-
short: hours
482466
time.hours-count:
483467
short: '%d hours'
484468
time.just-now:
485469
short: just now
486-
time.minute:
487-
short: minute
488470
time.minute-count:
489471
short: 1 minute
490-
time.minutes:
491-
short: minutes
492472
time.minutes-count:
493473
short: '%d minutes'
494474
watch.apply-failed:

internal/assets/commands/text/write.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ write.init-backup:
179179
short: ' ✓ %s (backup)'
180180
write.init-created-dir:
181181
short: ' ✓ %s/'
182-
write.init-created-with:
183-
short: ' ✓ %s%s'
184182
write.init-creating-root-files:
185183
short: Creating project root files...
186184
write.init-ctx-content-exists:
@@ -718,16 +716,11 @@ write.journal-source-detail-int:
718716
short: '%s %d'
719717
write.journal-source-section-heading:
720718
short: '%s %s'
721-
write.journal-source-bullet-item:
722-
short: '- %s'
723719
write.unpublish-not-found:
724720
short: No published block found in %s.
725721
write.wikilink-list-item:
726722
short: "- %s%s"
727723

728-
write.notify-close-response:
729-
short: "ctx: close response body: %v"
730-
731724
write.context-dir-label:
732725
short: "Context: %s"
733726
write.context-dir-bracket:

0 commit comments

Comments
 (0)