Repository navigation
AGENTS.md: scope trading-lane wave rules, drop planning prose and a migration-relative clause (prompt audit) - #499
Merged
Conversation
… a migration-relative clause Prompt audit of the repository instruction surface (Claude Code 2.1.284 claude-api prompt-audit guide, target Opus 5.5 / Sonnet 5.5). Three edits, one finding each: - AGENTS.md line 15 and examples/claude-native/CLAUDE.md line 18: drop "Use a short (internal) plan" (planning prose the target models do not need); keep the no-intake, no-approval-gate constraint. - AGENTS.md line 35: "no longer turns its workflow orchestration off" -> "keeps its workflow orchestration on" (state the current rule, not a diff against an older prompt). - AGENTS.md lines 66-103: the trading-lane wave rules move verbatim to blueprints/us-equities/AGENTS.md (with the CLAUDE.md import stub already used by blueprints/convergence-practice/application-delivery), so foundation sessions and every subagent stop loading 2.2 KB of lane-specific text on every call. Hashes re-registered per docs/lanes.md hot-file protocol. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Trading lane acknowledgement (
No objection. |
Restore the unscoped ban on intake, repeated approvals, diagnostic campaigns and restarts in examples/claude-native/CLAUDE.md (the first edit had scoped it to bounded work). Widen the root pointer to name every trigger the moved block covers, replace the nested file's migration-relative header with a state description, register the two new files in manifests/evidence.json, and add an addendum to the 2026-09-26 harness-rules record that amends its scope sentence and states how Claude Code and Codex load the nested file. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Trading lane re-acknowledgement at head
No objection. |
seathatflowsinourveins
pushed a commit
that referenced
this pull request
Sep 29, 2026
…er the delta review The dollar breakdown counted claude-sonnet-5-5's unsplit cache writes twice. The receipt now reconciles dollars per model (data.reconciliation.cost_usd.by_model: Fable, Haiku and the scan agree with ccusage to the cent; the gap is claude-sonnet-5-5 unpriced by ccusage, claude-opus-4-8 priced only by ccusage and the unsplit writes of the other models, with a residual of about a dollar). The cache-creation limitation states both the field difference and the clamped remainder, the artifact's docstring no longer credits the merge rule to ccusage's loader, commands are recorded consistently with the snapshot directory, the session-view percentile method is stated, and the decision record words the advisor switch as an absence result and refers to #499 as merged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
seathatflowsinourveins
added a commit
that referenced
this pull request
Sep 29, 2026
…eipt, run-shape section and decision record (#500) * Spend attribution 2026-09-29: count-only scan, ccusage-reconciled receipt, run-shape section and decision record Adds evidence/artifacts/claude-spend-scan.py.txt (a portable count-only scan of Claude Code transcripts: one row per message.id with the per-field maximum, advisor iterations from usage.iterations, list-price cost by class and model, child length and agent-type mix, session-tree concentration, effort, context bins, cache misses and tool invocations, with a synthetic control that runs one mutant per counting rule), tests/test_claude_spend_scan.py, and the receipt claude-spend-attribution-20260929, whose token totals match ccusage 20.0.26 within 0.001% on a shared copy of the transcript tree. docs/token-practice.md gains a "Run shape and accounting" section and docs/decisions/2026-09-29-token-spend-attribution.md records the decisions (effort max and the advisor stay by the user's answers; the subagent cache TTL stays by the receipt's arithmetic), the practice status and the levers by owner. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Spend attribution: fix the unsplit-write double count and wording after the delta review The dollar breakdown counted claude-sonnet-5-5's unsplit cache writes twice. The receipt now reconciles dollars per model (data.reconciliation.cost_usd.by_model: Fable, Haiku and the scan agree with ccusage to the cent; the gap is claude-sonnet-5-5 unpriced by ccusage, claude-opus-4-8 priced only by ccusage and the unsplit writes of the other models, with a residual of about a dollar). The cache-creation limitation states both the field difference and the clamped remainder, the artifact's docstring no longer credits the merge rule to ccusage's loader, commands are recorded consistently with the snapshot directory, the session-view percentile method is stated, and the decision record words the advisor switch as an absence result and refers to #499 as merged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Scout <scout@local> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
AGENTS.mdinto a path-scopedblueprints/us-equities/AGENTS.md, leaving one pointer line. RootAGENTS.mdgoes from 13,862 to 11,450 bytes (about 0.6K tokens, estimated at 4 bytes per token, not tokenizer-counted). Agents that setomitClaudeMdnever loaded the root file, and a session that reads files underblueprints/us-equities/loads the nested file again, so the saving is for sessions and children that do not touch that directory.cf2960a7(AGENTS.mdis unchanged between it andorigin/main9ad7bebe).lane:shared.AGENTS.mdis a shared hot file andblueprints/us-equities/is trading-lane owned. The trading lane acknowledged head715e043cin a comment on this PR (2026-09-29 06:18Z);ecosystem-roadmap-2026holds the lane perdocs/decisions/2026-09-28-ecosystem-roadmap.md:319atorigin/main. The head then changed after an independent review (pointer wording, one restored sentence, the nested file's header, hash registration and a decision-record addendum), so a fresh acknowledgement of the new head is requested before merge.AGENTS.md,examples/claude-native/CLAUDE.md,blueprints/us-equities/AGENTS.md(new),blueprints/us-equities/CLAUDE.md(new,@AGENTS.mdimport stub),docs/decisions/2026-09-26-harness-rules-cleanup.md(addendum),manifests/evidence.json(hash registration only).SOTA sources
claude-apiskill,prompt-auditguide (shared/prompt-audit.md, bundled with Claude Code 2.1.284; a public mirror was not verified, the bundled copy was read in full): Group 1b "plan before acting" prose is deleted because current models plan unprompted; Group 1d flags migration-relative phrasing such as "no longer"; Group 2 states that size in an instruction file is a tax paid on every load.docs/decisions/2026-09-26-harness-rules-cleanup.md:42: Codex reads the Codex-home file and the project root-to-working-directory chain.blueprints/convergence-practice/application-delivery/AGENTS.mdplus itsCLAUDE.mdimport stub (the same nested-file pattern).Evidence-class table
origin/main:AGENTS.md, and the root shrinks by 2,412 byteslocal_integrationorigin/mainblock with the nested file's body:Trueblueprints/us-equities/local_integration(one headless run; the observation is in the session transcript, not a committed receipt)claude -p "Read the file blueprints/us-equities/north-star.md ..." --model haikufrom the repo root, exit 0; the transcript holds twonested_memoryattachments:blueprints/us-equities/CLAUDE.mdandblueprints/us-equities/AGENTS.md(3,185 bytes)local_integration,source_reviewTMPDIR=/dev/shm/pra-tests python3 -m unittest tests.test_blind_checkout: 40 tests OK on this branch and onorigin/main;tools/sota-convergence/blind_checkout.py:877-889test_blind_checkouterrors seen with the defaultTMPDIRare environmental, not caused by this changelocal_integrationTMPDIR: 11 errors with the same names on this branch and onorigin/main, each--export ... is inside the git repository /tmp(a stray/tmp/.giton this host)local_integration,source_reviewgit grep -Fon each removed string matches onlyAGENTS.md, decision records and the historical artifactevidence/artifacts/native-claude-profile-20260920/instructions-after.md:3;unittest tests.test_adoption_docs_consistency tests.test_install_claude_profile tests.test_runtime_worker_skills: 122 tests OK (4 skipped);node examples/claude-native/workflows/test-envelope.mjs:passed=254 failed=0scripts/validate.pypasses with the re-registered hasheslocal_integration"status": "passed"(69 components, 8065 hashed files)Local commands run
Decision record
docs/decisions/2026-09-26-harness-rules-cleanup.md, "Addendum (2026-09-29)": it amends the scope sentence "AGENTS.mdkeeps trading-only rules under Trading north star", records the loading behaviour of Claude Code and Codex, the acknowledgement, and what would move the paragraphs back (a moved rule missed at the point of use, or a client release that changes nested loading). The audit target was Claude Opus 5.5 for role agents and workflow stages and Claude Sonnet 5.5 for the running coordinator. Findings this PR does not act on:flag(Codex): a Codex session started at the repository root sees only the pointer line, not the moved text; the line says to read the file before a trading research wave, experiment, data acquisition, strategy-gate change or decision-array registration. A trading session that must have the rules at start can open with the directory as its working directory.flag: whetheromitClaudeMdalso suppresses a nested load is not established. The host~/.claude/CLAUDE.mdstill carries the pre-edit "Use a short plan" sentence until the profile sync runs after merge and outside any Gate A window.flag: rootAGENTS.md,examples/claude-native/CLAUDE.mdand the global instructions still carry the same "Top rule" paragraph in slightly different words. They agree, so this is working redundancy and is left alone.flag(frozen for Gate A, owner native-agent-stack-2d): the defaultToolSearch select:list inadoption/hooks/claude/token-lanes-block.mdloads serena in every child. The exact-command-shapes rule in thestack-researcher,stack-verifierandsource-scoutbodies omitsjqand thecdbuiltin that the carrier and the Codex template list.flag:evidence-reviewerandsecurity-reviewerhave identical 20-tool grants and near-duplicate lane paragraphs; they differ in task focus and one skill preload, so this is left as a roster question.Host evidence
Not applicable (no
evidence/hosts/files).Checklist
permissions: contents: read(none changed).🤖 Generated with Claude Code