oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# Injection defences: Fable follow-up
2
3Paul requested these changes after reviewing 862bb1c3. Merge origin/main first
4(5a6755bb, merged as 5f603516). Preserve legitimate work: missing certification
5must not suppress diagnostics or fix rounds. Authority remains a person's tap
6or a current owner-chosen project setting plus deterministic checks.
7
8## Checks and merge authority
9
10Without a base gate manifest, run candidate gates and hosted CI as diagnostics,
11with no BaseChecksSHA. With a manifest, run immutable base gates for certification.
12When gate files change, also run candidate gates in an independent checkout and
13report both outcomes. Candidate results drive repair feedback but cannot certify
14merging. Gate-change auto-merge still requires passing base checks and the
15explicit setting. A person can approve a legitimate gate update whose old gate
16fails but whose candidate checks pass.
17
18Manifest paths may name directories. Resolve them from the base tree, pin their
19whole contents read-only, and classify new, changed or deleted descendants as
20gate changes. Pin directories against helper shadowing, including new Python
21modules. Checked changes also require not_sensitive unless the owner enables a
22separate sensitive-change waiver. Existing eligibility and current-roster checks
23remain mandatory.
24
25## Previews
26
27Verify the exact CSP on the served marker, not just exported _headers. A missing
28or different header is unconfirmed and clearly reported. Open previews in an
29Equipo wrapper whose frame-src permits only that preview origin and whose
30sandboxed iframe cannot navigate the top page. Permit a current owner to approve
31one exact preview without the header, after a successful secret scan; do not
32silently omit the header or publish an insecure fallback. Tailnet placement
33limits readers, not browser egress. Public-preview grants apply prospectively.
34
35Bundle pinned, digest-verified gitleaks artifacts for Linux and Mac with runner
36releases. Execute scans offline inside the sandbox, using trusted scanner
37configuration and exports only. Runtime scanning and its test need no host Go
38module cache.
39
40## Text provenance
41
42Use collision-proof multi-line data blocks for logs, diffs and other multi-line
43values. Quote each value once. Keep the person's fix note under its own source
44label. Hand-offs carry only composer messages belonging to that request. A
45corrupt notebook opens empty with a warning; its corrupt bytes remain untouched.
46
47## Platform and verification
48
49Revise the separate CARLOS patch against platform main in a disposable worktree.
50Accept standard CSP values generally and reject requested policies that cannot
51be applied, before publication. Include usage documentation. Do not push CARLOS.
52Tighten rule 4 in AGENTS and the hosted spec branch. Every guard gets a failing
53test and an observed mutation failure. Run the requested local gates, push Equipo,
54and wait for hosted CI. Record both branches, the platform base, tests and
55mutations in ../report2.md. No merge into main or deployment.
56
57## Implementation contract
58
59Protocol 28 is required for the directory-gate certificate, served preview
60policy and per-preview exception. Older runners remain diagnostic. No further
61migration is needed: the sensitive-change waiver and public-preview grant time
62use the existing autonomy JSON; the exact owner, candidate and export grant is
63stored on its preview step. Removing an owner revokes their standing authority.
64
65The fixed preview policy omits frame-ancestors so the instance can embed it.
66The preview itself cannot embed other frames. The instance wrapper pins
67frame-src to the exact preview origin and uses a sandboxed iframe without
68popups or top navigation. An exception never skips the secret scan.
69
70Gitleaks v8.30.1 is a pinned Go module. Release builds compile it separately for
71Linux amd64 and Mac arm64, record each digest in the install manifest, and link
72the corresponding digest into each runner. Tests re-execute the already compiled
73gitleaks command from the test binary. No compiler or module cache is needed to
74prepare or run a scanner during those tests.
75
76## Final review corrections
77
78The trusted base gate keeps its own outcome alongside the combined checks
79outcome. Candidate diagnostics cannot turn a failed base gate into a pass.
80A base failure enters the existing fix-round path; any merge explanation names
81the base failure. Persist the outcome additively, after main's migrations.
82
83Preview link labels contain only the host. Their targets remain Equipo wrapper
84routes. The exported and verified CSP names the configured Equipo origin in
85frame-ancestors, including after restart. A republishing attempt offers no stale
86header-confirmation link.
87
88The platform patch refuses serving only for requested security headers that
89cannot be applied. Invalid nonsecurity lines retain the edge's skip behaviour.
90