14 Commits
Author SHA1 Message Date
xsserandCodex 4a7793859b fix: preserve PUA tone across model runtimes in 3.5.1
Retain original skill rhetoric and the frozen flavor library while adding
portable Claude Code, Codex and ChatGPT runtime contracts and packages.
Correct hook event handling, scoped numeric checkpoints, flavor locks,
plugin path resolution, advisory integrity checks and voluntary feedback.

Add native-loading and ordered-evidence runners for cc0, OMP and Codex.
Document paired model results, refusals, approval/rate-limit failures,
explanatory factual errors and remaining evidence gaps without an all-model
pass claim. Exclude private execution archives from public Git content.

Bump all six PUA manifests including Pi, refresh three-language READMEs,
and add release notes plus reproducible offline validation instructions.
Resolve optional OMP source metadata relative to the current user's home.

Validation:
- 17 offline suites passed, including 13 OMP evidence regressions
- Six manifest versions synchronized; all tested skill hashes unchanged
- Three portable packages rebuilt reproducibly; original tone checks pass
- Python, Bash and JSON syntax; public doc links; staged diff checks pass
- 330 private archive files verified unchanged and excluded from staging

Real-model results remain limited: this is not universal behavior acceptance.

Co-authored-by: Codex <codex@openai.com>
2026-09-09 17:56:22 +08:00
xsser ac50267918 Remove all data collection: 5 upload channels, client and server
PUA Skill no longer sends anything over the network. Removed end to end,
both the client hooks that emit data and the server that received it.

Channels removed:
- Session transcript upload   (/api/upload)      full redacted .jsonl
- Rating feedback             (/api/feedback)    rating, counts, flavor
- Silent heartbeat telemetry  (/api/heartbeat)   install id, version, platform
- PUA leaderboard             (/api/leaderboard) email, phone, PUA counts
- pua-api platform            (agentguard.workers.dev)
    phone + SMS registration, silent session_start/pua_triggered/command_used
    events, remote prompt-template fetch, and the payment flow that depended
    on the registration token

Client:
- delete hooks/heartbeat.sh; drop both SessionStart registrations
- stop-feedback.sh: 5 curl calls -> append one line to ~/.pua/feedback.jsonl
- rewrite references/platform.md as a local-only command reference
- drop the leaderboard section and commands from skills/pro
- survey/pua/offline command docs: local-only wording

Server:
- delete all Pages Functions (upload, feedback, heartbeat, leaderboard,
  _sanitize, me, _session, auth/*) and all 5 D1 migrations
- contribute + admin pages become notices; no upload form, no login
- wrangler.toml: drop R2/D1 bindings and GitHub OAuth vars

Note: removing the bindings does not delete stored data. The R2 bucket
(puaskill-upload), the D1 database (pua-uploads-db) and the
GITHUB_CLIENT_SECRET / SESSION_SECRET secrets must be deleted in the
Cloudflare dashboard separately.

Guard rail:
- add evals/test-no-telemetry.sh: reverse assertions over the whole repo
  (collection hosts, endpoint paths, outbound request bodies, deleted files,
  hook registrations, CF bindings) plus a positive control that local
  feedback still works. Verified by injecting both a naive and an evasive
  upload; 4 and 2 gates fired respectively.
- test-upload-flow / test-heartbeat / test-feedback-auth asserted that
  collection worked, so they were replaced rather than merely deleted --
  deleting them would have removed the guard along with the feature.

hooks/sanitize-session.sh is kept as a standalone offline redaction tool.
Unlike the deleted TypeScript port it does not split input per line, so the
multiline PEM pattern still matches (issue #134 ID-001 did not apply to it).

Refs #134, #98, #100
2026-08-29 15:57:20 +08:00
xsser b2c4f913f2 feat(ding): v3.5.0 — 钉味 skill 全面升级 blockquote + 来源标注
- 所有钉味输出从 ▎ Unicode 前缀改为 markdown blockquote(> )语法
  Claude Code 渲染器仅对 > 语法触发 dim ▎ + italic 灰色块样式
- 每条 blockquote 开头标注来源:《置身钉内》或《置身钉外》
- 新增独立 skills/ding/ skill 目录(SKILL.md + references/)
- 新增 commands/ding.md、evidence.md、again.md、done-check.md
- 新增 evals/test-trigger-regex.sh(38 条触发正则测试)
- hooks/session-restore.sh、flavor-helper.sh 同步更新格式
- 版本号 3.4.6 → 3.5.0(plugin.json + 两个 marketplace manifest)
2026-06-12 17:44:35 +08:00
xsserandCodex 0672b260b3 feat(pua): sweep open issues and add offline adapters
Summary:
- Filter UserPromptSubmit prompts inside the hook and soften hook wording so
  normal first-attempt prompts stay silent and frustration prompts read as
  user-installed productivity context.
- Add offline mode, remove stop-feedback /tmp plugin-root rendezvous, and add
  feedback endpoint body caps, origin checks, and D1-backed rate limiting.
- Add diagnosis-first discipline, Huawei military-order mode, Codex subcommand
  alias skills, a lightweight pi adapter, and Trae prompt/rule files.
- Clarify ambiguous 下场 wording, add FAQ guidance, and bump manifests to
  v3.3.0.

Rationale:
- Open issues covered over-aggressive hooks, model refusal, closed-network
  usage, Codex subcommands, Pi/Trae support, feedback abuse, ambiguous lifecycle
  wording, Huawei tone, and the misleading-traceback blind spot.
- The fixes convert ad-hoc prompt pressure into mechanical gates: script-level
  trigger filtering, offline config gates, endpoint abuse controls, and static
  regression checks.

Tests:
- for f in hooks/*.sh scripts/*.sh evals/*.sh; do bash -n "$f"; done
- bash evals/test-windows-python-hooks.sh
- bash evals/test-yaml-frontmatter.sh
- bash evals/test-release-consistency.sh
- bash evals/test-agent-governance.sh
- bash evals/test-pua-loop-hook.sh
- bash evals/test-integrity-guard.sh
- bash evals/test-issue-regressions.sh
- bash evals/test-behavior.sh
- bash evals/run-trigger-test.sh
- ./landing/node_modules/.bin/tsc -p pi/pua/tsconfig.json --noEmit
- npm -C landing run build
- git diff --check
- python3 JSON parse check for plugin and hook manifests

Co-authored-by: Codex <codex@openai.com>
2026-05-08 23:41:30 +08:00
xsserandCodex b995858141 fix(pua): harden confidence gate and trigger evals
Summary:
- Replace the one-line confidence loop with an explicit Confidence Gate
  that enumerates claims, finds risks, fixes or discloses them, and
  reruns evidence before delivery.
- Make pua-loop Oracle verification portable on macOS/Linux and add
  hook smoke tests for verified, rejected, and quoted verify commands.
- Fix trigger/behavior evals so they use portable timeouts, isolated
  PUA config, a neutral workspace, and the Claude CLI stream-json
  verbose requirement.
- Tighten PUA skill and slash-command descriptions to avoid triggering
  on normal first-attempt coding or information requests.
- Bump marketplace/plugin manifests to v3.2.5 with an updated Claude
  marketplace changelog summary.

Rationale:
- The previous strategy relied on vague "100% confidence" wording and
  left the verification system itself vulnerable to false failures on
  macOS, local user config leakage, and workspace-biased false triggers.
- Confidence is now defined as evidence-backed gates: all runnable
  checks pass, known high-risk issues are fixed, and residual risks are
  disclosed.

Tests:
- bash -n hooks/*.sh scripts/*.sh evals/*.sh
- bash evals/test-yaml-frontmatter.sh
- bash evals/test-release-consistency.sh
- bash evals/test-pua-loop-hook.sh
- bash evals/test-behavior.sh
- bash evals/run-trigger-test.sh

Co-authored-by: Codex <codex@openai.com>
2026-05-08 20:54:48 +08:00
xsser b94de65270 feat: add mama command route and individual command file
- Add mama route to commands/pua.md router (was missing entirely)
- Create commands/mama.md for /pua:mama direct invocation
- Update argument-hint and trigger list to include mama
- Fixes: /pua mama and /pua:mama now both work correctly
2026-03-26 17:57:13 +08:00
xxnbyy 1f3b24bff8 fix: sync skill content across all platforms and fix landing page accuracy
**Skill content sync (cursor/kiro/vscode/codex/codebuddy):**
- Add Owner意识四问 (4-question owner mindset checklist)
- Add 3 new failure modes: 被动等待/差不多就行/空口完成
- Add 阿里味·关怀型 (caring variant) to 大厂PUA扩展包
- Add 自动选择机制 with output format and examples
- Add 3 new 抗合理化 entries for the new failure modes
- Fix broken 断链: add 百度味/拼多多味 definitions to cursor rules
- codex/codebuddy: add 任务生命周期行为框架 (task lifecycle framework)
- Add pua-loop skill; remove obsolete loop skill

**README fixes:**
- ja: add missing VSCode (GitHub Copilot) from supported platforms list
- zh-CN + ja: add /pua:p9 and /pua:pro to Works Well With section

**Landing page accuracy:**
- Unify flavor count: 10/14 → 13 across index.html, guide.html, i18n.ts, App.tsx
- Add Google Antigravity to hero platform badges (dist/index.html)
- Complete platform list in App.tsx: 4 → 9 platforms
- Fix CC install command: show both marketplace add + plugin install steps

**New commands:** flavor, kpi, off, on, survey
**Add CLAUDE.md** project instructions for Claude Code
2026-03-23 19:12:32 +08:00
xxnbyy 39bc64997f fix(commands): add yes route and loop to argument-hint in pua.md
/pua yes was missing from routing table despite pua:yes skill existing.
argument-hint was also missing yes and loop entries.
2026-03-22 23:00:41 +08:00
xxnbyy 7c217b80b0 fix(security): address issues #97-100 — hooks consent, sanitize, loop escape, privacy disclosure
## Issue #97 — Hooks fire without user consent
- PreCompact hook now checks for PUA activation markers before writing files
- Stop feedback hook skips if PUA was never triggered this session

## Issue #98 — Session sanitization incomplete
- Sanitize script upgraded; rate limiting migration added (0003_feedback_rate_limiting.sql)

## Issue #99 — PUA Loop no in-session escape
- Default max iterations changed from unlimited to 30
- Added <loop-abort> (terminate) and <loop-pause> (pause for manual intervention) signals
- Loop hook supports active:false for pause state; session self-binding on resume
- Added /cancel-pua-loop command; guide.html and README updated
- PUA pressure escalation injected per iteration via system message

## Issue #100 — Upload endpoint undisclosed PII
- Privacy/data-usage disclosure added to contribute.html (ZH+EN bilingual)
- Contribute.tsx updated with same disclosure

## Additional fixes
- Rename commands/loop.md → commands/pua-loop.md; add cancel-pua-loop.md
- Replace "Ralph Loop × PUA" with "PUA Loop" across all user-facing docs
- Fix nav active-state highlighting on all sub-pages
- Fix logout button (GET method); redirect to /contribute.html
- Add JA language support to leaderboard.html
- Add "how to find session file" guide to contribute.html
- Unify nav-r gap (1rem) across all pages

Closes #97
Closes #98
Closes #99
Closes #100
2026-03-22 18:54:58 +08:00
xsser 7111e6e7f2 feat: /pua:loop — autonomous iteration with PUA pressure, no AskUserQuestion 2026-03-20 16:24:43 +08:00
xsser 7d8ceba64c fix(command): force skill behavior execution after loading — Sprint Banner + 旁白 + 方框表格 2026-03-20 14:49:27 +08:00
xsser 619248b830 fix: rename /pua command — remove 'debugging' branding, fix skill reference
- Command description: remove 'debugging' limitation, applies to all tasks
- Fix skill reference: ali-pua:pua → pua:pua
- Plugin/marketplace descriptions: 'PUA Debugging Motivator' → 'PUA Motivator'
- Remove debugging-specific keywords
- Bump version to 1.1.1
2026-03-13 16:48:25 +08:00
xsser ac015ceb0e rename: unify all skill names from pua-debugging to pua
- skills/pua-debugging → skills/pua (same for -en, -ja)
- codex/pua-debugging → codex/pua (same for -en, -ja)
- cursor/rules/pua-debugging.mdc → cursor/rules/pua.mdc (same for -en, -ja)
- kiro/steering/pua-debugging.md → kiro/steering/pua.md (same for -en, -ja)
- All file contents updated: pua-debugging → pua
- All READMEs and landing page install commands updated
- Published to ClawHub as pua, pua-en, pua-ja
2026-03-12 19:00:41 +08:00
xsser bcf1633a91 Initial release: PUA Debugging Motivator for Claude Code
- 4-level escalating pressure system (L1-L4) using Chinese tech corp PUA rhetoric
- Systematic debugging methodology (三板斧 + 7-item checklist)
- Benchmarked across 6 real bug scenarios: +27% fixes, +65% verifications
- Landing page at https://pua-skill.pages.dev
- Slash command /pua for manual trigger
2026-03-09 00:56:33 +08:00