Skip to content

Commit c2d92a6

Browse files
committed
spec: 004 redact every title before it goes into the evidence
Refs #3531 Signed-off-by: Jose I. Paris <jiparis@chainloop.dev> Chainloop-Trace-Sessions: d4043d7b-f121-41dd-a642-42aff4c66211
1 parent 04c25ab commit c2d92a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/specs/004-spec-source-role.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The header of a text spec file, and the companion file of a binary file, MAY hol
5858
- Done when: a ticket file with `title: "ENG-1234: Add an export button"` pushes a spec entry and a material annotation with that title.
5959

6060
### R-008: Title limits
61-
The system MUST cut a title that is longer than 120 characters, and keep the first 120. The system MUST apply the secret redaction of Spec 002 to the title of a companion file before the title goes into the evidence. A bad title MUST NOT stop the push.
61+
The system MUST cut a title that is longer than 120 characters, and keep the first 120. Each title MUST pass the secret redaction of Spec 002 before it goes into any evidence field. For a text file, the system MUST read the title from the redacted file, as it reads the source address. For a binary file, the system MUST redact the title of the companion file. A bad title MUST NOT stop the push.
6262

6363
## Constraints
6464
- The repository is public. The instruction text and the format are visible to all users.
@@ -147,5 +147,5 @@ None.
147147
| The agent gives a wrong role, for example `spec` for a background document. | The role is the agent's statement, as the kind is. The kind and the content stay in the evidence, so a reviewer can check. |
148148
| The agent does not set a role. | The role is optional (R-005). Consumers use their own rule from the kind. The share of sources with a role is measurable from the evidence. |
149149
| The agent forgets the companion file for an image. | The image has no role, and consumers use their own rule. |
150-
| A title holds a secret, for example a token in a pasted ticket title. | The redaction covers the header of a text file and the title of a companion file (R-008). |
150+
| A title holds a secret, for example a token in a pasted ticket title. | Each title passes the redaction before it goes into the evidence (R-008). |
151151
| A source has more than one purpose. For example, a ticket also holds the full spec. | The agent records the main purpose. The instruction says to pick the role that tells why the source is in the session. |

0 commit comments

Comments
 (0)