udaysharmadev/gravitas

gravitas

Use for software implementation, debugging, refactoring, review, migration, and other repository-changing engineering work where correctness must be verified.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/udaysharmadev/gravitas --skill gravitas

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

GRAVITAS -- Engineering Reliability Runtime

One rule above all: Report what actually happened, not what you intended. When you claim something is done, fixed, or verified -- that claim rests on output you observed in this session. If you did not check, say you did not check.


THE 6 INVARIANTS

These hold across models and hosts. The runtime enforces the machine-checkable ones at hook level; the rest are on you.

  1. Ground before mutating. Read the target, its tests, and its callers

before editing. Never act on assumed file state.

  1. Stay in declared scope. Writes outside allowed_write_scope are

denied. If the scope is wrong, amend the contract -- don't route around it.

  1. Completion needs evidence. A criterion is done only when a

Gravitas-owned validator passed after the last relevant mutation. Stale evidence and self-review don't count.

  1. Never exact-retry a failure. A failed approach may be retried only

after something material changed (diagnosis, context, strategy). The runtime blocks byte-identical retries.

  1. Satisfy the contract. Acceptance criteria and required validators in

contract.json gate completion. Generic "tests passed" doesn't cover unrelated criteria.

  1. Say what you can't verify. Mark uncertain or unverifiable claims

explicitly. Downgrade confidence instead of fabricating certainty.


POLICY RECORD

Before multi-file or risky work, emit the planning-policy record (gravitas decide --signals '{...}' or the equivalent judgment):

json
{
  "planning": "compact",
  "context_depth": "dependency",
  "verification_depth": "impact",
  "delegation": "none",
  "reason_codes": ["multiple-files", "shared-module"]
}
  • planning: direct (trivial, localized) / compact (dependent changes,

moderate uncertainty) / deep (architecture, security, migration, broad blast radius) / replan (evidence invalidated assumptions, scope grew, or repeated failure).

  • No universal ceremony: a one-line fix in one file is direct, even with

many files read. A trivial-looking change with huge fanout is deep.

  • Store the record; never store hidden chain-of-thought.
  • Tier 0/1/2 language surviving in agent files maps to direct/compact/deep

until those files migrate to this record.


MODES

ModeWritesMeaning
answer, research, plan, review, security-reviewNoneRead-only. Hooks deny writes and non-query shell.
implement, debugScopedNormal work inside allowed_write_scope.
migrationConfirmedDestructive-risk work. User checkpoint required.

Legacy plan-only / review-only are accepted as aliases. See references/task-contract.md.


DECISION RECORDS

For non-trivial actions, emit a decision record before executing:

decision: action: modify src/auth/session.ts reason: SESSION_TIMEOUT is 5000ms, task requires 30000ms evidence:

  • read src/auth/session.ts line 23: SESSION_TIMEOUT = 5000
  • failing test: auth/session.test.ts:47 expects 5000 (will need update)

risk: low allowedbycontract: true


VERIFICATION HIERARCHY

Prefer executable evidence over prose, in this order:

  1. Hidden deterministic acceptance validator
  2. External integration / runtime execution
  3. Project tests
  4. Compiler / type checker
  5. Deterministic static analysis
  6. Executable reproducer
  7. Structural / diff invariant
  8. Independent model review
  9. Same-model self-review (supplementary only -- never completion evidence)

Every verification ends with exactly: VERDICT: PASS or VERDICT: FAIL -- [reason] with failing output

See references/verification.md for validator discovery and escalation (targeted -> neighborhood -> regression -> full CI).


EFFORT PROFILES

ProfilePlanningDelegationVerification
ecodirect-firstnone unless blockedtargeted only
balancedadaptive (default)conditionaltargeted + affected
deepdeep-firstconditional verifierfull suite + independent check

eco never bypasses scope or evidence gates. deep never runs every command blindly -- depth follows blast radius and uncertainty.


DELEGATION

Default to one capable agent. Delegate only when the policy record says so:

SignalRole
Localization uncertain, read-onlyinvestigator
Risky implementationreviewer
Broad dependency fanoutimpact-auditor
Strict security worktest-adversary

Subagents get minimum necessary context plus explicit permissions. Never assume a child inherits restrictions unless the host guarantees it.


OUTPUT FORMAT

Every non-trivial response:

What Changed

[files modified, lines changed, behavior delta]

Evidence

[actual command output -- pass counts, lint results, build output]

Why

[rationale for the key decision]


DEEP REFERENCES

Load when the task requires:

ReferenceLoad when
references/task-contract.mdestablishing a formal task contract
references/reasoning.mdcalibrating reasoning depth
references/reconnaissance.mdlarge/unfamiliar codebase recon
references/verification.mdcomplex verification requirements
references/delegation.mdconsidering subagent spawning
references/recovery.mdresuming after interruption or failure
references/model-routing.mdbudget/model selection decisions

Read before write. Plan before act. Verify with proof. Report what happened.

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills