The PRD's first acceptance gate now holds: grep -RinE '\bx\.ai\b|grok' crates/ --include='*.rs' → 0 matches (exempt: NOTICE and third-party license archives, README provenance, and the required 'Based on Grok Build Open Source' attribution, now sourced from version_attribution.txt). Wire-visible renames (both sides in this repo, changed in lockstep): - Auth method id 'grok.com' → 'kimi-code' (AuthMethodKind::KimiCode). - Every x.ai/* and _x.ai/* ACP ext method and meta key → kigi/* / _kigi/* (~200 names; grokShell → kigiShell). Session-file replay keeps a read-side alias for the legacy '_x.ai/session/update' method so existing updates.jsonl histories load; writes emit only the new name (both directions test-pinned). - Agent types grok-build* → kigi* with a documented legacy-prefix alias at resolution time so persisted sessions keep resolving. - ToolNamespace/BuiltinAgentName GrokBuild* → Kigi* (wire snake_case kigi/kigi_concise/kigi_hashline; schema regenerated); grok_build implementation dirs renamed to kigi*. - x-grok-* headers → x-kigi-*, __GROK_* sentinels → __KIGI_*, themes grokday/groknight → kigiday/kiginight (old persisted values fall back to the default theme), web_fetch allowlist xAI hosts → kimi.com + moonshot platforms, changelog CDN → this repo, grok-build changelog archives deleted. - BYOK default endpoint removed: [endpoints] api_base_url is now truly optional with NO default — consumers fail fast with the flag name when unset (no silent x.ai egress). Mock harnesses inject it explicitly. - System-prompt identity fixed: 'released by xAI' → 'an unofficial community CLI for Kimi' (template + regenerated encrypted form). Also repaired pre-existing grok-era test debt found by the sweep: the stale trace_classify default-model pin, the grok-pager UA label test, pty-harness stale-binary reuse and non-hermetic moonshot routing (a PTY test could previously reach the real api.moonshot.cn), and the outdated oauth fixture scope key. Gates: §9 grep 0; fmt clean; workspace check/clippy 0/0 (-D warnings); FULL cargo test --workspace: 234 suites, 21,961 passed, 0 failed; deny advisories ok.
103 lines
5.0 KiB
Plaintext
103 lines
5.0 KiB
Plaintext
# Synthetic bash-history corpus for permission-view / fuzzy-match tests.
|
|
# All hostnames, paths, user names, branch names, and flags are fictionalized
|
|
# or generic. No real production session content. (OSS fixture hygiene.)
|
|
#
|
|
### CMD 01
|
|
gh api user --jq '.login' && echo "---" && gh search prs --author=@me --sort=updated --limit=15 --json number,title,url,state,updatedAt,repository,isDraft --jq '.[] | "\(.state)\t#\(.number)\t\(.updatedAt)\t\(.repository.nameWithOwner)\t\(.title)\t\(.url)"'
|
|
### END
|
|
### CMD 02
|
|
cargo test \
|
|
--all \
|
|
-- --nocapture
|
|
### END
|
|
### CMD 03
|
|
docker run \
|
|
-v /tmp:/tmp \
|
|
-e FOO=bar \
|
|
alpine:latest echo hi
|
|
### END
|
|
### CMD 04
|
|
cat <<'EOF' && echo after
|
|
line with && not an operator
|
|
line with | pipe text
|
|
EOF
|
|
### END
|
|
### CMD 05
|
|
echo "a && b" && echo real && echo 'x | y'
|
|
### END
|
|
### CMD 06
|
|
git status --short --branch && cargo test --workspace --all-features
|
|
### END
|
|
### CMD 07
|
|
ps aux | grep -v grep | grep cargo | head -n 20
|
|
### END
|
|
### CMD 08
|
|
true&&false||true; echo done
|
|
### END
|
|
### CMD 09
|
|
cd /tmp && sleep 1 && timeout 30 cargo check 2>&1 | tail -50
|
|
### END
|
|
### CMD 10
|
|
python3 -c 'print("hello && world | not pipe")' && echo ok
|
|
### END
|
|
### CMD 11
|
|
cd /tmp/compaction-repro && KIGI_AUTO_COMPACT_THRESHOLD_PERCENT=1 /tmp/pager-under-test -p 'reply with exactly: ok' --model example-model --always-approve --no-leader > /tmp/compaction-repro/headless2.log 2>&1; echo EXIT=$? >> /tmp/compaction-repro/headless2.log
|
|
### END
|
|
### CMD 12
|
|
cd /tmp/compaction-repro && KIGI_AUTO_COMPACT_THRESHOLD_PERCENT=1 /tmp/pager-under-test -p 'reply with exactly: ok' --always-approve --no-leader > /tmp/compaction-repro/headless1.log 2>&1; echo EXIT=$? >> /tmp/compaction-repro/headless1.log
|
|
### END
|
|
### CMD 13
|
|
cd /Users/alice/Documents/code/project && DYLD_INSERT_LIBRARIES=/opt/homebrew/opt/libfaketime/lib/faketime/libfaketime.1.dylib FAKETIME="@2026-06-11 23:58:30" FAKETIME_DONT_FAKE_MONOTONIC=1 /tmp/pager-under-test-dr --no-leader --always-approve 2>/tmp/ftroll.err
|
|
### END
|
|
### CMD 14
|
|
! kubectl oidc-login get-token --oidc-issuer-url https://login.example.com --oidc-client-id example-client-id --oidc-extra-scope "openid profile email groups offline_access" >/dev/null && echo OIDC_OK
|
|
### END
|
|
### CMD 15
|
|
ssh -t -L 8000:localhost:8000 user@build-host.example.internal 'cd /home/user/project && export PATH=$HOME/.cargo/bin:$PATH && ./scripts/login.sh'
|
|
### END
|
|
### CMD 16
|
|
cd /Users/alice/Documents/code/project && DYLD_INSERT_LIBRARIES=/opt/homebrew/opt/libfaketime/lib/faketime/libfaketime.1.dylib FAKETIME_TIMESTAMP_FILE=/tmp/ftfile FAKETIME_NO_CACHE=1 FAKETIME_DONT_FAKE_MONOTONIC=1 /tmp/pager-under-test-dr --no-leader --always-approve 2>/tmp/ftdbg.err
|
|
### END
|
|
### CMD 17
|
|
! kubectl --context kind-local -n example-system get secret example-db-password -o jsonpath='{.data.EXAMPLE_DB_PASSWORD}' | base64 -d
|
|
### END
|
|
### CMD 18
|
|
curl -fsSL x.ai/cli/install.sh | grep jq
|
|
### END
|
|
### CMD 19
|
|
curl -LsSf "http://file-server.example.internal/cicd/example/install.sh?nocache" | bash
|
|
### END
|
|
### CMD 20
|
|
! sudo du -shx /.Spotlight-V100 /.DocumentRevisions-V100 /private/var/vm /private/var/folders /cores /Library 2>/dev/null | sort -rh
|
|
### END
|
|
### CMD 21
|
|
cat ~/.kigi/config.toml | grep composer
|
|
### END
|
|
### CMD 22
|
|
KIGI_DEBUG_CONTEXT_WINDOW=100000 KIGI_AUTO_COMPACT_THRESHOLD_PERCENT=5 /tmp/pager-under-test -r 019e0000-0000-7000-8000-000000000001 -p 'reply with exactly: again' --model example-model --always-approve --no-leader > /tmp/compaction-repro/headless5.log 2>&1; echo EXIT=$? >> /tmp/compaction-repro/headless5.log
|
|
### END
|
|
### CMD 23
|
|
KIGI_AUTO_COMPACT_THRESHOLD_PERCENT=1 /tmp/pager-under-test -r 019e0000-0000-7000-8000-000000000001 -p 'now reply with exactly: done' --model example-model --always-approve --no-leader > /tmp/compaction-repro/headless3.log 2>&1; echo EXIT=$? >> /tmp/compaction-repro/headless3.log
|
|
### END
|
|
### CMD 24
|
|
KIGI_AUTO_COMPACT_THRESHOLD_PERCENT=1 /tmp/pager-under-test -r 019e0000-0000-7000-8000-000000000001 -p 'reply with exactly: final' --model example-model --always-approve --no-leader > /tmp/compaction-repro/headless4.log 2>&1; echo EXIT=$? >> /tmp/compaction-repro/headless4.log
|
|
### END
|
|
### CMD 25
|
|
KIGI_AUTO_COMPACT_THRESHOLD_PERCENT=1 /tmp/pager-under-test -p 'reply with exactly: ok' --model example-model --always-approve --no-leader > /tmp/compaction-repro/headless1.log 2>&1; echo EXIT=$? >> /tmp/compaction-repro/headless1.log
|
|
### END
|
|
### CMD 26
|
|
cd /Users/alice/Documents/code/project-wt/fix-prompt-wheel-history && \\
|
|
### END
|
|
### CMD 27
|
|
strings target/debug/kigi-tui | grep -c slash-mru-writer # must print >=1\
|
|
### END
|
|
### CMD 28
|
|
SSH_CONNECTION='10.0.0.1 51234 10.0.0.2 22' \\
|
|
### END
|
|
### CMD 29
|
|
DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=/opt/homebrew/lib/faketime/libfaketime.1.dylib FAKETIME_TIMESTAMP_FILE=/tmp/ft.rc FAKETIME_NO_CACHE=1 FAKETIME_DONT_FAKE_MONOTONIC=1 /tmp/pager-date-test --model kigi --always-approve --no-leader
|
|
### END
|
|
### CMD 30
|
|
DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=/opt/homebrew/lib/faketime/libfaketime.1.dylib FAKETIME_TIMESTAMP_FILE=/tmp/ft.rc FAKETIME_NO_CACHE=1 FAKETIME_DONT_FAKE_MONOTONIC=1 /tmp/pager-date-test --always-approve --no-leader
|
|
### END
|