@antoneeo/mkt-agentic-sdlc-skill 0.30.1 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -1
- package/README.md +3 -3
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/scripts/init.js +6 -6
- package/scripts/lib.js +125 -7
- package/scripts/postinstall.js +13 -1
- package/scripts/preuninstall.js +7 -1
- package/skills/mkt-agentic-sdlc/ENFORCEMENT.md +5 -3
- package/skills/mkt-agentic-sdlc/SKILL.md +2 -2
- package/skills/mkt-agentic-sdlc/dispatch.md +2 -2
- package/skills/mkt-agentic-sdlc/guides.md +33 -9
- package/skills/mkt-agentic-sdlc/scripts/mkt_check.py +2 -1
- package/skills/mkt-agentic-sdlc/scripts/sdlc_core.py +132 -19
- package/skills/mkt-agentic-sdlc/vision.md +308 -308
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
## [
|
|
4
|
+
## [0.32.0] - 2026-11-12
|
|
5
|
+
|
|
6
|
+
### What's new
|
|
7
|
+
|
|
8
|
+
**A guide that governs the work is now read whole before the agent edits.** Agents often read only the first part of a matching guide (a read with a line limit, `head`, a search inside it) and then applied only that part, missing the steps further down. The doctrine now says a matched guide is read from its first line to its last and applied whole; a rule that does not fit is proposed as a change to the guide, never skipped in silence, and the rest still binds. The per-prompt reminder says the same. On Claude Code, and on local Codex sessions where you trusted the installed hooks, the edit check enforces it: an edit is refused until the session's reads of every guide named in its router verdict cover the whole file. A search, `head`, `sed`, a partial read or a subagent brief that names the guide no longer counts as reading it (F-094).
|
|
9
|
+
|
|
10
|
+
#### What to do
|
|
11
|
+
|
|
12
|
+
Everyone who has this package installed: run `npm install -g @antoneeo/mkt-agentic-sdlc-skill@latest`, then `mkt-sdlc-install-skill`, and restart your agent sessions. The install step copies the updated doctrine and validator into your skills directory; sessions already open keep the old check until restarted. Expect one new refusal: if a session only searched or partly read a guide it named in its router verdict, its first edit is refused and the message names the guide. Read the guide whole, with no offset or limit (a guide longer than your client's read cap in consecutive chunks to the end), then edit again. To check it worked, run `npm ls -g @antoneeo/mkt-agentic-sdlc-skill` and look for 0.32.0.
|
|
13
|
+
|
|
14
|
+
## [0.31.0] - 2026-11-08
|
|
15
|
+
|
|
16
|
+
### What's new
|
|
17
|
+
|
|
18
|
+
**With several lenses of the family installed, the per-prompt reminder now names them.** A machine gets one reminder for the whole family, wired by whichever lens was installed first, so a knowledge or marketing task used to see the code lens's line. When other lenses are installed, the line now lists each one with its domain, for example `kb-agentic (knowledge)`, and asks the agent to load the one that governs the work. A single-lens install sees no change. To do this the reminder reads the installed skill names at each prompt (names only), and its length bound rises from 600 to 700 characters (F-093).
|
|
19
|
+
|
|
20
|
+
#### What to do
|
|
21
|
+
|
|
22
|
+
Everyone who has this package installed: run `npm install -g @antoneeo/mkt-agentic-sdlc-skill@latest`, then `mkt-sdlc-install-skill`, and restart your agent sessions. The install step copies the updated validator into your skills directory and wires the reminder if it is missing; sessions already open keep the old one until restarted. To check it worked, run `npm ls -g @antoneeo/mkt-agentic-sdlc-skill` and look for 0.31.0, then start a session: on a machine with more than one lens of the family installed, the one-line reminder shown at each prompt names the installed lenses with their domains.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
**Installing this package now wires the per-turn reminder its ENFORCEMENT.md promised.** Until now only the code lens (agentic-sdlc) installed it, so a machine with this lens alone never received the one-line reminder at each prompt. It is wired on Claude Code alongside the session orientation; if another lens of the family already wired its own reminder, that one stays and nothing is added, so a prompt carries one line. Removing the hook entry is still a standing opt-out, and uninstalling removes only this package's own entry (F-093).
|
|
5
27
|
|
|
6
28
|
## [0.30.1] - 2026-11-04
|
|
7
29
|
|
package/README.md
CHANGED
|
@@ -4,13 +4,13 @@ Evidence-First marketing planning protocol for AI coding agents (Claude Code, Ge
|
|
|
4
4
|
|
|
5
5
|
<!-- whats-new:begin -->
|
|
6
6
|
<!-- generated by scripts/whats_new.js from distributions/mkt-agentic-sdlc/CHANGELOG.md: edit the CHANGELOG, then run node scripts/whats_new.js --write -->
|
|
7
|
-
## What's new in 0.
|
|
7
|
+
## What's new in 0.32.0
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**A guide that governs the work is now read whole before the agent edits.** Agents often read only the first part of a matching guide (a read with a line limit, `head`, a search inside it) and then applied only that part, missing the steps further down. The doctrine now says a matched guide is read from its first line to its last and applied whole; a rule that does not fit is proposed as a change to the guide, never skipped in silence, and the rest still binds. The per-prompt reminder says the same. On Claude Code, and on local Codex sessions where you trusted the installed hooks, the edit check enforces it: an edit is refused until the session's reads of every guide named in its router verdict cover the whole file. A search, `head`, `sed`, a partial read or a subagent brief that names the guide no longer counts as reading it (F-094).
|
|
10
10
|
|
|
11
11
|
#### What to do
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Everyone who has this package installed: run `npm install -g @antoneeo/mkt-agentic-sdlc-skill@latest`, then `mkt-sdlc-install-skill`, and restart your agent sessions. The install step copies the updated doctrine and validator into your skills directory; sessions already open keep the old check until restarted. Expect one new refusal: if a session only searched or partly read a guide it named in its router verdict, its first edit is refused and the message names the guide. Read the guide whole, with no offset or limit (a guide longer than your client's read cap in consecutive chunks to the end), then edit again. To check it worked, run `npm ls -g @antoneeo/mkt-agentic-sdlc-skill` and look for 0.32.0.
|
|
14
14
|
|
|
15
15
|
Full history: [CHANGELOG](https://github.com/Antoneeo/agentic-sdlc-skill/blob/main/distributions/mkt-agentic-sdlc/CHANGELOG.md)
|
|
16
16
|
<!-- whats-new:end -->
|
package/gemini-extension.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mkt-agentic-sdlc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Evidence-First marketing planning protocol with engagement triage, SOSTAC workflow, evidence ledger and optional devPNT integration.",
|
|
5
5
|
"author": "Antonio Pinto (https://github.com/Antoneeo)"
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antoneeo/mkt-agentic-sdlc-skill",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Evidence-First marketing planning protocol for Claude Code, Gemini CLI, Google Antigravity and Codex: engagement triage, SOSTAC workflow, evidence ledger, mechanical validator and optional devPNT integration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
package/scripts/init.js
CHANGED
|
@@ -194,16 +194,16 @@ in the skill's \`routing.md\`: it decides which lens's method and validation rul
|
|
|
194
194
|
that unit. L1 never reaches it. Never refer to a document whose meaning differs by lens
|
|
195
195
|
("threat model", "vision", \`principles.md\`, \`handoff.md\`) by its bare name.
|
|
196
196
|
|
|
197
|
-
Select the owning lens by the unit's purpose, then apply only its risk scale.
|
|
198
|
-
The project's always-on pointer stays intact: consult the selected skill rather than
|
|
199
|
-
merging multiple mandatory ladders. All lenses already carry shared project memory
|
|
200
|
-
(\`memory.md\`); another installation is not needed for cross-domain recall.
|
|
197
|
+
Select the owning lens by the unit's purpose, then apply only its risk scale.
|
|
198
|
+
The project's always-on pointer stays intact: consult the selected skill rather than
|
|
199
|
+
merging multiple mandatory ladders. All lenses already carry shared project memory
|
|
200
|
+
(\`memory.md\`); another installation is not needed for cross-domain recall.
|
|
201
201
|
This file is NOT auto-loaded by any client: it is a note for you, deliberately additive.
|
|
202
|
-
Delete this note once the routing pointer is integrated.
|
|
202
|
+
Delete this note once the routing pointer is integrated.
|
|
203
203
|
`, 'multi-lens routing note');
|
|
204
204
|
if (wrote && protocolPreexisting) {
|
|
205
205
|
console.log(' ⚠️ A protocol pointer already existed and was NOT overwritten.');
|
|
206
|
-
console.log(' Integrate the routing pointer from AGENTIC_MULTI_LENS.md; keep one risk scale per unit.');
|
|
206
|
+
console.log(' Integrate the routing pointer from AGENTIC_MULTI_LENS.md; keep one risk scale per unit.');
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
|
package/scripts/lib.js
CHANGED
|
@@ -593,10 +593,23 @@ function wireGlobalOrientHook(options) {
|
|
|
593
593
|
// already removed the hook, the line stays and the opt-out survives uninstall,
|
|
594
594
|
// reinstall, and sibling-lens uninstalls.
|
|
595
595
|
function removeGlobalOrientHooks(removedRoots) {
|
|
596
|
+
return removeGlobalHookEntries(removedRoots, {
|
|
597
|
+
event: 'SessionStart',
|
|
598
|
+
re: / orient(\s|$)/,
|
|
599
|
+
markerTargets: orientMarkerTargets,
|
|
600
|
+
markerRemove: orientMarkerRemove,
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// The pruning loop shared by every hook this installer wires: only the
|
|
605
|
+
// `spec.event` entries whose command matches `spec.re` AND whose validator
|
|
606
|
+
// token resolves INTO a removed root are ours; the marker line is cleared only
|
|
607
|
+
// when an entry was actually removed. Returns the targets touched.
|
|
608
|
+
function removeGlobalHookEntries(removedRoots, spec) {
|
|
596
609
|
const targets = [];
|
|
597
610
|
const claude = CLIENTS.find((c) => c.key === 'claude');
|
|
598
611
|
if (claude) targets.push(path.join(claude.home, 'settings.json'));
|
|
599
|
-
for (const t of
|
|
612
|
+
for (const t of spec.markerTargets()) {
|
|
600
613
|
if (!targets.some((x) => pathsEqual(x, t))) targets.push(t);
|
|
601
614
|
}
|
|
602
615
|
const removedFrom = [];
|
|
@@ -605,17 +618,17 @@ function removeGlobalOrientHooks(removedRoots) {
|
|
|
605
618
|
const state = orientSettingsState(target);
|
|
606
619
|
if (!state.ok || !fs.existsSync(target)) continue;
|
|
607
620
|
const hooks = state.settings.hooks;
|
|
608
|
-
if (!hooks || !Array.isArray(hooks.
|
|
621
|
+
if (!hooks || !Array.isArray(hooks[spec.event])) continue;
|
|
609
622
|
let removedHere = false;
|
|
610
623
|
const ours = (h) => {
|
|
611
624
|
const cmd = h && typeof h.command === 'string' ? h.command : '';
|
|
612
|
-
if (!(ORIENT_ENTRY_POINTS.some((n) => cmd.includes(n)) &&
|
|
625
|
+
if (!(ORIENT_ENTRY_POINTS.some((n) => cmd.includes(n)) && spec.re.test(cmd))) return false;
|
|
613
626
|
const tok = orientHookValidator(cmd);
|
|
614
627
|
if (tok === null || !path.isAbsolute(tok)) return false; // cannot attribute: keep
|
|
615
628
|
return removedRoots.some((root) => pathInside(tok, root));
|
|
616
629
|
};
|
|
617
630
|
const kept = [];
|
|
618
|
-
for (const group of hooks.
|
|
631
|
+
for (const group of hooks[spec.event]) {
|
|
619
632
|
if (!group || typeof group !== 'object') { kept.push(group); continue; }
|
|
620
633
|
if (Array.isArray(group.hooks)) {
|
|
621
634
|
const inner = group.hooks.filter((h) => {
|
|
@@ -632,19 +645,122 @@ function removeGlobalOrientHooks(removedRoots) {
|
|
|
632
645
|
}
|
|
633
646
|
}
|
|
634
647
|
if (!removedHere) continue;
|
|
635
|
-
state.settings.hooks.
|
|
636
|
-
if (!kept.length) delete state.settings.hooks.
|
|
648
|
+
state.settings.hooks[spec.event] = kept;
|
|
649
|
+
if (!kept.length) delete state.settings.hooks[spec.event];
|
|
637
650
|
if (state.settings.hooks && !Object.keys(state.settings.hooks).length) {
|
|
638
651
|
delete state.settings.hooks;
|
|
639
652
|
}
|
|
640
653
|
fs.writeFileSync(target, JSON.stringify(state.settings, null, 2) + String.fromCharCode(10), 'utf8');
|
|
641
|
-
|
|
654
|
+
spec.markerRemove(target);
|
|
642
655
|
removedFrom.push(target);
|
|
643
656
|
} catch (e) { /* fail-open per target: never abort an uninstall */ }
|
|
644
657
|
}
|
|
645
658
|
return removedFrom;
|
|
646
659
|
}
|
|
647
660
|
|
|
661
|
+
// --- Per-turn reminder hook (F-046, wired by this lens since F-093) ----------
|
|
662
|
+
// `orient` fires once and decays; this hook re-arms the lens's constant line
|
|
663
|
+
// every prompt. F-046 wired it from the code lens's installer only, while this
|
|
664
|
+
// lens's ENFORCEMENT.md promised it: a single-lens install got no reminder.
|
|
665
|
+
// Presence is recognized family-wide (any lens's `remind` counts), like the
|
|
666
|
+
// orientation hook, so a multi-lens machine keeps exactly one line per turn
|
|
667
|
+
// (rulings.md r19/r32 price one line). Its own marker: removal is a standing
|
|
668
|
+
// opt-out for this hook only, shared by the family.
|
|
669
|
+
const REMIND_HOOK = {
|
|
670
|
+
event: 'UserPromptSubmit', sub: 'remind', re: / remind(\s|$)/,
|
|
671
|
+
marker: 'remind-hook-wired', timeout: 5,
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
function markerPathOf(spec) {
|
|
675
|
+
const root = process.env.AGENTIC_SDLC_KB_ROOT
|
|
676
|
+
|| path.join(os.homedir(), '.agentic-sdlc');
|
|
677
|
+
return path.join(root, spec.marker);
|
|
678
|
+
}
|
|
679
|
+
function markerTargetsOf(spec) {
|
|
680
|
+
try {
|
|
681
|
+
return fs.readFileSync(markerPathOf(spec), 'utf8')
|
|
682
|
+
.split(/\r?\n/).map((x) => x.trim()).filter(Boolean);
|
|
683
|
+
} catch (e) {
|
|
684
|
+
return [];
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
function markerHasOf(spec, target) {
|
|
688
|
+
return markerTargetsOf(spec).some((t) => pathsEqual(t, target));
|
|
689
|
+
}
|
|
690
|
+
function markerAddOf(spec, target) {
|
|
691
|
+
try {
|
|
692
|
+
if (markerHasOf(spec, target)) return;
|
|
693
|
+
fs.mkdirSync(path.dirname(markerPathOf(spec)), { recursive: true });
|
|
694
|
+
fs.appendFileSync(markerPathOf(spec), target + String.fromCharCode(10), 'utf8');
|
|
695
|
+
} catch (e) { /* fail-open */ }
|
|
696
|
+
}
|
|
697
|
+
function markerRemoveOf(spec, target) {
|
|
698
|
+
try {
|
|
699
|
+
const rest = markerTargetsOf(spec).filter((t) => !pathsEqual(t, target));
|
|
700
|
+
if (rest.length) {
|
|
701
|
+
fs.writeFileSync(markerPathOf(spec), rest.join(String.fromCharCode(10)) + String.fromCharCode(10), 'utf8');
|
|
702
|
+
} else {
|
|
703
|
+
fs.rmSync(markerPathOf(spec), { force: true });
|
|
704
|
+
}
|
|
705
|
+
} catch (e) { /* fail-open */ }
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
function findCommandHook(settings, spec) {
|
|
709
|
+
const groups = settings && settings.hooks && settings.hooks[spec.event];
|
|
710
|
+
if (!Array.isArray(groups)) return null;
|
|
711
|
+
for (const group of groups) {
|
|
712
|
+
if (!group || typeof group !== 'object') continue;
|
|
713
|
+
const inner = Array.isArray(group.hooks) ? group.hooks : [group];
|
|
714
|
+
for (const h of inner) {
|
|
715
|
+
const cmd = h && typeof h.command === 'string' ? h.command : '';
|
|
716
|
+
if (ORIENT_ENTRY_POINTS.some((n) => cmd.includes(n)) && spec.re.test(cmd)) return cmd;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
return null;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
// Present is `already`; only ABSENCE plus the marker means the user removed it.
|
|
723
|
+
// Returns a code, never throws: an installer must not die on a settings file.
|
|
724
|
+
function wireGlobalRemindHook(options) {
|
|
725
|
+
const spec = REMIND_HOOK;
|
|
726
|
+
const validator = path.join(skillTarget(options.client), 'scripts', ORIENT_ENTRY_POINT);
|
|
727
|
+
if (!fs.existsSync(validator)) return { code: 'no-validator', validator };
|
|
728
|
+
if (!options.python) return { code: 'no-python' };
|
|
729
|
+
if (ORIENT_UNSAFE_IN_PATH.test(validator)) return { code: 'unsafe-path', validator };
|
|
730
|
+
const target = path.join(options.client.home, 'settings.json');
|
|
731
|
+
const state = orientSettingsState(target);
|
|
732
|
+
if (!state.ok) return { code: 'malformed', target, why: state.why };
|
|
733
|
+
const settings = state.settings;
|
|
734
|
+
// Unrecognised means write nothing (orientSettingsState checks SessionStart only).
|
|
735
|
+
if (settings.hooks && settings.hooks[spec.event] !== undefined && !Array.isArray(settings.hooks[spec.event])) {
|
|
736
|
+
return { code: 'malformed', target, why: 'unexpected-hooks' };
|
|
737
|
+
}
|
|
738
|
+
const present = findCommandHook(settings, spec);
|
|
739
|
+
if (present) return { code: 'already', target, command: present };
|
|
740
|
+
if (markerHasOf(spec, target)) return { code: 'opted-out', target };
|
|
741
|
+
const command = options.python + ' "' + validator + '" ' + spec.sub;
|
|
742
|
+
if (!settings.hooks) settings.hooks = {};
|
|
743
|
+
if (!Array.isArray(settings.hooks[spec.event])) settings.hooks[spec.event] = [];
|
|
744
|
+
settings.hooks[spec.event].push({ hooks: [{ type: 'command', command, timeout: spec.timeout }] });
|
|
745
|
+
try {
|
|
746
|
+
fs.mkdirSync(path.dirname(target), { recursive: true });
|
|
747
|
+
fs.writeFileSync(target, JSON.stringify(settings, null, 2) + String.fromCharCode(10), 'utf8');
|
|
748
|
+
} catch (e) {
|
|
749
|
+
return { code: 'write-failed', target, command, error: e.message };
|
|
750
|
+
}
|
|
751
|
+
markerAddOf(spec, target);
|
|
752
|
+
return { code: 'wired', target, command };
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
function removeGlobalRemindHooks(removedRoots) {
|
|
756
|
+
return removeGlobalHookEntries(removedRoots, {
|
|
757
|
+
event: REMIND_HOOK.event,
|
|
758
|
+
re: REMIND_HOOK.re,
|
|
759
|
+
markerTargets: () => markerTargetsOf(REMIND_HOOK),
|
|
760
|
+
markerRemove: (target) => markerRemoveOf(REMIND_HOOK, target),
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
|
|
648
764
|
module.exports = {
|
|
649
765
|
INSTALLED_SKILL_NAME,
|
|
650
766
|
PACKAGE_ROOT,
|
|
@@ -657,6 +773,8 @@ module.exports = {
|
|
|
657
773
|
wireOrientHook,
|
|
658
774
|
wireGlobalOrientHook,
|
|
659
775
|
removeGlobalOrientHooks,
|
|
776
|
+
wireGlobalRemindHook,
|
|
777
|
+
removeGlobalRemindHooks,
|
|
660
778
|
detectPython,
|
|
661
779
|
pathsEqual,
|
|
662
780
|
orientHookCommand,
|
package/scripts/postinstall.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const {
|
|
5
5
|
SKILL_SOURCE, CLIENTS, clientDetected, skillTarget, copyRecursive,
|
|
6
|
-
wireGlobalOrientHook, detectPython,
|
|
6
|
+
wireGlobalOrientHook, wireGlobalRemindHook, detectPython,
|
|
7
7
|
} = require('./lib');
|
|
8
8
|
|
|
9
9
|
function installSkill(client) {
|
|
@@ -61,6 +61,18 @@ for (const client of CLIENTS) {
|
|
|
61
61
|
// already / opted-out / unverifiable / no-validator: silent — an
|
|
62
62
|
// install must not nag (the opt-out is the user's standing choice).
|
|
63
63
|
} catch (e) { /* never fail the install for a convenience */ }
|
|
64
|
+
// F-046/F-093: the per-turn reminder, wired alongside and never instead of
|
|
65
|
+
// the session hook (ENFORCEMENT.md promises it). One line per prompt for
|
|
66
|
+
// the whole family: a sibling lens's reminder already counts. Owner-accepted
|
|
67
|
+
// per-turn cost: rulings.md r19/r32. Removal is a standing opt-out.
|
|
68
|
+
try {
|
|
69
|
+
const rr = wireGlobalRemindHook({ client, python: detectPython() });
|
|
70
|
+
if (rr.code === 'wired') {
|
|
71
|
+
console.log('🔗 Per-turn protocol reminder wired for every project on this machine');
|
|
72
|
+
console.log(` (${rr.target}). One constant line per prompt; remove that hook`);
|
|
73
|
+
console.log(' entry to opt out — it will not be re-added.');
|
|
74
|
+
}
|
|
75
|
+
} catch (e) { /* never fail the install for a convenience */ }
|
|
64
76
|
}
|
|
65
77
|
}
|
|
66
78
|
}
|
package/scripts/preuninstall.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const fs = require('fs');
|
|
4
|
-
const { CLIENTS, skillTarget, removeGlobalOrientHooks } = require('./lib');
|
|
4
|
+
const { CLIENTS, skillTarget, removeGlobalOrientHooks, removeGlobalRemindHooks } = require('./lib');
|
|
5
5
|
|
|
6
6
|
function removeSkill(client) {
|
|
7
7
|
const target = skillTarget(client);
|
|
@@ -26,5 +26,11 @@ try {
|
|
|
26
26
|
console.log(`🧹 Removed the session-orientation hook entry (${target}).`);
|
|
27
27
|
}
|
|
28
28
|
} catch (e) { /* never abort an uninstall for a convenience */ }
|
|
29
|
+
// F-093: the per-turn reminder this lens may have wired, same attribution rule.
|
|
30
|
+
try {
|
|
31
|
+
for (const target of removeGlobalRemindHooks(CLIENTS.map(skillTarget))) {
|
|
32
|
+
console.log(`🧹 Removed the per-turn reminder hook entry (${target}).`);
|
|
33
|
+
}
|
|
34
|
+
} catch (e) { /* never abort an uninstall for a convenience */ }
|
|
29
35
|
|
|
30
36
|
CLIENTS.forEach(removeSkill);
|
|
@@ -63,7 +63,7 @@ Semantics: exit code 2 + message on stderr ⇒ the write is blocked and the mess
|
|
|
63
63
|
|
|
64
64
|
`mkt_check.py verdict --hook` refuses an Edit, Write, MultiEdit or NotebookEdit when the
|
|
65
65
|
session transcript shows no guide-router verdict (a line that opens with `router: …` or with the level, `Level: L2 · router: …`, `Level: Spike · router: …`; or one that opens with a level-1 declaration)
|
|
66
|
-
or a guide the verdict names was
|
|
66
|
+
or a guide the verdict names was not read WHOLE: the session's reads of it (Read spans, a literal `cat`/`Get-Content`, `get_file_content`) must cover its first to its last line; Grep, `head`, `sed` or a brief naming it read nothing (F-094); it is silent in projects without guides and
|
|
67
67
|
whenever it cannot tell. The code package (`agentic-sdlc`) wires it machine-wide on
|
|
68
68
|
Claude Code; this package does not. To wire it by hand, add a `PreToolUse` entry with
|
|
69
69
|
matcher `Edit|Write|MultiEdit|NotebookEdit` and command
|
|
@@ -192,9 +192,11 @@ Cost: 525 characters, ~88 tokens per prompt, paid on every turn including
|
|
|
192
192
|
trivial ones. That is admissible only because the owner accepted it explicitly
|
|
193
193
|
(`ai_docs/vision/rulings.md` r19, the "no ceremony ratchet" Non-Goal's second door) --
|
|
194
194
|
and the acceptance was for a FLAT cost. Hence the contract, guarded by
|
|
195
|
-
`scripts/test_remind.py`: the line is **constant and reads nothing** (so nothing repo-
|
|
195
|
+
`scripts/test_remind.py`: the line is **constant per machine and reads nothing repo- or session-controlled** (so nothing repo-
|
|
196
196
|
or session-controlled rides into the agent's context through it, and the cost cannot
|
|
197
|
-
grow with the session), it is **one line under 600 characters** (r32 raised r19's 500 to carry the lens choice
|
|
197
|
+
grow with the session), it is **one line under 600 characters** (r32 raised r19's 500 to carry the lens choice; **700** when sibling lenses are installed,
|
|
198
|
+
because it then names each installed lens and its domain, read each turn from the skills
|
|
199
|
+
directories -- names only, matched against `routing.md`'s table, r44), and it **can never
|
|
198
200
|
break a prompt** (argv ignored whole, always exit 0). A trivial turn pays a yes/no
|
|
199
201
|
judgement, never a load.
|
|
200
202
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mkt-agentic-sdlc
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.32.0
|
|
4
4
|
description: Evidence-First marketing planning protocol with engagement triage, SOSTAC workflow, evidence ledger, adversarial CMO review, a complete Standalone mode and optional symbiosis with devPNT. Use for marketing plans, go-to-market strategy, campaign planning and market research.
|
|
5
5
|
author: Antonio Pinto (https://github.com/Antoneeo)
|
|
6
6
|
copyright: (c) 2026 Antonio Pinto
|
|
@@ -170,7 +170,7 @@ Deliverable language: ask for (or infer) the target market's language in Discove
|
|
|
170
170
|
|
|
171
171
|
### 8. Action
|
|
172
172
|
- **Isolate the work (Branch/worktree hygiene).** Execution rewrites plan documents other people are reading: do it on a branch or a worktree, never directly on the shared plan. A session that may run while another session uses the same checkout works in its **own git worktree**, and never switches branch, stashes, resets or runs `index` in a checkout another session may be using. Parallel work also shares ids: choose a new unit's id **after fetching**, as the first id free on every branch and tag the checkout can see.
|
|
173
|
-
- **Consult (before acting)**: **consult the guide router** for a guide covering the task and read
|
|
173
|
+
- **Consult (before acting)**: **consult the guide router** for a guide covering the task and read the match WHOLE first — every line, no offset or limit, no excerpt; past the client's read cap, in chunks to the end — and apply it WHOLE: a rule that does not fit is proposed as an amendment to the guide, never skipped in silence, and the rest still binds. The match is targeted (which guide), never partial (which lines) (the consult trigger, `guides.md` §0), not a blanket read.
|
|
174
174
|
- **Opt-in subagent execution**: for an approved plan, the work MAY be executed via subagents per `dispatch.md`; default stays same-session. `dispatch.md` also carries the family-wide **delegation boundary** (what may be delegated at all, and what never may) — that section is not gated by the opt-in trigger and applies at any level, dispatch or no dispatch.
|
|
175
175
|
- Draft `ACTION_90D.md`: sequenced 90-day plan (what starts when, owner, dependency), first 2 weeks day-level, rest weekly.
|
|
176
176
|
|
|
@@ -41,8 +41,8 @@ without an E-ISP.
|
|
|
41
41
|
consult trigger (`guides.md` §0) applied at plan-authoring time: the orchestrator
|
|
42
42
|
runs the router lookup (project router `ai_docs/reference/INDEX.md` + the agent-KB
|
|
43
43
|
router) when populating `guides`. A dispatched context-free subagent does **NOT**
|
|
44
|
-
run its own router consult — it reads
|
|
45
|
-
|
|
44
|
+
run its own router consult — it reads each guide handed to it in the brief
|
|
45
|
+
whole, every line, and applies it whole (`guides.md` §0). The router verdict (Rule Zero) is therefore declared ONCE, by the
|
|
46
46
|
orchestrator, when it authors the plan; a dispatched subagent does not declare
|
|
47
47
|
one. (Proactive guide-creation stays at closure — the same broad final pass
|
|
48
48
|
below — so it needs no separate dispatch hook.)
|
|
@@ -34,12 +34,28 @@ already cover how to do this well?*
|
|
|
34
34
|
- **Scan the router, not the guides.** Read the when-to-consult descriptions in
|
|
35
35
|
the guide router `ai_docs/reference/INDEX.md` **and** the agent-KB router
|
|
36
36
|
`~/.agentic-sdlc/ai_docs/reference/INDEX.md` (if present). Match by topic.
|
|
37
|
-
- **On a match, read
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
- **On a match, read the WHOLE guide before acting — every line, first to
|
|
38
|
+
last.** No offset that skips its start, no limit that stops before its end, no
|
|
39
|
+
`head`/`sed`/grep excerpt, no "the section that looks relevant". Where the
|
|
40
|
+
client caps one read (Claude Code's Read stops at 2000 lines), continue in
|
|
41
|
+
consecutive chunks until the last line. Only the snapshot (the book) is read
|
|
42
|
+
on demand, through the section markers. No match → proceed normally.
|
|
43
|
+
- **Apply the WHOLE guide.** Every rule it states binds the work it matched, not
|
|
44
|
+
the subset you recognized. A rule you judge wrong, outdated or inapplicable is
|
|
45
|
+
never skipped in silence: name it, say why, and propose amending the guide
|
|
46
|
+
(§6); until the amendment is accepted, the guide as written governs, and any
|
|
47
|
+
deviation you take is declared to the user with its reason. Even then the
|
|
48
|
+
guide is considered whole: the other rules still bind. Why: an agent that
|
|
49
|
+
reads part of a guide applies part of it, and the omitted rule is exactly the
|
|
50
|
+
one the guide was written to carry (F-094 field scan: 157 partial reads of
|
|
51
|
+
guides against 118 whole ones; a release ran on 130 of the 225 lines of its
|
|
52
|
+
runbook).
|
|
53
|
+
- **Targeted match, never blanket.** "Targeted" chooses WHICH guide, never which
|
|
54
|
+
part of it: open only the guide whose description fits the task — never load
|
|
55
|
+
every guide, which would reintroduce the exact token cost the "point to them"
|
|
56
|
+
model exists to avoid. The two-level model (compact synthesis / verbatim
|
|
57
|
+
snapshot) already bounds a single guide's cost, so a whole read is affordable
|
|
58
|
+
by construction.
|
|
43
59
|
- **Declare the router verdict.** The lookup result travels with the triage
|
|
44
60
|
level (`SKILL.md` Rule Zero) as one line — `router: no match`, or
|
|
45
61
|
`router: GUIDE_x.md → read`. This is what makes the consult reliable: an
|
|
@@ -66,7 +82,8 @@ already cover how to do this well?*
|
|
|
66
82
|
unit of work.
|
|
67
83
|
- **Under subagent dispatch** the consult happens at plan-authoring time (the
|
|
68
84
|
orchestrator populates each task's `guides` field); a context-free subagent
|
|
69
|
-
reads
|
|
85
|
+
reads each guide it was handed whole, as above, and does not run its own
|
|
86
|
+
router lookup. See
|
|
70
87
|
`dispatch.md`.
|
|
71
88
|
|
|
72
89
|
## 1. When to trigger
|
|
@@ -232,8 +249,9 @@ the component from partial understanding.
|
|
|
232
249
|
comprehension repertoire — how it works / control & data flow / invariants / where
|
|
233
250
|
it breaks), each with a fidelity marker.
|
|
234
251
|
**Write for the two-level read**: the guide (synthesis) is small enough to
|
|
235
|
-
be read WHOLE before acting
|
|
236
|
-
|
|
252
|
+
be read WHOLE before acting, and every reader reads it whole (§0); the
|
|
253
|
+
snapshot (book) is where size lives and the only place readers grep or
|
|
254
|
+
partial-read on demand, following the section markers.
|
|
237
255
|
Use the repertoire's stable, self-describing headings, keep one concern per
|
|
238
256
|
`##` section, and make the frontmatter `description` the "should I open
|
|
239
257
|
this file at all" answer. This is why one synthesis + one book beats
|
|
@@ -287,6 +305,12 @@ state it explicitly when handing off a newly created guide.
|
|
|
287
305
|
|
|
288
306
|
## 6. Maintenance
|
|
289
307
|
|
|
308
|
+
- **A rule that does not fit the work is a proposed amendment, never a silent
|
|
309
|
+
skip** (§0). Read the whole guide, name the rule and the reason, and propose
|
|
310
|
+
the change through this pipeline — a `document` guide changes only with the
|
|
311
|
+
user's confirmation and a new snapshot of the source that changed; a `code`
|
|
312
|
+
guide is corrected against the code. Until the amendment lands, the guide as
|
|
313
|
+
written governs, and every other rule in it still binds.
|
|
290
314
|
- **Source changed**: new snapshot, regenerate the guide from it (new
|
|
291
315
|
`source_hash`); a guide REPLACING another is `status: SUPERSEDED` on the old
|
|
292
316
|
one. `sdlc_check.py stale` (also under `--hybrid`) reports `[stale]` when a
|
|
@@ -46,7 +46,8 @@ sdlc_core.set_profile(
|
|
|
46
46
|
remind_line=(
|
|
47
47
|
"first decide if this skill governs the work; if yes, LOAD it once -- an "
|
|
48
48
|
"unread protocol cannot be applied. Declare the engagement level and the "
|
|
49
|
-
"guide-router verdict before acting
|
|
49
|
+
"guide-router verdict before acting; read a matched guide whole and apply "
|
|
50
|
+
"it whole. Every claim about the market, the "
|
|
50
51
|
"audience or a competitor carries its evidence -- an unsourced assertion "
|
|
51
52
|
"is a finding, not a premise. Replay governing text -- a brief, a "
|
|
52
53
|
"positioning line, a template -- against the case that motivated it."
|