@letsrebase/verify 0.0.0-stage → 0.1.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/.claude/commands/rebase-verify.md +118 -0
- package/LICENSE +21 -0
- package/PRIVACY.md +113 -0
- package/README.md +210 -2
- package/SECURITY.md +33 -0
- package/bin/rebase-verify.mjs +700 -0
- package/package.json +38 -4
- package/share/practices.json +224 -0
- package/share/tech-labels.json +57 -0
- package/share/tech-lexicon.json +62 -0
- package/src/adapters/claude-code.mjs +225 -0
- package/src/adapters/codex.mjs +476 -0
- package/src/adapters/cursor.mjs +584 -0
- package/src/adapters/kimi.mjs +594 -0
- package/src/adapters/omp.mjs +59 -0
- package/src/adapters/opencode.mjs +439 -0
- package/src/adapters/pi.mjs +414 -0
- package/src/adapters/tool-vocab.mjs +15 -0
- package/src/agent-run.mjs +10 -0
- package/src/agentic-literacy.mjs +211 -0
- package/src/agents/acp.mjs +364 -0
- package/src/agents/json-answer.mjs +72 -0
- package/src/agents/registry.mjs +370 -0
- package/src/agents/run.mjs +131 -0
- package/src/ai-relationship.mjs +95 -0
- package/src/consistency.mjs +382 -0
- package/src/days.mjs +45 -0
- package/src/digest.mjs +501 -0
- package/src/distribution.mjs +54 -0
- package/src/enrich.mjs +118 -0
- package/src/fingerprint.mjs +134 -0
- package/src/forensics.mjs +178 -0
- package/src/groundedness.mjs +347 -0
- package/src/hub.mjs +136 -0
- package/src/intensity.mjs +132 -0
- package/src/live-status.mjs +79 -0
- package/src/practices-llm.mjs +90 -0
- package/src/practices-rules.mjs +295 -0
- package/src/practices-sample.mjs +111 -0
- package/src/practices.mjs +279 -0
- package/src/profile-llm.mjs +249 -0
- package/src/profile.mjs +497 -0
- package/src/redact.mjs +97 -0
- package/src/sources.mjs +91 -0
- package/src/submit.mjs +65 -0
- package/src/system-text.mjs +3 -0
- package/src/tech-usage.mjs +88 -0
- package/src/trajectory.mjs +264 -0
- package/src/wizard.mjs +411 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Work profile: build your agentic work profile using your Claude subscription and send it to rebase for review
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
You are running the **narrative step** of `rebase-verify` for the human in front of you (the candidate). The deterministic pipeline (reading their Claude Code logs, redacting PII, clustering, scoring authenticity) is in `bin/rebase-verify.mjs`. Your job is to produce the qualitative prose so the candidate's own Claude subscription writes it, no API key needed.
|
|
6
|
+
|
|
7
|
+
`npx @letsrebase/verify` is the main way to make a profile now: a wizard that lets the candidate pick the coding agent. This slash command is the second way, from a clone of the repo. A profile made through it records `slash-command` as the agent that wrote and classified it, with no model.
|
|
8
|
+
|
|
9
|
+
The default is **save, don't submit**. Submitting is a separate, explicit action the candidate triggers later.
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. **Timezone, in ONE sentence.** Day-based counts (active days, longest streak) are bucketed in UTC by default so nothing location-shaped leaves the machine; if they'd rather have them in their local timezone, you'll pass `--tz <IANA zone>` (e.g. `--tz Europe/Rome`) and the zone gets recorded in the profile. Don't push either way: UTC is a fine default. There are no contact questions: when they send the profile, they sign in to rebase and that identifies them.
|
|
14
|
+
|
|
15
|
+
2. **Run prepare.** Execute:
|
|
16
|
+
```
|
|
17
|
+
node bin/rebase-verify.mjs prepare
|
|
18
|
+
```
|
|
19
|
+
If the candidate opted into a local timezone in step 1, append `--tz <zone>` here AND to the `finalize` call in step 6. `prepare` and `finalize` must use the same `--tz`: the sampled sessions in `out/practices-sample.json` and every day and month count are bucketed in that zone, and `finalize` re-reads the logs.
|
|
20
|
+
Show the candidate the line `… representative: …` from the output. This is the auto-selection of representative projects, 3 to 5, adaptive: flagships by significance, plus a 4th/5th slot only when a project adds a new primary type or comparable significance. `--top N` forces a fixed count if the candidate asks.
|
|
21
|
+
|
|
22
|
+
3. **Read `out/narrative-input.json`.** It contains:
|
|
23
|
+
- For each representative project: an id (`p1`, `p2`, …), a `repoLabel` (the candidate's own repo directory name, use this to talk to the candidate so they know which project you mean), type tags, sessions, repo areas touched, stack, landing signals, an `orchestration` block, sampled prompts, learning topics, LOCAL repo context.
|
|
24
|
+
- The `orchestration` block per project: `delegation` (sub-agent Task calls), `tools` (per-CLI session split), `toolCount` (distinct agent CLIs; an `"unknown"` bucket never counts as one), `toolOverlap` (true = at least two CLIs active in overlapping periods, false = disjoint eras, null = nothing to compare), `dispatchCommands` (shell commands that launched an agent CLI headless, may target the same CLI, e.g. `claude -p` from a Claude Code session). Every count is a lower bound (under single-source capture `toolCount` is pinned at 1), so never read `toolCount` 1 / `dispatchCommands` 0 as "did not orchestrate". `toolCount` >= 2 with `toolOverlap` false is tool adoption/migration across different periods, not concurrent fan-out: describe cross-CLI fan-out only when `toolOverlap` is true; `dispatchCommands` > 0 evidences programmatic agent dispatch, not cross-CLI fan-out by itself. Naming the agent CLIs themselves (Claude Code, opencode, …) is fine, they are tools, not client brands.
|
|
25
|
+
- A `trajectory` block: behavioral shifts (numbers, early vs late half), topic clusters per quarter from web research, `vocabularyCandidates` (raw recurring-late words, many are common chat words, you pick the technical/domain-specific ones).
|
|
26
|
+
- A `principlesDiff`: lines the candidate ADDED to their own CLAUDE.md / README over time, their codified doctrine.
|
|
27
|
+
- `compactionSummaries`: dense self-portraits the model wrote about earlier sessions (already redacted).
|
|
28
|
+
The local context contains real names and is for your eyes only.
|
|
29
|
+
|
|
30
|
+
**Always refer to projects by `repoLabel` when talking to the candidate** (e.g. "for *acme-storefront* you'd want to..."), never by opaque `p1`/`p2`.
|
|
31
|
+
|
|
32
|
+
4. **Write `out/narrative.json`** with exactly this shape:
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"summary": "2-3 sentences: WHAT this person works on (top domains) and HOW they work with AI.",
|
|
36
|
+
"domains": [
|
|
37
|
+
{ "label": "abstract field of work (no proper names), derived from the domainEvidence array covering ALL products", "products": 1, "sessions": 1, "note": "1 short clause of evidence (optional)" }
|
|
38
|
+
],
|
|
39
|
+
"cognitive": { "narrative": "4-6 sentences: decomposition, verification, error handling, orchestration, risk, calibrated trust in AI." },
|
|
40
|
+
"agentic_literacy": { "narrative": "2-3 sentences on agentic-stack maturity. NO custom skill / MCP / project / client names. Describe in the abstract: 'has authored custom commands', 'integrates a custom MCP server', 'orchestrates extensively through sub-agents', etc." },
|
|
41
|
+
"ai_relationship": { "narrative": "2-3 sentences on WHEN they pick directing vs co-thinking mode (from the AI_RELATIONSHIP block)." },
|
|
42
|
+
"intensity": { "narrative": "1-2 sentences on how deeply Claude is embedded in their daily workflow (from the PRACTICE_INTENSITY block)." },
|
|
43
|
+
"distribution": { "narrative": "1-2 sentences on how they spread work across products (from the WORK_DISTRIBUTION block): many products touched briefly (portfolio steering) vs few products returned to repeatedly (sustained building), and what it implies about how they engage. Neither pole is better. The summary should reflect this breadth-vs-depth shape in one clause too." },
|
|
44
|
+
"trajectory": {
|
|
45
|
+
"narrative": "3-5 sentences on STRATEGIC and CULTURAL change over the window. Cite the data when it backs a claim. NO stack names here, those go in the separate stack section.",
|
|
46
|
+
"vocabulary_adopted": ["6-10 technical/domain words picked from vocabularyCandidates (skip common verbs/adverbs)"],
|
|
47
|
+
"principles_adopted": [
|
|
48
|
+
{ "when": "YYYY-MM", "text": "a principle the candidate codified (paraphrased from principlesDiff, abstract, no proper names)" }
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"projects": [
|
|
52
|
+
{ "id": "p1", "domain": "abstract domain description", "did": "2-3 sentences on what they did", "why_representative": "1 sentence" }
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Hard rules (do not bend):**
|
|
58
|
+
- **No proper names.** No companies, clients, people, products, brands, repositories. Describe each project ONLY by abstract domain and context.
|
|
59
|
+
- Use only the data provided in `out/narrative-input.json`. No invention, no hyperbole.
|
|
60
|
+
- Evidence-based: claims supported by signals (areas, stack, landing, prompts, commits).
|
|
61
|
+
- English, dry, readable. No emojis, no em dashes.
|
|
62
|
+
- Length: summary ≤ 60 words; cognitive narrative ≤ 130 words; learning summary ≤ 40 words; ai_relationship / intensity / distribution narratives ≤ 50 words each; per-project domain ≤ 60 words; per-project `did` ≤ 60 words.
|
|
63
|
+
- Domains rollup: 3-5 entries. Assign every product in `domainEvidence` to exactly one domain; the summed `products` and `sessions` across domains must not exceed the profile totals (groundedness checks this). Labels abstract, counts only, never names.
|
|
64
|
+
|
|
65
|
+
5. **Classify the model practices, only when `out/practices-input.json` exists.** If the file is not there, skip this step. Before you read anything, tell the candidate in plain words:
|
|
66
|
+
- which practices are classified: the ids listed under `practices` in `out/practices-input.json`, each with its definition and examples (what counts and what does not);
|
|
67
|
+
- that only their own messages are read, from the sampled sessions (at most 60 sessions, 12 messages each, already redacted), never the agent's answers, sub-agent briefs, task notifications, compaction summaries, opencode child sessions or any file;
|
|
68
|
+
- that the model they are already using here answers, and rebase never receives the messages, only the counts;
|
|
69
|
+
- that only the counts leave their machine ("seen in N of M sessions"), while the per-session answers stay in `out/practices-detail.json`, which is never sent.
|
|
70
|
+
|
|
71
|
+
Then read `out/practices-input.json` and write `out/practices.json`: exactly one object per session id (`s01`, `s02`, …) and, in it, exactly one boolean per practice id. No other keys, no reasons, no quotes. Apply each definition as written, answer `false` when in doubt, and never let tone, feelings, politeness or wording quality count as a reason for `true`. Example for two practices and two sessions:
|
|
72
|
+
```json
|
|
73
|
+
{ "s01": { "practice_one": true, "practice_two": false }, "s02": { "practice_one": false, "practice_two": false } }
|
|
74
|
+
```
|
|
75
|
+
The next step runs `finalize`, which merges the counts; it checks the file and stops with a message if it does not fit.
|
|
76
|
+
|
|
77
|
+
6. **Run finalize.** Execute:
|
|
78
|
+
```
|
|
79
|
+
node bin/rebase-verify.mjs finalize \
|
|
80
|
+
--narrative-file out/narrative.json
|
|
81
|
+
```
|
|
82
|
+
This writes `out/candidate.json` (for agents) and `out/profile.md` (for humans).
|
|
83
|
+
The profile now also carries counts of work practices (seen in N of M sessions, seven counted by code from tool calls and file paths, four classified by their own model in step 5, all visible in this profile; only the counts are carried, never the commands, paths or file names). Tell the candidate they can read them under "How the work is done" in `out/profile.md` (that section only appears when at least one practice could be counted), and that the README section "Work practices" defines each one.
|
|
84
|
+
|
|
85
|
+
7. **Show `out/profile.md`** to the candidate, then ask the four review questions below **ONE AT A TIME, in order**. Wait for an answer before moving to the next. **Do NOT enumerate them in a single block**: the goal is a conversation, not a survey.
|
|
86
|
+
|
|
87
|
+
**Question 1: Representative projects.** State the ones that were auto-selected (3 to 5) with their repoLabel ("acme-storefront, e-commerce storefront", etc.) and ask if any should be swapped for one from the inventory. After their answer, edit `out/candidate.json` if needed.
|
|
88
|
+
|
|
89
|
+
**Question 2: Artifacts (optional).** Artifacts MUST belong to the specific project they are attached to. Do NOT pick URLs from the candidate's `learningTopics` or recent web searches: those are research links, not artifacts. Go through the representative projects ONE BY ONE, repoLabel by repoLabel:
|
|
90
|
+
|
|
91
|
+
- For each project, name it ("for *acme-storefront* (the e-commerce storefront), do you have a deploy URL, repo or PR that shows THIS specific project?") and wait for the candidate's reply. Links only: rebase takes no attached files, so a screenshot has to be a link to somewhere it already lives.
|
|
92
|
+
- If they say no for that project, move on to the next. Skipping is fine.
|
|
93
|
+
- If they offer a URL, sanity-check it against the project domain you described. If it doesn't seem to match (e.g. they give a personal site URL for a creator platform), ask before attaching.
|
|
94
|
+
- Never invent or guess an artifact. Confidentiality boundary stays with the candidate, never push to attach.
|
|
95
|
+
|
|
96
|
+
When updating `out/candidate.json`, write the artifact under the SAME project id:
|
|
97
|
+
```json
|
|
98
|
+
{ "id": "p1", "artifact": { "type": "url", "url": "...", "label": "..." } }
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Question 3: New vocabulary review.** Read the list of words you picked for `vocabulary_adopted` aloud with them. Flag any borderline tokens (researcher / framework / library names are signal; client / colleague / brand names are not, distinguishing automatically is hard so you mention them, not pre-decide). Ask if there's anything they'd rather not surface. Edit `out/candidate.json` and re-render `out/profile.md` if needed.
|
|
102
|
+
|
|
103
|
+
**Question 4: Narrative refinements.** Ask if anything in the summary, cognitive narrative, trajectory narrative, or per-project text reads off. If yes, rewrite `out/narrative.json` (same hard rules), run `finalize` again (step 6) and, because it rebuilds `out/candidate.json` from scratch, apply the edits from questions 1 to 3 again.
|
|
104
|
+
|
|
105
|
+
8. **Clean up.** Delete `out/narrative-input.json`, `out/practices-input.json`, `out/practices-sample.json` and `out/practices.json` (when present) once the candidate is satisfied (they contain local repo context or the candidate's own messages; the answers and the sample go together, because `finalize` needs both). `out/practices-detail.json` may stay as the candidate's own record. Keep `out/narrative.json`, `out/candidate.json`, `out/profile.md`.
|
|
106
|
+
|
|
107
|
+
9. **Mention the groundedness score.** The `assembleProfile` step writes `profile.groundedness.score`: show it to the candidate, e.g. "Groundedness: 92% of the verifiable anchors in the prose match your logs." If anomalies are interesting, glance at them (they're surfaced again at submit).
|
|
108
|
+
|
|
109
|
+
10. **Tell them how to submit, when ready.** Do NOT submit yourself. Say:
|
|
110
|
+
> "When you're ready to send it to rebase, close this session and run `node bin/rebase-verify.mjs submit --yes` from this folder. It opens a browser tab where you sign in to rebase and press «Autorizza», so rebase knows it is you; no name, email or city is sent with the profile. A person at rebase then reads it before it counts: if they approve it, your profile earns «Verificato da rebase» and companies rebase works with can see its summary, its domains of work and the sectors of its representative projects, next to your name and your card, for example in the talent cloud or when rebase proposes you for a project, which your own model wrote and you reviewed; its text is also used to write your anonymous card. It is kept at most 12 months and you can delete it from your member area. The profile stays on your machine until you send it. You can also keep it just for yourself. To see exactly what would be sent first (repository names and contact already stripped), run `node bin/rebase-verify.mjs submit --dry-run`: it writes `out/payload-preview.json` and sends nothing."
|
|
111
|
+
|
|
112
|
+
(If the candidate prefers the shorter `rebase-verify submit --yes`, they can `npm link` once from the repo, but `node bin/rebase-verify.mjs` works without any setup.)
|
|
113
|
+
|
|
114
|
+
## Notes
|
|
115
|
+
|
|
116
|
+
- The candidate's Claude Code subscription is doing the LLM work here. No API key required.
|
|
117
|
+
- If the candidate hasn't approved running shell commands, ask permission for the `node bin/rebase-verify.mjs …` invocations before executing.
|
|
118
|
+
- Iteration is free: re-read `out/narrative-input.json`, rewrite `out/narrative.json`, re-run `finalize`. The deterministic pipeline doesn't need to re-run unless they change `--top` or `--tz`.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cosmico Srl — Play New
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/PRIVACY.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Privacy & policy: rebase-verify
|
|
2
|
+
|
|
3
|
+
Last updated: 2026-11-19
|
|
4
|
+
|
|
5
|
+
rebase-verify is a tool that turns your Claude Code logs into an anonymised work profile that you send to rebase, the freelance community at letsrebase.com. It is a report (a photograph of how you work with AI), not a score and not an automated decision about you: a person at rebase reads it and decides whether to approve it, and approval gives you «Verificato da rebase». It is a fork of [apply-new](https://github.com/Play-New/apply-new) by Play New; the privacy terms here are rebase's, not Play New's.
|
|
6
|
+
|
|
7
|
+
This document explains what we do with the data you choose to send.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. Who we are
|
|
12
|
+
|
|
13
|
+
**Data controller:** Rebase S.r.l., Via Podgora 11, 20122 Milano (MI), Italy; VAT and tax code IT 14971460960; REA MI-2819107; PEC [rebase.srl@legalmail.it](mailto:rebase.srl@legalmail.it). It is the controller named in [rebase's privacy notice](https://letsrebase.com/privacy), which also covers the rest of letsrebase.com.
|
|
14
|
+
Contact: [ciao@letsrebase.com](mailto:ciao@letsrebase.com)
|
|
15
|
+
|
|
16
|
+
## 2. What we collect, with your consent
|
|
17
|
+
|
|
18
|
+
When you run `rebase-verify submit --yes`, you first sign in to rebase in your browser (the tool shows a code, opens a page on letsrebase.com and waits until you press «Autorizza»). rebase learns who you are from that sign-in, so the tool sends no contact fields. Then the following is transmitted:
|
|
19
|
+
|
|
20
|
+
- **A `playnew-profile/v1` JSON** containing: time window, session and product counts, a sources block (which log sources were read, their capture level and session counts, no paths or machine identifiers), per representative project (abstract domain description, type tags, technology stack, signals like commits/reverts/checks, and orchestration counts: how many sessions each agent CLI contributed to the product, whether their activity periods overlapped, sub-agent delegation counts, and how many shell commands dispatched work to an agent CLI headless, the same tool or another; tool names and counts only, never the commands themselves), cognitive tags (e.g. *research-first*), a short narrative written by the coding agent you choose, a learning trajectory block (behavioral shifts, topic clusters, vocabulary adopted, principles codified), an AI-relationship axis (*directing* ↔ *co-thinking* split), an agentic-literacy block (counts of how you use / build / design with the agentic stack, never names), a practice-intensity block (how deeply Claude is embedded in your daily workflow, including the timezone the day counts are bucketed in, which is `UTC` unless you pass `--tz`), a technology-usage block (for each technology the stack detection saw: sessions, products and distinct calendar months it appears in, first and last month, and a band label derived from those counts; names come only from the detector's fixed list of public technology labels, so a custom or private dependency never appears, and months are bucketed in the same timezone as the day counts), and a list of other projects in inventory.
|
|
21
|
+
- **Counts of work practices** in the profile: eleven practices, each as in how many sessions it was seen out of how many it could have been, with product and month counts. Seven are counted by code on your machine from the tool calls and file paths the tool already reads (a check ran after the last edit before a commit, tests edited with source, a failed check followed by a fix and a passing rerun, a planning step before the first edit, a diff shown before a commit or a pull request, a design document written, a security scan run). Four are classified by your own model (asking for alternatives, pushing back with a reason, stating when the work is done, limiting the scope): the classification reads only your own messages (Claude Code sub-agent briefs, task notifications, compaction summaries and opencode child sessions are skipped; a session another tool's agent drove can still be read as typed by you) from at most 60 sampled sessions, at most 12 messages each, already redacted, and never the agent's replies or your files. The model that answers is the one you already use (the agent in Claude Code, or your own API key); rebase never receives the messages. Only the counts leave, never commands, paths or file names, and never messages. The per-session answers stay in `out/practices-detail.json` on your machine and are never sent. The slash command's clean-up step deletes the input, sample and answers files; with `generate` or a manual `prepare` and `finalize` they stay in `out/` until you delete it, and the next `prepare` replaces them. The hub marks the four as coming from your own model and not rechecked. With the slash command the messages go to whatever provider your agent already uses; with `generate` and `ANTHROPIC_API_KEY` set they go to api.anthropic.com under your key (see 2a). The definitions are in the README under "Work practices".
|
|
22
|
+
- **Opt-in artifact links** you explicitly add (a deploy URL, a repo URL, a PR link, your choice, never required). rebase takes no attached files, so a screenshot has to be a link.
|
|
23
|
+
|
|
24
|
+
What we **never** collect: your name, email or city from the tool (the sign-in identifies you), client names, product names, person names, repository names, your code, your raw logs, or attached files. Framework-injected text in the logs (tool reminders, instruction dumps, attached-file wrappers) is filtered out before anything is counted or sampled, and is never treated as your own words.
|
|
25
|
+
|
|
26
|
+
The narrative is written under hard constraints: no proper names, evidence-based only, no hyperbole. A pre-submit *groundedness check* verifies that the prose anchors (numbers, technology names, type tags, year-months) trace back to the structured data.
|
|
27
|
+
|
|
28
|
+
**Sources we read locally.** rebase-verify reads your Claude Code logs (`~/.claude/projects`) and, when present, your [opencode](https://github.com/sst/opencode) logs (its `~/.local/share/opencode/opencode.db`, or the JSON cache under `…/storage` with `--opencode-json`; skip opencode entirely with `--no-opencode`), your [Codex CLI](https://github.com/openai/codex) logs (`~/.codex/sessions/**/*.jsonl` only: `auth.json`, `config.toml`, `history.jsonl`, and any sqlite files under `~/.codex` are never opened; skip codex entirely with `--no-codex`), your [pi](https://pi.dev) logs (`~/.pi/agent/sessions/**/*.jsonl` only: `auth.json`, `settings.json`, `models.json`/`models-store.json`, and `trust.json` are never opened; skip pi entirely with `--no-pi`), your [oh-my-pi](https://github.com/can1357/oh-my-pi) logs (`~/.omp/agent/sessions`, the top-level session files only: the subagent and advisor transcripts, `changes.jsonl` and tool-output blobs inside each per-session folder, and anything else under `~/.omp` are never opened; skip oh-my-pi entirely with `--no-omp`), your [cursor-agent](https://cursor.com) logs (`~/.cursor/chats/**/store.db` only; each per-session database is copied and opened read-only; `prompt_history.json`, `cli-config.json`, `projects/`, and macOS Keychain are never opened; skip cursor entirely with `--no-cursor`), and your kimi-code logs (`~/.kimi-code/sessions/**/wire.jsonl` plus each session's own `state.json` only: `config.toml`, `device_id`, `credentials/`, `telemetry/`, `user-history/`, and `session_index.jsonl` are never opened; skip kimi entirely with `--no-kimi`). All seven are read on your machine and reduced to the same redacted, counts-based subset described above. From opencode specifically we keep only what the Claude Code path keeps: tool **outputs** and assistant **error** payloads are dropped (we retain a byte count, never the text), reasoning is reduced to a character count, and file paths and shell commands are passed through the same PII redaction. From codex specifically, the same posture holds: tool output, reasoning text, and `apply_patch` diff bodies are never stored, only character/byte counts survive. From pi specifically, the same posture holds too: tool output, reasoning text, and thinking-signature bytes are never stored, and a local model's filesystem-path model id (which can carry your OS username, including dash-encoded path forms and bare mentions of the local account name) is redacted before it is ever kept. From cursor-agent specifically, the same posture holds too: tool outputs (Write's file contents, an edit's old/new text, a tool-result body) and the model-generated conversation title are never stored, only paths, truncated commands/queries, and byte counts survive; reasoning text is reduced to a character count and its signature to a length; cursor keeps no per-message token usage anywhere in its local storage, so none is read. From kimi-code specifically, the same posture holds too: thinking text, tool outputs, and `config.update`'s system prompt are never stored (only lengths and byte counts survive), and `state.json`'s `title`/`lastPrompt` fields (confirmed verbatim prompt text) are parsed only to read `workDir` and never kept. The same "counts, not names" rule applies to every source.
|
|
29
|
+
|
|
30
|
+
## 2a. The narrative step: three paths, one caveat
|
|
31
|
+
|
|
32
|
+
The short prose in your profile is generated in one of three ways, and they differ in what leaves your machine **before** submit:
|
|
33
|
+
|
|
34
|
+
The main way to run the tool is `npx @letsrebase/verify`, where a coding agent you choose writes the narrative (see 2b). The slash command below is the second way.
|
|
35
|
+
|
|
36
|
+
- **Slash command path (the second way):** from a clone of the repository, the `/rebase-verify` slash command runs inside your own Claude Code session. The narrative input never goes anywhere your ordinary Claude usage doesn't already go. Fully local until submit.
|
|
37
|
+
- **Manual path:** `prepare` writes the narrative input to a local file; you hand-write `narrative.json` and run `finalize`. Nothing leaves your machine until submit. An explicit `--narrative-file` takes precedence over an API key for the narrative only; the practices sample is still sent if the key is set and you run `generate`.
|
|
38
|
+
- **API path:** if `ANTHROPIC_API_KEY` is set and no narrative file is given, the narrative input is sent to **api.anthropic.com** under *your own* key: the real labels of your selected projects, a README/CLAUDE.md excerpt (up to 1,200 characters), up to 60 dependency names, 20 commit subjects, and sampled prompts (PII-redacted, but not name-stripped). With `generate`, the model-practices sample goes too, even when a narrative file is given: up to 60 sessions, 12 of your own messages each, 600 characters each, redacted. rebase never sees this exchange; it is between you and Anthropic, governed by Anthropic's API terms. But it does leave your machine before submit, so the tool prints a warning when this path engages. If you work under NDA or prefer everything local, use the subscription or manual path.
|
|
39
|
+
|
|
40
|
+
The name-stripping described in section 2 (no repository names, no client names in what *we* receive) applies to what is transmitted to rebase at submit; it cannot retroactively apply to what you choose to send to Anthropic via your own key.
|
|
41
|
+
|
|
42
|
+
## 2b. The coding agent you choose
|
|
43
|
+
|
|
44
|
+
`npx @letsrebase/verify` (and `generate --agent <id>`) lets a coding agent you pick write the narrative and classify the model practices. You choose the agent and the model; rebase does not.
|
|
45
|
+
|
|
46
|
+
- **What the agent's model provider receives.** The narrative input: project labels, README and CLAUDE.md excerpts, lines you added to CLAUDE.md or README over time, dependency names, commit subjects, sampled prompts, topics you researched and up to six compaction summaries (see 2a for the sizes). And the practices sample (up to 60 sessions, 12 of your own messages each, 600 characters each, redacted), under that provider's own terms. rebase never receives it. It leaves your machine before submit.
|
|
47
|
+
- **Downloads.** The adapters for Claude Code (`@agentclientprotocol/claude-agent-acp`) and Codex (`@agentclientprotocol/codex-acp`) are downloaded from npm with npx when you pick them.
|
|
48
|
+
- **Tools.** Each turn runs in its own agent session with a minimal environment. Tools are switched off where the agent allows it (oh-my-pi, Claude Code); Codex runs read-only with an instruction not to use tools; for agents not tested, and as a backstop for all, any tool use stops the run and its answer is thrown away.
|
|
49
|
+
- **Transcripts.** oh-my-pi and Codex keep a transcript of the run, which rebase-verify removes and never reads. Claude Code keeps none but leaves an empty folder, which rebase-verify removes.
|
|
50
|
+
- **Local log.** `out/agent-log.jsonl` holds every message exchanged with the agent except the answers to initialize and authenticate (your messages and the agent's answers). It stays on your machine, is never sent, and goes when you delete `out/`.
|
|
51
|
+
- **What rebase sees.** The profile records the agent and the model that wrote the narrative and classified the practices as `{ agent, model }`. rebase's admins see them next to the practices. The accuracy figures in the README were measured for claude-opus-4-7 through the API prompt; any other agent or model is recorded, not measured.
|
|
52
|
+
|
|
53
|
+
## 3. Why we collect it (purpose)
|
|
54
|
+
|
|
55
|
+
To let a person at rebase **review your work profile and, if they approve it, verify it**. Concretely:
|
|
56
|
+
- A person at rebase reads the profile, which waits as a draft until then, and approves or declines it.
|
|
57
|
+
- Once approved, the profile earns «Verificato da rebase» (which the talent cloud lists first), and companies rebase works with can see the profile's own summary, its domains of work and the sectors of its representative projects, next to your name and your card, for example in the talent cloud or when rebase proposes you for a project. Your own model wrote those texts and you reviewed them before sending; rebase does not rewrite them. The profile's text is also used to write your anonymous card: it is sent to the AI provider that [rebase's privacy notice](https://letsrebase.com/privacy) names as processor, under the terms described there.
|
|
58
|
+
- Nothing is shown to anyone outside rebase before that approval.
|
|
59
|
+
|
|
60
|
+
We **do not**:
|
|
61
|
+
- Train AI models on your data.
|
|
62
|
+
- Share your profile itself with anyone outside rebase; the companies rebase works with only see the summary, domains of work and representative project sectors of an approved profile, next to your name and your card.
|
|
63
|
+
- Use your data to make automated decisions about you.
|
|
64
|
+
|
|
65
|
+
## 4. Legal basis
|
|
66
|
+
|
|
67
|
+
**Explicit consent** (GDPR Art. 6(1)(a)). You run `rebase-verify submit --yes` after seeing what is being sent. You can inspect the exact payload before consenting: `rebase-verify submit --dry-run` writes it to `out/payload-preview.json` (repository names and contact already stripped) and sends nothing. Signing in to rebase in the browser, and pressing «Autorizza», is part of the same act. You can withdraw consent at any time by deleting the profile from your member area or by writing to [ciao@letsrebase.com](mailto:ciao@letsrebase.com); deleting the profile does not remove «Verificato da rebase», which you can ask the same address to remove.
|
|
68
|
+
|
|
69
|
+
## 5. How long we keep it (retention)
|
|
70
|
+
|
|
71
|
+
We keep a profile for **at most 12 months** from the day you send it, after which it is deleted. Sending a new profile replaces the previous one, which is not kept. A profile a person at rebase declined is deleted on the same schedule.
|
|
72
|
+
|
|
73
|
+
You can **delete it earlier** at any time from your member area.
|
|
74
|
+
|
|
75
|
+
## 6. Your rights (GDPR)
|
|
76
|
+
|
|
77
|
+
You have the right to:
|
|
78
|
+
- **Access** the data we hold about you. Your `candidate.json` already is a copy; your member area shows the stored profile's status, and [ciao@letsrebase.com](mailto:ciao@letsrebase.com) sends you what is stored on request.
|
|
79
|
+
- **Rectification**: fix anything inaccurate. Easiest: re-generate locally and send again; a new profile replaces the previous one.
|
|
80
|
+
- **Erasure**: be deleted. Delete the profile from your member area, or write to [ciao@letsrebase.com](mailto:ciao@letsrebase.com). Deleting the profile does not remove «Verificato da rebase»: write to the same address to have it removed too.
|
|
81
|
+
- **Portability**: receive the data in machine-readable form. Again, `candidate.json`.
|
|
82
|
+
- **Objection / restriction**: pause processing.
|
|
83
|
+
- **Lodge a complaint** with the [Garante per la protezione dei dati personali](https://www.garanteprivacy.it/) (the Italian DPA).
|
|
84
|
+
|
|
85
|
+
## 7. AI Act notice
|
|
86
|
+
|
|
87
|
+
Under EU Regulation 2024/1689 (the AI Act), Annex III §4(a), AI systems used to "analyse and filter job applications and evaluate candidates" are classified as **high-risk**. The work profile is treated as such. The obligations we take on:
|
|
88
|
+
|
|
89
|
+
- **Transparency.** This file and the [README](README.md) describe in plain terms what the tool measures, how the tags are derived, and what the model is asked to do, including the agentic-literacy counts (built-in vs custom, with custom names never exposed), the AI-relationship axis, the trajectory shifts, the per-product orchestration counts (per-CLI session split, agent-dispatch and delegation counts), the technology-usage counts and bands, and the practice-intensity signals. The source code is public on GitHub.
|
|
90
|
+
- **Human oversight.** No automated decision is made about you. A person at rebase reads each profile and decides whether to approve it; approval is what verifies it (a «Verificato da rebase» badge, which the talent cloud lists first, and visibility of its summary, domains of work and representative project sectors, next to your name and your card, to companies rebase works with), and nothing counts before it. The AI generates the profile and computes screening metrics; it does not decide anything about you. AI may score the *artifact*, never you: the authenticity and groundedness scores measure whether your logs are internally consistent and whether the prose tracks the data. A refusal is a person's call, not a score's.
|
|
91
|
+
- **Disclosure.** You are interacting with an AI tool. The narrative parts of your profile (summary, cognitive narrative, trajectory narrative, per-project descriptions) are model-generated.
|
|
92
|
+
- **Data governance.** Raw logs stay on your machine. Only a redacted, consented subset is transmitted, with declared retention. Storage is in the EU. Once a profile is approved, its text is sent to write the anonymous card to the AI provider that [rebase's privacy notice](https://letsrebase.com/privacy) names as processor, and that notice also says where that processing happens and under which safeguards.
|
|
93
|
+
- **Logging.** We keep server-side logs of API requests (timestamps, status codes) for security and debugging, separate from the application data.
|
|
94
|
+
- **Robustness & accuracy.** The deterministic parts (tags, metrics, groundedness check) are open-source and inspectable. The narrative is constrained by a documented prompt. The groundedness check blocks submissions where the prose drifts from the data below a threshold.
|
|
95
|
+
|
|
96
|
+
## 8. Security
|
|
97
|
+
|
|
98
|
+
- Transmission over HTTPS.
|
|
99
|
+
- Storage on rebase's servers in the European Union.
|
|
100
|
+
- The sign-in token the CLI receives can send one profile and nothing else, expires after 15 minutes and is spent by the first profile it sends. The CLI keeps it in memory only and never writes it to disk.
|
|
101
|
+
- The full profile is readable by the people at rebase who review it, directly or through their admin tools; the companies rebase works with see only what section 3 lists, once it is approved.
|
|
102
|
+
|
|
103
|
+
## 9. A fully manual alternative
|
|
104
|
+
|
|
105
|
+
If you prefer not to use the tool (for any reason, including unease about the AI generation), write to [ciao@letsrebase.com](mailto:ciao@letsrebase.com). We will arrange a no-tool conversation, after which a person at rebase can verify you the same way. Nothing is required: you stay in rebase, with your card and your member area, whether or not you send a work profile.
|
|
106
|
+
|
|
107
|
+
## 10. Changes
|
|
108
|
+
|
|
109
|
+
We will update this document if we change what the tool does. The previous versions stay in the [git history](https://github.com/letsrebase/verify/commits/main/PRIVACY.md).
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
*If anything here is unclear or you spot a mistake, please [open an issue](https://github.com/letsrebase/verify/issues) or write to [ciao@letsrebase.com](mailto:ciao@letsrebase.com).*
|
package/README.md
CHANGED
|
@@ -1,3 +1,211 @@
|
|
|
1
|
-
#
|
|
1
|
+
# rebase-verify
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> `rebase-verify`: show rebase how you work, and get verified for it.
|
|
4
|
+
|
|
5
|
+
Credit where it is due: this is [`letsrebase/verify`](https://github.com/letsrebase/verify), rebase's fork of [apply-new](https://github.com/Play-New/apply-new) by Play New, released under the MIT licence. rebase adapts it so that freelancers in the rebase community can send their work profile to the rebase hub, where a person reviews it before it counts for anything. If approved, the profile earns «Verificato da rebase» and companies rebase works with can see its summary, its domains of work and the sectors of its representative projects, next to your name and your card, for example in the talent cloud or when rebase proposes you for a project (written by your own model, reviewed by you); its text is also used to write your anonymous card. It is kept at most 12 months and you can delete it from your member area. `submit` sends to rebase, never to Play New. Changes that fit the original go back upstream as pull requests; how the two are kept apart is in [AGENTS.md](AGENTS.md).
|
|
6
|
+
|
|
7
|
+
A CV is a list of what you did, formatted for keyword scans. For work that happens inside agent logs, it's the wrong surface. The signal that matters (how you decompose, how you verify, what you do when the model misunderstands) already exists in your agent sessions, whichever CLI they happen to live in. A resume can't see it.
|
|
8
|
+
|
|
9
|
+
This tool makes it visible. You run it on your laptop, you see the profile before anyone else does, and you decide whether to send it to rebase. The tool doesn't score you; if a person at rebase approves the profile, it earns «Verificato da rebase», which the talent cloud lists first. The profile describes how you work, and it opens a conversation.
|
|
10
|
+
|
|
11
|
+
## You'll need
|
|
12
|
+
|
|
13
|
+
Node 20.12 or newer, one coding agent installed and signed in (or an Anthropic API key), and a terminal. Nothing to clone.
|
|
14
|
+
|
|
15
|
+
## How it goes
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
npx @letsrebase/verify
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
On a terminal this starts a short wizard. It lists the sources it found in your logs, asks which coding agent should write the narrative and classify the practices (the default is the tested agent with most sessions in your logs, on that agent's current model), shows a consent note, then runs with live progress. It asks nothing about who you are. Two files come out in `out/`: `profile.md` for humans, `candidate.json` for agents (plus working files described under "Work practices" and "Commands"). The wizard ends with a summary and a choice: submit now or later. You can keep the profile for yourself.
|
|
22
|
+
|
|
23
|
+
To submit later:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
npx @letsrebase/verify submit --yes
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The second way is the Claude Code slash command from a clone. It uses your Claude Code session as the agent and records `slash-command` as the agent in the profile (a narrative you wrote by hand and ran through `prepare` and `finalize` is labelled `slash-command` too):
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
git clone https://github.com/letsrebase/verify
|
|
33
|
+
cd verify
|
|
34
|
+
claude
|
|
35
|
+
> /rebase-verify
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Then `node bin/rebase-verify.mjs submit --yes`.
|
|
39
|
+
|
|
40
|
+
## Which agent writes and classifies
|
|
41
|
+
|
|
42
|
+
The narrative and the four model practices are written by a coding agent you choose, started over ACP (the Agent Client Protocol). Each turn (the narrative, then each batch of 10 sessions) runs in its own agent session, with a minimal environment: no API keys unless the agent needs its own.
|
|
43
|
+
|
|
44
|
+
| Agent | How it is started | Tools | Transcript of the run | Tested |
|
|
45
|
+
|---|---|---|---|---|
|
|
46
|
+
| oh-my-pi | `omp acp`, natively | switched off | oh-my-pi keeps one; rebase-verify removes it and never reads it | yes |
|
|
47
|
+
| Claude Code | the adapter `@agentclientprotocol/claude-agent-acp`, downloaded with npx when picked | switched off | none kept; it leaves an empty folder that rebase-verify removes | yes |
|
|
48
|
+
| Codex | the adapter `@agentclientprotocol/codex-acp`, downloaded with npx when picked | read-only mode, with an instruction not to use tools | Codex keeps one; rebase-verify removes it and never reads it | yes |
|
|
49
|
+
| OpenCode, Gemini CLI, Cursor, Copilot CLI, Kimi, Qwen Code | their own ACP mode, offered when installed | not switched off; any tool use stops the run and its answer is thrown away | depends on the agent | no |
|
|
50
|
+
| Anthropic API | your `ANTHROPIC_API_KEY` | none | none | no agent; the gate figures were measured with this prompt |
|
|
51
|
+
|
|
52
|
+
The tools are switched off where the agent allows it (oh-my-pi, Claude Code). Codex runs read-only with an instruction not to use tools. Agents not tested rely on the stop-on-tool rule, which also backs up the others: any tool use stops the run and its answer is thrown away. The tool never reads its own agent runs: they live in temp folders named `rebase-verify-agent-run-*` and are skipped as a source.
|
|
53
|
+
|
|
54
|
+
**Model.** The wizard offers the agent's current model by default and lets you pick another. For scripts: `npx @letsrebase/verify generate --agent <id> --model <id> --yes`. `--model` needs `--agent`; `--yes` skips the wizard and every prompt.
|
|
55
|
+
|
|
56
|
+
**Local log.** `out/agent-log.jsonl` holds every message exchanged with the agent except the answers to initialize and authenticate: your messages and the agent's answers. It stays on your machine and is never sent. Delete `out/` to remove it.
|
|
57
|
+
|
|
58
|
+
**What is recorded.** The profile records `generatedBy.narrative` and `practices.classifiedBy` as `{ agent, model }`, and the hub shows the latter next to «dal modello della persona, non ricontrollato». The gate figures in "Work practices" hold for claude-opus-4-7 only; any other model is recorded, not measured.
|
|
59
|
+
|
|
60
|
+
## Sources
|
|
61
|
+
|
|
62
|
+
The tool reads every supported agent CLI it finds on your machine and folds them into one profile. Each source is disclosed in the profile's `sources` block with its capture level: *full* means tamper-evident records the authenticity screen can verify, *structural* means well-formed data without a verification story.
|
|
63
|
+
|
|
64
|
+
| | Reads from | Skip with | Capture |
|
|
65
|
+
|---|---|---|---|
|
|
66
|
+
| [](https://claude.com/claude-code) | `~/.claude/projects` | always read (`--root` points it elsewhere) | full |
|
|
67
|
+
| [](https://opencode.ai) | `~/.local/share/opencode` (sqlite; JSON fallback via `--opencode-json`) | `--no-opencode` | structural |
|
|
68
|
+
| [](https://github.com/openai/codex) | `~/.codex/sessions` | `--no-codex` | structural |
|
|
69
|
+
| [](https://pi.dev) | `~/.pi/agent/sessions` | `--no-pi` | structural |
|
|
70
|
+
| [](https://cursor.com/cli) | `~/.cursor/chats` (sqlite; needs Node 22.5+, otherwise read as empty and disclosed) | `--no-cursor` | structural |
|
|
71
|
+
|  | `~/.omp/agent/sessions` | `--no-omp` | structural |
|
|
72
|
+
|  | `~/.kimi-code/sessions` | `--no-kimi` | structural |
|
|
73
|
+
|
|
74
|
+
Every source normalizes into the same session model, so all seven lenses below read them identically. Each `--<source>-root <dir>` flag overrides the default location. What never gets opened per source (credential files, config, telemetry) is enumerated in [PRIVACY.md](PRIVACY.md). Gemini CLI and ChatGPT / Claude.ai exports are on the roadmap.
|
|
75
|
+
|
|
76
|
+
## What we look at
|
|
77
|
+
|
|
78
|
+
Seven lenses, all built from your logs.
|
|
79
|
+
|
|
80
|
+
**What you work on.** Three to five fields of work, derived from the evidence of every product in your logs (type of work, stack, code areas, research topics). Each domain carries a count of products and sessions, never a name: "talent operations, 8 products, 14 sessions".
|
|
81
|
+
|
|
82
|
+
**How you reason.** Cognitive tags derived from concrete signals: *research-first* if your read-to-edit ratio is above 2, *orchestrator* if you delegate to sub-agents 15+ times, *verification-heavy* if checks run in half your projects, *risk-calibrated* if your revert-to-commit ratio stays below 10%. A short paragraph from your Claude on decomposition, verification, error handling, calibrated trust.
|
|
83
|
+
|
|
84
|
+
**How you work with the model.** One continuous axis from *directing* (long structured prompts, file paths, acceptance criteria) to *co-thinking* (short conversational turns, open questions, the model as a partner). The midpoint is co-construction. Most people switch by context, and the narrative says when.
|
|
85
|
+
|
|
86
|
+
**How deeply Claude is your practice.** Active days over the observed window, median sessions per active day, session depth, longest streak, peak day. The difference between *daily driver, deep sessions* and *occasional, short bursts on specific tasks*.
|
|
87
|
+
|
|
88
|
+
**How you spread your work.** Sessions per product, concentration on your top products, products carried across months. Two sessions each across twenty products reads as portfolio steering; nine sessions each across nine products reads as sustained building. Both are legitimate shapes, and they match different projects.
|
|
89
|
+
|
|
90
|
+
**How long you have used each technology.** For every technology the stack detection saw (always a public label such as Supabase or Playwright, never a repo, client or private package name), how many sessions, products and distinct calendar months it appears in, and the first and last month. A plain-language band labels the month counts: *continuous* (6+ months, and present in at least 75% of the months between its first and last), *recurring* (3+ months), *occasional* (1 to 2 months). The thresholds are empirical, like the cognitive-tag ones, and the band is a label for the counts printed next to it, never a score. The stack is detected per product, so the session count means "sessions in products where the technology was detected", an upper bound on sessions that touched it. Months are bucketed in the same `--tz` as the day counts, and no model is involved. At submit the month window (first month, last month, month count) and the band are hard checks against your logs; session and product counts and the presence of a technology depend on your repos as they are on disk now, so a difference there is a warning, not a block.
|
|
91
|
+
|
|
92
|
+
**How fluent you are in the agentic stack.** Three axes: what you use (sub-agents, MCP servers, slash commands you invoke), what you build (skills, commands, hooks, the `CLAUDE.md` files you maintain), and how you organise work (planning, subtask tracking, clarifying before assuming). All counts. Custom MCP servers and custom skills are counted but never named (they can carry client information).
|
|
93
|
+
|
|
94
|
+
Plus a trajectory block (how your behavior shifted across the observed window), three to five representative projects (adaptive: flagships by significance, extra slots only for type diversity or comparable significance), each carrying per-product orchestration counts: sessions per agent CLI (with overlapping vs disjoint activity periods), sub-agent delegations, and headless agent-dispatch commands (to the same tool or another; all lower bounds), and a groundedness check (the prose has to track back to the data; below 60%, submission is blocked).
|
|
95
|
+
|
|
96
|
+
At submit time everything is re-checked, not trusted: groundedness is recomputed on the file as it is now, the structured numbers are re-derived from your logs (the profile can't claim more sessions, commits or code practice counts than the logs contain), and the intake recomputes groundedness and the structural invariants server-side on what it receives. An incoherent hand-edit of `candidate.json` doesn't survive the trip; the log-level re-derivation runs only on your machine, since your logs never leave it.
|
|
97
|
+
|
|
98
|
+
The profile also discloses its own coverage: a `sources` block records which log sources were read, at what capture level (*full* = tamper-evident records the authenticity screen can verify; *structural* = well-formed data without a verification story), and how many sessions each contributed. The window and every count are **lower bounds** of your real activity, logs rotate and old sessions are pruned, so what the tool can still see is never more than what you did. Like the authenticity score, this is a screen, not proof.
|
|
99
|
+
|
|
100
|
+
## Work practices
|
|
101
|
+
|
|
102
|
+
The profile also carries counts of eleven work practices: seven counted by code and four classified by your own model. Each one is shown as "seen in N of M sessions", with the number of products and months it spans. It is never a score, a percentage or a total, and nothing here says anything about tone, skill or character. You can read the counts in the "How the work is done" section of `out/profile.md` before you submit anything. That section only appears when at least one practice could be counted in your sessions.
|
|
103
|
+
|
|
104
|
+
The seven code practices are counted from the tool calls and file paths your logs already contain. No model is involved and nothing new is read.
|
|
105
|
+
|
|
106
|
+
Each code practice is counted against the sessions where it could have happened (M):
|
|
107
|
+
|
|
108
|
+
- `checks_before_commit`: After the last file edit before a git commit, a check ran in the session: tests, a linter, a type check or a build. M is the sessions with a commit.
|
|
109
|
+
- `tests_with_changes`: Both a source file and a test file were edited in the session. M is the sessions that edited a source file.
|
|
110
|
+
- `failure_reproduced_before_fix`: A check command (tests, a linter, a type check or a build) failed, files were edited, and then the same check succeeded in the session. M is the sessions where a check command failed.
|
|
111
|
+
- `plan_before_edit`: A planning step came before the first file edit in the session: plan mode, a task list, or writing a plan or spec file. M is the sessions with an edit.
|
|
112
|
+
- `reviews_changes`: Before a commit or a pull request, the diff appeared in the session (git diff, git show or gh pr diff), whoever asked for it; the session cannot show whether anyone read it. M is the sessions with a commit or a pull request.
|
|
113
|
+
- `design_documents`: A design document (an ADR, RFC, spec or design file, by path) was written or edited in the session. M is the sessions with an edit.
|
|
114
|
+
- `security_checks`: A dependency audit or a security scanner ran in the session. M is the sessions with an edit.
|
|
115
|
+
|
|
116
|
+
The four model practices are classified by the coding agent and model you chose (see "Which agent writes and classifies"), not by rebase: the agent picked in the wizard or with `--agent`, the slash-command agent in Claude Code, or your own API key when you run `generate` with `ANTHROPIC_API_KEY` set. They read at most 60 sampled sessions (only sessions with at least two messages from you, spread across products and months) and at most 12 of your own messages in each, first and then evenly spaced, each cut to 600 characters and already redacted. The agent's replies and your files are never read, and neither are the texts an agent wrote: Claude Code sub-agent briefs, task notifications, compaction summaries, and opencode child sessions are skipped. The model answers one yes or no per practice per session, and nothing else. Tone, feelings, politeness and wording quality are never grounds for a yes. M is the number of sessions classified, at most 60:
|
|
117
|
+
|
|
118
|
+
- `asks_for_alternatives`: asks for options or trade-offs before choosing one.
|
|
119
|
+
- `pushes_back_with_reason`: rejects or corrects what the agent proposed or did, and says why.
|
|
120
|
+
- `states_done_criteria`: states acceptance criteria, the expected behaviour, or the check that proves it.
|
|
121
|
+
- `limits_scope`: cuts, splits or defers part of the work explicitly.
|
|
122
|
+
|
|
123
|
+
With the slash command, your messages go to whatever provider your agent already uses; rebase never receives them. With `generate` and `ANTHROPIC_API_KEY` set, the sample (up to 60 sessions, 12 messages of 600 characters each, yours, redacted) is sent to api.anthropic.com under your key, even when `--narrative-file` is given. Only the counts leave your machine for rebase. The per-session answers stay in `out/practices-detail.json`, which is never sent. The slash command's clean-up step deletes `out/practices-input.json`, `out/practices-sample.json` and `out/practices.json`; with `generate` or a manual `prepare` and `finalize` they stay in `out/` until you delete it (`out/` is the one folder to delete), and the next `prepare` replaces them. The hub shows these four as "dal modello della persona, non ricontrollato": it cannot recheck them, because your messages never reach it.
|
|
124
|
+
|
|
125
|
+
**How the four were checked.** A model practice is published only if it reaches 90% on two checks, measured with the shipped prompt wording and examples (with all six candidates in the prompt, where production lists only the four published) and the shipped message selection. The stability sessions came from Claude Code and omp logs, where the skip of opencode child sessions does not apply. Pooled agreement: the model's answers match a written reference set of 224 sessions (Italian and English, with at least 8 clear cases and 8 near misses per practice, expected answers fixed when written and checked by a blind second reader, a separate agent given only the messages and the rubric). Every session is classified on all six candidates, so each practice is also tried on the other practices' sessions. Stability: two runs of the model on the same 40 real sessions give the same answer (the developer's own sessions, client work excluded). The reference sessions were written by an agent, not by people. The model measured was `claude-opus-4-7`, through the API-path prompt in batches of 10 sessions, so these figures hold for that model and that prompt, not for whichever model you run or for the slash-command path:
|
|
126
|
+
|
|
127
|
+
| Practice | Positives found (own sessions) | Near misses not counted (own sessions) | False positives on other practices' sessions | Pooled agreement (224) | Stability (40, true in run A / run B) | Result |
|
|
128
|
+
|---|---|---|---|---|---|---|
|
|
129
|
+
| `asks_for_alternatives` | 20/20 | 20/20 | 1 | 223/224 | 39/40 (4 / 3) | published |
|
|
130
|
+
| `pushes_back_with_reason` | 16/16 | 20/20 | 5 (and 1 missed secondary positive) | 218/224 | 38/40 (10 / 8) | published |
|
|
131
|
+
| `states_done_criteria` | 20/20 | 20/20 | 1 | 223/224 | 38/40 (3 / 3) | published |
|
|
132
|
+
| `gives_context_and_constraints` | 20/20 | 14/20 | 22 | 196/224 | 35/40 (26 / 31) | not published (agreement and stability below 90%) |
|
|
133
|
+
| `raises_risks` | 17/17 | 16/17 | 3 | 220/224 | 35/40 (2 / 5) | not published (stability below 90%) |
|
|
134
|
+
| `limits_scope` | 18/18 | 15/16 | 4 | 219/224 | 39/40 (6 / 7) | published |
|
|
135
|
+
|
|
136
|
+
How to read the table. A classifier that always answered false would score 202 to 207 of 224 pooled, which is why the two own-session columns matter more than the pooled figure. Almost every miss is a false positive: the model errs towards counting a practice, so read each count as an upper bound. Stability rests on few true answers for some practices (3 to 10 per run), so it shows that the answers repeat, not that they are right. The reference sessions are written, not real: the blind second reader, a separate agent, labelled them, and the sessions where it disagreed with the writer were rewritten or dropped (6 rewritten, 16 dropped of 240), so the agreement figures are on cases two readers agree on. Some of the 40 stability sessions were dispatched by an agent rather than typed by a person. Neither number is accuracy on real sessions.
|
|
137
|
+
|
|
138
|
+
`gives_context_and_constraints` (explains the goal, the constraints, or who the work is for, before asking for changes) and `raises_risks` (raises a risk: security, data loss, cost, performance, compatibility, rollout) did not reach the threshold, so they are not published and are not classified. To run the checks again: `node scripts/practices-gate.mjs agreement` and `node scripts/practices-gate.mjs stability` (see the header of the script for the options).
|
|
139
|
+
|
|
140
|
+
The figures above hold for claude-opus-4-7 through the API prompt. With another agent or model the profile records which one answered and the hub shows it, but its accuracy was not measured.
|
|
141
|
+
|
|
142
|
+
How it is read:
|
|
143
|
+
|
|
144
|
+
- **Paths.** Paths are compared lower-cased, with a backslash read as a forward slash, and read relative to the project folder of the session, so a folder above the project named `test` or `specs` changes nothing. A test file is one under a `test/`, `tests/`, `__tests__/` or `spec/` folder, or named `*.test.*`, `*.spec.*`, `*_test.*` or `test_*.py`. A design document is one under an `adr/`, `rfcs/`, `docs/rfc/`, `docs/design/` or `specs/` folder, or named `adr-*`, `*-adr.md`, `rfc*`, `design.md`, `*-design.md` or `*-spec.md`. A plan is one under a `plans/` or `specs/` folder, or named `plan.md`, `*-plan.md` or `*-spec.md`. So a spec file counts as a plan, and an ADR does not. A source file is a code file by extension: `.js`, `.mjs`, `.cjs`, `.jsx`, `.ts`, `.mts`, `.cts`, `.tsx`, `.vue`, `.svelte`, `.py`, `.go`, `.rs`, `.java`, `.kt`, `.kts`, `.scala`, `.rb`, `.php`, `.cs`, `.c`, `.cc`, `.cpp`, `.h`, `.hpp`, `.swift`, `.m`, `.dart`, `.ex`, `.exs` or `.lua`. Other files such as `.sql`, `.sh`, `.html` or `.css` are not source files. A test file is never a source file, and config files (`*.config.*`), type declarations (`*.d.ts`), `conftest.py`, `setup.py` and anything under `docs/` are not counted as source files either.
|
|
145
|
+
- **Commands.** rebase-verify reads each command up to its first 240 characters, so a check at the end of a long chained command can be missed. Leading environment assignments and runner wrappers such as `npx`, `uv run`, `python -m` and `pnpm exec` are skipped before a command is matched.
|
|
146
|
+
- **Reviews.** `reviews_changes` means the diff appeared in the session, whoever asked for it. It does not mean anyone read it. Options that list files or statistics instead of the diff, such as `--stat` and `--name-only`, and `git show <rev>:<path>`, do not count as a diff appearing.
|
|
147
|
+
- **Failures.** `failure_reproduced_before_fix` only counts failed checks. A failed command that contains a check counts as a failed check, and in a chain such as `npm test && git push` the exit status cannot say which part failed, so the chain counts as its first check. Two runs are the same check when their command words match (the words before the first flag or path, wrappers dropped), so a narrower rerun of the same check (`pytest tests/a.py` after `pytest`) is the same command. Pi, oh-my-pi and Cursor sessions are left out of this practice, because their logs cannot show a failure reliably. A session whose adapter cannot give a field for a practice is left out of that practice rather than counted as not seen.
|
|
148
|
+
- **Sessions with no time.** A session with no timestamped message cannot be placed in a month, so it is left out of every practice's counts. A practice no session could show (M is 0) is left out of the profile.
|
|
149
|
+
- **Counts only.** Only the counts leave your machine, never a command, a path or a file name.
|
|
150
|
+
- **At submit.** The seven code practices are counted again from your logs, in the timezone the profile recorded, and a profile that claims more than that count is blocked, like the other numbers. The four model practices cannot be counted again, so only their shape is checked.
|
|
151
|
+
|
|
152
|
+
The full rules are in `share/practices.json`, generated from `src/practices-rules.mjs`: every command pattern, the path patterns, the source extensions, the commit and pull request patterns, and the tool names read as a planning step or an edit.
|
|
153
|
+
|
|
154
|
+
## What it isn't
|
|
155
|
+
|
|
156
|
+
It isn't a personality test, and the cognitive tags are descriptive: there's no "better" tag, only different patterns. The profile doesn't compare you with anyone else, and it doesn't predict performance.
|
|
157
|
+
|
|
158
|
+
It doesn't score you. The only scores in the pipeline (authenticity, groundedness) measure the *report's* integrity: whether the logs are internally consistent and the prose tracks the data, never you. Nothing counts until a person at rebase has read the profile and approved it. Approval means three things: your profile carries «Verificato da rebase», and the talent cloud lists verified talents first; companies rebase works with can see its own summary, its domains of work and the sectors of its representative projects, next to your name and your card (for example in the talent cloud or when rebase proposes you for a project), which your own model wrote and you reviewed; and the profile's text is used to write your anonymous card, through the AI provider named in [rebase's privacy notice](https://letsrebase.com/privacy). Deleting the profile does not remove «Verificato da rebase»; write to ciao@letsrebase.com to have it removed. A person decides; the tool never does.
|
|
159
|
+
|
|
160
|
+
It doesn't replace a conversation. The decision about humans stays with humans.
|
|
161
|
+
|
|
162
|
+
## What we send, what we don't
|
|
163
|
+
|
|
164
|
+
You sign in to rebase in your browser when you send, so rebase knows it is you: no name, email or city goes with the profile, and the tool no longer asks for them. What is sent is the profile JSON (counts, abstract domains, tags, a short narrative, and any artifact *link* you chose to add). We don't see client names, product names, person names, repository names, your code, or your raw logs. The redaction runs on your machine before anything leaves it. rebase takes no attached files: an artifact has to be a link.
|
|
165
|
+
|
|
166
|
+
The profile waits as a draft until a person at rebase reviews it. It is kept at most 12 months, and you can delete it from your member area at any time. Locally, everything the tool generated lives in the `out/` folder: delete it and it's gone.
|
|
167
|
+
|
|
168
|
+
## Policy
|
|
169
|
+
|
|
170
|
+
Legal basis: explicit consent (GDPR Art. 6(1)(a)). You run `submit --yes` after seeing what's in the payload, and you can read the exact payload first with `submit --dry-run`. The controller is the one named in [rebase's privacy notice](https://letsrebase.com/privacy). Retention: at most 12 months from the day you send it, and you can delete it earlier from your member area. Your rights (access, rectification, erasure, portability, objection) are exercised by writing to ciao@letsrebase.com.
|
|
171
|
+
|
|
172
|
+
Under the EU AI Act (Regulation 2024/1689), systems that filter job applications and evaluate candidates are classified high-risk (Annex III §4(a)). We treat the work profile that way. Transparency: this README and the source on GitHub. Human oversight: no automated decision; a person at rebase reads each profile, and only that person's approval verifies it. Disclosure: you're interacting with an AI tool. Data governance: raw logs stay local, only a consented subset is transmitted, retention is declared. Full text in [PRIVACY.md](PRIVACY.md).
|
|
173
|
+
|
|
174
|
+
## Limits
|
|
175
|
+
|
|
176
|
+
You decide which projects rebase sees, so the tool can't see what's missing. Logs of solo work mostly show execution, which means leadership, mentoring, and the work of being with humans is invisible from here. The thresholds (read-to-edit above 2, ≥15 delegations) are empirical: we don't know yet how they hold across hundreds of people. The narrative is written by a model; the prompt constrains it, it doesn't make it neutral. A person at rebase reads each profile by hand, and we're still learning what to look for.
|
|
177
|
+
|
|
178
|
+
The four model practices come from your own model reading your own messages: you can steer your agent or edit the answers file, and the hub cannot recheck them. Agent-written text is skipped only where the logs mark it (Claude Code sub-agent briefs, task notifications, compaction summaries, opencode child sessions); a session another tool's agent drove (a dispatched or headless run) can still be read as if you typed it, since the logs cannot always tell.
|
|
179
|
+
|
|
180
|
+
If you spot something we should change, [open an issue](https://github.com/letsrebase/verify/issues).
|
|
181
|
+
|
|
182
|
+
## Commands
|
|
183
|
+
|
|
184
|
+
| | |
|
|
185
|
+
|---|---|
|
|
186
|
+
| `npx @letsrebase/verify` | on a terminal, the wizard: finds your sources, lets you pick the agent and the model, writes and classifies the profile, shows a summary, then submits now or later |
|
|
187
|
+
| `generate --agent <id> --model <id>` | the same without the wizard, for scripts; add `--yes` to skip every prompt |
|
|
188
|
+
| `generate` *(default)* | full profile, locally; with `ANTHROPIC_API_KEY` set, the key sends the practices sample, and the narrative input unless `--narrative-file` is given, to Anthropic |
|
|
189
|
+
| `prepare` | `out/narrative-input.json`, for writing the narrative manually, and `out/practices-input.json` with `out/practices-sample.json` for the model practices; `finalize` must get the same `--tz` |
|
|
190
|
+
| `finalize --narrative-file out/narrative.json` | finalize after `prepare` |
|
|
191
|
+
| `submit --dry-run` | write the exact outgoing payload to `out/payload-preview.json`, send nothing |
|
|
192
|
+
| `submit --yes` | sign in to rebase in the browser, then send the profile; a person at rebase reviews it |
|
|
193
|
+
|
|
194
|
+
All commands run as `node bin/rebase-verify.mjs <sub>` or as `rebase-verify <sub>` after `npm link`. Common flags: `--top N` (force the project count; default is adaptive 3–5), `--root <dir>`, the per-source roots and opt-outs from the Sources table above, `--hub <url>` (where `submit` sends; default `https://letsrebase.com`, also settable with `REBASE_VERIFY_HUB_URL`; `--hub preview` means `https://preview.letsrebase.com`), `--tz <IANA zone>` (bucket the day and month counts (active days, streak, technology-usage months) in your timezone instead of the UTC default; the zone you choose is recorded in the profile, which is also why UTC is the default: a zone names a place, and nothing location-shaped should leave your machine unless you opt in). Without Claude Code, set `ANTHROPIC_API_KEY` and the narrative goes through the API instead of your subscription, note that on this path the narrative input (project labels, README/CLAUDE.md excerpts, dependency names, commit subjects, sampled prompts) is sent to api.anthropic.com under your own key, before any name-stripping; the tool warns when this happens, and an explicit `--narrative-file` always takes precedence over the key. The subscription and manual paths stay fully local until submit. Details in [PRIVACY.md](PRIVACY.md).
|
|
195
|
+
|
|
196
|
+
## Tests
|
|
197
|
+
|
|
198
|
+
```
|
|
199
|
+
npm test
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## Contributing
|
|
203
|
+
|
|
204
|
+
PRs and issues are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for the rules
|
|
205
|
+
that make this repo unusual (schema discipline, privacy boundaries, the
|
|
206
|
+
[ADR-001](docs/adr/001-just-a-report.md) frame, the current six-source policy).
|
|
207
|
+
Security issues go privately via [SECURITY.md](SECURITY.md), never as public issues.
|
|
208
|
+
|
|
209
|
+
## License
|
|
210
|
+
|
|
211
|
+
MIT. See [LICENSE](LICENSE).
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Security policy
|
|
2
|
+
|
|
3
|
+
rebase-verify processes freelancers' local Claude Code logs and produces a profile that
|
|
4
|
+
may be sent to rebase for review. That makes two things security-sensitive:
|
|
5
|
+
the redaction/privacy pipeline on the candidate's machine, and the rebase hub's
|
|
6
|
+
sign-in and intake endpoints that receive submissions.
|
|
7
|
+
|
|
8
|
+
## Reporting a vulnerability
|
|
9
|
+
|
|
10
|
+
**Please do not open a public issue for security problems.**
|
|
11
|
+
|
|
12
|
+
- Preferred: [GitHub private vulnerability reporting](https://github.com/letsrebase/verify/security/advisories/new)
|
|
13
|
+
(Security tab → Report a vulnerability).
|
|
14
|
+
- Or email **ciao@letsrebase.com** with subject `SECURITY: rebase-verify`.
|
|
15
|
+
|
|
16
|
+
We acknowledge within **5 working days** and keep you updated until resolution.
|
|
17
|
+
Credit in the fix's release notes is yours if you want it.
|
|
18
|
+
|
|
19
|
+
## What counts (examples)
|
|
20
|
+
|
|
21
|
+
- Any path where candidate data leaves the machine without explicit consent
|
|
22
|
+
(bypass of the redaction pipeline, the repoLabel strip, or the submit gate).
|
|
23
|
+
- PII surviving redaction into `candidate.json` or the narrative input.
|
|
24
|
+
- Log-parsing vulnerabilities (the tool parses untrusted JSONL from disk).
|
|
25
|
+
- Intake or sign-in issues on the rebase hub (injection, auth bypass, a sign-in token
|
|
26
|
+
that can be reused or guessed). Report these the same way; they are fixed on the hub.
|
|
27
|
+
- Anything that lets a profile claim verification it didn't earn (tampering with
|
|
28
|
+
the authenticity/groundedness mechanisms counts: they're trust surfaces).
|
|
29
|
+
|
|
30
|
+
## Supported versions
|
|
31
|
+
|
|
32
|
+
The latest version of `@letsrebase/verify` on npm and the `main` branch. Fixes land on
|
|
33
|
+
`main` and ship as a new version; there are no maintained release lines.
|