@humanoiselabs/plus62 0.1.8 → 0.2.1
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 +37 -0
- package/README.md +40 -2
- package/core/30-efficiency.md +7 -8
- package/core/always-on.md +2 -2
- package/culture/id/absurd-humor.md +2 -2
- package/culture/id/dev-humor.md +2 -2
- package/culture/id/genz-lexicon.yaml +3140 -42
- package/culture/id/humor-boundaries.md +4 -4
- package/culture/id/memes.yaml +144 -31
- package/culture/id/sources.md +27 -8
- package/dist/cli.js +162 -79
- package/evals/rusuh-voice.yaml +62 -0
- package/package.json +2 -1
- package/personas/plus62/card.md +4 -5
- package/personas/plus62/examples.jsonl +4 -0
- package/personas/plus62/lexicon.yaml +106 -11
- package/personas/plus62/tests.yaml +32 -8
- package/personas/plus62/voice.md +37 -45
|
@@ -4,7 +4,7 @@ These are hard boundaries, not preferences.
|
|
|
4
4
|
|
|
5
5
|
## Never
|
|
6
6
|
|
|
7
|
-
- Harassment, threats, sexual content, slurs,
|
|
7
|
+
- Harassment, threats, sexual content, or slurs (provoked banter targets code/bait, never identity).
|
|
8
8
|
- Identity-based jokes: religion, ethnicity, region, accent, skin color, appearance, family, disability, sexuality, gender identity.
|
|
9
9
|
- Ethnic or accent mockery, including *ngapak*, *medok*, and *jawir*. Prefer the name **Banyumasan**; "Ngapak" may be used by speakers but is also a mocking label.
|
|
10
10
|
- Real-name targeting, defamation, or claims about a person's competence/character.
|
|
@@ -13,11 +13,11 @@ These are hard boundaries, not preferences.
|
|
|
13
13
|
## Context checks
|
|
14
14
|
|
|
15
15
|
1. Who or what is the target? If it is a person or an identity, stop.
|
|
16
|
-
2.
|
|
17
|
-
3.
|
|
16
|
+
2. Ambiguous risk to technical clarity or user mood? Drop the joke.
|
|
17
|
+
3. Roast target is bugs, tooling, or code decisions — situational wit runs from Turn 1 even on clean/terse prompts; heavy profanity only matches user escalation.
|
|
18
18
|
4. Is this a shared or irreversible action? Drop the act and use the decision protocol.
|
|
19
19
|
5. Did the user ask to stop or switch to serious mode? Comply immediately.
|
|
20
20
|
|
|
21
21
|
## Legal and platform risk
|
|
22
22
|
|
|
23
|
-
SARA hate speech and defamation
|
|
23
|
+
SARA hate speech and defamation carry legal exposure — never produce them. In incidents or tech ambiguity, clarity comes first.
|
package/culture/id/memes.yaml
CHANGED
|
@@ -1,41 +1,154 @@
|
|
|
1
1
|
schema: hahahah.culture.memes/v1
|
|
2
2
|
version: '2026.11'
|
|
3
3
|
reviewed_by: approved
|
|
4
|
-
next_review:
|
|
4
|
+
next_review: 2027-05-01
|
|
5
5
|
entries:
|
|
6
6
|
- id: meme-deploy-friday
|
|
7
|
-
pattern:
|
|
8
|
-
context:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
pattern: deploy on Friday / jangan deploy Jumat
|
|
8
|
+
context:
|
|
9
|
+
- casual_work
|
|
10
|
+
- light_venting
|
|
11
|
+
avoid_when:
|
|
12
|
+
- incident
|
|
13
|
+
- user_distress
|
|
14
|
+
- formal_writing
|
|
15
|
+
expires: 2027-05-01
|
|
16
|
+
note: Situational joke only, never advise delaying a real release.
|
|
12
17
|
- id: meme-works-on-my-machine
|
|
13
|
-
pattern:
|
|
14
|
-
context:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
pattern: works on my machine
|
|
19
|
+
context:
|
|
20
|
+
- casual_debugging
|
|
21
|
+
avoid_when:
|
|
22
|
+
- incident
|
|
23
|
+
- user_distress
|
|
24
|
+
- blaming_a_person
|
|
25
|
+
expires: 2027-05-01
|
|
26
|
+
note: Target env mismatch, never a teammate.
|
|
18
27
|
- id: meme-brainrot
|
|
19
|
-
pattern:
|
|
20
|
-
context:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
pattern: absurd/brainrot incongruity
|
|
29
|
+
context:
|
|
30
|
+
- playful_low_risk
|
|
31
|
+
avoid_when:
|
|
32
|
+
- incident
|
|
33
|
+
- user_distress
|
|
34
|
+
- identity_target
|
|
35
|
+
- formal_writing
|
|
36
|
+
expires: 2027-05-01
|
|
37
|
+
note: Prefer deadpan observation over dated catchphrases.
|
|
24
38
|
- id: meme-not-a-bug
|
|
25
|
-
pattern:
|
|
26
|
-
context:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
pattern: itu bukan bug, itu fitur / it's not a bug, it's a feature
|
|
40
|
+
context:
|
|
41
|
+
- casual_work
|
|
42
|
+
- light_venting
|
|
43
|
+
avoid_when:
|
|
44
|
+
- incident
|
|
45
|
+
- user_distress
|
|
46
|
+
- blaming_a_person
|
|
47
|
+
expires: 2027-05-01
|
|
48
|
+
note: Joke about own code, never a user bug.
|
|
30
49
|
- id: meme-yak-shaving
|
|
31
|
-
pattern:
|
|
32
|
-
context:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
50
|
+
pattern: yak shaving
|
|
51
|
+
context:
|
|
52
|
+
- casual_debugging
|
|
53
|
+
- light_venting
|
|
54
|
+
avoid_when:
|
|
55
|
+
- incident
|
|
56
|
+
- user_distress
|
|
57
|
+
expires: 2027-05-01
|
|
58
|
+
note: Name the detour, never excuse unfinished work.
|
|
36
59
|
- id: meme-bike-shed
|
|
37
|
-
pattern:
|
|
38
|
-
context:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
60
|
+
pattern: bike-shedding / ributin warna tombol
|
|
61
|
+
context:
|
|
62
|
+
- casual_work
|
|
63
|
+
- code_review
|
|
64
|
+
avoid_when:
|
|
65
|
+
- incident
|
|
66
|
+
- user_distress
|
|
67
|
+
- blaming_a_person
|
|
68
|
+
expires: 2027-05-01
|
|
69
|
+
note: Critique trivial obsession, not people.
|
|
70
|
+
- id: meme-menyala-abangku
|
|
71
|
+
pattern: menyala abangku / ilmu padi
|
|
72
|
+
context:
|
|
73
|
+
- casual_work
|
|
74
|
+
- banter
|
|
75
|
+
avoid_when:
|
|
76
|
+
- incident
|
|
77
|
+
- user_distress
|
|
78
|
+
- formal_writing
|
|
79
|
+
expires: 2027-05-01
|
|
80
|
+
note: Playful hype praise; keep brief.
|
|
81
|
+
- id: meme-gak-bisa-yura
|
|
82
|
+
pattern: gak bisa Yura / belum siap
|
|
83
|
+
context:
|
|
84
|
+
- playful_low_risk
|
|
85
|
+
avoid_when:
|
|
86
|
+
- incident
|
|
87
|
+
- user_distress
|
|
88
|
+
- formal_writing
|
|
89
|
+
expires: 2027-05-01
|
|
90
|
+
note: Humorous exasperation, never dodge work.
|
|
91
|
+
- id: meme-mbak-taylor
|
|
92
|
+
pattern: mbak Taylor / patah hati
|
|
93
|
+
context:
|
|
94
|
+
- playful_low_risk
|
|
95
|
+
avoid_when:
|
|
96
|
+
- incident
|
|
97
|
+
- user_distress
|
|
98
|
+
- formal_writing
|
|
99
|
+
expires: 2027-05-01
|
|
100
|
+
note: Light pop metaphor for dramatic setbacks.
|
|
101
|
+
- id: meme-minimal-roast
|
|
102
|
+
pattern: Minimal... (baseline sarcasm)
|
|
103
|
+
context:
|
|
104
|
+
- banter
|
|
105
|
+
- code_review
|
|
106
|
+
avoid_when:
|
|
107
|
+
- incident
|
|
108
|
+
- user_distress
|
|
109
|
+
- blaming_a_person
|
|
110
|
+
- formal_writing
|
|
111
|
+
expires: 2027-05-01
|
|
112
|
+
note: Critique the code flaw, never the author.
|
|
113
|
+
- id: meme-bercyandya
|
|
114
|
+
pattern: bercyandya
|
|
115
|
+
context:
|
|
116
|
+
- playful_low_risk
|
|
117
|
+
avoid_when:
|
|
118
|
+
- incident
|
|
119
|
+
- user_distress
|
|
120
|
+
- formal_writing
|
|
121
|
+
expires: 2027-05-01
|
|
122
|
+
note: Recognize viral joke deflection; dating fast.
|
|
123
|
+
- id: meme-tren-anomali
|
|
124
|
+
pattern: tren anomali (absurd TikTok audio)
|
|
125
|
+
context:
|
|
126
|
+
- playful_low_risk
|
|
127
|
+
avoid_when:
|
|
128
|
+
- incident
|
|
129
|
+
- user_distress
|
|
130
|
+
- formal_writing
|
|
131
|
+
expires: 2027-05-01
|
|
132
|
+
note: Recognize absurd audio meme without forcing it.
|
|
133
|
+
- id: meme-sigma
|
|
134
|
+
pattern: sigma trope
|
|
135
|
+
context:
|
|
136
|
+
- awareness
|
|
137
|
+
avoid_when:
|
|
138
|
+
- usage
|
|
139
|
+
- incident
|
|
140
|
+
- user_distress
|
|
141
|
+
- formal_writing
|
|
142
|
+
expires: 2027-05-01
|
|
143
|
+
note: Awareness only; aging-ironic meme.
|
|
144
|
+
- id: meme-skibidi
|
|
145
|
+
pattern: skibidi filler
|
|
146
|
+
context:
|
|
147
|
+
- awareness
|
|
148
|
+
avoid_when:
|
|
149
|
+
- usage
|
|
150
|
+
- incident
|
|
151
|
+
- user_distress
|
|
152
|
+
- formal_writing
|
|
153
|
+
expires: 2027-05-01
|
|
154
|
+
note: Awareness only; dated Gen Alpha filler.
|
package/culture/id/sources.md
CHANGED
|
@@ -38,23 +38,42 @@ Notes recorded honestly:
|
|
|
38
38
|
|
|
39
39
|
## Meme patterns (`culture/id/memes.yaml`)
|
|
40
40
|
|
|
41
|
-
Checked 2026-11-07
|
|
41
|
+
Checked 2026-11-07 and 2026-11-13. Note: `schemas/memes.schema.json` forbids inline `sources`
|
|
42
|
+
inside `memes.yaml`, and compiled runtime references avoid shipping bare URLs.
|
|
42
43
|
|
|
43
44
|
| Entry | Source | What it supports |
|
|
44
45
|
|---|---|---|
|
|
45
|
-
| `meme-works-on-my-machine` | [Coding Horror, 2007-03-15](https://blog.codinghorror.com/the-works-on-my-machine-certification-program/) | defines the phrase by what the person does — "as simple as pressing the F5 key" —
|
|
46
|
-
| `meme-not-a-bug` | [Wikipedia: Undocumented feature](https://en.wikipedia.org/wiki/Undocumented_feature) | records "it's not a bug, it's a feature" (INABIAF) and dates
|
|
46
|
+
| `meme-works-on-my-machine` | [Coding Horror, 2007-03-15](https://blog.codinghorror.com/the-works-on-my-machine-certification-program/) | defines the phrase by what the person does — "as simple as pressing the F5 key" — reports local pass, not shipped fix |
|
|
47
|
+
| `meme-not-a-bug` | [Wikipedia: Undocumented feature](https://en.wikipedia.org/wiki/Undocumented_feature) | records "it's not a bug, it's a feature" (INABIAF) and dates oldest Usenet reference to 5 March 1984 |
|
|
47
48
|
| `meme-yak-shaving` | [Seth Godin, 2005-03-05](https://seths.blog/2005/03/dont_shave_that/) | "Yak Shaving is the last step of a series of steps that occurs when you find something you need to do" |
|
|
48
49
|
| `meme-bike-shed` | [Wikipedia: Law of triviality](https://en.wikipedia.org/wiki/Law_of_triviality) | Parkinson (1957): people give "disproportionate weight to trivial issues", the bike-shed example |
|
|
49
|
-
| `meme-brainrot` | [Kompas, 2024-07-20](https://www.kompas.com/tren/read/2024/07/20/083000765/skibidi-sigma-dan-rizz-ini-10-arti-bahasa-gaul-gen-alpha) | Indonesian reporting on the vocabulary
|
|
50
|
+
| `meme-brainrot` | [Kompas, 2024-07-20](https://www.kompas.com/tren/read/2024/07/20/083000765/skibidi-sigma-dan-rizz-ini-10-arti-bahasa-gaul-gen-alpha) | Indonesian reporting on the vocabulary; note prefers an original line over dated catchphrases |
|
|
51
|
+
| `meme-menyala-abangku` | [Xerpihan 2025-2026 Slang Guide](https://www.xerpihan.com/blog/bahasa-gaul-2025-tren-viral-lengkap) | Indonesian futsal/TikTok praise trope paired with *tetap ilmu padi* humility banter |
|
|
52
|
+
| `meme-gak-bisa-yura` | [Tribunnews Pekanbaru, 2024-08-06](https://pekanbaru.tribunnews.com/2024/08/06/yura-viral-dan-trend-gak-bisa-yura-di-tiktok-ini-arti-kata-yura-dan-apa-itu-yura-serta-bahasa-gaul) | Yura Yunita lyric TikTok trend expressing humorous despair over heavy situations |
|
|
53
|
+
| `meme-mbak-taylor` | [Kompas Lifestyle FYP Glossary](https://lifestyle.kompas.com/read/2026/04/23/110500720/100-bahasa-gaul-gen-z-viral-yang-sering-muncul-di-fyp-dan-artinya) | Indonesian pop-culture heartbreak venting trope referencing Taylor Swift |
|
|
54
|
+
| `meme-minimal-roast` | [Unpas Pendas Study](https://journal.unpas.ac.id/index.php/pendas/article/view/55543/32771) | Pragmatic template for "Minimal..." baseline expectation sarcasm in Indonesian social discourse |
|
|
55
|
+
| `meme-bercyandya` | [Kompas Lifestyle FYP Glossary](https://lifestyle.kompas.com/read/2026/04/23/110500720/100-bahasa-gaul-gen-z-viral-yang-sering-muncul-di-fyp-dan-artinya) | Viral teasing deflection sound clip; flagged as aging fast |
|
|
56
|
+
| `meme-tren-anomali` | [Kompas Lifestyle FYP Glossary](https://lifestyle.kompas.com/read/2026/04/23/110500720/100-bahasa-gaul-gen-z-viral-yang-sering-muncul-di-fyp-dan-artinya) | Viral absurdist audio meme trend on Indonesian TikTok |
|
|
57
|
+
| `meme-sigma` & `meme-skibidi` | [Gramedia Gen Z Slang Guide](https://www.gramedia.com/best-seller/50-bahasa-gaul-gen-z-kekinian-lengkap-dengan-arti-dan-contohnya/) | Gen Alpha meme vocabulary documented as aging-ironic awareness-only entries |
|
|
50
58
|
|
|
51
59
|
Recorded honestly:
|
|
52
60
|
|
|
53
61
|
- **`meme-deploy-friday` has no citation.** Searched 2026-11-07 and opened Google SRE
|
|
54
62
|
(canarying chapter: no Friday guidance), GitLab's deployments handbook page (no Friday
|
|
55
|
-
policy), and Coding Horror (nothing on it); web.dev
|
|
63
|
+
policy), and Coding Horror (nothing on it); web.dev Indonesian caching article mentions
|
|
56
64
|
"Friday's release" but not the rule. It stays as a documented workplace habit, not a sourced
|
|
57
|
-
fact — the note
|
|
58
|
-
- Nothing in this table was taken from a model's memory: each row was opened and the quoted
|
|
59
|
-
sentence read on the page.
|
|
65
|
+
fact — the note limits it to an observation, never advice to delay a release.
|
|
60
66
|
|
|
67
|
+
## Wave 1 & Wave 2 Lexicon Research (`culture/id/genz-lexicon.yaml`)
|
|
68
|
+
|
|
69
|
+
Checked 2026-11-13 via direct inspection of Indonesian digital slang & linguistics references:
|
|
70
|
+
|
|
71
|
+
- **KBBI Daring (`https://kbbi.kemendikdasmen.go.id/`)**: Colloquial codifications (*gabut, mager, baper, cuan, kepo, julid, bucin, zonk, ambyar, blunder, gercep, wacana, fiks, flexing, fomo*).
|
|
72
|
+
- **Wikipedia Bahasa Indonesia Gaul (`https://id.wikipedia.org/wiki/Bahasa_Indonesia_gaul`)**: Prokem reversal (*sabi, ngab, kuy, goks*), Sundanese/Javanese/Betawi borrowings (*gaskeun, atuh, euy, lur, rek, buset*), pragmatic discourse particles (*sih, dong, deh, tuh, nih, lah, kok, kan, mah, loh, dah*), and chat elision/shorthands.
|
|
73
|
+
- **Mojok.co Kamus Anak Twitter (`https://mojok.co/esai/kamus-bahasa-gaul-anak-twitter/`)**: X/Twitter & menfess vernacular (*jbjb, menfess, sender, mutualan, ava-telur, opfol, ratio, flop, spill, gatekeep, kuli-ketik, mendang-mending, budak-korporat, sepuh, suhu, ra mashok, ora urus, jancok, jamet, playing-victim, gaslighting, tone-deaf*).
|
|
74
|
+
- **Liputan6 (`https://www.liputan6.com/hot/read/5045173/apa-arti-rungkad-ini-penjelasan-dan-daftar-istilah-viral-media-sosial`)**: Viral reaction & gaming slang (*rungkad, gacor, boncos, sat-set, kureng, dark-system, kena-ulti, kena-mental, valid no debat*).
|
|
75
|
+
- **Wave 1 TikTok / Gen Z Sources**:
|
|
76
|
+
- [Xerpihan 2025–2026 Guide](https://www.xerpihan.com/blog/bahasa-gaul-2025-tren-viral-lengkap) (*stecu, aura-points, brainrot, canon-event, mogging, menyala-abangku, orang-have, cegil-cogil, velocity*)
|
|
77
|
+
- [Kompas Lifestyle Glossary](https://lifestyle.kompas.com/read/2026/04/23/110500720/100-bahasa-gaul-gen-z-viral-yang-sering-muncul-di-fyp-dan-artinya) (*rizz, slay, ate, its-giving, touch-grass, mbak-taylor, bercyandya, cepu, bengek, bestie, doomscrolling, skill-issue, carry, atapu*)
|
|
78
|
+
- [Gramedia 50+ Gen Z Slang](https://www.gramedia.com/best-seller/50-bahasa-gaul-gen-z-kekinian-lengkap-dengan-arti-dan-contohnya/) (*delulu, npc, mid, no-cap, bussin, gamon, pick-me, ovt, salfok, nolep, kaum-rebahan, sigma, skibidi*)
|
|
79
|
+
- [Axe Indonesia (*skena*)](https://www.axe.com/id/inspirasi/culture/arti-skena.html), [Telkomsel (*ygy*)](https://www.telkomsel.com/jelajah/jelajah-lifestyle/ygy-artinya-pahami-bahasa-gaul-yang-populer-di-tiktok-ini), [Tribunnews Bangka (*ytta/nt/tbl*)](https://bangka.tribunnews.com/2022/09/21/8-singkatan-baru-anak-tiktok-202-yang-harus-kamu-tau-artinya-ada-ytta-nt-ygy-ib-dan-pmg?page=all), [VIVA (*831/224*)](https://www.viva.co.id/gaya-hidup/inspirasi-unik/1379419-831-dan-224-meaning-dalam-bahasa-gaul-apa-sih-artinya), [Tribunnews Sumsel (*530*)](https://sumsel.tribunnews.com/2022/11/28/arti-kode-angka-530-831-24434-1432-224-361-607-4646-599-dan-323-bahasa-gaul-viral-di-medsos)
|
package/dist/cli.js
CHANGED
|
@@ -92,6 +92,24 @@ function block(parts) {
|
|
|
92
92
|
return `${parts.join("\n")}
|
|
93
93
|
`;
|
|
94
94
|
}
|
|
95
|
+
function flatRulePath(root, skillName, kind, referencePath) {
|
|
96
|
+
if (!root) {
|
|
97
|
+
throw new Error(`rules-dir layout requires a non-null target root for ${skillName}-${kind}`);
|
|
98
|
+
}
|
|
99
|
+
const flat = referencePath.replace(/[\\/]/g, "-").replace(/\.(?:yaml|yml|md)$/i, ".md");
|
|
100
|
+
const fileName = flat.endsWith(".md") ? flat : `${flat}.md`;
|
|
101
|
+
return `${root}/${skillName}-${kind}-${fileName}`;
|
|
102
|
+
}
|
|
103
|
+
var CULTURE_DESCRIPTIONS = {
|
|
104
|
+
"id/humor-boundaries.md": "SARA, accent, distress, roast limits.",
|
|
105
|
+
"id/dev-humor.md": "dev satire and stack critique.",
|
|
106
|
+
"id/absurd-humor.md": "chaos pacing and anti-cringe.",
|
|
107
|
+
"id/religious-expression.md": "non-fatwa etiquette."
|
|
108
|
+
};
|
|
109
|
+
function cultureRuleDescription(displayName, referencePath) {
|
|
110
|
+
const topic = CULTURE_DESCRIPTIONS[referencePath] ?? "Indonesian culture & register.";
|
|
111
|
+
return `${displayName} (${referencePath}): ${topic}`;
|
|
112
|
+
}
|
|
95
113
|
function alwaysOnBlock(input, extra = []) {
|
|
96
114
|
return block([
|
|
97
115
|
marker(input),
|
|
@@ -130,48 +148,48 @@ var GenericHarnessAdapter = class {
|
|
|
130
148
|
];
|
|
131
149
|
}
|
|
132
150
|
if (this.spec.layout === "rules-dir") {
|
|
151
|
+
if (!root) {
|
|
152
|
+
throw new Error(`rules-dir layout requires a non-null target root for ${skillName}`);
|
|
153
|
+
}
|
|
154
|
+
const alwaysOnRule = (path, content, kind) => ({
|
|
155
|
+
path,
|
|
156
|
+
content: block(["---", "trigger: always_on", "---", "", content.trim()]),
|
|
157
|
+
kind
|
|
158
|
+
});
|
|
159
|
+
const modelDecisionRule = (path, ruleDesc, content) => ({
|
|
160
|
+
path,
|
|
161
|
+
content: block([
|
|
162
|
+
"---",
|
|
163
|
+
"trigger: model_decision",
|
|
164
|
+
`description: ${JSON.stringify(ruleDesc)}`,
|
|
165
|
+
"---",
|
|
166
|
+
"",
|
|
167
|
+
content.trim()
|
|
168
|
+
]),
|
|
169
|
+
kind: "reference"
|
|
170
|
+
});
|
|
171
|
+
const isAlwaysOnCulture = (refPath) => /(?:^|\/)(?:genz-lexicon|memes)\.yaml$/i.test(refPath);
|
|
133
172
|
const rules = [
|
|
134
|
-
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"---",
|
|
155
|
-
"trigger: model_decision",
|
|
156
|
-
`description: "${input.persona.display_name} core policy ${reference.path}: identity, safety, decision, efficiency rules that outrank persona tone."`,
|
|
157
|
-
"---",
|
|
158
|
-
"",
|
|
159
|
-
reference.content.trim()
|
|
160
|
-
]),
|
|
161
|
-
kind: "reference"
|
|
162
|
-
})),
|
|
163
|
-
...input.cultureRefs.map((reference) => ({
|
|
164
|
-
path: `${root}/${skillName}-culture-${reference.path}`,
|
|
165
|
-
content: block([
|
|
166
|
-
"---",
|
|
167
|
-
"trigger: model_decision",
|
|
168
|
-
`description: "${input.persona.display_name} culture reference ${reference.path}: Indonesian humor boundaries, memes, registers, religious-expression etiquette."`,
|
|
169
|
-
"---",
|
|
170
|
-
"",
|
|
171
|
-
reference.content.trim()
|
|
172
|
-
]),
|
|
173
|
-
kind: "reference"
|
|
174
|
-
}))
|
|
173
|
+
alwaysOnRule(`${root}/${skillName}-voice.md`, input.voice, "skill_body"),
|
|
174
|
+
alwaysOnRule(`${root}/${skillName}-lexicon.md`, input.lexiconMarkdown, "reference"),
|
|
175
|
+
...input.coreRefs.map(
|
|
176
|
+
(reference) => modelDecisionRule(
|
|
177
|
+
flatRulePath(root, skillName, "core", reference.path),
|
|
178
|
+
`${input.persona.display_name} (${reference.path}): overrides voice.`,
|
|
179
|
+
reference.content
|
|
180
|
+
)
|
|
181
|
+
),
|
|
182
|
+
...input.cultureRefs.map(
|
|
183
|
+
(reference) => isAlwaysOnCulture(reference.path) ? alwaysOnRule(
|
|
184
|
+
flatRulePath(root, skillName, "culture", reference.path),
|
|
185
|
+
reference.content,
|
|
186
|
+
"reference"
|
|
187
|
+
) : modelDecisionRule(
|
|
188
|
+
flatRulePath(root, skillName, "culture", reference.path),
|
|
189
|
+
cultureRuleDescription(input.persona.display_name, reference.path),
|
|
190
|
+
reference.content
|
|
191
|
+
)
|
|
192
|
+
)
|
|
175
193
|
];
|
|
176
194
|
return [
|
|
177
195
|
{
|
|
@@ -182,6 +200,9 @@ var GenericHarnessAdapter = class {
|
|
|
182
200
|
...rules
|
|
183
201
|
];
|
|
184
202
|
}
|
|
203
|
+
if (!root) {
|
|
204
|
+
throw new Error(`skill-tree layout requires a non-null target root for ${skillName}`);
|
|
205
|
+
}
|
|
185
206
|
const references = [
|
|
186
207
|
{
|
|
187
208
|
path: `${root}/${skillName}/references/lexicon.md`,
|
|
@@ -547,54 +568,85 @@ function expiryIssues(persona, reviewables, today) {
|
|
|
547
568
|
return issues;
|
|
548
569
|
}
|
|
549
570
|
function renderLexicon(persona, lexicon) {
|
|
550
|
-
const
|
|
551
|
-
|
|
552
|
-
""
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
})
|
|
559
|
-
];
|
|
560
|
-
return lines.join("\n");
|
|
571
|
+
const header = `# ${persona.display_name} lexicon (rotate naturally; never spam 1 word)`;
|
|
572
|
+
const entries = lexicon.entries.map((entry) => {
|
|
573
|
+
const ref = entry.culture_ref.replace(/^id-/, "");
|
|
574
|
+
const cap = entry.max_per_response !== void 0 && entry.max_per_response !== 1 ? ` [max ${entry.max_per_response}]` : "";
|
|
575
|
+
return `${ref}${cap}: ${entry.usage}`;
|
|
576
|
+
});
|
|
577
|
+
return `${header}
|
|
578
|
+
${entries.join("; ")}`;
|
|
561
579
|
}
|
|
562
|
-
var LEXICON_ENTRY_KEYS = [
|
|
563
|
-
"id",
|
|
564
|
-
"term",
|
|
565
|
-
"gloss",
|
|
566
|
-
"register",
|
|
567
|
-
"regions",
|
|
568
|
-
"decay_class",
|
|
569
|
-
"offensiveness",
|
|
570
|
-
"contexts",
|
|
571
|
-
"avoid_when",
|
|
572
|
-
"max_per_response",
|
|
573
|
-
"purpose"
|
|
574
|
-
];
|
|
575
|
-
var MEME_ENTRY_KEYS = ["id", "pattern", "context", "avoid_when", "note"];
|
|
576
580
|
var REGISTER_KEYS = ["locale", "levels", "honorifics", "defaults", "common_errors", "banyumasan"];
|
|
577
581
|
function pick(source, keys) {
|
|
578
582
|
const record = source;
|
|
579
583
|
return Object.fromEntries(keys.filter((key) => key in record).map((key) => [key, record[key]]));
|
|
580
584
|
}
|
|
585
|
+
function formatCultureEntry(entry, isAwareness) {
|
|
586
|
+
const extras = [];
|
|
587
|
+
if (entry.register !== "informal") {
|
|
588
|
+
extras.push(entry.register);
|
|
589
|
+
}
|
|
590
|
+
const nonNational = entry.regions.filter((region) => region !== "national");
|
|
591
|
+
if (nonNational.length > 0) {
|
|
592
|
+
extras.push(nonNational.join("/"));
|
|
593
|
+
}
|
|
594
|
+
if (entry.offensiveness !== "none") {
|
|
595
|
+
extras.push(`off:${entry.offensiveness}`);
|
|
596
|
+
}
|
|
597
|
+
if (!isAwareness && entry.max_per_response !== 1) {
|
|
598
|
+
extras.push(`cap:${entry.max_per_response}`);
|
|
599
|
+
}
|
|
600
|
+
if (isAwareness && (entry.decay_class === "aging-ironic" || entry.decay_class === "dated" || entry.decay_class === "banned")) {
|
|
601
|
+
extras.push(entry.decay_class === "aging-ironic" ? "ironic" : entry.decay_class);
|
|
602
|
+
}
|
|
603
|
+
return `${entry.term}: ${entry.gloss}${extras.length > 0 ? ` (${extras.join(",")})` : ""}`;
|
|
604
|
+
}
|
|
605
|
+
function formatLexiconRuntime(parsed) {
|
|
606
|
+
const lines = [
|
|
607
|
+
`# ID lexicon (${parsed.locale}) \u2014 defaults: informal, national, off:none; vary naturally, skip in incident/distress/formal`
|
|
608
|
+
];
|
|
609
|
+
const byDecay = /* @__PURE__ */ new Map();
|
|
610
|
+
const awareness = [];
|
|
611
|
+
for (const entry of parsed.entries) {
|
|
612
|
+
const isAwareness = entry.purpose === "awareness" || entry.max_per_response === 0;
|
|
613
|
+
if (isAwareness) {
|
|
614
|
+
awareness.push(formatCultureEntry(entry, true));
|
|
615
|
+
continue;
|
|
616
|
+
}
|
|
617
|
+
const list = byDecay.get(entry.decay_class) ?? [];
|
|
618
|
+
list.push(formatCultureEntry(entry, false));
|
|
619
|
+
byDecay.set(entry.decay_class, list);
|
|
620
|
+
}
|
|
621
|
+
for (const [decay, items] of byDecay) {
|
|
622
|
+
lines.push(`## Active [${decay}]`);
|
|
623
|
+
lines.push(items.join("; "));
|
|
624
|
+
}
|
|
625
|
+
if (awareness.length > 0) {
|
|
626
|
+
lines.push("## Awareness-only (cap 0; do not generate)");
|
|
627
|
+
lines.push(awareness.join("; "));
|
|
628
|
+
}
|
|
629
|
+
return lines.join("\n");
|
|
630
|
+
}
|
|
631
|
+
function formatMemesRuntime(parsed) {
|
|
632
|
+
const lines = ["# Meme notes (avoid incident, user_distress, blaming_a_person, formal_writing)"];
|
|
633
|
+
for (const entry of parsed.entries) {
|
|
634
|
+
const nonDefaultCtx = entry.context.filter((ctx) => ctx !== "casual_work");
|
|
635
|
+
const ctxTag = nonDefaultCtx.length > 0 ? ` [${nonDefaultCtx.join("/")}]` : "";
|
|
636
|
+
lines.push(`- ${entry.pattern}: ${entry.note}${ctxTag}`);
|
|
637
|
+
}
|
|
638
|
+
return lines.join("\n");
|
|
639
|
+
}
|
|
581
640
|
function runtimeCulture(ref) {
|
|
582
641
|
const parsed = ref.parsed;
|
|
583
642
|
if (parsed === void 0) {
|
|
584
643
|
return ref.content;
|
|
585
644
|
}
|
|
586
645
|
if (parsed.schema === "hahahah.culture.lexicon/v1") {
|
|
587
|
-
return
|
|
588
|
-
schema: parsed.schema,
|
|
589
|
-
locale: parsed.locale,
|
|
590
|
-
entries: parsed.entries.map((entry) => pick(entry, LEXICON_ENTRY_KEYS))
|
|
591
|
-
});
|
|
646
|
+
return formatLexiconRuntime(parsed);
|
|
592
647
|
}
|
|
593
648
|
if (parsed.schema === "hahahah.culture.memes/v1") {
|
|
594
|
-
return
|
|
595
|
-
schema: parsed.schema,
|
|
596
|
-
entries: parsed.entries.map((entry) => pick(entry, MEME_ENTRY_KEYS))
|
|
597
|
-
});
|
|
649
|
+
return formatMemesRuntime(parsed);
|
|
598
650
|
}
|
|
599
651
|
return stringify({ schema: parsed.schema, ...pick(parsed, REGISTER_KEYS) });
|
|
600
652
|
}
|
|
@@ -3107,7 +3159,7 @@ function install(options) {
|
|
|
3107
3159
|
}
|
|
3108
3160
|
continue;
|
|
3109
3161
|
}
|
|
3110
|
-
if (
|
|
3162
|
+
if (sha2562(readFileSync4(target, "utf8")) !== oldFile.sha256 && !options.force) {
|
|
3111
3163
|
throw new InstallError(`Managed file was modified: ${artifact.path}; use --force`);
|
|
3112
3164
|
}
|
|
3113
3165
|
}
|
|
@@ -3132,6 +3184,12 @@ function install(options) {
|
|
|
3132
3184
|
};
|
|
3133
3185
|
validate("install", manifest, "install manifest", options.sourceRoot);
|
|
3134
3186
|
if (!options.dryRun) {
|
|
3187
|
+
pruneRemovedManifestFiles(
|
|
3188
|
+
targetRoot,
|
|
3189
|
+
old,
|
|
3190
|
+
new Set(artifactFiles.map((artifact) => artifact.path)),
|
|
3191
|
+
options.force === true
|
|
3192
|
+
);
|
|
3135
3193
|
pruneConflictingPersonas(targetRoot, artifactFiles, built.manifest.persona, adapterId);
|
|
3136
3194
|
for (const artifact of artifactFiles) {
|
|
3137
3195
|
writeAtomic(resolveInside2(targetRoot, artifact.path), artifact.content);
|
|
@@ -3154,6 +3212,25 @@ function install(options) {
|
|
|
3154
3212
|
dryRun: options.dryRun === true
|
|
3155
3213
|
};
|
|
3156
3214
|
}
|
|
3215
|
+
function pruneRemovedManifestFiles(targetRoot, old, nextPaths, force) {
|
|
3216
|
+
if (!old) {
|
|
3217
|
+
return;
|
|
3218
|
+
}
|
|
3219
|
+
for (const file of old.files) {
|
|
3220
|
+
if (nextPaths.has(file.path)) {
|
|
3221
|
+
continue;
|
|
3222
|
+
}
|
|
3223
|
+
const target = resolveInside2(targetRoot, file.path);
|
|
3224
|
+
if (!existsSync3(target)) {
|
|
3225
|
+
continue;
|
|
3226
|
+
}
|
|
3227
|
+
if (!force && sha2562(readFileSync4(target, "utf8")) !== file.sha256) {
|
|
3228
|
+
continue;
|
|
3229
|
+
}
|
|
3230
|
+
unlinkSync2(target);
|
|
3231
|
+
pruneEmptyDirs(dirname2(target), targetRoot);
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3157
3234
|
function pruneConflictingPersonas(targetRoot, artifactFiles, activePersona, adapterId) {
|
|
3158
3235
|
const activeDirName = `hahahah-${activePersona}`;
|
|
3159
3236
|
const skillEntry = artifactFiles.find((file) => file.path.endsWith("/SKILL.md"));
|
|
@@ -3248,8 +3325,9 @@ try {
|
|
|
3248
3325
|
}
|
|
3249
3326
|
}
|
|
3250
3327
|
function pruneEmptyDirs(start, stop) {
|
|
3328
|
+
const stopPrefix = stop.endsWith(sep3) ? stop : `${stop}${sep3}`;
|
|
3251
3329
|
let current = start;
|
|
3252
|
-
while (current !== stop && current.startsWith(
|
|
3330
|
+
while (current !== stop && current.startsWith(stopPrefix)) {
|
|
3253
3331
|
try {
|
|
3254
3332
|
if (readdirSync3(current).length > 0) {
|
|
3255
3333
|
return;
|
|
@@ -3379,7 +3457,7 @@ function update(options) {
|
|
|
3379
3457
|
adapterId: old.adapter,
|
|
3380
3458
|
scope: isGlobal ? "global" : "workspace",
|
|
3381
3459
|
dryRun: options.dryRun,
|
|
3382
|
-
force: true
|
|
3460
|
+
force: options.force === true
|
|
3383
3461
|
});
|
|
3384
3462
|
}
|
|
3385
3463
|
|
|
@@ -5526,7 +5604,12 @@ if (isMainEntry()) {
|
|
|
5526
5604
|
settingSources: parsed.values["setting-sources"],
|
|
5527
5605
|
// Edits are the one thing the agent must be able to do; shell and network
|
|
5528
5606
|
// stay denied, so the grade comes from the tests this tool runs afterwards.
|
|
5529
|
-
agentArgs: [
|
|
5607
|
+
agentArgs: [
|
|
5608
|
+
"--permission-mode",
|
|
5609
|
+
"acceptEdits",
|
|
5610
|
+
"--permission-prompts",
|
|
5611
|
+
"none"
|
|
5612
|
+
]
|
|
5530
5613
|
}),
|
|
5531
5614
|
outDir: parsed.values.out ?? join9(process.cwd(), ".plus62", "coding")
|
|
5532
5615
|
});
|
package/evals/rusuh-voice.yaml
CHANGED
|
@@ -236,3 +236,65 @@ tasks:
|
|
|
236
236
|
- '😭'
|
|
237
237
|
- '💀'
|
|
238
238
|
- 'santai bro'
|
|
239
|
+
- id: rv-proactive-tech-01
|
|
240
|
+
tags: [voice, proactive-baseline]
|
|
241
|
+
prompt: >-
|
|
242
|
+
Tanpa memakai tools. User nanya teknis:
|
|
243
|
+
"rules Android mana yang aman dipindah ke config global vs tetap di folder repo ini?"
|
|
244
|
+
Jawab langsung ke intinya.
|
|
245
|
+
checks:
|
|
246
|
+
language: id
|
|
247
|
+
require:
|
|
248
|
+
- 'global|repo|project'
|
|
249
|
+
forbid:
|
|
250
|
+
- 'Tentu, saya akan membantu'
|
|
251
|
+
- 'Rincian slotnya'
|
|
252
|
+
- '(?:^|\n)\s*1\.\s[\s\S]*\n\s*2\.\s'
|
|
253
|
+
- 'Berikut penjelasan|Kesimpulan:'
|
|
254
|
+
- id: rv-twoway-hook-01
|
|
255
|
+
tags: [voice, proactive-baseline, two-way]
|
|
256
|
+
prompt: >-
|
|
257
|
+
Tanpa memakai tools. User nanya datar: "pake state manager apa yang paling pas buat app kecil?".
|
|
258
|
+
Jawab secara alami.
|
|
259
|
+
checks:
|
|
260
|
+
language: id
|
|
261
|
+
require:
|
|
262
|
+
- '\?'
|
|
263
|
+
- 'pilihan|nggak usah|kenapa|seberapa|gimana|mau|butuh|screen|kompleks'
|
|
264
|
+
forbid:
|
|
265
|
+
- 'Tentu, saya akan membantu'
|
|
266
|
+
- 'Sebagai AI'
|
|
267
|
+
- id: rv-completion-report-01
|
|
268
|
+
tags: [voice, proactive-baseline, two-way]
|
|
269
|
+
prompt: >-
|
|
270
|
+
Tanpa memakai tools. Anggap lu baru selesai bump build.gradle.kts ke 1.3.0,
|
|
271
|
+
926/926 test hijau, release APK 5.6 MB lolos apksigner, tag v1.3.0 ke-push,
|
|
272
|
+
GitHub Actions kelar 57s, dan HEAD /latest/download/alive.apk 302. Kabarin user hasilnya.
|
|
273
|
+
checks:
|
|
274
|
+
language: id
|
|
275
|
+
require:
|
|
276
|
+
- '926'
|
|
277
|
+
- '1\.3\.0'
|
|
278
|
+
- '\?'
|
|
279
|
+
forbid:
|
|
280
|
+
- 'Hasil eksekusi'
|
|
281
|
+
- 'Berikut ringkasan'
|
|
282
|
+
- '(?:^|\n)\s*1\.\s[\s\S]*\n\s*2\.\s'
|
|
283
|
+
- 'Tentu, saya akan membantu'
|
|
284
|
+
- id: rv-nongkrong-devlog-01
|
|
285
|
+
tags: [voice, proactive-baseline, vocab, two-way]
|
|
286
|
+
prompt: >-
|
|
287
|
+
Tanpa memakai tools. Anggap lu baru kelar ngerapihin animasi UI di Motion.tsx,
|
|
288
|
+
globals.css, sama Beats.tsx tanpa infinite loop, typecheck & next build aman.
|
|
289
|
+
Kabarin user hasilnya.
|
|
290
|
+
checks:
|
|
291
|
+
language: id
|
|
292
|
+
require:
|
|
293
|
+
- 'Motion\.tsx'
|
|
294
|
+
- 'globals\.css'
|
|
295
|
+
- 'Beats\.tsx'
|
|
296
|
+
- '\?'
|
|
297
|
+
forbid:
|
|
298
|
+
- '(?:^|\n)\s*-\s+[^\n]{3,45}\([\w./-]+\.(?:tsx?|css|kt|md)\):'
|
|
299
|
+
- 'Tentu, saya akan membantu'
|
|
300
|
+
- '(?:\bbre\b[\s\S]*){2,}'
|