Skip to content

Harden TTP protocol MVP - #42

Merged
blocksifrdev merged 2 commits into
mainfrom
governed-execution-demo
May 11, 2026
Merged

Harden TTP protocol MVP#42
blocksifrdev merged 2 commits into
mainfrom
governed-execution-demo

Conversation

@blocksifrdev

Copy link
Copy Markdown
Collaborator

No description provided.

@blocksifrdev
blocksifrdev merged commit 6dcb6bc into main May 11, 2026
4 of 7 checks passed
@blocksifrdev
blocksifrdev deleted the governed-execution-demo branch May 11, 2026 15:38

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50ef39c263

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/evaluator.js
Comment on lines +25 to +26
const expiresAt = parseDate(claim.expires_at, "expires_at");
if (evaluatedAt > expiresAt) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject future-dated trust claims

When --at is earlier than claim.issued_at, the evaluator still returns TRUST_PROOF_VALID: only expires_at is checked here, freshness only checks for age greater than the window, and decay clamps negative elapsed time to zero. A future-dated trust claim can therefore be accepted before it exists, which breaks execution-time trust evaluation for any caller evaluating historical or skewed timestamps; parse issued_at unconditionally and fail closed when evaluatedAt < issuedAt.

Useful? React with 👍 / 👎.

Comment thread src/parser.js
Comment on lines +42 to +43
blockPattern.lastIndex = index;
const match = blockPattern.exec(source);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject garbage between top-level blocks

Because exec() searches forward from index without validating source.slice(index, match.index), any non-comment text between two valid blocks is silently skipped as long as another recognized block follows. For example, a stray this is garbage line between subject and trust still makes ttp check succeed, so malformed .ttp files can pass the new syntax validation; check the gap before each match the same way the trailing content is checked.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant